Repository navigation
fix: align Goal authority proof with admitted-run policy - #201567
Conversation
The Goal product test waited for role revocation to cancel an admitted provider request, which #201377 correctly keeps alive under #197557. Release that response, prove it persists while the next Goal turn is refused, and separately verify Stop closes the provider and pauses the Goal with its interruption note. Preserve disclosure and scope checks. Production behavior is unchanged. Thanks @obviyus for #201377. Co-authored-by: Ayaan Zaidi <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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. |
|
@clawsweeper re-review Please review final head d81be0f. The patch only updates the stale Goal authority product proof to the admission-time contract from #197557 / #201377; production LOC delta is zero. Final real-Gateway proof passed twice, all 174 focused authority/lifecycle tests passed, the full final |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesUpdates the Goal authority test to allow admitted work to finish after revocation, reject subsequent turns, and verify explicit Stop cancellation separately. Example: An operator loses their role while a delegated Goal return is awaiting its provider response.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused correction to stale Goal authority coverage; no actionable introduced defect was found, and exact-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway test drives authenticated WebSocket clients through Goal creation, delegated child settlement, provider HTTP transport, continuation admission, and persisted session history. flowchart TD
A[Identified clients] --> B[Gateway RPC]
B --> C[Goal and child settlement]
C --> D[Provider HTTP transport]
D --> E[Continuation admission]
E --> F[Session state and history]
B --> G[Explicit Stop]
G --> D
Technical reviewBest possible solution: Keep the focused test correction using existing admission and cancellation owners, preserving sibling restrictions and revoked-client nondisclosure. Do we have a high-confidence way to reproduce the issue? The base fixture waits for cancellation before releasing an admitted response, while the production recovery owner deliberately retains admitted authority; the author reports the corresponding base timeout, and this review ran no target code. Is this the best way to solve the issue? The patch corrects the stale fixture contract at its existing owner and preserves cancellation through a separate real-provider-socket Stop scenario without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 826a79b4de07. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +21. Total +21 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. Review metrics
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 18, 2026, 9:23 PM ET / November 19, 2026, 02:23 UTC. |
|
Merged via squash.
|
…1567) The Goal product test waited for role revocation to cancel an admitted provider request, which openclaw#201377 correctly keeps alive under openclaw#197557. Release that response, prove it persists while the next Goal turn is refused, and separately verify Stop closes the provider and pauses the Goal with its interruption note. Preserve disclosure and scope checks. Production behavior is unchanged. Thanks @obviyus for openclaw#201377. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
The Goal authority E2E test timed out for 120 seconds after #201377 because its provider fixture waited for revocation to cancel an already-admitted turn before releasing that turn's response. That cancellation expectation contradicts the admission-time authority contract from #197557.
User Impact
No runtime behavior changes. The test now proves that admitted Goal work finishes, a revoked requester gets no subsequent automatic Goal turn, and explicit Stop still cancels promptly with a visible paused/interruption outcome. Existing sibling-agent restrictions and revoked-client disclosure checks remain.
Why This Change Was Made
Reuse the existing real Gateway, identified clients, provider transport, child settlement, and persisted history fixture. Release the admitted response after role revocation; separately require Stop to close the real provider socket before the Gateway drain settles and before the fixture releases its response. Policy refusal leaves the stored Goal active; Stop pauses it. Production LOC delta: 0; test delta: +51 / −30.
Thanks @obviyus for #201377, which correctly fixed occurrence authority after admission. This updates the stale downstream test rather than restoring mid-run policy checks.
Evidence
The unchanged test on
053fb62c6141c801fdd0f9bb2dfc3060a6fed912times out at 120 seconds. The updated product test passes against the identical production tree. It checks persisted admitted completion, zero successor turns after revocation, prompt provider cancellation on Stop, and the persisted interruption note. Identical final-source A/A runs took 17.767 and 12.857 seconds of test time; it reuses one Gateway for three lifecycle scenarios. This is test timing, not a production performance claim.All 174 focused tests passed across Goal continuation, scheduled operator recovery, and cron active-job suites, including current-policy rejection at the next admission. Codex autoreview of the complete local patch against the commit above is scoped-clean through P2, with no actionable findings. No schema, configuration, cache, or UI-imported module changes.
pnpm check:changedpassed, including the timeout-race guard, targeted typecheck/lint/format, architecture guards, and both unused-export scans.