Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ sync_report*.txt
# Hypatia scan cache (local-only)
.hypatia/
.zig-cache/
zig-out/
target/
node_modules/
_build/
Expand Down Expand Up @@ -142,5 +143,9 @@ verification/proofs/coq/*.vos
verification/proofs/coq/*.glob
verification/proofs/coq/.*.aux
# Agda compiled proof artifacts
*.agdai
verification/proofs/agda/*.agdai


# Generated VC queries (regenerated by `atoma vc`; never commit)
examples/atoma/frame-v1/vc/.gen/
1 change: 1 addition & 0 deletions .machine_readable/root-allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ tests/
?archetypes/ # template-only variation seam (ADR-0003); `just repo-init` removes it from minted repos
?.devcontainer/ # VS Code dev container spec; present only where the container capability is declared
?sonar-project.properties # only where the repo is analysed by SonarCloud
?tools/ # untrusted tool sources (CLIs, generators), outside the TCB; the trusted tree is src/
?benches/ # Cargo-conventional at package root
?examples/ # Cargo-conventional at package root
?features/ # optional feature packs
Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@ The format is based on https://keepachangelog.com/en/1.1.0/[Keep a
Changelog], and this project adheres to
https://semver.org/spec/v2.0.0.html[Semantic Versioning].

=== Atoma — Phase 0 (unreleased, 2026-10-22)

The first executable slice of Atoma: a worked example whose Phase 0 gate runs end
to end, plus the plan for the phases after it.

==== Added

* `examples/atoma/frame-v1/` — the length-prefixed, CRC-protected frame parsed in
place: Idris2 ABI (Face A), Zig implementation, extracted contract (Face B), a
compiler-witnessed layout table over four ABI target classes, and `verify.sh`,
which runs gates G1–G11 and writes `witness/phase0.receipt.json`.
* `tools/atoma/` — the CLI: canonicalisation, hashing, contract extraction from
Zig doc comments, the subset checker (`E-*` diagnostics) and the VC generator.
Untrusted by construction; the trusted encoder is Idris2.
* `verification/atoma/agda/` — `Bv`, `Lin`, `Core`, `Soundness`: the soundness
theorem for the store-free core, checked under `--safe --without-K` with no
postulates and no termination pragmas.
* `docs/plan/ULTRAPLAN.adoc` — the delivery plan: 40 task cards, gates G12–G15,
and the trap table.

==== Changed

* The VC generator is Zig, not Python (`atoma vc`). `vc/gen_vcs.py` is deleted.
G7 regenerates the 14 queries, refuses a contract that drifted (the query set is
pinned to five canonical facts through `--cspec`) and compares each solver
verdict with the reviewed table `vc/expected.tsv`. The artefacts are now
hand-readable SMT-LIB rather than z3 `sexpr()` dumps, so the VC-set digest moved
to `blake3:dec3d833…9ce35d`; the obligations and all 14 verdicts (8 unsat,
6 sat) are unchanged.
* `.machine_readable/root-allow.txt` — `tools/` is an optional root entry:
untrusted tool sources, outside the TCB. The trusted tree stays under `src/`.

=== [Unreleased]

==== Fixed
Expand Down
47 changes: 36 additions & 11 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,17 +1,42 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "{{AUTHOR_LAST}}"
given-names: "{{AUTHOR_FIRST}}"
orcid: "https://orcid.org/{{AUTHOR_ORCID}}"
title: "{{PROJECT_NAME}}"
version: 0.1.0
date-released: "{{CURRENT_DATE}}"
url: "https://{{FORGE}}/{{OWNER}}/{{REPO}}"
repository-code: "https://{{FORGE}}/{{OWNER}}/{{REPO}}"
- family-names: "Jewell"
given-names: "Jonathan D.A."
website: "https://github.com/hyperpolymath"
title: "Atoma"
abstract: >-
Atoma is a verification toolchain for Zig at the Idris2 ABI seam. It takes the
contract a repository already declares in Idris2 and the contract its Zig
export fn already documents, canonicalises both into one hash-checked Core
Spec IR, checks the implementation against a deliberately small verifiable
subset of Zig, and derives SMT verification conditions from the result. The
shape is Ada/SPARK or Rust/Creusot: one name for the subset, the contracts and
the toolchain. Witnesses are intended to be exported as canonical Dedukti and
rechecked by coqchk and lean4checker before any claim is promoted from
INCOMPLETE (Warrant) to COMPLETE (Receipt). Status: Phase 0/1 - the seam,
layout, subset and VC gates run and the soundness theorem typechecks for a
store-free core fragment; the kernel chain is specified, not yet run.
version: "0.1.0"
date-released: "2026-10-22"
url: "https://github.com/hyperpolymath/atoma"
repository-code: "https://github.com/hyperpolymath/atoma"
license: MPL-2.0
keywords:
- "rsr"
- "atoma"
- "zig"
- "idris2"
- "agda"
- "formal-verification"
- "neurosymbolic"
- "provenance"
- "formal-methods"
- "dependent-types"
- "qtt"
- "contracts"
- "ffi"
- "c-abi"
- "smt-lib"
- "z3"
- "dedukti"
- "proof-carrying-code"
- "coq"
- "lean4"
3 changes: 3 additions & 0 deletions docs/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and CI fails if it goes stale, so prefer it over any hand-written listing.
* link:onboarding/QUICKSTART-MAINTAINER.adoc[QUICKSTART-MAINTAINER] — maintaining one.
* link:AI_INSTALLATION_GUIDE.adoc[AI_INSTALLATION_GUIDE] — for an AI agent instantiating the template.
* link:EXPLAINME.adoc[EXPLAINME] — how the pieces actually work.
* link:plan/ULTRAPLAN.adoc[ULTRAPLAN] — what to do next, in what order, with the
acceptance command for every task. Read this before picking up work.

== The tracks

Expand All @@ -27,6 +29,7 @@ and CI fails if it goes stale, so prefer it over any hand-written listing.
| `governance/` | Governance model, maintenance checklist, development approach, audits, planning.
| `legal/` | Licence exhibits.
| `onboarding/` | Quickstarts and the LLM warm-up documents.
| `plan/` | The ultraplan: milestones, task cards, gates and blocked work.
| `practice/` | Operational and implementation material, incl. AI conventions.
| `proposals/` | Proposals and RFCs, including the root-cleanup proposal this layout came from.
| `reports/` | Generated and periodic reports (audit, compliance, security, ...).
Expand Down
5 changes: 4 additions & 1 deletion docs/architecture/REPOSITORY-MAP.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ predecessors did.
| yes
| -

| `tools/`
| optional
| untrusted tool sources (CLIs, generators), outside the TCB; the trusted tree is src/

| `verification/`
| optional
| proofs; only where formal-proofs is declared
Expand Down Expand Up @@ -237,7 +241,6 @@ your own repo - but do not read their emptiness as neglect here.
| `docs/whitepapers/academic/`
| `docs/whitepapers/industry/`
| `docs/whitepapers/outreach/`
| `examples/`
| `features/boj-server/`
| `features/panic-attacker/`
| `src/aspects/`
Expand Down
Loading
Loading