Commit 0146b73
Fix/codegen k9 magic pedigree (#17)
* fix(codegen): emit K9! magic line + pedigree block (closes #8)
generate_k9_contract emitted `# Auto-generated…` as the first line and
no pedigree, so every generated .k9 failed the canonical
hyperpolymath/k9-validate-action:
- Missing K9! magic number (first non-empty line must be 'K9!')
- Missing pedigree block
Now emits `K9!` as the first line, an SPDX header, and a `pedigree`
block (schema_version + metadata.name + security.leash + signature_
required) — matching the template-<tier>.k9.ncl shape and satisfying
the validator's name(error)/version(warn)/leash(warn)/hunt-signature
checks. Verified end-to-end against k9-validate-action@2d96f43:
3 files scanned, 0 errors, 0 warnings.
Unit test strengthened: asserts K9! first line + pedigree fields.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(examples): remove orphaned ReScript web-example scaffold (Refs #8)
examples/SafeDOMExample.res `open`s a SafeDOM module that does not
exist anywhere in this repo, depends on the external ReScript repo
hyperpolymath/rescript-dom-mounter, is referenced by nothing, and was
only ever introduced by a bulk governance-bundle chore. Its partner
web-project-deno.json (self-described 'Example deno.json for ReScript
web projects', same dead safe-dom dep) is referenced by nothing.
This is dead estate ReScript-elimination drift in a Rust codegen repo,
not live code: there is nothing to port (no SafeDOM module, no consumer)
and the real k9iser example is examples/web-app/k9iser.toml. Removing
the orphaned scaffold is the resolve-at-source fix and clears the
Governance / language anti-pattern gate.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci(codeql): converge to canonical language-autodetect workflow (Refs #8)
k9iser's codeql.yml was a stale hardcoded `javascript-typescript`-only
matrix (left as a local security workflow by the b618a53 bundle
migration). On this Rust-only repo CodeQL exits with a permanent
false-red 'no source / configuration error' on the analyze job.
Replace it verbatim with the canonical estate template shipped by
rsr-template-repo / v3-templater / reposystem: a detect job reads the
repo's actual language stats and only analyses CodeQL-supported,
buildless-safe languages (here: rust), skipping entirely when none
apply. Also brings the estate concurrency guardrail (cancel superseded
runs). This is resolve-at-source + convergence to the central canonical
template rather than a k9iser-local divergence.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5e17044 commit 0146b73
1 file changed
Lines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
24 | 59 | | |
| 60 | + | |
| 61 | + | |
25 | 62 | | |
26 | 63 | | |
27 | 64 | | |
28 | 65 | | |
29 | 66 | | |
30 | 67 | | |
31 | 68 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 69 | + | |
35 | 70 | | |
36 | 71 | | |
37 | 72 | | |
| |||
41 | 76 | | |
42 | 77 | | |
43 | 78 | | |
44 | | - | |
| 79 | + | |
45 | 80 | | |
46 | 81 | | |
47 | 82 | | |
| |||
0 commit comments