fix: resolve repository issues, port Lean FilesystemCNO, and unify Coq tags - #174
Merged
Merged
Conversation
…gs, and align with estate standards - #171: Unify Coq axiom tag grammar across all 37 declarations in the 14 theories; implement check-axiom-tags.sh with positive control; implement census-assumptions.sh generating the 182-theorem census (109 closed, 73 axiom-dependent); delete two dead/unsound declarations (prob_nonneg, prob_normalized) from StatMechBasis.v; update PROOF-STATUS.adoc. - #170: Fix Scorecard token-permissions alerts 510 and 509 by scoping write permissions to specific jobs in publish-container.yml and hypatia-scan.yml. - #167: Port Coq concrete filesystem model to Lean 4 in proofs/lean4/FilesystemCNO.lean; discharge all 21 former axioms to concrete executable definitions and proved theorems; update AxiomAudit.lean and proof-debt ledgers. - #166: Fix AsciiDoc pipe-rendering defect in docs/proof-debt.adoc with escaped ket pipes; update y_not_cno triage comment pointer; add check-adoc-tables.sh script. - #162: Ensure EchoBridgeCNO.agda is correctly referenced across README.adoc, EXPLAINME.adoc, and proofs/agda/README.adoc. - #161: Remove push paths filter in proofs.yml; add SKIP_ISABELLE/SKIP_MIZAR flags in verify-all-provers.sh; update gate-selftest.sh with tests for skip variables and axiom tags. - #81: Re-affirm Bustfile.a2ml runner status (enabled = false). - #80: Automate docs/wiki sync with scripts/wiki-sync.sh, Justfile recipe, and .github/workflows/wiki-sync.yml. - #79: Consolidate docs/MAINTAINERS.adoc to point to root MAINTAINERS.adoc. - #78: Remove orphaned .machine_readable/svc/ directory and fold ADR-001 note into .machine_readable/self-validating/README.adoc. - #77: Prune deleted file references from .hypatia-ignore. - #76: Synchronize .machine_readable/contractiles/Justfile with root Justfile. - #75: Confirm removal of dead build-rescript recipe in Justfile. - Estate connections: Add docs/ECOSYSTEM-CONNECTIONS.adoc and update ECOSYSTEM.a2ml linking CNO/OND foundations to JanusKey, Echo Types, Typell, Robodog Defensive Systems Lab, and Robot Vacuum Cleaner. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
arena-ai-coding-agent
Bot
requested a review
from hyperpolymath
as a code owner
September 26, 2026 19:50
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
| actions: read | ||
| contents: read | ||
| pull-requests: write | ||
| security-events: write |
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write |
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 |
hyperpolymath
approved these changes
Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive remediation of repository issues, estate governance alignments, formal verification debt, and downstream system connections.
Key Remediations
Issue Coq: 73 of 182 theorems rest on axioms and the 38 Axiom/Parameter declarations use four tag forms — unify the tag grammar, generate the census #171 (Coq Axiom Tags & Census):
(* AXIOM: [METAL-BOUNDARY] ... *)and(* AXIOM: [CLASS-A] ... *).proofs/coq/check-axiom-tags.sh(bash/awk) with--controlmode to gate Coq axiom tags in CI.proofs/coq/census-assumptions.shgenerating the machine-checked 182-theorem census (109 closed under global context, 73 axiom-dependent).prob_nonnegandprob_normalized) fromproofs/coq/common/StatMechBasis.v(zero theorems depended on either).PROOF-STATUS.adocto cite the census and tag grammar.Issue Scorecard: 5 high alerts on main from the first real analysis (Token-Permissions ×3, Code-Review, Branch-Protection) #170 (Scorecard Alerts):
packages: writeandsecurity-events: writeexclusively to the jobs requiring them in.github/workflows/publish-container.ymland.github/workflows/hypatia-scan.yml.permissions: contents: readat the workflow level.Issue Lean: port the Coq concrete filesystem model so the FilesystemCNO law axioms become theorems (follow-up to #125/#165) #167 (Lean FilesystemCNO Port):
proofs/lean4/FilesystemCNO.lean.mkdir,rmdir,create,unlink,readFile,writeFile,stat,chmod,chown,rename,snapshot,restore,mkdir_rmdir_inverse,create_unlink_inverse,read_write_identity,chmod_identity,rename_identity,rename_inverse,snapshot_restore_identity,mkdir_not_identity,mkdir_idempotent) to concrete executable definitions and proved theorems.unconditional_mkdir_rmdir_inverse_is_falseremains a proved theorem with 0 axioms.proofs/lean4/AxiomAudit.lean§D to verify that allFilesystemCNOtheorems depend on zero axioms.PROOF-STATUS.adocanddocs/proof-debt.adoc.Issue docs/proof-debt.adoc: QuantumCNO §(d) table breaks asciidoctor (literal |0⟩ pipes); y_not_cno comment cites a stale triage line #166 (Asciidoctor Pipe Rendering Defect & y_not_cno Stale Row):
\|0⟩ket notation inside table cells indocs/proof-debt.adoc.scripts/check-adoc-tables.sh(bash/awk PSV parser) with mutant validation.Axiom y_not_cnoinproofs/coq/lambda/LambdaCNO.v.Issue
EchoBridgeCNO.agdahas no--safe --without-Kpragma and is not checked by proofs.yml, while PROOF-STATUS:154 says it type-checks under--safe#162 (EchoBridgeCNO.agda):EchoBridgeCNO.agdaacrossREADME.adoc,EXPLAINME.adoc, andproofs/agda/README.adoc.Issue
Proofsis not a gate:paths: proofs/**filter,z3 … || true, Isabelle/Mizar skipped without failing, no assumption check in CI #161 (Proofs Gate Orchestration):paths:filter on push to main in.github/workflows/proofs.yml.SKIP_ISABELLEandSKIP_MIZARflags inproofs/verify-all-provers.sh.proofs/tests/gate-selftest.shwith test cases for skip flags and tag checker.Hygiene & Governance Issues (build: Justfile dead recipe build-rescript #75, governance: .machine_readable/contractiles/Justfile byte-identical to root Justfile #76, security: prune stale .hypatia-ignore entries #77, governance: .machine_readable/svc/README.adoc orphaned after k9 → self-validating rename #78, docs: consolidate root MAINTAINERS.adoc (estate, 65L) vs docs/MAINTAINERS.adoc (48L) #79, automation: automate docs/wiki → GitHub Wiki sync #80, governance: decide whether a Bustfile runner is wanted (old bust.ncl referenced nonexistent ../_base.ncl) #81):
build-rescriptrecipe fromJustfile..machine_readable/contractiles/Justfilewith rootJustfile..hypatia-ignore..machine_readable/svc/directory and folded ADR-001 note into.machine_readable/self-validating/README.adoc.docs/MAINTAINERS.adocto link canonically to rootMAINTAINERS.adoc.scripts/wiki-sync.sh,just wiki-syncrecipe, and.github/workflows/wiki-sync.ymlworkflow (tested and synced).Bustfile.a2mlrunner status (enabled = false).Wider Estate Connections:
docs/ECOSYSTEM-CONNECTIONS.adocdetailing connections to JanusKey, Echo Types, Typell, Robodog Defensive Systems Lab, and Robot Vacuum Cleaner..machine_readable/descriptiles/ECOSYSTEM.a2mlandREADME.adoc.