release/0.2.5795: close #356 — phase 3 (stale-index hint, read fuzzy, query stages tail)#366
Merged
Conversation
read fuzzy fallback on disk-read failure, and codedb_query per-stage summary tail Phase 3 wraps up the #356 reliability scope with three small ergonomics improvements: - p3-1: codedb_query successful-pipeline output gains a structured '--- stages ---' tail listing each step's op + outgoing file count. Long pipelines become legible without re-parsing the unstructured per-step output above it. - p3-2: codedb_outline 'file not indexed' error gains a 'try codedb_index' actionable hint alongside the phase-1 fuzzy suggestions. Stale-index recovery becomes obvious instead of requiring tribal knowledge. - p3-3: codedb_read 'failed to read file' error gains the same fuzzy 'did you mean' suggestions that codedb_outline already surfaces, so a mistyped path is recoverable without a codedb_find round-trip. Also bumps version to 0.2.5795 (build.zig.zon + release_info.zig in sync). All 3 tests fail on main; fixes in subsequent commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
codedb_query per-stage summary Phase 3 wraps the rewritten #356 reliability scope: - codedb_outline 'file not indexed' now appends 'hint: try codedb_index if the file was added recently' alongside the phase-1 fuzzy suggestions. Stale-index recovery becomes obvious — agents no longer need to know the operator manually re-indexes via codedb_index. - codedb_read 'failed to read file' now appends fuzzy 'did you mean:' suggestions just like codedb_outline does. Mistyped paths are recoverable in one shot. - codedb_query successful pipelines now emit a structured '--- stages ---' tail listing each step's op + outgoing file count. Long pipelines become legible without parsing the unstructured per-step output above it. Implementation: minor additions in handleOutline/handleRead reuse the existing appendFuzzyPathSuggestions helper. handleQuery tracks a stages slice per-iteration and emits the summary post-loop. None of the new output disrupts existing tooling — every existing testing.expect about query/outline/read content still holds. Tests: 3 issue-356-p3 cases in src/tests.zig fail on main and pass with this commit. All 437 tests green. #356 acceptance criteria coverage: - Pipeline step failure no longer discards prior-step output (phase 1) - codedb_outline returns up to 3 fuzzy-match suggestions for non-indexed paths (phase 1) - codedb_query step missing-arg errors include received keys: [...] (phase 1, generalized to all read tools in phase 2) - Plus phase-3 polish above. Closes #356. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Benchmark Regression ReportThresholds: 10.00% and 50,000 ns absolute delta
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #356.
Three small ergonomics polishes that wrap up the rewritten #356 reliability scope:
#356 acceptance summary across all 3 phases:
Test plan
Commits
```
6084025 test(issue-356-p3): failing tests for outline 'codedb_index' hint, read fuzzy fallback on disk-read failure, codedb_query per-stage summary
c588308 fix(mcp): close out #356 — stale-index hint, read fuzzy fallback, codedb_query per-stage summary
8041c98 docs: add 0.2.5795 changelog — close #356
```
🤖 Generated with Claude Code