Skip to content

fix(mcp): serve dedup flake#972

Merged
ohdearquant merged 12 commits into
mainfrom
fix-720-serve-dedup-flake
Jul 14, 2026
Merged

fix(mcp): serve dedup flake#972
ohdearquant merged 12 commits into
mainfrom
fix-720-serve-dedup-flake

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Addresses #720.

Implementer leg completed the change set but stalled before commit (shared build-lane contention); swept and pushed by the lane owner. Local gates deferred to CI; codex review follows.

🤖 Generated with Claude Code

Leo and others added 8 commits July 13, 2026 12:43
Commit-early sweep: implementer leg ended without committing (build-lane
contention). Local gates deferred to CI.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ky tx-age sweep

run_writer_task registers a writer_task_tx handle in the process-wide
tx_registry singleton; the checkpoint tx_age_sweep_* tests read that
singleton under #[serial(tx_registry)]. The writer_task.rs tests that
spawn a writer task were missing from the group, leaking a longer-lived
writer_task_tx into the sweep's oldest() read and intermittently failing
the assertion on main CI. Join them to the serial group. No prod change.
Validate multi-backend runtime configuration against the anchor captured at construction entry so process-global HOME changes cannot create a TOCTOU mismatch. Add a deterministic regression that fails under the former re-read behavior.
@ohdearquant
ohdearquant marked this pull request as ready for review July 14, 2026 14:10
@ohdearquant

Copy link
Copy Markdown
Owner Author

Static review: APPROVE at head 8deb5d6. The prior High (TOCTOU on the dedup path) is resolved. Ready for maintainer review.

Leo added 2 commits July 14, 2026 10:37
Merge main and drop implementation_notes.md, a stray process-notes file
that does not belong in the source tree.

@oceanwaves630 oceanwaves630 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVED. Hygiene hold cleared: verified implementation_notes.md is gone from both the PR net diff and the head tree (404). Prior codex APPROVE on the code stands. Sequencing acknowledged: merge #961 first, recheck #967/#972 mergeability and re-merge main if the squash surfaces overlap on serve.rs/writer_task.rs. Squash-merge (drops the phantom code_ingest.rs merge-base artifact regardless). Land the tracked .gitignore for implementation_notes.md on main too — .git/info/exclude covers our worktrees but only a tracked entry protects fresh clones + CI on a public repo.

Leo added 2 commits July 14, 2026 11:51
Keep downstream Option<&str> callers source-compatible while captured boot paths avoid re-reading mutable HOME state.

@oceanwaves630 oceanwaves630 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fresh review at head bcb4350 (supersedes my earlier approval at a pre-fix head): validation restore confirmed by independent review at this exact head; CI 23/23.

@ohdearquant
ohdearquant enabled auto-merge (squash) July 14, 2026 18:00
@ohdearquant
ohdearquant merged commit 588fd65 into main Jul 14, 2026
23 checks passed
@ohdearquant
ohdearquant deleted the fix-720-serve-dedup-flake branch July 14, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants