Skip to content

fix(test): align Goal pause note checks with cause-neutral interruptions - #198336

Merged
roboclaw-bot merged 1 commit into
mainfrom
roboclaw/main-ci-goal-interruption-note
Nov 13, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
roboclaw/main-ci-goal-interruption-note

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Two Goal Stop/resume integration cases fail on main because their exact persisted-note expectation still says “Paused after Stop” after #198276 intentionally changed it to “Paused after an interruption.”

User Impact

No user-visible or runtime change; test expectation only.

Why This Change Was Made

RPC cancellation can also come from authority revocation, so #198276 deliberately made the lifecycle projection cause-neutral. Update its missed shared integration consumer, retaining the exact note assertion and all pause, abort, resume-once, replay and transcript assertions. Do not revert the producer repair.

Evidence

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

#198276 intentionally made Goal cancellation notes cause-neutral because an
RPC cancellation can also come from authority revocation. Update the shared
Stop/resume integration expectation missed by that change; retain the exact
note and all pause, abort, resume-once, replay, and transcript assertions.

The old #198208 observer case passes in job 131944723588; its two Goal
failures report this note mismatch instead. Runtime replay remains pending
in a prepared checkout; formatting, syntax lint and P0-P2 autoreview pass.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 13, 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 13, 2026
@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. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates the shared Goal Stop/resume test expectation to the cause-neutral pause note already emitted by main.

Example: Stop automatic pursuit of a Goal, then resume it.

  • Before: The integration test expects “Paused after Stop. Resume to continue.” and rejects the current persisted note.
  • After: The test expects “Paused after an interruption. Resume to continue.” while retaining its cancellation, resume-once, replay, and transcript assertions.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified test repair supported by passing exact-head checks, with no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) This PR changes only an integration-test expectation; shipped behavior is unchanged, and exact-head changed-test checks passed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Existing Goal integration cases fail against the intentionally updated pause note.
Reason: The maintainer-authored correction preserves approved behavior and restores useful integration coverage without adding runtime machinery.

Merge readiness

✅ Ready for maintainer review

Keep this PR: it correctly repairs a stale integration expectation without weakening the Stop/resume checks or reverting intentional runtime behavior; no actionable findings.

Priority: P2
Reviewed head: 0d466b570df483d0031e3c60740ee57f8d5bd838

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway integration cases send Goal cancellation and resume RPCs through production handlers, then inspect persisted lifecycle state with model execution mocked.

flowchart LR
  A[Goal integration case] --> B[Gateway RPC handlers]
  B --> C[Session lifecycle owner]
  C --> D[Persisted Goal state]
  D --> E[Pause and resume assertions]
Loading

Technical review

Best possible solution:

Merge the focused expectation correction once the existing required CI gate passes.

Do we have a high-confidence way to reproduce the issue?

Current-main source directly shows the producer emitting the neutral note while both parameterized Stop/resume cases expect the old text; no local execution was performed.

Is this the best way to solve the issue?

This is the smallest complete fix: align the existing independent expectation with the approved producer contract and preserve the remaining behavioral coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against af10e5594d38.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 64fd44b adds src/config/sessions/session-run-lifecycle-projection.ts:466 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 64fd44bdaae8; files: src/config/sessions/session-run-lifecycle-projection.ts)
  • RoboClaw: Raw commit 85f9736 adds src/gateway/server.chat-goal-continuation.test-support.ts:354 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 85f973601725; files: src/gateway/server.chat-goal-continuation.test-support.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

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 P2: Repairs a current-main integration-test mismatch while leaving runtime behavior unchanged.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs a current-main integration-test mismatch while leaving runtime behavior unchanged.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • 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 13, 2026, 10:39 AM ET / 15:39 UTC.

@roboclaw-bot
roboclaw-bot merged commit 1904c27 into main Nov 13, 2026
128 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/main-ci-goal-interruption-note branch November 13, 2026 16:02
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…law#198336)

openclaw#198276 intentionally made Goal cancellation notes cause-neutral because an
RPC cancellation can also come from authority revocation. Update the shared
Stop/resume integration expectation missed by that change; retain the exact
note and all pause, abort, resume-once, replay, and transcript assertions.

The old openclaw#198208 observer case passes in job 131944723588; its two Goal
failures report this note mismatch instead. Runtime replay remains pending
in a prepared checkout; formatting, syntax lint and P0-P2 autoreview pass.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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