Repository navigation
fix(test): retire prompt cache observations with fixture sessions - #198208
Merged
Merged
Conversation
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]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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]>
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
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]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Since #198100 turned on
OPENCLAW_PROMPT_CACHE_ASSERTfor 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
cleanupSessionResourcesowner when their session ends, which retires the observation exactly as real session cleanup does.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
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.