Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .cursorrules

This file was deleted.

12 changes: 0 additions & 12 deletions .hypatia-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
# below carries a stated reason. Prefer fix-the-code or an inline directive
# over an entry here; this file is for whole-file/directory exemptions.

# ─── build/docs-seed/ describes DOWNSTREAM repos, not this one ─────────────
#
# `build/docs-seed/` is the canonical template of documentation that gets
# copied into scaffolded repos. Its example paths (e.g. `src/middleware/…`,
# `src/main.rs`) describe a hypothetical generated project, so they
# legitimately do not resolve against this template's own tree. SD022
# (stale `src/<dir>/` reference) is therefore a structural false positive
# for everything under this directory — mirrors the built-in CHANGELOG.md
# and third_party/ carve-outs. Scaffolded repos inherit this file, so the
# exemption travels with the template.
structural_drift/SD022:build/docs-seed/

# ─── Research-extension workflow findings ───────────────────────────────────────
#
# RE001 is an advisory recommendation to add harden-runner whenever a workflow
Expand Down
12 changes: 12 additions & 0 deletions .machine_readable/mint-verbatim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ scripts/strip-instruction-blocks.rs # names the marker it strips
scripts/resolve-template-pin.sh # documents the template it resolves
tests/e2e/template_instantiation_test.sh # token answer list; marker exemptions
tests/e2e/use_template_mint_test.sh # mints a template copy: template literals
tests/e2e/chain_mint_test.sh # chain fixtures: parent names and paths
tests/workflows/mint_cleanup_test.sh # instruction-block fixture
tests/workflows/self_name_pass_test.sh # template-name fixtures
tests/workflows/template_conformance_test.sh # template-slug fixtures
tests/workflows/julia_library_test.sh # PACKAGE_UUID brace-token fixture

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove the nonexistent verbatim manifest entry

For any non-chain template mint that reaches the manifest preflight, this entry makes just repo-init abort before prompting or writing because tests/workflows/julia_library_test.sh does not exist in this commit (the available Julia tests are under tests/e2e/). The recipe explicitly checks every MINT_VERBATIM path with [ -f "$_v" ] and exits on a stale entry, so this blocks the template's primary mint path rather than merely excluding the wrong file.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified and fixed in the replacement: tests/workflows/julia_library_test.sh is now carried byte-identical in #28 (the replacement for #24), and #29 is stacked on it. All 21 manifest entries exist there. This PR is closed.


Generated by Claude Code

tests/workflows/mint_gates_test.sh # names an unanswered token, on purpose
tests/e2e/language_profiles_mint_test.sh # minted-tree fixtures; keeps archetype paths
tests/workflows/resolve_template_pin_test.sh # template-slug fixtures
tests/ffi_strings_test.sh # FFI token fixture, filled in a scratch copy
tests/workflows/container_kyaml_test.sh # container token fixtures (template only)
CHANGELOG.adoc # prose quotes the project-name brace token when it describes a mint failure
docs/reports/compliance/RSR-TEMPLATE-DAMAGE-2026-10-30.adoc # the report is about the unfilled project-name brace token
docs/status/TEST-NEEDS.adoc # prose records the lowercase brace placeholders it converted
scripts/survey-template-damage.sh # searches children for an unfilled project-name brace token
scripts/check-mint-tokens.sh # the gate's own comments name the tokens it checks
tests/aspect_tests.sh # a comment names the lowercase brace token that symbol names may carry

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Let the mint substitute the aspect-test heading

When just repo-init mints any child, this manifest entry excludes the entire script from mint_files, so the newly added live {{PROJECT}} token on line 42 remains literal in the child's test banner. check-no-placeholders.sh also imports this same manifest as its allowlist, meaning validation will silently accept the leak; protect the fixture comment without making the whole script verbatim.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified, the cause is upstream: the template's own tests/aspect_tests.sh line 42 carries the token and is listed verbatim. Fixed at source in rsr-template-repo#390 (the banner takes the repository name at run time, with a guard test). This PR is closed; its content moved to #29, stacked on #28, which keeps the file byte-identical to the template pin.


Generated by Claude Code

2 changes: 1 addition & 1 deletion .machine_readable/policies/hypatia-rule-order.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"SPDX-License-Identifier":"MPL-2.0","clashes":[{"id":"C1","resolution":"single producer; scripts/check-workflow-edges.sh fails on a dead edge","summary":"one scanner, two workflows"},{"id":"C2","resolution":"one pin per tool per repository; the verdict job names the producer's commit","summary":"one tool, two pins"},{"id":"C3","resolution":"panicbot stays unenrolled; the grid's own row is the authority","summary":"panicbot versus the direct panic-attack row"},{"id":"C4","resolution":"every fragment must end on a path boundary","summary":"substring fragments suppress more than they name"},{"id":"C5","resolution":"subsumed entries are refused","summary":"a broad entry makes narrower ones dead"},{"id":"C6","resolution":"the named path must exist in the tree","summary":"an exemption outlives the file it names"},{"id":"C7","resolution":"stated, not worked around; un-suppression is an upstream change","summary":"a repository cannot narrow a built-in default"},{"id":"C8","resolution":"producers own their gates; a failed fleet is orange rows, not a block","summary":"the reporter must not re-gate"}],"concerns":[{"id":"hypatia-execution","owner":".github/workflows/hypatia-scan.yml","rationale":"Two workflows built and ran the same scanner at the same pin (clash C1)."},{"id":"hypatia-gate","owner":".github/workflows/hypatia-scan.yml","rationale":"The producer owns its gate; the verdict grid is not a gate (clash C8)."},{"id":"panic-attack-gate","owner":".github/workflows/static-analysis-gate.yml","rationale":"Blocks on critical exactly once, in the workflow that runs it."},{"id":"pons-asinorum","owner":".github/workflows/static-analysis-gate.yml","rationale":"Advisory by design: pons classifies evidence, it does not prove."},{"id":"verdict-grid-render","owner":".github/workflows/fork-governance.yml","rationale":"The reporter collects evidence and never scans (clash C8)."},{"id":"verdict-grid-comment","owner":".github/workflows/verdict-grid-publish.yml","rationale":"Only the trusted default-branch workflow_run publisher may write the single bot-owned verdict comment; PR rendering remains read-only."},{"id":"fleet-report-backs","owner":".github/workflows/fork-governance.yml","rationale":"The fleet job is the only producer of .gitbot-fleet evidence."},{"id":"exemption-policy","owner":".hypatia-ignore","rationale":"One file, checked by scripts/check-hypatia-ignore.sh."}],"grid":{"commit":"f0b3cd4c464d33e1584f8528c17bce104555e256","library":"scripts/lib/verdict-grid.jq","library_sha256":"36e7aa69afbe8c488b1a313fd9bd0cf2bf6af45d3f34b80afd793f6b20582896","renderer":"scripts/verdict-grid.sh","renderer_sha256":"7c2cac9248fd249f607de827dc8dc9a3f6276bf9ca662be86aa435e9aeca48d7","repository":"metadatastician/standards","specification":"docs/VERDICT-GRID-SPEC.adoc"},"layer_owners":["hypatia","this-repository","the-gate","the-grid"],"layers":[{"description":"Python, Go, Makefile and Gemfile are refused by a dedicated clause; no exemption reaches it.","id":"rule-total-ban","overrides":"nothing: every other layer is unreachable for this rule","owner":"hypatia","rank":1,"repository_can_change":false,"scope":"cicd_rules/banned_language_file"},{"description":"Applied to every rule before any module-specific table.","id":"universal-excludes","overrides":"every layer below it, for the paths it names","owner":"hypatia","rank":2,"repository_can_change":false,"scope":"vendored and generated paths: .git/, node_modules/, _build/, deps/, target/, dist/, .hypatia-baseline.json"},{"description":"Training corpora and fixtures are provenance, not signal.","id":"builtin-defaults","overrides":"every layer below it; a repository cannot narrow it (clash C7)","owner":"hypatia","rank":3,"repository_can_change":false,"scope":"@training_corpus_paths keyed per module, plus benches/ for code_safety only"},{"description":"Scoped, reasoned exemptions. Fragments are substring matches, so each must end on a path boundary.","id":"repository-ignore","overrides":"nothing above it; it may only widen layer 3","owner":"this-repository","rank":4,"repository_can_change":true,"scope":".hypatia-ignore"},{"description":"Line- or file-scoped. The narrowest layer, and the one to use when only one line is affected.","id":"inline-directive","overrides":"layers 3 and 4, for the line that carries it","owner":"this-repository","rank":5,"repository_can_change":true,"scope":"# hypatia: allow <module>/<type> -- <reason>"},{"description":"Applied at gate time only. The verdict grid ignores it, so standing debt stays visible.","id":"baseline","overrides":"the gate's decision, never a scanner's output","owner":"the-gate","rank":6,"repository_can_change":true,"scope":".hypatia-baseline.json"},{"description":"Presentation and grading. It never suppresses a finding.","id":"grid-normalisation","overrides":"nothing; it may not change what a scanner reported","owner":"the-grid","rank":7,"repository_can_change":false,"scope":"severity words, suppressed:true, the row's colour"}],"observed_modules":[{"layer":4,"module":"structural_drift","rationale":"SD022 (stale src/<dir> reference) fires on build/docs-seed/, which documents DOWNSTREAM repositories: the paths in it are not this tree's."},{"layer":4,"module":"research_extensions","rationale":"RE001/RE005/RE008 are advisory recommendations for workflows that deliberately hold a credential or render an annotation non-fatally; each exemption is file-scoped."},{"layer":4,"module":"workflow_audit","rationale":"wrong_sha_pin compares against a static May-2026 table; authoritative pin verification is actions.lock plus check-lock-sync.sh, which runs on every pull request."}],"scanner":{"commit":"be98f74ce93df200752f3798efa1305bfa3e0e10","repository":"hyperpolymath/hypatia","sources":["lib/hypatia/scanner_suppression.ex","lib/rules/"]},"schema":"hypatia-rule-order/1"}
{"SPDX-License-Identifier":"MPL-2.0","clashes":[{"id":"C1","resolution":"single producer; scripts/check-workflow-edges.sh fails on a dead edge","summary":"one scanner, two workflows"},{"id":"C2","resolution":"one pin per tool per repository; the verdict job names the producer's commit","summary":"one tool, two pins"},{"id":"C3","resolution":"panicbot stays unenrolled; the grid's own row is the authority","summary":"panicbot versus the direct panic-attack row"},{"id":"C4","resolution":"every fragment must end on a path boundary","summary":"substring fragments suppress more than they name"},{"id":"C5","resolution":"subsumed entries are refused","summary":"a broad entry makes narrower ones dead"},{"id":"C6","resolution":"the named path must exist in the tree","summary":"an exemption outlives the file it names"},{"id":"C7","resolution":"stated, not worked around; un-suppression is an upstream change","summary":"a repository cannot narrow a built-in default"},{"id":"C8","resolution":"producers own their gates; a failed fleet is orange rows, not a block","summary":"the reporter must not re-gate"}],"concerns":[{"id":"hypatia-execution","owner":".github/workflows/hypatia-scan.yml","rationale":"Two workflows built and ran the same scanner at the same pin (clash C1)."},{"id":"hypatia-gate","owner":".github/workflows/hypatia-scan.yml","rationale":"The producer owns its gate; the verdict grid is not a gate (clash C8)."},{"id":"panic-attack-gate","owner":".github/workflows/static-analysis-gate.yml","rationale":"Blocks on critical exactly once, in the workflow that runs it."},{"id":"pons-asinorum","owner":".github/workflows/static-analysis-gate.yml","rationale":"Advisory by design: pons classifies evidence, it does not prove."},{"id":"verdict-grid-render","owner":".github/workflows/fork-governance.yml","rationale":"The reporter collects evidence and never scans (clash C8)."},{"id":"verdict-grid-comment","owner":".github/workflows/verdict-grid-publish.yml","rationale":"Only the trusted default-branch workflow_run publisher may write the single bot-owned verdict comment; PR rendering remains read-only."},{"id":"fleet-report-backs","owner":".github/workflows/fork-governance.yml","rationale":"The fleet job is the only producer of .gitbot-fleet evidence."},{"id":"exemption-policy","owner":".hypatia-ignore","rationale":"One file, checked by scripts/check-hypatia-ignore.sh."}],"grid":{"commit":"f0b3cd4c464d33e1584f8528c17bce104555e256","library":"scripts/lib/verdict-grid.jq","library_sha256":"36e7aa69afbe8c488b1a313fd9bd0cf2bf6af45d3f34b80afd793f6b20582896","renderer":"scripts/verdict-grid.sh","renderer_sha256":"7c2cac9248fd249f607de827dc8dc9a3f6276bf9ca662be86aa435e9aeca48d7","repository":"metadatastician/standards","specification":"docs/VERDICT-GRID-SPEC.adoc"},"layer_owners":["hypatia","this-repository","the-gate","the-grid"],"layers":[{"description":"Python, Go, Makefile and Gemfile are refused by a dedicated clause; no exemption reaches it.","id":"rule-total-ban","overrides":"nothing: every other layer is unreachable for this rule","owner":"hypatia","rank":1,"repository_can_change":false,"scope":"cicd_rules/banned_language_file"},{"description":"Applied to every rule before any module-specific table.","id":"universal-excludes","overrides":"every layer below it, for the paths it names","owner":"hypatia","rank":2,"repository_can_change":false,"scope":"vendored and generated paths: .git/, node_modules/, _build/, deps/, target/, dist/, .hypatia-baseline.json"},{"description":"Training corpora and fixtures are provenance, not signal.","id":"builtin-defaults","overrides":"every layer below it; a repository cannot narrow it (clash C7)","owner":"hypatia","rank":3,"repository_can_change":false,"scope":"@training_corpus_paths keyed per module, plus benches/ for code_safety only"},{"description":"Scoped, reasoned exemptions. Fragments are substring matches, so each must end on a path boundary.","id":"repository-ignore","overrides":"nothing above it; it may only widen layer 3","owner":"this-repository","rank":4,"repository_can_change":true,"scope":".hypatia-ignore"},{"description":"Line- or file-scoped. The narrowest layer, and the one to use when only one line is affected.","id":"inline-directive","overrides":"layers 3 and 4, for the line that carries it","owner":"this-repository","rank":5,"repository_can_change":true,"scope":"# hypatia: allow <module>/<type> -- <reason>"},{"description":"Applied at gate time only. The verdict grid ignores it, so standing debt stays visible.","id":"baseline","overrides":"the gate's decision, never a scanner's output","owner":"the-gate","rank":6,"repository_can_change":true,"scope":".hypatia-baseline.json"},{"description":"Presentation and grading. It never suppresses a finding.","id":"grid-normalisation","overrides":"nothing; it may not change what a scanner reported","owner":"the-grid","rank":7,"repository_can_change":false,"scope":"severity words, suppressed:true, the row's colour"}],"observed_modules":[{"layer":4,"module":"research_extensions","rationale":"RE001/RE005/RE008 are advisory recommendations for workflows that deliberately hold a credential or render an annotation non-fatally; each exemption is file-scoped."},{"layer":4,"module":"workflow_audit","rationale":"wrong_sha_pin compares against a static May-2026 table; authoritative pin verification is actions.lock plus check-lock-sync.sh, which runs on every pull request."}],"scanner":{"commit":"be98f74ce93df200752f3798efa1305bfa3e0e10","repository":"hyperpolymath/hypatia","sources":["lib/hypatia/scanner_suppression.ex","lib/rules/"]},"schema":"hypatia-rule-order/1"}
52 changes: 0 additions & 52 deletions .windsurfrules

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning].
`relock-standards-pin.sh` at `75bd599` gave the nine records the same tags.
No commit changes: each tag was checked to point at its recorded commit.
* The mint's self-name pass keeps issue references. It rewrote
`bactrian#N`, a reference to this template's own issue, into
`rsr-template-repo#N`, a reference to this template's own issue, into
`<child>#N`, which names an issue of the child that does not exist or is
unrelated. resource-algebra carried such references after its mint.
`tests/workflows/self_name_pass_test.sh` (wired into Estate Rules) runs
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ maintainers can brief an AI with `just ai-warmup dev` / `just ai-warmup maintain
== Governance badges

The *K9 conformance* badge in the row at the top becomes live after
`just repo-init` replaces the `{{OWNER}}` and `{{REPO}}` placeholders in its URL
`just repo-init` replaces the `hyperpolymath` and `bactrian` placeholders in its URL

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the owner token renderable in the README

When a child is minted under an owner other than hyperpolymath, replacing {{OWNER}} here with the template's literal owner leaves that owner unchanged: the self-name pass rewrites bactrian globally, but SELF_OWNER_SED only operates on Justfile and sonar-project.properties. The resulting child README therefore says that repo-init replaced the hyperpolymath and <child-repo> placeholders even though its badge URL uses the child's actual owner; retain the owner token so the normal substitution pass renders this sentence correctly.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified. The cause is upstream: the template's README sentence (line 145) carries the owner and repository tokens as prose, and the mint substitutes README.adoc, so every child reads "replaces the and placeholders". Fixed at source: rsr-template-repo#391 rewords it without tokens and adds a guard. This PR is closed; its content moved to #29, which carries the by-hand fill as a stopgap. Once #391 merges and syncs, the README line in bactrian takes the template wording. Left open until then.


Generated by Claude Code

and an eligible push to `main` publishes it. It is published by
`.github/workflows/dogfood-gate.yml` to a generated *orphan* branch called
`governance-badges`, and read back through the shields endpoint.
Expand Down
Loading
Loading