Repository navigation
W0: ADR 0002 (D152), ultraplan, repo deed, and four gates that could not fail - #73
Conversation
…gates that could not fail Closes #68 by recording owner ruling D152 (reconciliation stops where a change would alter meaning; report, never normalise silently) as docs/decisions/0002-reconciliation-boundary.adoc, and answering the two questions blocky-writer asked: the boundary is now written down, and the docmatrix#70 safety model is a requirement here, not an implementation. docs/proposals/ULTRAPLAN-2026-10-27.adoc is the measured census of this repository (392 files, 118 retired-format A2ML, 0 deed, 0 lines of reconciliation code, 11 workflows red on main, ABI and FFI naming different symbols), the repository's own inconsistencies read as the first fixture corpus, an aspect-oriented analysis, the constraint-propagation design under which D152 is a property of the solver, the role of each estate tool as measured on its clone (VeriSimDB, VCL-UT, squeakwell, pons-asinorum, invariant-path, trope-checker, echo-types, blocky-writer/docmatrix, docudactyl), the proof obligations mapped per PROOF-POLICY, waves gated by experiments, and the decisions put to the owner. docs/status/ROADMAP.adoc replaces the template placeholder ("YOUR Template Repo Roadmap") with milestones mirroring STATE.a2ml and the evidence each needs. tests/aspect_tests.sh: the Idris2 check grepped src/abi/, which does not exist here, so it could never fail; the Coq/Lean check matched prose in verification/proofs/README.adoc and the header comment of TypeSafety.v, so it always failed. Both now scan git-tracked proof sources with comments stripped (ported from rsr-template-repo). Verified: clean run passes 3/3; a planted believe_me and a planted Admitted are both caught. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01J4QvDfmD7HiQBt2GX3aYUv
|
Caution Review failedThe pull request is closed. 📝 Summary
Merge Risk:
|
|
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 050a797735
ℹ️ 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".
| xargs -0 -r perl -0777 -ne ' | ||
| my $f = $ARGV; my $s = $_; | ||
| $s =~ s/\{-.*?-\}/ /gs; $s =~ s/\|\|\|[^\n]*//g; $s =~ s/--[^\n]*//g; | ||
| print "$f: $1\n" while $s =~ /\b(really_believe_me|believe_me|assert_total)\b/g; | ||
| ' || true) |
There was a problem hiding this comment.
Fail when the Perl scanner is unavailable
When this test runs in the repository's documented dev container, which installs Bash and Git but not Perl, xargs cannot launch perl; the trailing || true then converts that scanner failure into an empty result, so both dangerous-pattern checks report PASS without examining any files. Provision Perl or distinguish scanner errors from a successful scan rather than suppressing the pipeline status.
Useful? React with 👍 / 👎.
| |Zig FFI exports |10 |`grep -c 'export fn' src/interface/ffi/src/main.zig` | ||
| |Zig tests |3 inline + 1 placeholder |`main.zig`, `test/integration_test.zig` | ||
| |Proof obligations done |0 of 7 |`docs/status/PROOF-STATUS.adoc` | ||
| |Commits |53 (39 owner, 10 dependabot, 4 coderabbit) |`git shortlog -sn --all` |
There was a problem hiding this comment.
Re-run the history census from a complete clone
This count is not reproducible from the specified base or reviewed commit: the parent already has 74 commits with 60 attributed to the owner, while this commit has 75 total (60 owner, 10 Dependabot, 4 Coderabbit, and 1 Codex), rather than 53 total and 39 owner. This appears to have been measured from truncated history, so the plan's attribution baseline and any conclusions based on it should be recomputed from a complete clone or explicitly labeled as shallow-clone data.
Useful? React with 👍 / 👎.
| DANGEROUS_PROOF=$(git ls-files -z -- 'src/*.v' 'verification/*.v' 'src/*.lean' 'verification/*.lean' \ | ||
| 'src/*.hs' 'verification/*.hs' 'src/*.ml' 'verification/*.ml' 2>/dev/null | |
There was a problem hiding this comment.
Include ReScript files in the dangerous-pattern scan
When a tracked ReScript source introduces Obj.magic, this new file selection never passes it to the scanner because it includes .ml but not .res. That regresses the previous recursive scan and contradicts docs/status/PROOF-NEEDS.adoc, which explicitly bans Obj.magic for OCaml/ReScript, so the aspect test can report PASS while a prohibited escape hatch is present.
Useful? React with 👍 / 👎.
| * A *fact slot* is a variable `x_f` for a fact `f` (canonical name, purpose sentence, licence, status, completion, each exported symbol, each link target, each contributor credit on each file, spelling policy). | ||
| * The *domain* of `x_f` is the finite set of observed values `{(v, surface, span, sha256(surface))}`. The domain is never widened by the tool. | ||
| * A *constraint* is a relation over slots: equality through a declared comparison map (`agree_modulo(nfc ∘ casefold)`), existence (`link target ∈ filesystem`), bijection (`idris_exports ≅ zig_exports`), order (`completion ≤ evidence_count/required_count`), or absence of path (attribution locality). | ||
| * An *authority* is a designated surface for a slot: the deed for identity, the filesystem for paths, the licence policy for SPDX, `git log` for authorship. Authorities come from the deed's `(anchor)` clause, never from the tool. |
There was a problem hiding this comment.
Keep git history out of the edit-authority set
Designating git log as an authority for authorship conflicts with both the outcome rule below—every disagreement with an authority becomes a proposal—and corpus row 7, which says attribution changes must always remain findings because they alter meaning. With this model, an implementation would be directed to propose rewriting credit to match commit authors despite the ADR's boundary; git history should be modeled as evidence rather than edit authority, or attribution needs an explicit no-proposal outcome.
Useful? React with 👍 / 👎.
| === M0 — RSR scaffolding (100%) | ||
| * [x] CI/CD, AI manifests, governance, container packaging instantiated. | ||
| * [ ] Scaffolding *honest*: 11 workflows red on `main` as of 2026-10-25, K9 |
There was a problem hiding this comment.
Do not mark M0 complete while its gates are failing
The roadmap defines a milestone as complete only when the named gates pass, but marks M0 as 100% while its own unchecked item records 11 red workflows, failing K9 validation, placeholders, and dangling references. This makes the new evidence-backed status internally inconsistent; either the unresolved honesty work must be outside M0 or the milestone percentage must remain incomplete until those gates pass.
Useful? React with 👍 / 👎.
| if ($f =~ /\.lean$/) { $s =~ s{/-.*?-/}{ }gs; $s =~ s/--[^\n]*//g } | ||
| if ($f =~ /\.hs$/) { $s =~ s/\{-.*?-\}/ /gs; $s =~ s/--[^\n]*//g } | ||
| print "$f: $1\n" while $s =~ /\b(Admitted|sorry|unsafeCoerce|Obj\.magic)\b/g; |
There was a problem hiding this comment.
Parse comment delimiters without treating strings as comments
When a valid Haskell line contains a string such as "--" before a prohibited call—for example, bad x = "--" seq U.unsafeCoerce x—the substitution treats the delimiter inside the string as a line comment and deletes the rest of the line, including unsafeCoerce. The same lexical problem affects Lean and Idris strings, allowing the aspect test to report PASS for real escape-hatch uses; comment removal needs to be string-aware or delegated to a language-aware scanner.
Useful? React with 👍 / 👎.
|
Add Carrot credits or activate Agent usage billing to use Autofix |
… seam aligned (#74) ## Summary Wave 0 of `docs/proposals/ULTRAPLAN-2026-10-27.adoc` (merged in #73), as the owner chose via the selector on 2026-10-27: hand-authored repo deed, the proof gate that can fail, the K9 fix that unblocks the Dogfood Gate, and the ABI/FFI seam aligned under a real contract check. #73 merged before these four commits were pushed, so they are rebased onto `main` here as a fresh PR. Four commits, each independently reviewable and each with the gate it touches watched failing first. No reconciliation code. ## Changes 1. **`.machine_readable/self-validating/methodology-guard.k9.ncl`** — ported from the template with identity filled; had no `K9!` line or pedigree, which is why the "Validate K9 contracts" check was red on #73 and on `main`. `validate-k9.sh`: 2 errors → 0. 2. **`scripts/check-proofs.sh`, `scripts/scan-dangerous.sh`, `build/just/proofs.just`, four `MANIFEST`s, `lean-toolchain`** — verbatim template ports. A missing toolchain is fatal, not a skip. MANIFESTs list every module `gated` and say in their header that nothing was ground-truthed here. 3. **`recon-silly-ation_chora.deed`** — hand-authored from the mapping specs (no converter, D313), lints OK with `deed_lint.js`. Non-verbatim values commented in place: derived uuid; `:born "2026-06-21"` from the GitHub API (CLADE.a2ml carries the template's date); ecosystem written fresh (the A2ML one still describes the template); anchor drops four dangling file references; `:secondary (gv)` verbatim and flagged; rsr-profile declares only capabilities with code in tree. `scripts/deed-field.sh` ported; deed added to `root-allow.txt`. A2ML files left in place, frozen. 4. **`src/interface/Abi/{Types,Foreign}.idr`** — bound to `recon_silly_ation_*` in `librecon_silly_ation` (was `rsr_*` in `librsr`, which nothing builds); `Result` now five cases in the Zig enum's order with a round-trip lemma; `process` no longer treats 0 as failure. **Aspect 3** in `tests/aspect_tests.sh` is now a real ABI/FFI contract check: FAIL on the old seam (4 unbound symbols, wrong lib), PASS after. The ultraplan gains corpus row 12 (CLADE born date). ## RSR Quality Checklist ### Required - [x] Tests pass — every local gate green on the rebased head: aspect 5/5, root-shape, validate-k9 0 errors, validate-a2ml 0 errors, scan-dangerous clean, deed_lint OK. `just test` (`zig build test`) not run: no Zig here; no Zig file changed. - [x] Code formatted (shell `bash -n` clean; deed linted) - [x] Linter clean - [x] No banned language patterns - [x] No `unsafe` - [x] No banned functions — `scan-dangerous.sh` and Aspect 2 both watched catching a planted `believe_me`/`Admitted` - [x] SPDX headers on all new files - [x] No secrets ### As Applicable - [ ] `STATE.a2ml` — frozen (never add a fact to A2ML); state now lives in the deed and `ROADMAP.adoc` - [x] Documentation updated (ultraplan row 12) - [ ] CHANGELOG — not updated (no release) - [x] ABI/FFI changes validated — by name, via Aspect 3. **Not compiled:** no Idris2 here or in CI. If the owner would rather not merge uncompiled Idris2, the last commit (`01c802f`) can be dropped on its own; the contract check in it would then fail on `main`, which is the honest state. ## Testing ``` bash tests/aspect_tests.sh # PASS=5 FAIL=0 WARN=1 (5 FFI exports unbound by ABI, by design) bash .github/hooks/validate-k9.sh # 10 files, 0 errors (main: 2 errors) bash scripts/check-proofs.sh idris2 # exit 1: "'idris2' not found on PATH. This is deliberately fatal." bash scripts/scan-dangerous.sh # PASS; FAIL on planted believe_me bun standards/1-formats/deed/tools/deed_lint.js recon-silly-ation_chora.deed # OK bash scripts/deed-field.sh recon-silly-ation_chora.deed agentic/integrity allow-silent-skip # false bash scripts/check-root-shape.sh . # PASS (39 entries, 50 permitted) ``` Not verified: Idris2, Zig, Agda, Lean, Rocq (none installed). CI has no prover either; wiring one is W3 E3. --- _Generated by [Claude Code](https://claude.ai/code/session_01J4QvDfmD7HiQBt2GX3aYUv)_ --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
…art; add session handover (#75) ## Summary Seven workflows were red on `main` (`95f8b33`), all from before the 2026-10-27 session. Five never started: GitHub rejected them with zero jobs because this repository runs the actions lockfile and they called `hyperpolymath/standards` reusable workflows the lock cannot cover. This re-adopts rsr-template-repo's current inline, SHA-pinned versions, fixes the Well-Known check that looked in the wrong directory, rebuilds `actions.lock`, and adds the session handover so nothing from the session lives only in chat. ## Changes - **governance, hypatia-scan, mirror, secret-scanner, static-analysis-gate, scorecard, release** — verbatim from rsr-template-repo, which replaced every cross-repo reusable call with inline jobs. `release.yml` now uses `actions/attest-build-provenance` in place of the SLSA generator's reusable workflow (same startup-failure class; it only runs on tags). - **`wellknown-enforcement.yml` → `dot-wellknown-enforcement.yml`** — the old one checked `.well-known/security.txt` at the root after #56 moved it to `www/.well-known/`. The template's replacement checks `www/.well-known/` first; `scripts/migrate-wellknown-to-www.sh`, which it names, is included. - **`.github/workflows/actions.lock`** — rebuilt, both the `workflows:` and `dependencies:` sections: entries for the replaced files from the template's generated lock (byte-identical files), the rest kept; dependency records for exactly the refs now used plus their transitive `uses`. Two lines of Dependabot drift corrected (`smtp-notify-action` v0.3.0→v0.5.0, `upload-artifact` v7.0.1→v7.0.2). - **`www/.well-known/security.txt`** — `Policy:` pointed at `SECURITY.md`, which does not exist; now `SECURITY.adoc`. - **`docs/status/HANDOVER-2026-10-27.adoc`** — what landed in #73/#74/this PR, the owner's D-1..D-4 decisions, what is and is not true (no proof compiled, no reconciliation code), open items, where to start. Linked from `ROADMAP.adoc`. ## RSR Quality Checklist ### Required - [x] Tests pass — aspect 5/5, root shape, K9 0 errors, `validate_workflows_test.sh` PASS - [x] Code is formatted — workflows and lock parse with `yq` - [x] Linter is clean — see lock verification below - [x] No banned language patterns - [x] No `unsafe` blocks - [x] No banned functions - [x] SPDX headers present on all new/modified files - [x] No secrets — no workflow added or changed reads a secret ### As Applicable - [ ] `STATE.a2ml` — frozen; state lives in the deed and `ROADMAP.adoc` - [x] Documentation updated (handover, roadmap link) - [ ] CHANGELOG — not updated (no release) - [ ] ABI/FFI — not touched ## Testing ``` # every uses: in every workflow is locked under that workflow, and every lock line is used exact match both ways # every SHA-keyed dependency record's commit equals its key ok (9 of 9) yq '.' on all workflows and actions.lock # all parse grep for cross-repo reusable workflow calls # none bash tests/aspect_tests.sh # PASS=5 FAIL=0 WARN=1 bash .github/hooks/validate-k9.sh # 0 errors bash tests/workflows/validate_workflows_test.sh # PASSED security.txt: 65 days to expiry; security.txt, ai.txt, humans.txt all in www/.well-known/ ``` Not verified locally: `gh actions-lock --verify-local` (gh is not authenticated in this session). The Workflow Security Linter runs it on this PR and is the authority on the lock. --- _Generated by [Claude Code](https://claude.ai/code/session_01J4QvDfmD7HiQBt2GX3aYUv)_ --------- Signed-off-by: Jonathan D.A. Jewell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>



Summary
Closes #68 by recording owner ruling D152 as an ADR. Adds the measured ultraplan, then executes its Wave 0 (hygiene) as the owner chose via the selector on 2026-10-27: hand-authored repo deed, the proof gate that can fail, the K9 fix that unblocks the Dogfood Gate, and the ABI/FFI seam aligned under a real contract check.
Five commits, each independently reviewable and each with the gate it touches watched failing first. No reconciliation code is in this PR.
Changes
docs/decisions/0002-reconciliation-boundary.adoc— D152 verbatim, made operational (compare through a normalising map, never replace a surface with its normal form; propose only along a declared authority). Answers blocky-writer: clause 4 (never silently normalise) - where does reconciliation end? #68's two questions.docs/proposals/ULTRAPLAN-2026-10-27.adoc— census, the repo's own 12 inconsistencies as the first fixture corpus, aspect analysis, constraint-propagation design, what each estate tool implements today (VeriSimDB, VCL-UT, squeakwell, pons, invariant-path, trope-checker, echo-types, blocky-writer/docmatrix, docudactyl), proof obligations per PROOF-POLICY, waves gated by experiments.docs/status/ROADMAP.adocreplaces the template placeholder.tests/aspect_tests.shAspect 2 fixed (grepped an absent dir; matched its own prose)..machine_readable/self-validating/methodology-guard.k9.ncl— ported from the template with identity filled; had noK9!line or pedigree, which is why Dogfood Gate was red.validate-k9.sh: 2 errors → 0.scripts/check-proofs.sh,scripts/scan-dangerous.sh,build/just/proofs.just, fourMANIFESTs — verbatim template ports. Missing toolchain is fatal, not a skip. MANIFESTs list every modulegatedand say in their header that nothing was ground-truthed here.recon-silly-ation_chora.deed— hand-authored from the mapping specs (no converter, D313), lints OK withdeed_lint.js. Non-verbatim values commented in place: derived uuid;:born "2026-06-21"from the GitHub API (CLADE.a2ml carries the template's date); ecosystem written fresh (the A2ML one still describes the template); anchor drops four dangling file references;:secondary (gv)verbatim and flagged; rsr-profile declares only capabilities with code in tree.scripts/deed-field.shported; deed added toroot-allow.txt. A2ML files left in place, frozen.src/interface/Abi/{Types,Foreign}.idr— bound torecon_silly_ation_*inlibrecon_silly_ation(wasrsr_*inlibrsr, which nothing builds);Resultnow five cases in the Zig enum's order with a round-trip lemma;processno longer treats 0 as failure. Aspect 3 is now a real ABI/FFI contract check: FAIL on the old seam (4 unbound symbols, wrong lib), PASS after.RSR Quality Checklist
Required
just test(zig build test) not run: no Zig here; no Zig file changed.bash -nclean; deed linted)unsafescan-dangerous.shand Aspect 2 both watched catching a plantedbelieve_me/AdmittedAs Applicable
STATE.a2ml— frozen (never add a fact to A2ML); state now lives in the deed andROADMAP.adoc21fb090) can be dropped on its own; the contract check in it would then fail onmain, which is the honest state.Testing
Not verified: Idris2, Zig, Agda, Lean, Rocq (none installed). CI has no prover either; wiring one (digest-pinned idris2-pack image, as trope-checker does) is W3 E3.
🤖 Generated with Claude Code
https://claude.ai/code/session_01J4QvDfmD7HiQBt2GX3aYUv