Repository navigation
test(gateway): expect stopped Goal returns to remain paused - #192387
Conversation
85f9736 made stopped goals pause. Revocation cancels the in-flight provider request, so the restricted Goal now settles paused instead of active.
|
🦞👀 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 maintainer review before merge. What this changesThis PR changes the revoked Goal-return test to expect a paused Goal with zero continuation turns. Example: An administrator revokes a member's role while its delegated Goal return awaits a provider response.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a still-outdated regression expectation match the intentional Stop contract without weakening cancellation or disclosure coverage. No introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway regression drives identified operators through Goal creation, delegated work, and role revocation, then checks provider cancellation, persisted Goal state, and message disclosure. flowchart LR
A[Identified operator] --> B[Gateway chat]
B --> C[Goal and delegated work]
D[Administrator revocation] --> B
B --> E[Provider cancellation]
E --> F[Lifecycle persistence]
F --> G[State and disclosure assertions]
Technical reviewBest possible solution: Retain the one-line expectation correction and every existing cancellation, continuation, and disclosure assertion. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the active-versus-paused mismatch; no failing or passing test was executed during this read-only review. Is this the best way to solve the issue? The literal replacement is the smallest complete fix using the existing lifecycle owner, with no additional state, scaffolding, or weakened security assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 57c207777674. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReview history (1 earlier review cycle)
Reviewed November 4, 2026, 5:10 PM ET / 22:10 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Carry the final reviewed changes from #191830, #192378, #192379, #192380, #192383, #192385, and #192386. Preserve #191838's existing file-transfer import fix. Adapt Gateway readiness to the release owner and include the narrow SQLite cold-admission prerequisite from #192586. Do not carry #192387: its Goal expectation depends on main-only Stop-to-paused behavior absent from this release. Retain regression allocations without changing the shared baseline.
…law#192387) 20a387c made stopped goals pause. Revocation cancels the in-flight provider request, so the restricted Goal now settles paused instead of active.
Problem
The revoked Goal-return scenario still expects an active goal after Stop, despite main commit
85f973601725changing stopped goals to paused. This pre-existing test failure was repaired in the original forward-port PR.Solution
Expect
pausedfor the revoked continuation, preserving zero continuation turns and the successful-control assertion. This is the independent, one-line test-only slice of #191830 directly againstmain; no sibling PR dependency.Evidence
git diff --checkpassed.34007820fa2c, head4e1f0e49c56d.oxlint --type-awarepassed.Split CI status
34007820fa2c: missingMcpCatalogToolexport inmcp-metadata.tsand consequent optional UI metadata errors. That file andagent-bundle-mcp-materialize.ts/agent-bundle-mcp-types.tsare byte-identical to the base; SDK declaration preparation propagates the same error into build/boundary/lint lanes.Exact-head CI attribution audit
Audited 2026-11-04 at
4e1f0e49c56d889fa4d03fa905ead58bdd69db37. Failed job logs were inspected individually, not inferred from their names.The MCP failures are inherited from base
34007820fa2c:src/agents/mcp-metadata.ts,agent-bundle-mcp-materialize.ts, andagent-bundle-mcp-types.tshave identical Git blob IDs at base and PR head. The missingMcpCatalogToolexport and consequent optional-property errors propagate through SDK declarations into boundary/build/lint/type lanes.Cancelled dispatch jobs are orchestration cancellations, not passing tests or additional source defects. CI remains red; this section explains the failures rather than claiming green.