Repository navigation
fix(qd): the default legend defines fix= on a row with no why= - #727
joyful-ii-V-I wants to merge 2 commits into
Conversation
A repeated-decision complexity row ("name the decision once" / "name the
loop once") carries fix= without why=, and the compact quality-delta
dictionary defined fix= only inside the why= reading. A range whose rows
held such a row met an undefined attribute and legendcoveragecheck (G)
failed with quality-delta-refs-default | r@fix (#720, #722).
Add an r fix= term that steps aside wherever an r row carries why=, so
only fix-without-why answers gain bytes. repeateddecisioncheck (L2) pins
it on a two-commit range with a minor row (red on b576a95).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eady right The previous subject spelled an attribute (a trailing why=), which the handoff root carries as subject= and legendcoveragecheck (G) then reads as an undefined handoff@why on a local run; this subject spells none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
QD-FIX-LEGEND: the default quality-delta legend now defines
fix=on a row that has nowhy=Bug
--quality-delta=HEAD~5..HEADcan print a minor complexity row with a repeated-decision facet, for example<r kind="complexity" sym="bindsVisitNode" … sev="minor" fix="name the decision once: … is tested at lines 7946 and 7961"/>.The default (compact) legend did not define
fix=for that row. Solegendcoveragecheckarm (G) failed withquality-delta-refs-default | r@fixwhenever CI's merge-ref window held such a row. This blocked #720 and #722.Root cause
The full legend was already correct:
qdRepeatedDecisionLegendForsees the row and prints the QD-REPEATED-DECISIONsentence. The default answer uses the compact dictionary in
src/compactlegend.hinstead. In that dictionary,fix=was defined only inside the
why=reading ({ "why", "r why=: …; fix=: …" } // also defines fix=). That readingappears only when some
rrow carrieswhy=, as tangle and clone rows do. A repeated-decision complexity rowcarries
fix=and nowhy=, so nothing defined it.Fix
I added one compact term,
r fix=, keyed to quality-delta<r>rows. It usesunlessTag="r"andunlessAttr="why",so it steps aside wherever an
rrow carrieswhy=, because that reading already definesfix=. Only answers withfix=and nowhy=gain bytes. The term covers bothname the decision onceandname the loop once.Evidence
repeateddecisioncheckarm (L2) builds a two-commit range in which one branch added todropSilentgives a
sev="minor"row with a decisionfix=and nowhy=. It checks that the default legend definesfix=.It fails on main's binary (b576a95, rc=1) and passes on this branch (rc=0). No floor line was added to
test/legendcoverage_g_baseline.txt.legendcoveragecheckis rc=1 (r@fix) with main's binary and rc=0with this branch's. The rows are byte-identical; only the legend comment grows.
compactlegend, the quality-delta legendgates, and versioncheck, printffmtparity, legenddrift, legendcoverage and compactlegend. The full suite was not
run locally; it runs once in the train CI.
counts_snapshot.py check: all totals equal.scripts/qd_range.sh origin/main: PASS, 0 gating.--foranswers do not use the new term. On the repro range the qd document grows by 154 B, all of it in the legend.Credit: found while landing #720 and #722.
🤖 Generated with Claude Code
Summary by CodeRabbit
fix=reading for rows withoutwhy=.fix=on a two-commit range.