Skip to content

fix(test): native Talk fixture retires prompt baselines between cases - #198248

Merged
roboclaw-bot merged 1 commit into
mainfrom
roboclaw/main-ci-native-talk
Nov 13, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
roboclaw/main-ci-native-talk

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Native Talk tests in checks-node-compact-large-7 (main runs 43393420383, 43409014923) settle before readiness after #198100 enabled the prompt-cache prefix assertion in all tests. The native Talk fixture reuses one session ID with a fresh state per case, so later cases compare against the previous case's prompt baseline. A consultation that fails also left the test waiting for a success frame until timeout.

User Impact

None at runtime; test-only.

Why This Change Was Made

  • The fixture now clears the prompt-cache observation for its session ID after the fixture's own work has drained (an earlier attempt that disposed all session resources too early broke other Talk cases).
  • The after-cancel case waits for any frame for its delegation and then asserts the expected completion, so a failed consultation fails fast instead of hanging. The completion assertion is unchanged.

Four remaining post-cancel history cases in this file are fixed by open #179237 and are not touched here.

Evidence

  • Named file locally: readiness failures gone (10 passed); the 4 remaining failures are the fix(talk): retain chat-backed consult prompts in model history #179237 cases, which pass with that producer change applied.
  • Pinned formatting, oxlint and independent Codex autoreview (P0–P2) pass; the committed range was independently reviewed at 4e426a3346f8b98ce962377f686a171e1f2e2851 against 7c6fde1612efc688593a56a74ed3f0e47747aa79, with no actionable findings. Hosted ClawSweeper also found no actionable patch defects at this head.
  • Exact-head CI run 43420254088, attempt 1, is failed. Its only failed jobs are checks-node-changed-compact-large-15 and downstream openclaw/ci-gate. All other jobs are successful or skipped, including successful security-fast, changed-file formatting and gateway test types.
  • The shard has only four failures in client-native-control.test.ts: cancel / transcript-first / rejection; cancel / delegation-first / rejection; cancel / transcript-first / empty; cancel / delegation-first / partial. Ten cases pass and all nine planned shard invocations finish.
  • Those same four named cases already fail in main full run 43417041260, checks-node-compact-large-7, at this PR's parent. Signatures differ: main fails earlier at readiness (:281); this fixture repair fixes readiness and reaches the unchanged post-cancel completion assertion (:474), expecting Real runner consultation completed. and receiving I need a moment to verify that before answering.
  • Open fix(talk): retain chat-backed consult prompts in model history #179237 contains the native producer's generated-input retention repair. A controlled one-line producer probe made all 14 cases pass with assertions and timeouts unchanged, then was restored; this does not validate that PR's entire integration or resolve its retention-policy decision.
  • Landing uses the native authorized pre-existing-failure route under the Main CI standing scope for failures proven present on main before the change. CI remains failed; security and required reviews remain enforced.

Worked on by

Work sessions

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

Retire only the reused session's diagnostic baseline after test-state work
and cleanup settle. Keep transport cleanup with its existing owners.

Wait for the post-cancel delegation result before asserting its content so
failure replies expose the unchanged success assertion without hanging.
The named file still has four post-cancel history failures overlapping
#179237; all five original cross-fixture readiness failures are gone.

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

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR clears a reused native Talk fixture’s prompt observations after cleanup and surfaces failed post-cancel consultations without waiting for timeout.

Example: Two test cases reuse session ID native-control-transcript with separate temporary state.

  • Before: The second case can compare its fresh prompt against the first case’s retained baseline and fail before backend readiness.
  • After: Each completed fixture retires its baseline while prompt checks remain active within each case.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The repair is narrow and source-supported; validation consists of reported harness results with exact-head CI still pending.
Proof confidence 🦐 gold shrimp (3/6) Only test infrastructure changes; shipped-entry-point proof is unnecessary, and the reported fixture run is supporting validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Native Talk checks can fail during readiness because separate fixture cases share a diagnostic baseline, and failed consultations can obscure their cause behind a timeout.
Reason: The maintainer-authored repair restores test isolation without disabling enforcement or changing runtime retention policy.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a concrete fixture-isolation defect while preserving the cancellation assertions; no actionable patch defects were found.

Priority: P3
Reviewed head: 4e426a3346f8b98ce962377f686a171e1f2e2851

Before merge

None.

Findings

None.

Agent review details

How this fits together

The native Talk integration fixture drives public plugin registration and Gateway handlers through synthetic transports, exercising real session and agent owners and checking their outgoing frames.

flowchart LR
  A[Test case] --> B[Native Talk fixture]
  B --> C[Gateway Talk handlers]
  C --> D[Agent and session owners]
  D --> E[Prompt observation tracker]
  C --> F[Captured transport frames]
  B --> G[Drain and cleanup]
  G --> E
Loading

Technical review

Best possible solution:

Retire only the fixture’s diagnostic baseline after cleanup and retain all within-session prefix and completion assertions.

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

The reused session ID, fresh per-case state, retained tracker, and suite-wide assertion establish the failure path in source; this read-only review ran no tests.

Is this the best way to solve the issue?

This is the smallest complete fixture repair: it uses the existing cleanup API after the owning lifecycle settles and changes waiting behavior without weakening success checks.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Native fixture cleanup keeps the original intent (e3ce08c: Exercise native realtime through public plugin registration with fixture-owned session and transport cleanup.)
  • Post-cancel completion check keeps the original intent (36e277d: Verify real session-controller cancellation and successful subsequent consultation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e3ce08c adds src/gateway/server-methods/talk-client-native-control.test-support.ts:299 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e3ce08cd5ec1; files: src/gateway/server-methods/talk-client-native-control.test-support.ts)
  • Vincent Koc: Raw commit 7ff0e11 adds src/gateway/server-methods/talk-client-native-control.test-support.ts:176 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 7ff0e11c1f95; files: src/gateway/server-methods/talk-client-native-control.test-support.ts)

PR surface

Tests +3. Total +3 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 8 5 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 8 5 +3

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:

No label changes.

Label justifications:

  • P3: This is a focused test-fixture reliability repair with no runtime 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 13, 2026, 7:04 AM ET / 12:04 UTC.

@roboclaw-bot
roboclaw-bot merged commit f52d925 into main Nov 13, 2026
132 of 135 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/main-ci-native-talk branch November 13, 2026 12:33
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
Retire only the reused session's diagnostic baseline after test-state work
and cleanup settle. Keep transport cleanup with its existing owners.

Wait for the post-cancel delegation result before asserting its content so
failure replies expose the unchanged success assertion without hanging.
The named file still has four post-cancel history failures overlapping
openclaw#179237; all five original cross-fixture readiness failures are gone.

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