Skip to content

fix(test): retire prompt cache observations with fixture sessions - #198208

Merged
roboclaw-bot merged 3 commits into
mainfrom
roboclaw/main-ci-prefix-observer
Nov 13, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
roboclaw/main-ci-prefix-observer

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Since #198100 turned on OPENCLAW_PROMPT_CACHE_ASSERT for all tests, several main shards fail (run https://github.com/openclaw/openclaw/actions/runs/43393420383): large-40 (prompt cache observer), large-36 and large-16 (cron session model strictness). The prefix observer keys state by session ID, and these fixtures reuse a fixed session ID with a fresh store each time without retiring the earlier observation, so the next case looks like prefix drift. Large-40's case deliberately drifts the prefix to test production diagnostics.

User Impact

None at runtime; test-only.

Why This Change Was Made

  • The fixtures that create a fresh store under a reused session ID (embedded attempt runner, cron session model strictness) now call the existing cleanupSessionResources owner when their session ends, which retires the observation exactly as real session cleanup does.
  • The single observer test that drifts the prefix on purpose runs with assertion mode off, so it exercises the production warning path. Its teardown restores the env.

Production enforcement and the suite-wide assertion stay on.

Native Talk (large-7) is intentionally left out: disposing session resources in its fixture made other Talk cases fail in CI, so it needs its own fix.

Evidence

  • Large-40's failure is a direct prefix-assertion throw; the other shards show downstream readiness/count failures consistent with the same retained observation. Their inner error was not printed, so CI on this PR is the proof that they recover.
  • Pinned formatting and independent Codex autoreview (P0–P2) pass.

Worked on by

Work sessions

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

Release session resources when embedded-attempt, native Talk, and cron
fixtures finish so fresh stores can reuse fixture session IDs without
inheriting observer baselines. Keep observations across all turns inside
a fixture.

Run the intentional prompt-drift observer case in production warning mode
and restore the suite-wide assertion afterward. Production enforcement
and shared assertion setup remain unchanged.

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 agents Agent runtime and tooling 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. labels Nov 13, 2026
Use the accepted discard binding for disposable session cleanup. Keep a named binding in the cron fixture, where the discard name is already used, and explicitly consume it without changing disposal timing.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head dc191cd4e14b40832de7e6251dd13f826d76726a, but the PR head is now e0aed0a7aab44d1edceb8d101e1e300ba36d23fa. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-13T10:06:36.100Z sha dc191cd :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Nov 13, 2026
Restore the native control fixture to origin/main. The added session
resource disposal changes Talk CI failures to cancellation timeouts and
RPC errors; investigate its lifecycle ordering separately from the proven
observer, cron, and attempt-runner fixture changes.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot removed the gateway Gateway runtime label Nov 13, 2026
@clawsweeper clawsweeper Bot removed the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Nov 13, 2026
@roboclaw-bot
roboclaw-bot merged commit 6a7af79 into main Nov 13, 2026
117 of 118 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/main-ci-prefix-observer branch November 13, 2026 11:19
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Nov 13, 2026
#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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…enclaw#198208)

* test(agents): retire prompt cache state with fixture sessions

Release session resources when embedded-attempt, native Talk, and cron
fixtures finish so fresh stores can reuse fixture session IDs without
inheriting observer baselines. Keep observations across all turns inside
a fixture.

Run the intentional prompt-drift observer case in production warning mode
and restore the suite-wide assertion afterward. Production enforcement
and shared assertion setup remain unchanged.

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

* test(agents): fix fixture resource binding lint

Use the accepted discard binding for disposable session cleanup. Keep a named binding in the cron fixture, where the discard name is already used, and explicitly consume it without changing disposal timing.

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

* test(talk): defer native fixture session resource disposal

Restore the native control fixture to origin/main. The added session
resource disposal changes Talk CI failures to cancellation timeouts and
RPC errors; investigate its lifecycle ordering separately from the proven
observer, cron, and attempt-runner fixture changes.

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

---------

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
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

agents Agent runtime and tooling P2 Normal backlog priority with limited blast radius. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant