Repository navigation
Conversation
…not drafted again when it has ~ * or ` Section 1 strips ~ * ` from a project heading, takes the first 30 characters after a BUG-nnn tag and searches bug-logs/mxcli-bugs.md for them. The log was searched as written, so the stripped text was never a substring of a toolkit heading that has those characters (BUG-01 starts with a backtick pair), and the heading was drafted again. The log is now stripped the same way before the search. The search also takes -e: stripping leaves BUG-26 and BUG-54 starting with "--", which grep read as an option. A project whose bug log held copies of all 223 headings in the toolkit log drafted 103 of them at 95e1b30 and 0 now. Fixture: tests/wave2/test-harvest-learnings.sh T6, with four headings taken from the log itself; it fails on 95e1b30.
Owner
|
Triage (outside PR, code not run): FIX track. Verdict: MERGE-AFTER-FIX. The only fix needed is a rebase:
Generated by Claude Code |
3 tasks done
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.
Branch
fix/harvest-known-heading, one commit (3b4dc2e) on origin/master 95e1b30. Lane 3 (direct). It was first seen while testing #553 (draft every##section of a bug log), which is merged; this is a separate change to the same section of the script and does not depend on anything open.What changed and why
bin/harvest-learnings.shsection 1 skips a project's bug-log heading when its first 30 characters after theBUG-nn:tag already appear in the toolkit'sbug-logs/mxcli-bugs.md("known"). It strips~,*and the backtick from the project heading before it cuts those 30 characters, then searches the toolkit log as written. The toolkit log has those characters in its headings (186 of its 223##headings), so the stripped slice is not a substring of the heading it came from, and the entry was drafted again. Example: a project headingBUG-01: `alter entity drop attribute` causes …is sliced toalter entity drop attribute ca, which is not in the log'sBUG-01: `alter entity drop attribute` causes ….Two changes, both in section 1:
tr -d '~*\'` into a temp file) before the search. This is the cause.-e. Once the log is stripped, a slice can start with--(BUG-26 and BUG-54 begin with a backtick and then--mcp), whichgrepread as an option and answered "not found". Found by running the first change alone over every heading.Impact
bin/harvest-learnings.shand its own fixture only.CHANGELOG.mdgets one line. No shared file, no new tool, no new artifact read.render-routing.sh --check: baseline 65444 words on origin/master and on this branch.trover the toolkit log (about 7,200 lines) and one temp file, removed with the existingrm -f.Field evidence
A project whose bug log holds copies of all 223 headings of the toolkit log, run with
--toa scratch directory (nothing written to the project or the toolkit):--cause above.A second run on a project with a copy of BUG-01, BUG-02 and BUG-03 and one new heading: master drafts all four, this branch drafts the new one. It was first seen when T5 of #553 drafted BUG-01 again on its first run. No project text is used here, only the toolkit's own headings.
Checklist
LEAKGUARD_ALLOW_NO_DENYLIST=1 LEAKGUARD_BASE=origin/master bin/check-no-client-data.sh: no new capitalised words, no client data detected; the fixture takes its headings from the clone's ownbug-logs/mxcli-bugs.mdand adds one synthetic heading,BUG-900).tests/wave2/test-harvest-learnings.sh, plus the field run above.trandgrep).tr -dandgrep -qiF -eare POSIX; not run under Git Bash.CHANGELOG.mdline under## Unreleased, credited.Verification
Run on this branch (3b4dc2e), macOS arm64, 2026-10-29.
bin/check-scripts.sh125/125 shell and 25/25 Node parse;bin/check-pr-discipline.sh origin/masterclean;bin/render-routing.sh --checkin sync;bin/mdl-rules.sh --checkin sync;bin/check-portability.shclean;bin/check-no-private-citations.shclean;bin/check-no-client-data.sh(withLEAKGUARD_BASE=origin/master) no new capitalised words, no client data detected;bash tests/run-tests.shpassed=33 failed=0.bash tests/wave2/run-all.shwas not run:test-harvest-learnings.shis the only fixture that runs the changed script, and it passes 22/0 above.