Repository navigation
fix(auth): maintain native verification state - #8845
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe incremental commit replaces a stale storage-key test with boundary coverage of the 64-byte message cursor id limit, which now matches the Assumptions: Files Reviewed (1 file)
Previous Review Summaries (9 snapshots, latest commit cd2d9d4)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit cd2d9d4)Status: No Issues Found | Recommendation: Merge Executive SummaryThe incremental change only renumbers the additive Assumptions: Files Reviewed (6 files)
Previous review (commit 66bd1f2)Status: No Issues Found | Recommendation: Merge Executive SummaryThe incremental change only renumbers the additive Assumptions: Overview
Files Reviewed (6 files)
Previous review (commit 55bed42)Status: No Issues Found | Recommendation: Merge Executive SummaryThe follow-up commit adds the missing Assumptions: Overview
Files Reviewed (6 files)
Previous review (commit 571a0d1)Status: 1 Issues Found | Recommendation: Address before merge Executive SummaryThe revised shared wrong-guess allowance fixes the previously flagged split-budget issue, but the merge with Assumptions: Overview
Issue Details (click to expand)CRITICAL
Files Reviewed (3 files)
Fix these issues in Kilo Cloud Previous review (commit 4f0839e)Status: 1 Issues Found | Recommendation: Address before merge Executive SummaryThe change's only substantive concern remains the split per-mode guess budget: one live sign-in code now carries two independent five-failure counters, so the same row admits up to ten wrong guesses; the migration renumber and snapshot regeneration are otherwise clean. Assumptions: Overview
Issue Details (click to expand)WARNING
Files Reviewed (6 files)
Previous reviewStatus: 1 Issues Found | Recommendation: Address before merge Executive SummaryThe sign-in code still splits one live code's five-guess budget into two independent five-guess counters, so the same row admits up to ten wrong guesses; all other changes since the prior review are a clean migration renumber and a merge from Assumptions: Overview
Issue Details (click to expand)WARNING
Files Reviewed (6 files)
Fix these issues in Kilo Cloud Previous review (commit 9906fec)Status: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (6 files)
Previous reviewStatus: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (6 files)
Previous reviewStatus: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (7 files)
Reviewed by deepseek-flash-latest · Input: 35.4K · Output: 4.5K · Cached: 386.4K Review guidance: REVIEW.md from base branch |
# Conflicts: # packages/db/src/migrations/meta/0297_snapshot.json # packages/db/src/migrations/meta/_journal.json
Regenerate the additive schema migration at the next free sequence number so it does not collide with the migration main added.
eshurakov
left a comment
There was a problem hiding this comment.
Shallow review: no critical issues found.
# Conflicts: # packages/db/src/migrations/meta/0303_snapshot.json # packages/db/src/migrations/meta/_journal.json
|
Changes requested: merge current main into this branch without rebasing and resolve the conflicts. Preserve the behavior now on main, rerun the affected checks, and update the verification evidence. |
# Conflicts: # services/session-ingest/src/types/session-sync.test.ts
# Conflicts: # packages/db/src/migrations/meta/0307_snapshot.json # packages/db/src/migrations/meta/_journal.json
# Conflicts: # packages/db/src/migrations/meta/0308_snapshot.json # packages/db/src/migrations/meta/_journal.json
|
bot: Merged
|
# Conflicts: # packages/db/src/migrations/meta/0309_snapshot.json # packages/db/src/migrations/meta/_journal.json
Evidence
Evidence: demonstrated — local database-backed regression suites and the running development web app exercised native sign-in code issuance, verification, credential settlement, and refusal responses at
305f92120b97f67947444068a382a21701eededewith owned fake accounts, local PostgreSQL, the local email outbox, and development admission.Change
Persist native verification state with the approved compatibility contract and existing response values and telemetry. Include behavioral regression coverage and one generated additive migration.
This follow-up merges current
main, resolves the migration-index collision by regenerating this branch's migration as0309_ancient_sauron.sqlwith matching snapshot and journal metadata aftermain's newest entries, and keeps the application implementation unchanged. The generated SQL adds one column. After the merge, the branch differs frommainonly in this migration and the sign-in code verification accounting with its tests.Verification
pnpm install --frozen-lockfile— passed.pnpm drizzle checkand the migration journal test — passed, with an existing timestamp-order warning for historical entries0034and0035.pnpm drizzle migrate— the full chain applied from an empty database: 310 journal entries recorded, the table reports the new integer column with default0andNOT NULL, and the newestmainindexes exist.magic-link-tokens.test.ts, native token route, and native OTP route at this head — 3 suites, 158 tests passed.429 TOO_MANY_ATTEMPTS, while the challenge-bound correct code still settled;401 INVALID_CODE;429 TOO_MANY_ATTEMPTS;legacy_attempts = 5, attempts = 0; rows with five challenge-bound guesses recordedattempts = 5, legacy_attempts = 0; settled rows were consumed. All 8 assertions passed.git diff --check— passed. Generated migration metadata follows the repository formatter exclusion.This is a nonvisual backend change. No screenshot is applicable. Live email delivery, production firewall configuration, and platform attestation were not exercised.
Production prerequisites
None.
Proxy answers
The owner's proxy gave these answers in the owner's place.