Skip to content

fix: restore queued compaction writer-fence coverage - #202709

Merged
vincentkoc merged 2 commits into
mainfrom
fix-ci-queued-compaction-reader-20261121
Nov 20, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix-ci-queued-compaction-reader-20261121

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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

  • Main CI failure, head a3bd84cc50639a4bd377db3d286d5ae1c3c3d273: the during-branch-read case reports rewriteRejected=false at the assertion requiring rejection.
  • Source inspection ties the stale spy to the reader migration in 018e2fb. The affected fixture and production reader remain unchanged at this branch's base e439f84888d098c26667e46184f0fbc0be4b5d62.
  • Syntax, formatting and git diff --check pass. Fresh full-range local review of e439f848..0ceae759 found no actionable correctness or security findings.
  • Scope: one test file, ten added and five removed lines; production delta zero. Existing writer-replacement, rejection and unchanged-transcript assertions are preserved.
  • Current-head Node proof passes all 19 queued-compaction cases, including the original during-branch-read failure. Current-head typecheck passes. Local dependency-backed execution remains unavailable.

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 6af18e604e8963e6fa2bf053a7d641989cdaaa71 and 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.

@vincentkoc vincentkoc self-assigned this Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 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 agents Agent runtime and tooling size: XS labels Nov 20, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 20, 2026 20:52
@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 20, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) November 20, 2026 21:07
@clawsweeper clawsweeper Bot added 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 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The obsolete getBranch spy never triggers the replacement, so the expected rewrite rejection assertion fails.
  • After: The symbol-based reader triggers replacement, allowing the existing assertions to verify rejection and unchanged history.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is correct by inspection and supported by passing exact-head Node and typecheck jobs; validation remains limited to harness evidence with unresolved broader CI.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair requires no shipped-entry-point demonstration; source inspection and exact-head CI job results support the fixture correction.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: CI fails because the queued-maintenance regression no longer injects its intended writer takeover.
Reason: The maintainer-authored change restores an established behavioral test without changing production policy or adding machinery.

Regression provenance

Regression provenance — verified: source commit 018e2fb364bb by Peter Steinberger; canonical PR #202547 (blame-to-merge-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
Reviewed head: 0ceae7599dd17f92486fc274f6ff8e6f9b440427

Before merge

None.

Findings

None.

Agent review details

How this fits together

Queued 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]
Loading

Technical review

Best 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

  • Queued-compaction writer-replacement fixture keeps the original intent (fa6b02a: The original repair tested that stale compaction writers cannot rewrite history after another writer takes over.)
  • Transcript rewrite reader selection keeps the original intent (018e2fb: Use the existing internal read-only branch reader to retain immutable payload sharing during rewrite matching and replay.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +5. Total +5 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 10 5 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 10 5 +5

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:

  • add P3: This restores existing regression coverage without changing shipped runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This restores existing regression coverage without changing shipped runtime behavior.
  • 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 20, 2026, 4:21 PM ET / 21:21 UTC.

@vincentkoc
vincentkoc disabled auto-merge November 20, 2026 21:53
@vincentkoc
vincentkoc merged commit d3a8a38 into main Nov 20, 2026
276 of 283 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-queued-compaction-reader-20261121 branch November 20, 2026 21:55
@vincentkoc

Copy link
Copy Markdown
Member Author

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

vincentkoc added a commit that referenced this pull request Nov 20, 2026
…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
  ...
vincentkoc added a commit that referenced this pull request Nov 21, 2026
)

* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
* fix(test): restore queued compaction writer-fence coverage

* fix(test): preserve transcript reader symbol type
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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