Skip to content

fix(badges): accept the legacy K9 badge label when publishing - #35

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/governance-badge-legacy-label
Nov 14, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/governance-badge-legacy-label

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

The "Publish the lane badges" job in the Dogfood Gate fails on every push to main. For example, run 88 on e31f740 failed with:

governance-badge: refused: the existing badges/k9.json on governance-badges is not a valid shield badge (label is "k9-deed L0–L2", expected "K9"); refusing to overwrite generated output this tool did not produce.

An earlier renderer wrote badges/k9.json, and this repo's governance-badge.js (from template 48671ce) does not know the old label. The template already fixed this in rsr-template-repo a20fdb2 (#381). The legacy label is accepted and replaced, and any other label is still refused.

Changes

  • scripts/governance-badge.js and tests/workflows/governance_badge_test.js: copied from rsr-template-repo main. Both files were unchanged from template 48671ce in this repo, so this brings them exactly to the template's current version. No other file changes.

The badge file on the governance-badges branch is not edited by hand. The next run on main after this merges replaces it.

RSR Quality Checklist

Required

  • Tests pass: tests/workflows/governance_badge_test.sh (see below). I did not run just test, because just is not installed in this session.
  • Code is formatted: the files are byte-identical to the template's
  • Linter is clean: not run
  • No banned language patterns (plain JavaScript, as in the template)
  • No unsafe blocks without // SAFETY: comments
  • No banned functions
  • SPDX license headers present on all new/modified source files
  • No secrets, credentials, or .env files included

Testing

# old script + new test
$ bash tests/workflows/governance_badge_test.sh   # exit 1

# with this change
$ bash tests/workflows/governance_badge_test.sh
PASS: governance badge suite (behaviour + wiring + firing controls)   # exit 0

The real proof is the "Publish the lane badges" job on the first main push after merge.


Generated by Claude Code

"Publish the lane badges" fails on every push to main:
governance-badge.js refuses to overwrite badges/k9.json on the
governance-badges branch, because its label is "k9-deed L0–L2" (written
by the earlier renderer), not "K9".

rsr-template-repo a20fdb2 (#381) already fixed this in the template:
the legacy label is accepted and replaced, and any other label is still
refused. Both files were unchanged from template 48671ce here, so they
now match rsr-template-repo main exactly.

tests/workflows/governance_badge_test.sh: exit 1 with the old script and
the new test, exit 0 with this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZoZwvZCfM387TZQ5kY
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Hypatia grid green

🟢 clean · commit 6d71e809b425 · run 43633424013 · scope: this change (2 file(s))

Advisory: 11 row(s), worst 🟠 indeterminate (0 critical, 0 high in grid scope) — reported, never grading the change.

Unique graded findings across gating and advisory rows: 1 (1 reporter observations; 1 without sufficient identity to corroborate). Row counts remain per reporter; unique totals do not change gating.
Raw Hypatia alert-derived observations: 36 (code-scanning, Dependabot and secret-scanning; some may also be in SARIF; not an extra total).

Reporter Gate Status Critical High Medium Minor Since previous revision
Hypatia scan gating 🟢 clean 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
panic-attack assail advisory 🟡 medium 0 0 1 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
pons asinorum advisory 🟢 clean 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
echidnabot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
rhodibot (RSR compliance) advisory 🟠 indeterminate 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
panicbot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
sustainabot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
glambot (presentation quality) advisory 🟠 indeterminate 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
seambot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
finishingbot (release readiness) advisory 🟠 indeterminate 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
cipherbot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
accessibilitybot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline (no prior PR grid or unreadable snapshot)
Hypatia scan: 1 finding(s)
  • 1 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
panic-attack assail: 21 finding(s)
  • medium InputBoundary — tests/workflows/governance_badge_test.js — 8 JSON.parse call(s) with 7 try block(s) in tests/workflows/governance_badge_test.js — JSON.parse throws SyntaxError on malformed input; wrap in try-catch
  • 20 further finding(s) in files this change does not touch: reported, not graded (0 critical, 1 high).
pons asinorum: 9 finding(s)
  • 9 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
  • ⚪ not applicable: template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
rhodibot (RSR compliance): not_run — enrolled, but no report-back was received
  • 🟠 indeterminate: enrolled, but no report-back was received
panicbot: not_applicable — panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
  • ⚪ not applicable: panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
  • ⚪ not applicable: reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
glambot (presentation quality): not_run — enrolled, but no report-back was received
  • 🟠 indeterminate: enrolled, but no report-back was received
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
  • ⚪ not applicable: template default: enrol once a seam register exists at spec/seams/seam-register.json
finishingbot (release readiness): not_run — enrolled, but no report-back was received
  • 🟠 indeterminate: enrolled, but no report-back was received
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
  • ⚪ not applicable: template default: enrol once the repository implements cryptography
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
  • ⚪ not applicable: template default: enrol once the repository serves HTML

Scope: static findings reported by each row's tool at the named commit. The table grades only findings in files this change touches, so the colour answers "does this change introduce anything?", not "what does the whole repository still carry?". Standing findings are counted in each accordion and in report.json; the baseline filter remains the place where acknowledged debt is recorded. The lane state is the worst GATING row; advisory rows are listed and counted but never set it. Purple, red, yellow and blue grade the worst GRADED finding present; orange is evidence missing, malformed or a scanner that did not run; grey is an explicit scope exclusion with its reason. No row is a security certification. report.json, badge.json and the raw findings are in the verdict-grid artifact on the linked run.

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 14, 2026 19:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T19:45:16.760342Z 6d71e80 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-14T19:48:01.063203Z 6d71e80 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hyperpolymath
hyperpolymath merged commit f5c7138 into main Nov 14, 2026
46 checks passed
@hyperpolymath
hyperpolymath deleted the fix/governance-badge-legacy-label branch November 14, 2026 19:43
hyperpolymath added a commit that referenced this pull request Nov 15, 2026
* chore: sync from the current RSR template (35233e2)

Three-way merge, base 48671ce (the :template-commit in the deed), target
35233e2. 12 conflicts resolved by hand as below; the rest replaced, added or
merged cleanly.

Taken from the template: pages.yml (ddraig-ssg build, freshness gate, badge
deployed with Pages), governance-badge.js and governance_badge_test.js (a
superset of the local #35 change: the template also migrates the
"K9 L0-L2" label), extract.sh, aspect_tests.sh. hypatia-rule-order.json merged
structurally. actions.lock repaired with scripts/lock-sync-fix.sh plus the
template's own record for the pinned upload-pages-artifact.

Kept apodeixis's own: persist-credentials: false on the pages.yml checkout, the
repository-wide Hypatia pin 6693f9a in dogfood-gate.yml (same as
hypatia-scan.yml, fork-governance.yml and verdict-grid-publish.yml), README.adoc,
launcher.sh, the deed ((ply) already matches), TEST-NEEDS wording. REPOSITORY-MAP
keeps both its deed row and the template's .uuid-v8-exempt row. Licences untouched.

Verified locally: check-lock-sync, check-workflow-edges, check-ijson-jcs,
check-no-a2ml, check-identity, check-hypatia-rule-order all rc 0; 21 new or
changed test files pass; governance_badge_test.js 251 passed, 0 failed.
NOT passing, neither wired into CI: readme_badge_prose_test,
test_needs_minted_test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7Zk1VxiWdKq68AQx2Ev

* fix(sync): take the template's verbatim list whole; regenerate the repository map

CI on this PR failed two gates, both caused by my merge:

- openssf-compliance: tests/workflows/julia_library_test.sh carries a
  {{PACKAGE_UUID}} fixture. The template lists it in mint-verbatim.txt, but
  apodeixis's list (built by hand, so not truly at the 48671ce base) lacked the
  entry and a delta-from-base merge could not add it. Apodeixis had no entries of
  its own in that file, so it now takes the template's file whole.
- estate-rules / repo_map_determinism_test: REPOSITORY-MAP.adoc is generated
  (just repo-map); my hand-merged copy was stale. Regenerated with
  scripts/gen-repo-map.sh.

Verified locally: repo_map_determinism_test rc 0, check-no-placeholders rc 0
(both were failing). Still failing, and not fixable here: check-mint-tokens
(1 token in test_needs_minted_test.sh), fixed in rsr-template-repo#414.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7Zk1VxiWdKq68AQx2Ev

* fix(sync): carry test_needs_minted_test.sh verbatim, as the template now does

mint-gates failed on the one unfilled token in a minted tree,
tests/workflows/test_needs_minted_test.sh: {{project}}. The template's own fix
(rsr-template-repo#414) lists the file in mint-verbatim.txt; this takes that
one line, nothing else from the template's newer commits.

Verified locally: check-mint-tokens rc 1 -> 0; check-no-placeholders rc 0.
Not verified: a CI run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7Zk1VxiWdKq68AQx2Ev

---------

Co-authored-by: Claude <noreply@anthropic.com>
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