Repository navigation
fix(server): correct Phase 1 founder enrollment on databases that ran 098 - #180
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
CHECKPOINTCLO-694 bounded closeout — BLOCKED. Exact head The PR body records finding 2 stopped after two failed guarded attempts: an Effect typecheck error followed by an unrelated fixture flake. It reports 12/12 ordinary passes but no guarded pass and explicitly leaves disposition and exact-head recheck to its caller. I did not reset the guard, alter this repair, or run a third repair attempt. Parent must resolve that disposition and supply the required focused independent recheck; other historical findings remain preserved in the description. Repaired only the missing deployment declaration: appended exactly one Default-branch workflow audit found checks/builds and proposal-PR generation only, with no direct public-site/release/production publish; private fleet consumer remains unverified. No merge, new spend, nested child or watch. {
"reviewed_head": "54b3ec657c8dcd1a761ffb45bce731ac2a877e7d",
"reviewer": "Codex gpt-6.1-sol via T3; focused repair-history reconciliation only",
"review_scope": "Preserves predecessor review and exhausted guard; no new full review or confirmed focused recheck claimed",
"findings": [
{
"id": "CLO1108-F2",
"severity": "important",
"summary": "Sibling-session founder reassignment repair exhausted two guarded attempts; parent disposition and focused independent exact-head recheck remain outstanding.",
"outcome": "open"
}
]
} |
…ession The founder binding test chose the first non-desktop session without a founder. The admin session is a server-issued bot with no founder and ties on issued_at under the test clock, so random session ids sometimes put it first and the test tried to change its own session. Reproduced in 11 of 15 runs on 9c718d3; 20 of 20 pass with the admin excluded. Test-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…essions Corrects three findings on the merged Phase 1 founder enrollment (#173) without changing the already applied migration 098: - Only the server sets the bot device type (CLI-issued and MCP sessions). A client presenting "bot", or a crawler-like user agent, falls back to its inferred type or "unknown". - Reassigning or clearing a Connect device's founder now moves every live session on that approved key, not only the target. - New migration 099 corrects databases that already ran 098: it reclassifies client-claimed bot rows and replays 098's device binding as of when it ran, moving bindings taken from expired sessions (and the sessions that inherited them since) to the live choice or to none. Committed with --no-verify: knip, the evals typecheck and the AgentContextBudget MCP byte budget already fail on the release tip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54b3ec6 to
ea5079a
Compare
The Phase 1 founder enrollment PR (#173) merged at the release tip
9c718d3fwithout its review corrections. This PR adds those corrections on top of the merged release branch, for databases that already ran migration 098 as well as new ones. Tracked in Linear CLO-1108.Held: do not merge. The CTO owns the exact-head recheck and the merge. The repair guard for finding 2 is stopped; see "Guard status" below.
Fixes
botdevice type: CLI-issued sessions and MCP client sessions. If a client presentsbotitself, or has a crawler-like user agent, it gets its inferred type orunknown. Before this, a client could exempt itself from founder enforcement just by sending the label.botrows that a client claimed. These have recorded network metadata and are notmcp-client, and becomeunknown.effect_sql_migrations.created_at. Where 098 picked an expired session, 099 moves the device to the newest live session's founder, or to no founder. Sessions that inherited the wrong founder since then move as well.[keyed]fixture inEnvironmentAuth.test.tssometimes selected the admin's own session. That made the test try to revoke itself ("cannot revoke itself"). The filter now excludesadmin.sessionId. Test-only.Evidence (offline, sequential)
9c718d3f[bot,bot]; every row stays bot['jeff','kameron']ws.test.ts: 39 passed.git diff --check: clean.check:changedagainstorigin/release/native-0.1.10:AgentContextBudgetfail identically on pristine9c718d3f. The budget measures 56852 bytes against the committed 55827, and evals exits 2. No diagnostic names a changed file.--no-verifyfor that reason.Provenance
9c718d3fhas the same tree as the held head3b48650merged onto its parent.git range-diff 3b48650..6320f92 9c718d3f..HEADshows the retained correction6320f92ported, with its 098 edits replaced by 099.utils.ts,utils.test.ts,SessionStore.ts,AuthSessions.tsandenvironment-auth.mdare byte-identical to6320f92.9c718d3f.Guard status
Not verified
created_atrow marks when 098 ran. The migrator records every pending row and then runs that batch in the same transaction.Done by Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code
Deploy: fleet