Repository navigation
test(compaction): assert structured stale-writer failure - #174064
Merged
Merged
Conversation
The maintenance-drain fixture still expected the early writer check to throw. #173972 intentionally removed repeated preparation reads and keeps one current-writer check immediately before custom compaction dispatch. That check now reaches the existing structured failure handler. Assert the exact unsuccessful result and reason while retaining cleanup ordering, no backend calls, and unchanged successor entry/transcript proof. This changes no production behavior or authority check. Main reproduced 82 passed / 1 failed; the parent of 1fad8b4 passed the original focused case. The updated full file passes 83/83, with targeted test types, typed/boundary lint, formatting and independent P2 review clean.
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. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
enabled auto-merge (squash)
October 16, 2026 09:33
Contributor
Author
|
Merged via squash auto-merge.
|
vincentkoc
added a commit
that referenced
this pull request
Oct 16, 2026
* commit 'ac03ca0b6d26a7dc55d0d262e40d2549631b1ea7': (25 commits) fix: apply shared plugin model policy to decisions (#156621) perf: shortlist transcript relevance scores before metadata reads (#174058) fix: strip standalone trailing NO_REPLY from replies (#171990) fix(ci): avoid repeated discovery during changed-test planning (#174069) fix(sqlite): preserve transaction outcomes when warnings throw (#157151) fix(ai): native video handoff to chat-completions providers + preflight video cost (#170920) fix(litellm): image generation fails when the backend returns image URLs (#173508) test(memory,gateway,infra,subagents): remove low-value tests (batch d152) (#174034) perf(memory): bound derived worker snapshot and pricing retention (#174067) fix(test): reduce eager imports during test startup (#174056) refactor(codex): share lifecycle preflight fixtures (#174062) test(gateway,matrix,agents,ui): remove low-value tests (batch d150) (#174025) perf(infra): batch usage refresh maintenance (#174050) fix(gateway): revert cold session list worker regression (#174052) refactor(config): consolidate browser meeting configuration (#173947) fix(cron): keep global-session deliveries on the selected agent (#173855) test(compaction): assert structured stale-writer failure (#174064) fix(cli): local terminal chat sends model requests without the configured proxy (#173530) test(ui): restore bootstrap preference locale after each case (#174065) fix: download session files through the development proxy (#173973) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…4064) The maintenance-drain fixture still expected the early writer check to throw. openclaw#173972 intentionally removed repeated preparation reads and keeps one current-writer check immediately before custom compaction dispatch. That check now reaches the existing structured failure handler. Assert the exact unsuccessful result and reason while retaining cleanup ordering, no backend calls, and unchanged successor entry/transcript proof. This changes no production behavior or authority check. Main reproduced 82 passed / 1 failed; the parent of dbdd26a passed the original focused case. The updated full file passes 83/83, with targeted test types, typed/boundary lint, formatting and independent P2 review clean.
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
The compaction maintenance-drain test still expects an early writer check to throw. After #173972, the retained check immediately before custom compaction dispatch runs inside the existing structured failure handler, so the test fails despite compaction being refused and the successor staying intact.
Why This Change Was Made
#173972 explicitly states: “Queued compaction trusts live in-process caller authority during preparation and carries its captured writer claim to the existing transaction check,” and retains one writer-currentness check immediately before non-legacy dispatch. This test now requires the exact failure result:
ok: false,compacted: false, the full writer-claim reason, context-engine kind, and no result payload. It still requires maintenance cleanup before settlement, no compaction/native calls, and byte-for-byte-equivalent successor entry and transcript data. No production code, authority guard, timeout, retry or skip changed.Evidence
11c24cfd6dbd: 82 passed / 1 failed in the full file (129.01 s Vitest, 184.70 s wrapper).1fad8b45f17a: the original focused case passed (35.12 s Vitest, 79.38 s wrapper), confirming attribution to improve: reduce redundant reads during session compaction #173972.Full original shard and full check-changed were not run. This has no production behavior or release-note change.