Repository navigation
Atoma: Phase 0 gates, extract/check frontend, Agda soundness for the store-free core, spec + ultraplan - #1
Conversation
…undness (store-free core) - tools/atoma: std.zig.Ast frontend (extract doc-comment contracts, subset check with 21 E-* codes), src-hash command, canonicaliser + mutation ops - examples/atoma/frame-v1: verified frame parser (11 tests, 4 targets), Face A/B .cspec at the same seam hash, 14 discharged VCs, negative corpus (20 diagnostics / 17 codes), verify.sh gates G1-G11 + receipt - verification/atoma: Bv/Lin/Core/Soundness under agda --safe --without-K; the adequacy theorem for the store-free core fragment, with the refinement gap stated as a non-claim - docs/spec: specification v0.1 with the claims ledger, soundness statement, worked example, roadmap with falsifiers, and reproduction appendix Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
- canon.zig: a test that the four BLAKE3 domains (spec, vc, dk, src) separate - verify.sh: derive the tool test count from `zig test` instead of hard-coding it, so the receipt cannot claim a stale number - spec: §3.5 status note separating the two obligations the metatheory covers from the eight that are solver-discharged but argued, plus section-reference and numbering repairs (the claims ledger is now unnumbered front matter, so the printed numbers match the §-references throughout) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Replaces the template placeholders with Atoma's identity: title, abstract (with the honest Phase 0/1 status), release date, url, MPL-2.0, and 17 keywords that mirror the GitHub topics (zig, idris2, agda, formal-verification, qtt, ffi, c-abi, smt-lib, z3, dedukti, proof-carrying-code, coq, lean4, ...). GitHub renders this file as "Cite this repository", so the About text has a versioned home in the tree rather than only in repository settings. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…eople docs/plan/ULTRAPLAN.adoc: milestones A/K/T/S/C/H, 40 task cards with an acceptance command, a falsifier and an honest blocker each; gate table G1-G15 plus F0.1; environment recipes for a cold sandbox and the estate; the traps already paid for; definitions of done; a deviations log; risk register; eight open questions with defaults. Written to be followed, not admired: - every task names the command whose exit status decides, and the observation that would show the command passed for the wrong reason - blocked tasks say what unblocks them and refuse a stub (I4 depends on it) - the four structural gaps are named: identity (88 files still carry template tokens), kernel chain, theory width, estate conformance - §15 records 26 measured failures so they are not paid for twice Also: docs/README.adoc gains the plan/ row and a start-here link; docs/spec/README.adoc and the spec's repository map point at it; REPOSITORY-MAP.adoc regenerated (tools/ is no longer empty, examples/ exists). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Codex Review SummaryThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 52
✨ Finishing Touches
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 |
|
🟢 conformant · commit
Scope: K9 components L0–L2 against contract v1.0.0 at the named standards commit. L3 signature verification and routed coordination-dialect files are not certified. Green is limited to this scope. Orange is missing evidence; yellow is grandfathered debt or warnings; grey is an explicit scope exclusion. report.json, badge.json and the validator logs are in the k9-grid artifact on the linked run. |
|
|
||
| pub fn castsAround(p: *u8) void { | ||
| // E-PTR-CAST | ||
| const q: *u8 = @ptrCast(p); |
|
|
||
| const banned_builtins = [_]BannedBuiltin{ | ||
| .{ .text = "@ptrFromInt", .code = "E-PTR-INT" }, | ||
| .{ .text = "@ptrCast", .code = "E-PTR-CAST" }, |
| const banned_builtins = [_]BannedBuiltin{ | ||
| .{ .text = "@ptrFromInt", .code = "E-PTR-INT" }, | ||
| .{ .text = "@ptrCast", .code = "E-PTR-CAST" }, | ||
| .{ .text = "@alignCast", .code = "E-PTR-CAST" }, |
|
🟣 critical · commit
Hypatia scan: 15 finding(s)
panic-attack assail: 11 finding(s)
Scope: static findings reported by each row's tool at the named commit. Purple, red, yellow and blue grade the worst 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. |
The estate bans Python, and `vc/gen_vcs.py` was the only Python in the gate path. It is replaced by `atoma vc` (tools/atoma/src/vc.zig): the same 14 obligations, emitted as hand-readable SMT-LIB instead of z3 `sexpr()` dumps, byte-stable, and with no dependencies beyond the tool itself. The port is not a transliteration, and it fixes a real weakness: * the query set is now pinned to the contract — `--cspec` canonicalises it and refuses to emit anything unless the five facts the queries encode are still present verbatim (`checkContract`). G7 exercises that refusal with a drifted contract, so the binding cannot be vacuous; * the reviewed verdict table `vc/expected.tsv` is the oracle: G7 diffs it against the generator's manifest, runs z3 on the freshly generated queries and fails on any disagreement; * a committed `.smt2` the generator would not reproduce is a hard failure, so a hand-edited artefact cannot survive; * `atoma vc` gained 5 tests (20 tool tests now), and z3 is invoked directly — its exit code is 0 for both sat and unsat, so the verdict is parsed from stdout. The VC-set digest moves from blake3:72c74c01…5e3698 to blake3:dec3d833…9ce35d because the serialisation changed; the obligations, the 8-unsat/6-sat split and every verdict are unchanged. ULTRAPLAN A6 recorded byte-identity as its acceptance criterion; that was unachievable without reproducing the dump, which A6's own falsifier forbids, so the card now records what actually happened instead of being quietly rewritten. Also in this commit: * `.machine_readable/root-allow.txt`: `tools/` is an optional root entry — untrusted tool sources, outside the TCB; the trusted tree stays under `src/`. This is the step that was failing `Estate Rules`. * `docs/architecture/REPOSITORY-MAP.adoc` regenerated (byte-identical across locales; the freshness check passes). * spec, frame-v1 README, CHANGELOG and the plan updated to match, with the stale section references corrected and the receipt regenerated (status INCOMPLETE / Warrant, unchanged). Local gate status: G1–G11 pass; root-shape, no-md-in-docs, no-vlang, no-a2ml pass; all 164 tracked .adoc files render with no warnings. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
GitHub repository metadata is part of the project's public description, so it belongs in the tree rather than in a chat log. `scripts/set-repo-metadata.sh` carries the description (215 characters) and exactly 20 topics — the 7 that nearly every hyperpolymath repository carries, then 13 specific to Atoma — and validates them against GitHub's rules (lowercase, hyphens, <= 50 characters, exactly 20) before spending an API call. The application token here is contents-scoped, so `PATCH /repos/...` returns 403. The script is therefore a maintainer action, not a gate: it exits 1 with the `gh auth refresh -s administration` hint. `--dry-run` prints both payloads, which is how the wording was reviewed. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Lands the Atoma Phase 0/1 work: the toolchain, the worked example, the metatheory, the specification and the ultraplan.
What is in it
tools/atoma— CLI (canon,hash,vc-hash,dk-hash,src-hash,extract,check,equiv,mutate,ops,selftest), 15 tests.frontend.zigextracts contract directives fromstd.zig.Astdoc comments and scans the subset with 21E-*codes.examples/atoma/frame-v1— the worked example: verified frame parser (11 tests, 4 target classes), 60 compiler-witnessed layout rows, two contract faces at one seam digest, 14 SMT obligations, negative corpus, andverify.shrunning gates G1–G11 into a JCS receipt.verification/atoma—Bv,Lin,Core,Soundnessunderagda --safe --without-K. The adequacy theorem for the store-free core fragment, plusunguarded-not-valid, whose witness (λ _ → 0) is the same model z3 returns forV1_needle_drop_requires.docs/spec/ATOMA-SPEC.adoc— the specification: Core Spec IR, two faces, subset, semantics, VC→certificate pipeline, worked example, roadmap, claims ledger.docs/plan/ULTRAPLAN.adoc— 40 task cards with acceptance commands, falsifiers and honest blockers.Gate evidence (
./verify.sh, exit 0)What this does not claim
.dkexists; nothing has passeddkcheck,coqchkorlean4checker. The receipt'sstatus_classisWarrantand must stay so.abi/FrameAbi.idris normative text and has never been typechecked (F0.1, blocked onidris2).vctosafe— two Agda functions. The step to a compiled Zig function is reviewed, not proved (non-claim N3).atoma checkis a token scan, not a type checker.The claims ledger in the spec states all of this row by row, and
docs/plan/ULTRAPLAN.adocsays what unblocks each item.Summary by CodeRabbit