Skip to content

fix: preserve Goal cancellation checks after consumed child returns - #200391

Merged
steipete merged 1 commit into
mainfrom
fix/goal-consumed-result-authority-2518
Nov 17, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/goal-consumed-result-authority-2518

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 merge 19b1e0b57d857273f78f49d32312f2ae4073c950. 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:changed passed 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.

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 17, 2026
@steipete
steipete marked this pull request as ready for review November 17, 2026 03:45
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T03:47:18.440908Z 9a94de9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates 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.

  • Before: The test incorrectly requires an extra delivery-failure notice.
  • After: The test requires delivered/consumed child state and unchanged transcript content.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and correct test maintenance supported by source inspection, reported Node/Bun runs, and passing exact-head CI; execution evidence remains harness-based.
Proof confidence 🦐 gold shrimp (3/6) No user-visible behavior changes; reported validation exercises the existing real-Gateway case with a synthetic provider, and the inspected downloaded UI images are unrelated to this assertion repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: An obsolete regression expectation reports failure despite correct preservation of an already-consumed child result.
Reason: Restores useful regression coverage for the accepted delivery contract without weakening cancellation or disclosure assertions.

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
Reviewed head: 9a94de9a2480b765ed9e54cd78af148218d10030

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Heming Zeng: Raw commit 9e86c84 adds src/gateway/chat-goal-created-authority.e2e.test.ts:429 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9e86c84aada4; files: src/gateway/chat-goal-created-authority.e2e.test.ts)

PR surface

Tests -2. Total -2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 6 8 -2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 6 8 -2

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is test maintenance with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test maintenance with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 16, 2026, 11:00 PM ET / November 17, 2026, 04:00 UTC.

@steipete
steipete merged commit bbefb54 into main Nov 17, 2026
193 of 194 checks passed
@steipete
steipete deleted the fix/goal-consumed-result-authority-2518 branch November 17, 2026 04:09
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant