Skip to content

Prove universal canonical-word decoding before source integration - #31

Merged
hyperpolymath merged 6 commits into
mainfrom
codex/universal-decoder-20261124
Nov 25, 2026
Merged

hyperpolymath merged 6 commits into
mainfrom
codex/universal-decoder-20261124

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Adds universal canonical-word decoder models: safe Cubical-compatible Agda over every 64-bit pattern and independent Lean/Coq arithmetic proofs over all natural words. Strict Agda, full safe Cubical, Lean and Coq/coqchk passed in run 45509711011 at 5a77c27; Coq reports closed assumptions, and Lean's standard kernel axioms are recorded explicitly. All 54 final-head checks completed without failures before normal squash merge.

The generated repository map comes from the canonical generator run remotely. Source-to-proof decoder integration and checked correspondence between the models remain open. This is the theory stage, with no whole-FFI, compiler-refinement, exchanged-witness or proof-grade claim. Idris2 remains ABI authority; FFI/API code remains pure Zig.

Summary by CodeRabbit

  • Tests
    • Automated checks now verify the canonical decoder model across multiple proof systems, with results and evidence included in the build artifacts.
  • Documentation
    • Updated architecture and roadmap materials to reflect the current decoder verification status, its limits, and remaining open questions.

The final axiom gate at 9913e47bb0bbf18c2184ee3ca54650bf83a905b2 passes in run 45514187262: exact per-theorem standard-axiom reports are enforced. A compiled counterfeit using CanonicalWord.forged : False is rejected, as are missing/duplicate reports. This fixes the reviewed gap where checking only for sorryAx could admit custom axioms. Full final-head soundness replay and CI/gate passed in that run. Normal squash merge: 0ade0c109c71641af8be858b10a6ffdb15214a4d.

@gitnotebooks

gitnotebooks Bot commented Nov 24, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/atoma/pull/31

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds canonical-word decoder models and proofs in Agda, Lean, and Coq. A shell proof gate checks these models and records evidence. The scalar CI job runs the gate and copies a generated repository map into the proof-evidence directory. Documentation records proof results and remaining obligations.

Changes: Canonical word verification

Layer / File(s) Summary
Decoder models and proofs
verification/atoma/consumer/agda/CanonicalWord.agda, verification/atoma/consumer/agda/CanonicalWordCubical.agda, verification/atoma/consumer/lean4/CanonicalWord.lean, verification/atoma/consumer/coq/CanonicalWord.v, docs/theory/UNIVERSAL-DECODER.adoc, docs/status/ROADMAP.adoc
Agda defines a bit-field decoder model. Lean and Coq define arithmetic decoder models. The files prove properties of encoding and decoding, and the documentation records validation results and remaining obligations.
Multi-tool proof gate
scripts/atoma-word-proof-gate.sh
The script runs Agda, Lean, Coq, and Cubical checks. It records hashes for copied proof inputs and returns failure when checks fail.
Scalar CI and repository-map evidence
.github/workflows/atoma.yml, docs/architecture/REPOSITORY-MAP.adoc
The scalar job runs the proof gate and generates and copies the repository map into the proof-evidence directory. The declared-structure list no longer includes docs/theory/.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant Scalar as scalar CI job
  participant Gate as atoma-word-proof-gate.sh
  participant Agda as Agda checks
  participant Lean as Lean checks
  participant Coq as Coq checks
  Scalar->>Gate: Run proof gate
  Gate->>Agda: Run strict and cubical checks
  Gate->>Lean: Compile and check assumptions
  Gate->>Coq: Compile, check reports, and run coqchk
  Gate-->>Scalar: Return gate result
Loading
Merge Risk: Minimal · up to 8738d

This change adds checked canonical-word decoder models in Agda, Lean, and Coq plus a CI proof gate. No concrete merge-blocking defect was found, and the documentation states the claim's limits clearly.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive The description gives a clear summary of the proof-gate work and its verification status, but it does not follow the repository template. It has no '## Summary', '## Changes', 'RSR Quality Checklist',… Restructure the description to follow the repository template. Add these sections: '## Summary' with a 'Closes #N' link if applicable, '## Changes' as a bullet list of the key files, '## RSR Quality Checklist' with each required item checke…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: universal canonical-word decoding is proven before source integration. The changeset adds Agda, Lean and Coq decoder proof models and a proof gate script, and the PR d…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: universal canonical-word decoding is proven before source integration. The changeset adds Agda, Lean and Coq decoder proof models and a proof gate script, and the PR description states that source integration remains open. The title is specific and matches the primary change, with no file lists or vague terms.

Full details: Description check

Explanation

The description gives a clear summary of the proof-gate work and its verification status, but it does not follow the repository template. It has no '## Summary', '## Changes', 'RSR Quality Checklist', or '## Testing' headings. It also omits the 'Closes #N' link and most required checklist items, such as tests, formatting, linter, SPDX headers, and banned-function checks. It does cite CI runs, which partly covers the Testing content. Because it is mostly on-topic and describes the change and its evidence, but misses several template sections, the check is inconclusive rather than a pass.

Resolution

Restructure the description to follow the repository template. Add these sections: '## Summary' with a 'Closes #N' link if applicable, '## Changes' as a bullet list of the key files, '## RSR Quality Checklist' with each required item checked or explained, and '## Testing' describing the commands and CI runs used. Also state whether the new Agda, Lean, and Coq files carry SPDX headers, and confirm that no banned functions (such as Admitted or sorry) are used. Mark the ROADMAP.adoc item as updated, since the diff changes it.

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c59fe78 and 8738d74.

Files selected for processing: 9

  • .github/workflows/atoma.yml
  • docs/architecture/REPOSITORY-MAP.adoc
  • docs/status/ROADMAP.adoc
  • docs/theory/UNIVERSAL-DECODER.adoc
  • scripts/atoma-word-proof-gate.sh
  • verification/atoma/consumer/agda/CanonicalWord.agda
  • verification/atoma/consumer/agda/CanonicalWordCubical.agda
  • verification/atoma/consumer/coq/CanonicalWord.v
  • verification/atoma/consumer/lean4/CanonicalWord.lean
Files with no reviewable changes: 1

  • docs/architecture/REPOSITORY-MAP.adoc

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Hypatia grid green

🟢 clean · commit 9913e47bb0bb · run 45514546547 · scope: this change (9 file(s))

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

Unique graded findings across gating and advisory rows: 22 (22 reporter observations; 19 without sufficient identity to corroborate). Row counts remain per reporter; unique totals do not change gating.
Raw Hypatia alert-derived observations: 40 (code-scanning, Dependabot and secret-scanning; some may also be in SARIF; not an extra total).

Reporter Gate Status Critical High Medium Minor Since previous revision
Hypatia scan gating 🟢 clean 0 0 0 0 — same commit (no revision comparison)
panic-attack assail advisory 🟢 clean 0 0 0 0 — same commit (no revision comparison)
pons asinorum advisory 🟢 clean 0 0 0 0 — same commit (no revision comparison)
echidnabot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
rhodibot (RSR compliance) advisory 🟢 clean 0 0 0 0 — same commit (no revision comparison)
panicbot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
sustainabot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
glambot (presentation quality) advisory 🔵 minor 0 0 0 8 — same commit (no revision comparison)
seambot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
finishingbot (release readiness) advisory 🔴 high 0 9 5 0 — same commit (no revision comparison)
cipherbot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
accessibilitybot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
Hypatia scan: 4 finding(s)
  • 4 further finding(s) in files this change does not touch: reported, not graded (0 critical, 3 high).
panic-attack assail: 20 finding(s)
  • 20 further finding(s) in files this change does not touch: reported, not graded (0 critical, 2 high).
pons asinorum: 9 finding(s)
  • 9 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
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
rhodibot (RSR compliance): 11 finding(s)
  • 11 further finding(s) in files this change does not touch: reported, not graded (0 critical, 10 high).
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
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)
glambot (presentation quality): 100 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 — docs/architecture/REPOSITORY-MAP.adoc:26 — Line 81 characters exceeds max length of 80.
  • info VIS-005 — docs/theory/UNIVERSAL-DECODER.adoc:54 — Line 82 characters exceeds max length of 80.
  • info VIS-005 — docs/status/ROADMAP.adoc:28 — Line 81 characters exceeds max length of 80.
  • 92 further finding(s) in files this change does not touch: reported, not graded (0 critical, 2 high).
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
finishingbot (release readiness): 185 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 128 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
  • 171 further finding(s) in files this change does not touch: reported, not graded (0 critical, 4 high).
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
  • ⚪ not applicable: template default: enrol once the repository implements cryptography
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
  • ⚪ not applicable: template default: enrol once the repository serves HTML

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 24, 2026 23:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T23:58:22.405708Z 9913e47 New commits
🔒 Security Review ✅ Completed 2026-11-25T00:02:31.860042Z 9913e47 New commits
ℹ️ 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: c43e4d5267

ℹ️ 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".

Comment thread scripts/atoma-word-proof-gate.sh Resolved
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 0ade0c1 into main Nov 25, 2026
54 checks passed
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