Repository navigation
Migrate proof receipt to DEED and repair scanner policy checks - #22
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
|
🟠 indeterminate · commit Advisory: 11 row(s), worst 🔴 high (0 critical, 9 high) — reported, never grading the change.
Hypatia scan: error — the scanner produced no findings array
panic-attack assail: 14 finding(s)
pons asinorum: 9 finding(s)
finishingbot (release readiness): 173 finding(s)
glambot (presentation quality): 93 finding(s)
rhodibot (RSR compliance): 13 finding(s)
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
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
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2ff7ed3340
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
|
|
||
| mapfile -t sha_rows < <(sed -nE '/^[[:space:]]*HYPATIA_SHA[[:space:]]*:/p' "$HYPATIA_WF") | ||
| mapfile -t ref_rows < <(sed -nE '/^[[:space:]]*hypatia-ref[[:space:]]*:/p' "$HYPATIA_WF") |
There was a problem hiding this comment.
Scope hypatia-ref matching to the reusable caller
When an unrelated job or action in hypatia-scan.yml has a matching hypatia-ref while the actual hypatia-scan-reusable.yml caller omits the input, this file-wide search finds exactly one valid ref and the checker exits successfully, even though the scanner runs the reusable workflow's default revision. Restrict the match to the with block of the job whose uses targets the Hypatia reusable workflow so the policy cannot be validated by an unrelated key.
Useful? React with 👍 / 👎.
| elif [ -n "$wf_sha" ] && [ -n "$wf_ref" ] && [ "$wf_sha" != "$wf_ref" ]; then | ||
| fail "hypatia-scan.yml pins the scanner twice and disagrees: HYPATIA_SHA ${wf_sha:0:12}, hypatia-ref ${wf_ref:0:12}" |
There was a problem hiding this comment.
Reject simultaneous scanner pin mechanisms
When HYPATIA_SHA and hypatia-ref are both present with the same value, this condition skips the failure and the checker reports that clash C2 is resolved, despite the policy's explicit one pin per tool per repository resolution. This leaves two competing pin sources in the workflow and only detects them after they drift; fail whenever both variables are nonempty, not only when their values differ.
Useful? React with 👍 / 👎.
…#28) ## Summary **estate-rules is red on `main`.** Its step "Use-this-template mint end to end" runs `tests/e2e/use_template_mint_test.sh` as inherited from template `c481073`. That version re-mints this already-minted tree and fails on an unfilled `{{OWNER}}` token. The template fixed this across #275, #291, #293 and #294, and its current test self-skips in a minted child. I reproduced both sides: the `c481073` test fails on `main`, and the current test passes on this branch. ## Changes This is a three-way sync. The base is `c481073`, the commit this repository was minted from, and the target is template `2be7b88`. - **43 files** that this repository still held byte-identical to `c481073` take the template's current version: mint machinery, hooks, workflows, checks and tests. - **9 new machinery files**: `chain-mint`, `replay-mint`, `check-mint-drift` and `format-container-kyaml`, plus their tests. The template's own diagnostic workflow (`oracle-segfault-diag.yml`) and its lock record are left out. - **Diverged files** were three-way merged. These stay as this repository's own: - `governance.yml`, the reusable caller from #15; - `README.adoc`; - `mise.toml`, with `yq` added for `scripts/kyaml-format.sh`; - the verdict-grid lane and the rule-order policy, kept at standards `8e48b1c` because that renderer works and the template's `e064539` does not; - the rule-order checker and its test, from #22; - `CHANGELOG.adoc`, which gets one entry for this sync instead of the template's release notes. - **`secret-scanner.yml`** takes the template's inline three-scanner workflow (rsr-template-repo#295: stable status contexts, no `secrets: inherit`). Its lock record is updated and its contract test wired. - **`non_interactive_mint_test.sh` and `chain_mint_test.sh`** carry hyperpolymath/rsr-template-repo#300's guard. Without it, both tests fail in any legacy minted child. In a repository minted without `(mint-answers)`, the guard asserts that `repo-init` refuses to mint again, by name. ## RSR Quality Checklist ### Required - [x] Tests pass. Locally: - `check-lock-sync`: in sync. - `check-workflow-edges`, `check-required-contexts`, `check-root-shape`: pass. - `run-proven-suite.sh`: `ALL LANES PASSED`. - Every single-line estate-rules lane: the same five fail as on unmodified `main`. Four are environmental on this machine (asciidoctor, this machine's `yq`) and pass in CI. - [x] No banned language patterns - [x] SPDX license headers present on all new/modified source files - [x] No secrets, credentials, or `.env` files included ## Still red, and why - **`governance_policy_test`** fails because the #15 governance caller's `pull_request` trigger carries a branch filter, and the test also expects the inline standards checkout. CI never reached this step before, because the mint test failed first. Whether to keep the caller or take the template's inline governance workflow is your call. - **Canon lockstep**: fixed by #27. --- _Generated by [Claude Code](https://claude.ai/code/session_01BYbQRtNu216R13jtZLmoqs)_ --------- Co-authored-by: Claude <[email protected]>



The proof receipt still used the retired A2ML format, and the scanner policy checker rejected the existing immutable
hypatia-refreusable-workflow input. This migrates the generated receipt and all active consumers to a native Praxis DEED, preserves the N-9 proof claim and existing hashes/toolchain/waiver facts, types historical UUIDv5 references, and removes the stalebuild/docs-seed/exemption.Scanner-reference validation accepts the supported scalar pin forms and fails closed on duplicate declarations, conflicts, malformed values, comment/prefix decoys and hash suffixes. Its scope is the literal pin check; the existing workflow-edge check remains separate. The historical F-1 finding remains explicitly open.
Validation: the scanner regression suite passed 108 controls; the shipped scanner gate, live exemption and workflow-edge checks passed. The real receipt generator's
--writeand--checkverified all 15 module hashes. Native DEED lint passed using standards revision8e48b1caade08a552646adeab66558ac43b4360d. No Agda source or proof waiver changed.This remains a draft pending hosted checks and the separate canon release dependency. Standards currently has inconsistent gates/applicability hashes; this PR does not change the declared canon version, waive lockstep, or repin Fleet. It must not be described as complete repository compliance.
Hosted follow-up on this head: the core proofs/minimal-laws, DEED syntax, UUID governance and Proven suite passed. Estate Rules progressed beyond the retired receipt and exposed an unchanged template-mint contract conflict, tracked in #23; canon lockstep also remains failing. Keep both failures visible and retain this PR as a draft.