fix(mcp): disclose blocked writers in project overviews #492

Merged
buildagent merged 1 commit from fix/overview-writer-contention into master 2026-11-05 17:04:04 +01:00
Member

When another process holds the index database write lock, the daemon already reports writer_blocked, but the MCP project_overview tool and code-index://project/overview resource drop it. Preserve the existing report on both surfaces so agents can distinguish write-lock contention from indexing work. Keep it absent when the daemon does not report blockage; do not invent a lock-holder identity.

The real-daemon MCP regression holds BEGIN IMMEDIATE across a watched edit, verifies the episode identity and elapsed time on both overview surfaces and the existing stats/freshness surfaces, then releases the lock and verifies the edit lands and every blockage field clears. It fails before the fix and passes after it. The same omission was independently reproduced on installed v0.41.36 with the official signed Rust package.

Validation: 68 targeted tests passed (disclosure contracts, derivation/surface registries, review honesty); MCP binary/test clippy with warnings denied, formatting and diff checks passed. No new CI lane, dependency, runtime state or timeout change.

Fixes #304.

When another process holds the index database write lock, the daemon already reports `writer_blocked`, but the MCP `project_overview` tool and `code-index://project/overview` resource drop it. Preserve the existing report on both surfaces so agents can distinguish write-lock contention from indexing work. Keep it absent when the daemon does not report blockage; do not invent a lock-holder identity. The real-daemon MCP regression holds `BEGIN IMMEDIATE` across a watched edit, verifies the episode identity and elapsed time on both overview surfaces and the existing stats/freshness surfaces, then releases the lock and verifies the edit lands and every blockage field clears. It fails before the fix and passes after it. The same omission was independently reproduced on installed v0.41.36 with the official signed Rust package. Validation: 68 targeted tests passed (disclosure contracts, derivation/surface registries, review honesty); MCP binary/test clippy with warnings denied, formatting and diff checks passed. No new CI lane, dependency, runtime state or timeout change. Fixes #304.
fix(mcp): disclose blocked writers in project overviews
All checks were successful
CI / cargo fmt (pull_request) Successful in 27s
Package CI / package-corpus (javascript) (pull_request) Successful in 3s
CI / OSS corpus tier-3 scale (nightly) (pull_request) Has been skipped
CI / Grammar rebuild from source (nightly) (pull_request) Has been skipped
Package CI / package-corpus (python) (pull_request) Successful in 2s
Package CI / package-corpus (ruby) (pull_request) Successful in 2s
Package CI / package-corpus (rust) (pull_request) Successful in 2s
Package CI / package-corpus (svelte) (pull_request) Successful in 2s
Package CI / package-corpus (typescript) (pull_request) Successful in 2s
Package CI / package-corpus (timeline) (pull_request) Successful in 2s
Package CI / package-corpus (vue) (pull_request) Successful in 3s
Package CI / package-corpus (xaml) (pull_request) Successful in 2s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 19s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 26s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 30s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 43s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 2s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m0s
CI / cargo doc (intra-doc links) (pull_request) Successful in 6m14s
CI / cargo deny (pull_request) Successful in 6m48s
CI / cargo clippy (pull_request) Successful in 7m28s
CI / cargo check (MSRV 1.99.1) (pull_request) Successful in 9m31s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 9m32s
CI / cargo check (windows-gnu) (pull_request) Successful in 10m15s
CI / OSS corpus (tier 1) (pull_request) Successful in 46m53s
CI / cargo test (pull_request) Successful in 47m25s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 57m17s
CI / cargo test (daemon transport) (pull_request) Successful in 11m1s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
73822870b2
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!492
No description provided.