Repository navigation
fix: restore queued compaction writer-fence coverage - #202709
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR updates queued-compaction tests to intercept the symbol-based transcript reader used by production rewrites. Example: The queued-maintenance test replaces the writer with replacement-writer during a transcript branch read.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a stale test interception point while preserving the existing assertions; no actionable correctness or security findings were identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherQueued compaction exposes transcript rewriting to context-engine maintenance; the test fixture intercepts the real session manager’s branch read and verifies persisted writer and transcript outcomes. flowchart LR
A[Queued compaction test] --> B[Maintenance rewrite request]
B --> C[Production transcript rewrite]
C --> D[Symbol based branch reader]
D --> E[Test writer takeover hook]
E --> F[Rejection and persistence assertions]
Technical reviewBest possible solution: Retain the production read-only reader and merge this focused fixture correction once required CI is satisfied. Do we have a high-confidence way to reproduce the issue? Source establishes that the old spy cannot intercept the migrated rewrite reader; the PR reports the corresponding main-CI assertion failure, but no tests were run during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete repair: intercept the existing production reader, preserve its return value, and keep the established rejection and persistence assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c2e7b54ab6f5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +5. Total +5 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 20, 2026, 4:21 PM ET / 21:21 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…202654 * origin/main: (34 commits) fix(ui): restore Skills first-visit asset limits (#202694) fix: restore Skills discovery recovery checks (#202747) fix(database): report disabled memory after a port (#202630) test(ui): settle live event imports before cursor assertions (#202752) fix: keep installed plugins in the Featured list instead of hiding them fix: keep PostgreSQL transcript and health totals numeric (#202629) fix(ui): show only SKILL.md in plugin skill previews fix: preserve the running installation when an agent updates its Gateway (#201570) chore(ui): refresh control ui locales (#202744) fix: show saved child results when idle delivery expires (#202732) perf(state): adopt producer-owned read commands (#202731) fix(cli): restore dashboard Gateway start and install recovery (#202085) fix: make plugin catalog artwork easier to recognize fix: restore queued compaction writer-fence coverage (#202709) fix(ui): remove resting chrome from Customize settings gears chore(ui): refresh control ui locales (#202734) fix: distinguish a recovered gateway from its failed update checks fix(ui): keep known plugin details visible while loading fix(cli): connect through gateway.remote.edgeAuth without a Gateway token fix: make the Plugins catalog clear when disconnected ...
) * feat(gateway): add restricted writer transport and steer discovery * refactor(gateway): retain publication owner across writer expansion * feat: prepare restricted connections for Session Share steering OpenClaw-Publication: d030c287-b7c5-8326-aa7e-a2b07b373ac6 * fix(gateway): distinguish disabled publication purposes at handshake * Publish openclaw/cool-shrimp OpenClaw-Publication: 096bcc30-6af3-892d-a6b9-456f24a4f5ba * merge: bring main into the steering transport branch and regenerate the config baseline * Merge remote-tracking branch 'origin/main' into land/steer-transport-202654 * origin/main: (34 commits) fix(ui): restore Skills first-visit asset limits (#202694) fix: restore Skills discovery recovery checks (#202747) fix(database): report disabled memory after a port (#202630) test(ui): settle live event imports before cursor assertions (#202752) fix: keep installed plugins in the Featured list instead of hiding them fix: keep PostgreSQL transcript and health totals numeric (#202629) fix(ui): show only SKILL.md in plugin skill previews fix: preserve the running installation when an agent updates its Gateway (#201570) chore(ui): refresh control ui locales (#202744) fix: show saved child results when idle delivery expires (#202732) perf(state): adopt producer-owned read commands (#202731) fix(cli): restore dashboard Gateway start and install recovery (#202085) fix: make plugin catalog artwork easier to recognize fix: restore queued compaction writer-fence coverage (#202709) fix(ui): remove resting chrome from Customize settings gears chore(ui): refresh control ui locales (#202734) fix: distinguish a recovered gateway from its failed update checks fix(ui): keep known plugin details visible while loading fix(cli): connect through gateway.remote.edgeAuth without a Gateway token fix: make the Plugins catalog clear when disconnected ... * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate protocol output Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: vincentkoc <[email protected]>
* fix(test): restore queued compaction writer-fence coverage * fix(test): preserve transcript reader symbol type
…claw#202654) * feat(gateway): add restricted writer transport and steer discovery * refactor(gateway): retain publication owner across writer expansion * feat: prepare restricted connections for Session Share steering OpenClaw-Publication: d030c287-b7c5-8326-aa7e-a2b07b373ac6 * fix(gateway): distinguish disabled publication purposes at handshake * Publish openclaw/cool-shrimp OpenClaw-Publication: 096bcc30-6af3-892d-a6b9-456f24a4f5ba * merge: bring main into the steering transport branch and regenerate the config baseline * Merge remote-tracking branch 'origin/main' into land/steer-transport-202654 * origin/main: (34 commits) fix(ui): restore Skills first-visit asset limits (openclaw#202694) fix: restore Skills discovery recovery checks (openclaw#202747) fix(database): report disabled memory after a port (openclaw#202630) test(ui): settle live event imports before cursor assertions (openclaw#202752) fix: keep installed plugins in the Featured list instead of hiding them fix: keep PostgreSQL transcript and health totals numeric (openclaw#202629) fix(ui): show only SKILL.md in plugin skill previews fix: preserve the running installation when an agent updates its Gateway (openclaw#201570) chore(ui): refresh control ui locales (openclaw#202744) fix: show saved child results when idle delivery expires (openclaw#202732) perf(state): adopt producer-owned read commands (openclaw#202731) fix(cli): restore dashboard Gateway start and install recovery (openclaw#202085) fix: make plugin catalog artwork easier to recognize fix: restore queued compaction writer-fence coverage (openclaw#202709) fix(ui): remove resting chrome from Customize settings gears chore(ui): refresh control ui locales (openclaw#202734) fix: distinguish a recovered gateway from its failed update checks fix(ui): keep known plugin details visible while loading fix(cli): connect through gateway.remote.edgeAuth without a Gateway token fix: make the Plugins catalog clear when disconnected ... * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate protocol output Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Related: #202547
What Problem This Solves
Main CI's queued-compaction test fails because its writer-replacement hook still watches the old transcript reader. The hook never runs after the production reader migration, so the test no longer exercises the intended writer takeover.
User Impact
No production behavior changes. CI again tests that a queued maintenance rewrite is rejected after another writer takes over, while preserving the replacement writer and original transcript.
Why This Change Was Made
Intercept the existing symbol-based transcript reader used by production rewrites. Load the symbol after the harness resets modules, alongside the real session manager. Keep the original reader forwarding and all existing rejection and persistence assertions.
Evidence
a3bd84cc50639a4bd377db3d286d5ae1c3c3d273: the during-branch-read case reportsrewriteRejected=falseat the assertion requiring rejection.e439f84888d098c26667e46184f0fbc0be4b5d62.git diff --checkpass. Fresh full-range local review ofe439f848..0ceae759found no actionable correctness or security findings.The prior candidate Node job passes all 19 queued-compaction tests, including the formerly failing during-branch-read case. Its typecheck exposed a widened symbol import; this revision retains the imported module namespace to preserve the unique-symbol type. Fresh full-range review found no actionable findings. The updated-head typecheck and all 19 runtime cases now pass. Ready-event CI completed with 47 successful or skipped jobs and one failed non-aggregate job: baseline ratchets. Its runner lost communication with GitHub during the check; the job log is unavailable (HTTP 404), and no assertion failure was reported. The aggregate CI gate is red. The passing changed-test job checked out merge
6af18e604e8963e6fa2bf053a7d641989cdaaa71and passed all 19 queued-compaction cases. The workflow, scripts, configuration, and dependency inputs match its baseline. The native verifier accepted the evidence for an exception limited to this unrelated runner loss, with review and security checks preserved. This does not mark the failed CI attempt as passing.