Repository navigation
fix: preserve Goal cancellation checks after consumed child returns - #200391
Conversation
|
🦞👀 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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesUpdates the Goal authority regression to expect an already-consumed child result to remain delivered after requester cancellation. Example: A Goal requester loses access after its child result enters the transcript but before its answer completes.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR correctly updates an obsolete test expectation while preserving cancellation and disclosure coverage; no actionable findings remain. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway regression drives identified clients, Goal tools, child execution, role revocation, and history publication through a real Gateway with a synthetic provider. flowchart LR
A[Identified requester] --> B[Gateway Goal turn]
B --> C[Child execution]
C --> D[Requester transcript]
D --> E[Provider continuation]
F[Administrator revocation] --> B
B --> G[Cancellation and disclosure assertions]
Technical reviewBest possible solution: Merge the focused assertion update using the existing Gateway regression and delivery-state owner. Do we have a high-confidence way to reproduce the issue? Source confirms the obsolete extra-message assertion conflicts with consumed-result settlement; the PR reports the matching base failure, and this read-only review ran no tests. Is this the best way to solve the issue? This is the smallest complete repair: update the existing regression's delivery and transcript expectations without changing production behavior, deadlines, or cancellation checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against df78722789e0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2. Total -2 across 1 file. 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 16, 2026, 11:00 PM ET / November 17, 2026, 04:00 UTC. |
|
Merged via squash.
|
What Problem This Solves
Fixes the Goal authority E2E failure after #200249 made already-consumed child results remain delivered when their requester turn is cancelled before answering.
User Impact
No product behavior changes. The existing real-Gateway regression continues to verify that revoking a Goal requester cancels further effects and disclosure while retaining its consumed child result.
Why This Change Was Made
The test still expected an additional delivery-failure notice from the older contract. It now checks the actual delivered/consumed child state and unchanged durable transcript content across all history entries. Real provider cancellation, Goal pause, forbidden sibling creation, absence of revoked replies, and the later authorized publication checks remain intact. Production delta: 0; test delta: −2 lines.
Evidence
The original Bun case fails with expected 9 / got 8 on exact main parent
f1d7daedced8b1d34e6f368bd481e66884d1c297, matching CI merge19b1e0b57d857273f78f49d32312f2ae4073c950. The original merge case also fails under Node. The original parent Node arm instead hit its unchanged 120-second deadline; that separate result is retained and is not claimed fixed by this assertion migration.Candidate Node and pinned Bun: 1/1 passed each. Independent Codex review found no actionable findings through P2.
pnpm check:changedpassed 24 of 25 gates. Its sole failed gate reports the same five production and three full-tree dead exports on the clean exact main parent; their separate owner changes are #143882, #200088, and #199111. The aggregate result remains failed; this is local baseline qualification, not a waiver of future CI. This is the existing single real-Gateway case with a synthetic provider, not a live external model test. No test deadline changes or test retries.