Skip to content

test(gateway): isolate CLI announce continuity probe - #143576

Merged
RomneyDa merged 1 commit into
mainfrom
fix/frv-cli-announce-order
Sep 10, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/frv-cli-announce-order

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • run the CLI-backed announce ordering probe after continuity, cache, image, and MCP assertions
  • prevent its separate session from changing process-wide tool topology between continuity turns
  • wait for both parent and completion turns to become readable before asserting canonical transcript order

Release-validation evidence

The original Full Validation failure came from interleaving the independent announce session between consecutive continuity/cache turns. Authenticated isolated Docker validation confirmed the cache lane passes after relocation. The ordinary lane then exposed that delivery metadata can become durable before the CLI transcript flushes the completion turn; the proof now waits for both entries and still requires parent-before-completion order.

Failing parent: https://github.com/openclaw/openclaw/actions/runs/34418806238

Validation

  • pnpm test:docker:live-cli-backend:claude:cache (passed; 1 live test, 50.8s)
  • pnpm test:docker:live-cli-backend:claude (passed after transcript barrier; 1 live test, 35.7s)
  • focused oxfmt and oxlint checks passed

@clawsweeper

clawsweeper Bot commented Sep 10, 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 maintainer Maintainer-authored PR labels Sep 10, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 1:31 AM ET / 05:31 UTC (Revision 2).

ClawSweeper review

What this changes

Moves the CLI live-test announcement probe after continuity and cache checks, and waits for readable transcript entries before checking reply order.

Merge readiness

✅ Ready for maintainer review

Keep open with no actionable findings. The updated validation evidence addresses the prior review concern, and the focused repair remains absent from the inspected main branch.

Priority: P3
Reviewed head: b9b688a96f5c8d95cc764cdb32c57cec42861e26

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with relevant reported live validation and no identified correctness or security defect.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The ordinary external-contributor gate does not apply to this member-authored PR. Its updated body records successful isolated Docker runs through the affected Claude continuity/cache and announcement checks, addressing the previous evidence request; those results were reported, not rerun here.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor gate does not apply to this member-authored PR. Its updated body records successful isolated Docker runs through the affected Claude continuity/cache and announcement checks, addressing the previous evidence request; those results were reported, not rerun here.
Evidence reviewed 7 items Introduced change and merge result: The merge-base-to-head diff contains only the probe relocation and asynchronous transcript observation. The verified test merge has the pinned main and PR head as its recorded parents; its diff against main preserves the same focused changes.
Ordering assertions remain enforced: The helper still checks that the child finishes before the blocked parent, that announcement delivery follows the parent response, and that the completion transcript index exceeds the parent index. Polling waits for visibility without accepting reversed order.
Canonical transcript reader: The production history reader waits for transcript projection and reads canonical message events afresh on each call, so repeated observation can detect a later completion entry without rewriting history.
Findings None None.
Security None None.

How this fits together

The Gateway live-test suite sends requests through a real local CLI backend to check session continuity, cache reuse, and child-task announcements. Its transcript checks verify that the parent reply appears before the child's completion update.

flowchart TD
  A[Isolated Gateway test] --> B[CLI continuity and cache turns]
  B --> C[Separate announcement session]
  C --> D[Child completes while parent waits]
  D --> E[Release parent reply]
  E --> F[Wait for readable transcript]
  F --> G[Assert parent before completion]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +10. Total +10 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 36 26 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 36 26 +10

Review metrics

None.

Technical review

Best possible solution:

Keep consecutive-turn checks isolated from independent sessions while retaining strict parent-before-completion assertions against readable canonical history.

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

A source-backed reproduction path exists through the original Claude continuity/cache sequence, but no independent current-main execution was performed during this read-only review.

Is this the best way to solve the issue?

Yes. The patch separates unrelated test sessions and waits for the asserted observable state while preserving the existing ordering and cache invariants.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This repairs live-test isolation and observation timing without changing shipped runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor gate does not apply to this member-authored PR. Its updated body records successful isolated Docker runs through the affected Claude continuity/cache and announcement checks, addressing the previous evidence request; those results were reported, not rerun here.

Evidence

What I checked:

  • Introduced change and merge result: The merge-base-to-head diff contains only the probe relocation and asynchronous transcript observation. The verified test merge has the pinned main and PR head as its recorded parents; its diff against main preserves the same focused changes. (src/gateway/gateway-cli-backend.live.test.ts:975, 6ae33f8a9767)
  • Ordering assertions remain enforced: The helper still checks that the child finishes before the blocked parent, that announcement delivery follows the parent response, and that the completion transcript index exceeds the parent index. Polling waits for visibility without accepting reversed order. (src/gateway/gateway-cli-backend.live-cache.test-helpers.ts:355, b9b688a96f5c)
  • Canonical transcript reader: The production history reader waits for transcript projection and reads canonical message events afresh on each call, so repeated observation can detect a later completion entry without rewriting history. (src/agents/cli-runner/session-history.ts:360, b9b688a96f5c)
  • Updated live validation and review continuity: The supplied complete PR body reports authenticated isolated Docker passes for the Claude cache lane (one live test, 50.8 seconds) and ordinary Claude lane after the transcript barrier (one live test, 35.7 seconds). These directly address the prior request to record affected lane results. The linked Full Release Validation run was independently verified as failed; raw after-change logs were not supplied or independently inspected.
  • Main and release necessity check: The inspected main retains the original probe placement and one-shot transcript read. Release v2026.9.3 likewise invokes the announcement probe before the resume branch; the proposed isolation is still useful. (src/gateway/gateway-cli-backend.live.test.ts:670, 1391f7cd2d40)
  • Runtime and validation contract: Documentation defines the cache lane's consecutive-turn generation and cache-reuse assertions. The Docker recipe exercises the local Claude backend; this patch changes OpenClaw test orchestration and makes no Codex protocol or harness compatibility claim. Public docs: docs/help/testing-live/cli-backends.md. (docs/help/testing-live/cli-backends.md:27, b9b688a96f5c)

Likely related people:

  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-10T01:53:37.495Z sha fc8befe :: blocked before merge. :: none

@vincentkoc vincentkoc self-assigned this Sep 10, 2026
@RomneyDa
RomneyDa force-pushed the fix/frv-cli-announce-order branch from fc8befe to b9b688a Compare September 10, 2026 05:25
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa merged commit 5a7eb75 into main Sep 10, 2026
144 of 146 checks passed
@RomneyDa
RomneyDa deleted the fix/frv-cli-announce-order branch September 10, 2026 07:11
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

2 participants