Repository navigation
Conversation
Since d53921a (#194129), a broad sessions catalog notification no longer invalidates retained sharing facts; the commit guard rereads membership and refuses the fork with SESSION_PARTICIPATION_REQUIRED, matching the writer-fault variant. The fork still fails with SessionMutationAuthorizationChangedError and leaves storage unchanged. Co-authored-by: obviyus <[email protected]> (cherry picked from commit 97d0bf1567fdf25d638201027f6005f60a3cf233)
Since 97e91a1 (#196206), cloned project sessions use a managed worktree even when worktree intent is omitted, so a required-sandbox github spawn is accepted in an isolated worktree instead of failing outside the sandbox. A registered current checkout outside the sandbox is still rejected. Co-authored-by: obviyus <[email protected]> (cherry picked from commit d870c53605e78da63e5c2831486ff4d046e06216)
…ersistence #196337 deferred legacy worker input persistence until after the policy gate, so unpersisted input now reads its prefix through the transcript open; the authority-change probes hook that read and still refuse credentials, tunnel and launch. The missing-admission refusal it removed is skipped here and restored in #196702. Co-authored-by: obviyus <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR updates three Gateway test suites for changed sharing, worktree, and worker-input behavior and skips one admission-refusal test. Example: A sandbox-required visible child selects https://github.com/example/restricted.git without specifying worktree.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: the test repairs are useful, but skipping the known admission-refusal regression hides a remaining failure and needs correction before merge. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThese Gateway tests exercise session mutations, visible child creation, and worker-turn preparation, checking stored state, sandbox placement, and refusal before worker effects. flowchart LR
A[Gateway test fixtures] --> B[Session mutation handlers]
A --> C[Visible spawn tool]
A --> D[Worker turn provider]
B --> E[Session storage]
C --> E
D --> F[Credentials and worker transport]
Technical reviewBest possible solution: Keep the focused expectation updates and retain the admission-refusal test, landing its companion production repair before expecting that case to pass. Do we have a high-confidence way to reproduce the issue? Source verifies the changed contracts and the removed admission guard; the author reports nine baseline failures and 90 passes with one skip, but this read-only review ran no tests. Is this the best way to solve the issue? Updating existing expectations and moving fault injection to the actual transcript-read boundary is focused and appropriate, but disabling the distinct missing-admission case masks a production regression. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ecbad2efa1d7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1, Other +2. Total +3 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 10, 2026, 11:54 AM ET / 16:54 UTC. |
|
Superseded by #196702, which keeps the missing-admission test enabled and restores the refusal. |
Related: #196702 (restores the admission refusal split out of this PR)
What Problem This Solves
Fixes: 9 gateway tests in three files fail on main. Main CI only runs tests affected by each change, so they went red unnoticed and now block unrelated PRs (seen on #196480).
User Impact
User impact: none. Test-only; main's affected gateway suites go green again.
Why This Change Was Made
Each failure was bisected between
802ddc7(all pass) and main (all fail); each culprit passes on its parent and fails on the commit. All three commits changed behavior on purpose:sessions-rewind.storage.test.ts, first badd53921a(fix(gateway): shared-session runs lose access after session list updates #194129). Retained sharing facts now survive the broad sessions notification, so the commit guard refuses with the more specificSESSION_PARTICIPATION_REQUIRED(still aSessionMutationAuthorizationChangedError, storage unchanged).server.sessions.create-worktree-spawn.test.ts, first bad97e91a1(fix: keep project session scratch out of shared clones #196206). Cloned projects now always start in managed worktrees, including omitted orfalseworktree intent, per that PR's docs. A registered checkout outside the sandbox is still rejected.worker-turn-detached-context.test.ts, first badd7aaafe(fix: let input policy hooks inspect prepared images #196337). Legacy worker input persistence now waits for the policy gate, which needs prepared images, so credentials and tunnel come first. The authority-change probes now hook the transcript open that unpersisted input uses; all five still refuse credentials, tunnel and launch. "joins recorder admission" expects no fenced read when there is no earlier persistence to join.Evidence
53aed90): 90 passed, 1 skipped. On main: 9 failed.origin/mainis already 20 lines over its ceiling on its own (net delta: 0. Tree is over the ceiling).