Commit f9dca6d
Addresses the standards-local backlog **foundationally**: makes the
canon's
own validators/gates honest, then triages Hypatia's first completed run
(all 195 findings) into an honest baseline. Seven commits.
## ⚠️ The governance gate is RED on purpose — do NOT baseline it green
The triage found a **live, write-scoped credential** committed into this
public repo (an accidentally-pasted session transcript, one token, 40
occurrences, in `rhodium-standard-repositories/rhodium-pipeline/docs/
QUICKSTART.adoc`). The token value is **not** reproduced here or in any
commit — only the file is named (it is already in `main`).
These 40 findings are **deliberately left unbaselined**, so the
`validate-hypatia-baseline` gate stays red until the credential is dealt
with. **Prerequisite for a green gate = revoke the token at its
provider,
then purge it from the tree + history.** Suppressing it in the baseline
is
the one thing that must never happen — that would silence a
live-credential
alarm. A future maintainer must not "fix" this red by adding a baseline
entry for it.
## What's in the PR
**Validators stop flagging the canon's own files**
- `validate-k9.sh` (#434): `.k9` vs `.k9.ncl` are now distinct dialects.
Nickel library/contractile modules (`base_k9.pedigree_schema & {…}`,
`magic_number = "K9!"`) are first-class, not violations. Removed a
brace-depth block tracker that skipped its own opening brace and could
not see `let`/`&` factoring. 96 → 45 errors, every survivor verified
real.
- `validate-a2ml.sh` (#435, option a): the file-level identity **error**
was never in the SPEC (identity is per-`@record`, §7); it flagged
465/1550
canonical files. Now a lint **warning** against the real estate shapes
(`spec_id`, `[metadata]`/`[scorecard]`, `@abstract`), with design-tree /
template / AI-manifest exemptions (`INPUT_DESIGN_TREES`). 465 → 0
errors.
- Both: `GITHUB_OUTPUT` defaults to `/dev/null` (an unset var under `set
-u`
aborted the script outside Actions).
**Baseline machinery made honest**
- Schema `type` pattern widened for the uppercase mnemonic codes
`structural_drift`/`git_state`/`code_scanning_alerts` actually emit
(`SD022`, `GS007`, `CSA001`) (#477).
- `apply-baseline.sh` now **enforces** that schema in jq. A workflow
comment
claimed a job schema-checked the baseline; none did, and a malformed
baseline would silently match nothing. Now it exits 2, naming each
violation. Canary-tested both directions.
**Registry drift (#381)** — the pre-commit guard already exists;
verified it
catches drift (it caught this branch's own edits). Documented
`just hooks-install` + `just registry` in CONTRIBUTING.md.
**Dead `trufflehog:` job removed** from 6 nested product secret-scanner
templates (#507). Estate scope measured: only 3 *live* repos still carry
it
(ideas-to-alphas, polystack, QuantumCircuit.jl); 17 matched the
rationale
comment only.
**Workflow hygiene** — job timeouts on scorecard-enforcer +
signed-push-smoke;
removed `push-email-notify.yml` per the estate dual-use directive.
**`.hypatia-baseline.json`** — 118 entries from the full triage
(24-agent
triage → adversarial verify): 96 permanent false-positives (mirror
double-reports #378, guarded unwraps, bench `expect()`, XML-namespace
http
URIs, public credential-less CORS manifests, `.envrc` `{{placeholder}}`
exports, idiomatic CString FFI) + 22 tracked debt (expiry 2026-10-21 +
tracking issue: #254, #491–#496, #124, scorecard.yml reconciliation).
Adding the file activates the previously-skipped baseline job.
## Verification caveat
The baseline was filter-tested against the **last completed Hypatia
scan**
(195 findings), not re-run against this branch's HEAD — the Elixir
scanner
isn't buildable in this environment. The path-fidelity work (entries
mirror
Hypatia's own per-module `.file` shape) makes drift low-risk, but CI's
fresh
scan is the real check. Result of the local filter: **150 suppressed /
45
kept** (40 live-token + 5 findings this branch already fixes).
## Not fixed here (baselined + flagged, by design)
- A latent one-char Zig off-by-one in the ~230×-copied FFI shim — fix at
the
**source** template (boj-server `ffi/zig/src`) and re-propagate, not in
this lone copy.
- A DOM-XSS in the avow demo — belongs with product eviction #492.
Refs #399 #178 #434 #435 #477 #381 #507
---------
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent f26a519 commit f9dca6d
17 files changed
Lines changed: 1154 additions & 205 deletions
File tree
- .github/workflows
- .machine_readable
- 0-ai-gatekeeper-protocol/.github/workflows
- a2ml
- .github/workflows
- actions/validate
- consent-aware-http/.github/workflows
- k9-svc/actions/validate
- lol/.github/workflows
- meta-a2ml/.github/workflows
- rhodium-standard-repositories/.github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 13 | | |
27 | 14 | | |
28 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
98 | 120 | | |
99 | 121 | | |
100 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 13 | | |
27 | 14 | | |
28 | 15 | | |
| |||
0 commit comments