Preserve complete bounded resolver cost reports over MCP (#53) #498

Closed
buildagent wants to merge 0 commits from fix/resolver-cost-resource-53 into master
Member

A completed resolver pass in v0.41.39 exceeds the generic resource token cap. resources/read consequently replaces code-index://resolver/costs with a preview, dropping its structured checkpoints and budget verdicts. Published self-dogfood caught this before #53 was closed.

Serve this diagnostic as compact JSON, whole under an explicit 12,000-token ceiling including disclosures and provenance. Oversized reports fail with their measured size and ceiling. Other resource limits and resolver behavior are unchanged.

Validation: a real daemon edit regression failed before the fix and passes afterward; maximum-width counters and metadata survive a 64-checkpoint fixture; oversized reports are refused. All 334 MCP unit tests, six resource smoke tests, 30 resource/disclosure registry tests and MCP all-target clippy passed. No new CI lanes or operating-budget changes.

Keep #53 open until the follow-up release and exact published self-dogfood pass.

A completed resolver pass in v0.41.39 exceeds the generic resource token cap. `resources/read` consequently replaces `code-index://resolver/costs` with a preview, dropping its structured checkpoints and budget verdicts. Published self-dogfood caught this before #53 was closed. Serve this diagnostic as compact JSON, whole under an explicit 12,000-token ceiling including disclosures and provenance. Oversized reports fail with their measured size and ceiling. Other resource limits and resolver behavior are unchanged. Validation: a real daemon edit regression failed before the fix and passes afterward; maximum-width counters and metadata survive a 64-checkpoint fixture; oversized reports are refused. All 334 MCP unit tests, six resource smoke tests, 30 resource/disclosure registry tests and MCP all-target clippy passed. No new CI lanes or operating-budget changes. Keep #53 open until the follow-up release and exact published self-dogfood pass.
Serve resolver cost reports whole within a bounded JSON resource (#53)
Some checks failed
Package CI / package-corpus (php) (pull_request) Successful in 6s
Package CI / package-corpus (rust) (pull_request) Successful in 5s
Package CI / package-corpus (timeline) (pull_request) Successful in 5s
Package CI / package-corpus (python) (pull_request) Successful in 5s
Package CI / package-corpus (svelte) (pull_request) Successful in 4s
Package CI / package-corpus (ruby) (pull_request) Successful in 5s
Package CI / package-corpus (typescript) (pull_request) Successful in 4s
Package CI / package-corpus (xaml) (pull_request) Successful in 3s
Package CI / package-corpus (vue) (pull_request) Successful in 4s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
CI / cargo fmt (pull_request) Successful in 51s
CI / OSS corpus tier-3 scale (nightly) (pull_request) Has been skipped
CI / Grammar rebuild from source (nightly) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 30s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 24s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 30s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 48s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m0s
CI / cargo doc (intra-doc links) (pull_request) Successful in 6m55s
CI / cargo deny (pull_request) Successful in 7m42s
CI / cargo clippy (pull_request) Successful in 8m4s
CI / cargo check (MSRV 1.99.1) (pull_request) Successful in 10m0s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 10m10s
CI / cargo check (windows-gnu) (pull_request) Successful in 10m27s
CI / cargo test (daemon transport) (pull_request) Has been cancelled
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been cancelled
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / OSS corpus (tier 1) (pull_request) Has been cancelled
08f2713cb0
Grade resolver cost report headroom and register its refusal boundary
Some checks failed
Package CI / package-corpus (ruby) (pull_request) Successful in 3s
Package CI / package-corpus (python) (pull_request) Successful in 3s
Package CI / package-corpus (svelte) (pull_request) Successful in 3s
Package CI / package-corpus (php) (pull_request) Successful in 3s
Package CI / package-corpus (rust) (pull_request) Successful in 3s
Package CI / package-corpus (typescript) (pull_request) Successful in 2s
CI / cargo fmt (pull_request) Successful in 30s
Package CI / package-corpus (timeline) (pull_request) Successful in 3s
Package CI / package-corpus (vue) (pull_request) Successful in 3s
Package CI / package-corpus (xaml) (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 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 29s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 33s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 22s
CI / CI lane wall-clock headroom (pull_request) Successful in 53s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 28s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / cargo doc (intra-doc links) (pull_request) Successful in 5m24s
CI / cargo deny (pull_request) Successful in 5m48s
CI / cargo clippy (pull_request) Successful in 6m7s
CI / cargo check (MSRV 1.99.1) (pull_request) Successful in 7m33s
CI / cargo check (windows-gnu) (pull_request) Successful in 7m55s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 7m56s
CI / OSS corpus (tier 1) (pull_request) Successful in 41m41s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Failing after 43m12s
CI / cargo test (pull_request) Successful in 45m12s
CI / cargo test (daemon transport) (pull_request) Successful in 9m34s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
ef27980a50
Author
Member

The exact source commit ef27980a50012f43c6bd03914776aa5fa173cbb0 now passes all source workflows: Linux #2288, native Windows #2291 (all 5,147 tests plus all 43 timing tests and both smoke profiles), packages #2289 and pilots #2290. The earlier PR-specific native run remains recorded with its single initial-connection OS 10055 socket-capacity failure.

The reviewed source and strict version-only v0.41.40 commit are combined in #499 for normal exact-parent-qualified CI and merge. This carries the same implementation; no test status is manually overridden. I will mark this PR integrated only once its source is an ancestor of master. #53 stays open through published verification.

The exact source commit `ef27980a50012f43c6bd03914776aa5fa173cbb0` now passes all source workflows: Linux #2288, native Windows #2291 (all 5,147 tests plus all 43 timing tests and both smoke profiles), packages #2289 and pilots #2290. The earlier PR-specific native run remains recorded with its single initial-connection OS 10055 socket-capacity failure. The reviewed source and strict version-only v0.41.40 commit are combined in #499 for normal exact-parent-qualified CI and merge. This carries the same implementation; no test status is manually overridden. I will mark this PR integrated only once its source is an ancestor of master. #53 stays open through published verification.
Author
Member

Integrated through normally merged #499. Both this PR's exact source ef27980a50012f43c6bd03914776aa5fa173cbb0 and release commit a2cd088b1d1135c9cbfbaa2c8f3a5da64d55db6c are verified ancestors of master (0c700257). All four #499 checks passed using the existing strict source-parent qualification. Closing this implementation PR as integrated by #499; its earlier infrastructure failure remains recorded. #53 remains open until published verification.

Integrated through normally merged #499. Both this PR's exact source `ef27980a50012f43c6bd03914776aa5fa173cbb0` and release commit `a2cd088b1d1135c9cbfbaa2c8f3a5da64d55db6c` are verified ancestors of master (`0c700257`). All four #499 checks passed using the existing strict source-parent qualification. Closing this implementation PR as integrated by #499; its earlier infrastructure failure remains recorded. #53 remains open until published verification.
buildagent closed this pull request 2026-11-06 16:06:14 +01:00
Some checks failed
CI (Windows) / changes (what this run must test) (pull_request) Successful in 19s
CI / changes (what this run must test) (pull_request) Successful in 19s
Package CI / changes (which packages this run must test) (pull_request) Successful in 19s
Package CI / package suites (clippy) (pull_request) Has been skipped
Package CI / package (php) (pull_request) Successful in 1s
Package CI / package (javascript) (pull_request) Successful in 2s
Package CI / package (rust) (pull_request) Successful in 2s
Package CI / package (csharp) (pull_request) Successful in 2s
Package CI / package (timeline) (pull_request) Successful in 1s
Pilot plugin compatibility / Pilot scope (pull_request) Successful in 23s
Package CI / package (ruby) (pull_request) Successful in 2s
Package CI / package (svelte) (pull_request) Successful in 1s
Package CI / package (typescript) (pull_request) Successful in 1s
Package CI / package (python) (pull_request) Successful in 2s
Package CI / package (vue) (pull_request) Successful in 1s
Package CI / package (xaml) (pull_request) Successful in 2s
Package CI / package-corpus (csharp) (pull_request) Successful in 3s
Package CI / package-corpus (javascript) (pull_request) Successful in 2s
Package CI / package-corpus (ruby) (pull_request) Successful in 3s
Package CI / package-corpus (python) (pull_request) Successful in 3s
Package CI / package-corpus (svelte) (pull_request) Successful in 3s
Package CI / package-corpus (php) (pull_request) Successful in 3s
Package CI / package-corpus (rust) (pull_request) Successful in 3s
Package CI / package-corpus (typescript) (pull_request) Successful in 2s
CI / cargo fmt (pull_request) Successful in 30s
Package CI / package-corpus (timeline) (pull_request) Successful in 3s
Package CI / package-corpus (vue) (pull_request) Successful in 3s
Package CI / package-corpus (xaml) (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 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 29s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 33s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 22s
CI / CI lane wall-clock headroom (pull_request) Successful in 53s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 28s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / cargo doc (intra-doc links) (pull_request) Successful in 5m24s
CI / cargo deny (pull_request) Successful in 5m48s
CI / cargo clippy (pull_request) Successful in 6m7s
CI / cargo check (MSRV 1.99.1) (pull_request) Successful in 7m33s
CI / cargo check (windows-gnu) (pull_request) Successful in 7m55s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 7m56s
CI / OSS corpus (tier 1) (pull_request) Successful in 41m41s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Failing after 43m12s
CI / cargo test (pull_request) Successful in 45m12s
CI / cargo test (daemon transport) (pull_request) Successful in 9m34s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped

Pull request closed

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!498
No description provided.