Skip to content

fix(bug-lookup): also search the project's own bug-logs drafts (replaces #531) - #557

Merged
MendixMau merged 2 commits into
masterfrom
claude/loving-gates-hauc1n-531
Oct 22, 2026
Merged

MendixMau merged 2 commits into
masterfrom
claude/loving-gates-hauc1n-531

Conversation

@MendixMau

Copy link
Copy Markdown
Owner

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

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.
…eep both sides)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jQvaonym9V1wKKfAEPmRr
@MendixMau
MendixMau merged commit 535b4aa into master Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants