Skip to content

test(gateway): expect stopped Goal returns to remain paused - #192387

Merged
RomneyDa merged 1 commit into
mainfrom
fix/forward-port-1010-goal-test
Nov 5, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/forward-port-1010-goal-test

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Problem

The revoked Goal-return scenario still expects an active goal after Stop, despite main commit 85f973601725 changing stopped goals to paused. This pre-existing test failure was repaired in the original forward-port PR.

Solution

Expect paused for the revoked continuation, preserving zero continuation turns and the successful-control assertion. This is the independent, one-line test-only slice of #191830 directly against main; no sibling PR dependency.

Evidence

  • Exact one-line expectation change retained from original fix(codex): forward-port 2026.10.10 thread ownership and cleanup fixes #191830.
  • Original investigation reproduced the failure on base/main and established the paused behavior; this is retained evidence.
  • Fresh formatting and git diff --check passed.
  • Fresh local ClawSweeper committed-range review: complete, no actionable findings, base 34007820fa2c, head 4e1f0e49c56d.
  • Fresh targeted oxlint --type-aware passed.
  • Fresh E2E invocation stopped before tests because the declaration builder rejects shared dependency installs. Broad build/E2E proof remains with PR CI; no bypass used.

Split CI status

  • Observed CI failure is inherited from main 34007820fa2c: missing McpCatalogTool export in mcp-metadata.ts and consequent optional UI metadata errors. That file and agent-bundle-mcp-materialize.ts / agent-bundle-mcp-types.ts are byte-identical to the base; SDK declaration preparation propagates the same error into build/boundary/lint lanes.
  • Ready for review does not mean green CI or ready to merge. Remaining broad checks are still running; no merge requested.

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, and agent-bundle-mcp-types.ts have identical Git blob IDs at base and PR head. The missing McpCatalogTool export and consequent optional-property errors propagate through SDK declarations into boundary/build/lint/type lanes.

Failed check Attribution
check-test-types-core-1 Inherited MCP declaration/type failure
check-lint-extensions-1 Inherited MCP declaration/type failure
check-lint-extensions-3 Inherited MCP declaration/type failure
openclaw/ci-gate Aggregate of failed or downstream-skipped prerequisite jobs above; not an independent runtime failure
openclaw/ci-gate Aggregate of failed or downstream-skipped prerequisite jobs above; not an independent runtime failure

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.

85f9736 made stopped goals pause. Revocation cancels the in-flight
provider request, so the restricted Goal now settles paused instead of active.
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 3, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review November 3, 2026 23:36
@clawsweeper

clawsweeper Bot commented Nov 3, 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.

@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. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The test expects status active and continuationTurns 0 after cancellation.
  • After: The test expects status paused and continuationTurns 0 after cancellation.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The minimal correction is supported by current source and documented intent, but affected-test validation and independently attributed failed checks remain unresolved.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only correction changes no runtime behavior, so ordinary contributor live-proof gating does not apply; the affected test's passing result remains unestablished.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The authority regression expects a cancelled unfinished Goal to remain active despite the intentional paused-after-Stop behavior.
Reason: The maintainer-authored correction restores a meaningful regression without changing runtime policy or weakening its negative and positive controls.

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
Reviewed head: 4e1f0e49c56d889fa4d03fa905ead58bdd69db37

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A passing run of the corrected authority scenario is not established; local preparation stopped before tests, so base-failure/head-pass validation remains unconfirmed.
Agent review details

How this fits together

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

Technical review

Best 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

  • Revoked Goal-return status expectation changes intended behavior with a stated reason (9e86c84: The original regression protected delegated Goal continuation and cancellation under revoked operator authority; the later merged Stop change intentionally made paused the correct outcome.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Heming Zeng: Raw commit 9e86c84 adds src/gateway/chat-goal-created-authority.e2e.test.ts:407 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 0. Total 0 across 1 file. Added test files: 0.

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

Labels

Label changes:

No label changes.

Label justifications:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Establish a passing corrected authority scenario and resolve the failed checks or independently demonstrate their inherited causes.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T23:59:57.996Z sha 4e1f0e4 :: needs maintainer review before merge. :: none

Reviewed November 4, 2026, 5:10 PM ET / 22:10 UTC (Revision 2).

@RomneyDa

RomneyDa commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. 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 4, 2026
@RomneyDa
RomneyDa merged commit a1f9924 into main Nov 5, 2026
227 of 233 checks passed
@RomneyDa
RomneyDa deleted the fix/forward-port-1010-goal-test branch November 5, 2026 01:46
RomneyDa added a commit that referenced this pull request Nov 5, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…law#192387)

20a387c made stopped goals pause. Revocation cancels the in-flight
provider request, so the restricted Goal now settles paused instead of active.
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