You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
harness-config: rule inventory cannot report the formatter rung #16931
The enforcement ladder gained a formatter rung (#16930): a style rule a recorded format command enforces routes to the ecosystem record's fix-cmd. The harness-config rule inventory maps only check-cmd, test-cmd and build-cmd to rungs (plugins/harness-config/skills/*/scripts/rule-inventory.sh, around :259-261), and its test "D: fix-cmd is not a check" pins fix-cmd as uncounted. So the inventory never reports a rule enforced by the formatter rung.
Done when
The inventory reports a rule whose rung is formatter as enforced by the record's fix-cmd, distinct from a check.
The "fix-cmd is not a check" test is updated to state that fix-cmd is the formatter rung, not a check rung.
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the harness-config audit-automation-gaps rule-inventory script and its test; read by the rule inventory report and its maintainers.
Reversible: yes; revert the script and test edit.
Open questions: none
Decision comment by kyle-sexton (#16931 (comment)):
Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.
Q117 (CONFIRMED (one wording tweak: say "tier 2" and cite ladder 3.3.1))
Go with the refinement's recommendations. Q1 is met: #16930 merged, and the ladder copy on main (enforcement-ladder: 3.3.1) defines the formatter rung in tier 2. Q2: one row per fix-cmd command line, shaped like the check-cmd rows: <name> fix-cmd: <cmd>, the ecosystem file, rung formatter. Add fix-cmd to the awk key match (rule-inventory.sh:269) and to the case at :259-261. Q3: replace assert_no "D: fix-cmd is not a check" (rule-inventory.test.sh:182) with an assertion on the exact formatter row line, plus an assertion that no analyzer-pack-rule row carries fix-cmd.
[quote truncated; the full decision is at the link]
This decision settles the open questions from the refinement. The inventory should report fix-cmd rows as the formatter rung, with the test updated as the decision describes. No duplicate or merged fix found.
Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).
melodic-automation-lanes commented on Nov 17, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: The rule inventory maps fix-cmd in an ecosystem record to a formatter-rung row, and the D test asserts that row instead of pinning fix-cmd as uncounted.
Does the ladder copy this script reads define a formatter rung yet, and with what id and tier? The in-repo copy is version 3.2.0 and has no formatter rung. The emit function skips any rung id the copy does not list, so a formatter row cannot be emitted until it does.
RECOMMENDED: Land the ladder change from #16930 (the copy and its version) first, then do this issue against the ladder version that defines the formatter rung, using that rung's id and tier. Basis: plugins/harness-config/skills/audit-automation-gaps/context/enforcement-ladder.md:2 and :53-69; plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:123-129
What row shape should a formatter-rung row take? The issue says reported as enforced by the record's fix-cmd, distinct from a check, but gives no format.
RECOMMENDED: One row per fix-cmd command line, shaped like the check-cmd rows: <name> fix-cmd: <cmd>, the ecosystem file, the formatter rung id and its tier. This needs fix-cmd added to the awk key match and to the case at rule-inventory.sh:259-261. Basis: plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:257-274
Should the test line 'D: fix-cmd is not a check' be replaced by an assertion on the formatter row? The fixture already has fix-cmd: shfmt -w <files>.
RECOMMENDED: Yes: rename it to say fix-cmd is the formatter rung, not a check rung, and assert the exact formatter row line plus that no analyzer-pack-rule row carries fix-cmd. Basis: plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.test.sh:139 and :181
Sources read
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:259-261: maps check-cmd, test-cmd and build-cmd to rungs; fix-cmd is skipped
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:269: the awk key match covers only check|test|build-cmd
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:103-134: rungs are parsed from the ladder copy and emit skips unknown rung ids
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.test.sh:181: asserts no row contains fix-cmd
plugins/harness-config/skills/audit-automation-gaps/context/enforcement-ladder.md:2: version 3.2.0; no formatter rung is listed in tiers 1-5
To answer, post a comment that starts with this line:
**Decision recorded.** <answer>
Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.
Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.
Q117 (CONFIRMED (one wording tweak: say "tier 2" and cite ladder 3.3.1))
Go with the refinement's recommendations. Q1 is met: #16930 merged, and the ladder copy on main (enforcement-ladder: 3.3.1) defines the formatter rung in tier 2. Q2: one row per fix-cmd command line, shaped like the check-cmd rows: <name> fix-cmd: <cmd>, the ecosystem file, rung formatter. Add fix-cmd to the awk key match (rule-inventory.sh:269) and to the case at :259-261. Q3: replace assert_no "D: fix-cmd is not a check" (rule-inventory.test.sh:182) with an assertion on the exact formatter row line, plus an assertion that no analyzer-pack-rule row carries fix-cmd.
Basis
origin/main plugins/harness-config/skills/audit-automation-gaps/context/enforcement-ladder.md:2 enforcement-ladder: 3.3.1, :61 the formatter row in the tier-2 table, :76-81 "The format command is the fix-cmd of the repository's ecosystem record"
origin/main scripts/rule-inventory.sh:259-261 maps only check/test/build; :269 /^(check|test|build)-cmd:/
origin/main scripts/rule-inventory.test.sh:182 still asserts no fix-cmd row; :210 already expects formatter:2
Dissent considered
none found. The refinement's test citations (:139/:181) are now :140/:182.
Confirmed done-when for the decision above (owner direction of 2026-11-20 recorded there).
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh emits one row per fix-cmd command line in an ecosystem record, shaped like the check-cmd rows: <name> fix-cmd: <cmd>, the ecosystem file, and rung formatter with its tier 2 as the ladder copy (enforcement-ladder: 3.3.1) lists it.
fix-cmd is added to the awk key match and to the rung case in rule-inventory.sh that today maps only check-cmd, test-cmd and build-cmd.
In rule-inventory.test.sh, assert_no "D: fix-cmd is not a check" is replaced by an assertion on the exact formatter row line for the fixture's fix-cmd: shfmt -w <files>, under a name saying fix-cmd is the formatter rung, not a check rung.
rule-inventory.test.sh also asserts that no analyzer-pack-rule row carries fix-cmd.
Activity
github-actions commentedon Nov 17, 2026
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the harness-config audit-automation-gaps rule-inventory script and its test; read by the rule inventory report and its maintainers.
Reversible: yes; revert the script and test edit.
Open questions: none
Decision comment by kyle-sexton (#16931 (comment)):
This decision settles the open questions from the refinement. The inventory should report
fix-cmdrows as the formatter rung, with the test updated as the decision describes. No duplicate or merged fix found.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 17, 2026
Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed
- [ ]criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 17, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: The rule inventory maps fix-cmd in an ecosystem record to a formatter-rung row, and the D test asserts that row instead of pinning fix-cmd as uncounted.
Related work
Open questions
RECOMMENDED: Land the ladder change from #16930 (the copy and its version) first, then do this issue against the ladder version that defines the formatter rung, using that rung's id and tier. Basis: plugins/harness-config/skills/audit-automation-gaps/context/enforcement-ladder.md:2 and :53-69; plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:123-129
RECOMMENDED: One row per fix-cmd command line, shaped like the check-cmd rows:
<name> fix-cmd: <cmd>, the ecosystem file, the formatter rung id and its tier. This needs fix-cmd added to the awk key match and to the case at rule-inventory.sh:259-261. Basis: plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:257-274RECOMMENDED: Yes: rename it to say fix-cmd is the formatter rung, not a check rung, and assert the exact formatter row line plus that no analyzer-pack-rule row carries fix-cmd. Basis: plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.test.sh:139 and :181
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 21, 2026
Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.
Q117 (CONFIRMED (one wording tweak: say "tier 2" and cite ladder 3.3.1))
Go with the refinement's recommendations. Q1 is met: #16930 merged, and the ladder copy on main (
enforcement-ladder: 3.3.1) defines theformatterrung in tier 2. Q2: one row perfix-cmdcommand line, shaped like the check-cmd rows:<name> fix-cmd: <cmd>, the ecosystem file, rungformatter. Addfix-cmdto the awk key match (rule-inventory.sh:269) and to the case at :259-261. Q3: replaceassert_no "D: fix-cmd is not a check"(rule-inventory.test.sh:182) with an assertion on the exact formatter row line, plus an assertion that noanalyzer-pack-rulerow carries fix-cmd.Basis
enforcement-ladder: 3.3.1, :61 theformatterrow in the tier-2 table, :76-81 "The format command is thefix-cmdof the repository's ecosystem record"/^(check|test|build)-cmd:/formatter:2Dissent considered
none found. The refinement's test citations (:139/:181) are now :140/:182.
kyle-sexton commentedon Nov 21, 2026
Confirmed done-when for the decision above (owner direction of 2026-11-20 recorded there).
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.shemits one row perfix-cmdcommand line in an ecosystem record, shaped like thecheck-cmdrows:<name> fix-cmd: <cmd>, the ecosystem file, and rungformatterwith its tier 2 as the ladder copy (enforcement-ladder: 3.3.1) lists it.fix-cmdis added to the awk key match and to the rung case inrule-inventory.shthat today maps onlycheck-cmd,test-cmdandbuild-cmd.rule-inventory.test.sh,assert_no "D: fix-cmd is not a check"is replaced by an assertion on the exact formatter row line for the fixture'sfix-cmd: shfmt -w <files>, under a name sayingfix-cmdis the formatter rung, not a check rung.rule-inventory.test.shalso asserts that noanalyzer-pack-rulerow carriesfix-cmd.plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.test.shpasses.melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"13f56037d8ba7ff80f2d0a4471219a471fcdf81cd99ef1edcc1c36f507e3612b","body_sha256":"1016addd8b46410f1348fb752ca511fdb21ce552bc1b892491e3984f3628fb2b"}
melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"13f56037d8ba7ff80f2d0a4471219a471fcdf81cd99ef1edcc1c36f507e3612b","body_sha256":"1016addd8b46410f1348fb752ca511fdb21ce552bc1b892491e3984f3628fb2b"}
github-actions commentedon Nov 21, 2026
github-actions commentedon Nov 21, 2026