Repository navigation
fix(bug-lookup): also search the project's own bug-logs drafts (replaces #531) - #557
Merged
Merged
Conversation
bin/bug-lookup.sh read only the toolkit ledger, so a bug a session had already written down in the project's bug-logs/ was invisible to the lookup that runs before experimenting on the same error. Run from inside a wired project, it now also searches that project's bug-logs/**.md after the ledger, and marks each hit "(project draft: <file>:<line>)". The ledger's output and ranking are unchanged: drafts are ranked in a separate pass, so they never move the ledger's IDF; --full and --index stay ledger-only. A ranked draft needs the same 40% coverage as the best ledger hit. The project is found with project-bin/_common.sh (mxtk_walk_root from $PWD); MXTK_PROJECT_DIR=<dir> names it and MXTK_PROJECT_DIR= (empty) turns drafts off. Field: a Mendix 10.24 app with mxcli v0.27.0, 43 files in bug-logs/. The query "cannot be spliced" listed no project drafts at 393d253; it lists 3, from 3 files, each pointing at a "## " line whose entry mentions splice. The project was not written. Test: group P of tests/wave2/test-bug-lookup.sh on synthetic drafts. With master's bug-lookup.sh (393d253) 3 of its checks fail (25 pass); with the change 28 of 28 pass, also under /bin/bash 3.2.57. Only one awk was on PATH, so the other awks were not run.
5 of 7 tasks
…eep both sides) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013jQvaonym9V1wKKfAEPmRr
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.
Replaces #531 by @saingge. Their commit 99141cf is carried unchanged, with their authorship. It moved into our repo so CI runs without fork approval and CHANGELOG conflicts can be resolved here. See #531 for the full description and evidence.
Review: MERGE (independent review: drafts are ranked in a separate pass, ledger output unchanged; fixture 28/0; no timing change). Security review: safe.
Generated by Claude Code