Skip to content

Migrate proof receipt to DEED and repair scanner policy checks - #22

Merged
hyperpolymath merged 1 commit into
mainfrom
chore/setup-gates-20261107
Nov 7, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
chore/setup-gates-20261107

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

The proof receipt still used the retired A2ML format, and the scanner policy checker rejected the existing immutable hypatia-ref reusable-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 stale build/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 --write and --check verified all 15 module hashes. Native DEED lint passed using standards revision 8e48b1caade08a552646adeab66558ac43b4360d. 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.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

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

sonarqubecloud Bot commented Nov 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Hypatia grid orange

🟠 indeterminate · commit 2ff7ed334093 · run 42398016145 · scope: this change (16 file(s))

Advisory: 11 row(s), worst 🔴 high (0 critical, 9 high) — reported, never grading the change.

Reporter Gate Status Critical High Medium Minor Since previous revision
Hypatia scan gating 🟠 indeterminate 0 0 0 0 — no comparable baseline
panic-attack assail advisory 🟡 medium 0 0 1 0 — no comparable baseline
pons asinorum advisory 🟢 clean 0 0 0 0 — no comparable baseline
finishingbot (release readiness) advisory 🔴 high 0 9 6 2 — no comparable baseline
glambot (presentation quality) advisory 🔵 minor 0 0 0 13 — no comparable baseline
rhodibot (RSR compliance) advisory 🟢 clean 0 0 0 0 — no comparable baseline
accessibilitybot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
cipherbot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
echidnabot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
panicbot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
seambot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
sustainabot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
Hypatia scan: error — the scanner produced no findings array
  • 🟠 indeterminate: the scanner produced no findings array
panic-attack assail: 14 finding(s)
  • medium CommandInjection — scripts/check-hypatia-rule-order.sh — 36 potentially unquoted variable expansions in scripts/check-hypatia-rule-order.sh
  • 13 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
pons asinorum: 9 finding(s)
  • 9 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
finishingbot (release readiness): 173 finding(s)
  • high V1-DOC-ROADMAP.adoc — Required file ROADMAP.adoc not found (Project roadmap).
  • high TOOL-001 — .tool-versions file not found for asdf/mise version management.
  • high SCM-001-NEUROSYM.scm — Required SCM file NEUROSYM.scm not found (Neurosymbolic AI documentation).
  • high SCM-001-AGENTIC.scm — Required SCM file AGENTIC.scm not found (Agentic AI integration documentation).
  • high SCM-001-PLAYBOOK.scm — Required SCM file PLAYBOOK.scm not found (Operational playbooks and procedures).
  • high SCM-001-ECOSYSTEM.scm — Required SCM file ECOSYSTEM.scm not found (Project's place in the ecosystem).
  • high SCM-001-META.scm — Required SCM file META.scm not found (Meta-level information and architectural decisions).
  • high SCM-001-STATE.scm — Required SCM file STATE.scm not found (Project state and progress tracking).
  • high PH-100 — Found 124 placeholders, exceeds maximum allowed (0)
  • medium V1-COM-CONTRIBUTING.md — CONTRIBUTING.md file not found (Contribution guidelines).
  • medium V1-COM-CODE_OF_CONDUCT.md — CODE_OF_CONDUCT.md file not found (Code of conduct).
  • medium V1-SEC-001 — SECURITY.md not found for responsible disclosure.
  • medium TEST-001 — Could not determine if this is a Rust or Deno project.
  • medium REL-004 — No SECURITY.md file found
  • medium CLM-006 — docs/epistemic-types-transition-review.adoc — Documentation references non-existent file: docs/TYPE-CONNECTIONS.adoc
  • info CLM-003 — README.adoc — README missing 'Usage examples' section
  • info CLM-003 — README.adoc — README missing 'Installation instructions' section
  • 156 further finding(s) in files this change does not touch: reported, not graded (0 critical, 3 high).
glambot (presentation quality): 93 finding(s)
  • info GS-001 — Install git-seo for comprehensive SEO analysis: https://github.com/hyperpolymath/git-seo
  • info MACH-007 — ECOSYSTEM.scm not found in .machine_readable/ directory.
  • info MACH-007 — META.scm not found in .machine_readable/ directory.
  • info MACH-007 — STATE.scm not found in .machine_readable/ directory.
  • info MACH-005 — No robots.txt found. Consider adding one for crawler control.
  • info VIS-005 — README.adoc:8 — Line 209 characters exceeds max length of 80.
  • info VIS-005 — PROOF-STATUS.adoc:14 — Line 84 characters exceeds max length of 80.
  • info VIS-005 — docs/reports/audit/consistency-audit-2026-11-01.adoc:71 — Line 81 characters exceeds max length of 80.
  • info VIS-005 — docs/reports/audit/estate-handoff-prompts-2026-11-01.adoc:36 — Line 81 characters exceeds max length of 80.
  • info VIS-005 — docs/reports/status/toolchain-and-version-pins-2026-11-01.adoc:9 — Line 82 characters exceeds max length of 80.
  • info VIS-005 — docs/proof-debt.adoc:7 — Line 83 characters exceeds max length of 80.
  • info VIS-005 — docs/EXPLAINME.adoc:4 — Line 124 characters exceeds max length of 80.
  • info VIS-005 — docs/epistemic-types-transition-review.adoc:2 — Line 84 characters exceeds max length of 80.
  • 80 further finding(s) in files this change does not touch: reported, not graded (0 critical, 2 high).
rhodibot (RSR compliance): 13 finding(s)
  • 13 further finding(s) in files this change does not touch: reported, not graded (0 critical, 12 high).
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
  • ⚪ not applicable: template default: enrol once the repository serves HTML
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
  • ⚪ 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
  • ⚪ 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
  • ⚪ 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
  • ⚪ 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)
  • ⚪ 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.

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 7, 2026 18:11
@hyperpolymath
hyperpolymath merged commit 8046c92 into main Nov 7, 2026
71 of 73 checks passed
@hyperpolymath
hyperpolymath deleted the chore/setup-gates-20261107 branch November 7, 2026 18:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 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-07T18:18:14.586535Z 2ff7ed3 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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")

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 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 👍 / 👎.

Comment on lines +204 to +205
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}"

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 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 👍 / 👎.

hyperpolymath added a commit that referenced this pull request Nov 9, 2026
…#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]>
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.

2 participants