Preserve complete bounded resolver cost reports over MCP (#53) #498
No reviewers
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index!498
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/resolver-cost-resource-53"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A completed resolver pass in v0.41.39 exceeds the generic resource token cap.
resources/readconsequently replacescode-index://resolver/costswith 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.
The exact source commit
ef27980a50012f43c6bd03914776aa5fa173cbb0now 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.
Integrated through normally merged #499. Both this PR's exact source
ef27980a50012f43c6bd03914776aa5fa173cbb0and release commita2cd088b1d1135c9cbfbaa2c8f3a5da64d55db6care 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.Pull request closed