From 51677ca5c25a74a828761b3233be3b4c25143835 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 23:12:34 +0000 Subject: [PATCH 1/2] docs(proposals): complete the types/tropes upkeep verification The research run behind docs/proposals/types-tropes-estate-upkeep.adoc (#126) stopped after 10 of 80 verdicts. It has since finished: all 80 verdicts, a completeness critic and a portfolio synthesis. - Add types-tropes-estate-upkeep-portfolio.adoc: the verified, re-ranked portfolio, with each verifier's corrections applied and the struck candidates listed with reasons. Local paths are rewritten as owner/repo paths; the unreproduced 521-commit figure is qualified. - Update the findings-so-far proposal: a verification-outcome table (both verdicts and the fate of each of the 40 ideas), the verifiers' seventh principle (identity and authority bound every anchor), the re-ranked recommendations, and the resolved owner questions. No cure is built and no proof was rechecked. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDg4crr69SzX97Co3Qt --- .../types-tropes-estate-upkeep-portfolio.adoc | 812 ++++++++++++++++++ .../proposals/types-tropes-estate-upkeep.adoc | 122 ++- 2 files changed, 920 insertions(+), 14 deletions(-) create mode 100644 docs/proposals/types-tropes-estate-upkeep-portfolio.adoc diff --git a/docs/proposals/types-tropes-estate-upkeep-portfolio.adoc b/docs/proposals/types-tropes-estate-upkeep-portfolio.adoc new file mode 100644 index 00000000..43b1d676 --- /dev/null +++ b/docs/proposals/types-tropes-estate-upkeep-portfolio.adoc @@ -0,0 +1,812 @@ +// SPDX-License-Identifier: CC-BY-SA-4.0 +// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) += Types and tropes against estate upkeep: verified portfolio +:toc: preamble +:toclevels: 2 +:sectnums: +:icons: font + +Status: *findings, not ratified* (2026-11-30). This is the synthesis that +completes link:types-tropes-estate-upkeep.adoc[the findings-so-far proposal]: +all 80 verdicts (two lenses on each of 40 ideas) and a completeness critic +are now in. It was written by a synthesis agent from the verdicts and lightly +edited for publication. Paths of the form `owner/repo/path` name files in +other estate repositories at the commit cloned on 2026-11-24. Paths of the +form `findings/...` name the research notes and probe scripts on the branch +`claude/types-tropes-findings-interim` of this repository. + +[IMPORTANT] +==== +*Read this first.* + +* Nothing in this portfolio has been built. No cure here has been tested as a cure. +* The numbers come from two kinds of read-only work. Phase A measured the clones with probes. A verifying session then reran or rechecked many of those probes for each candidate. +* "PROVED" means a proof file exists and its home repository records it as checked. No prover was installed in any phase session, so no proof was re-run here. +* Engineering claims use the PROOF-POLICY §5 tokens. Only theory theorems carry `PWG-` grades. +* 40 candidates were judged under two lenses: grounding/soundness, and reality (prior art, effect, cost). +** 2 survived both lenses: closed-world pre-flight, and gates with both fibres inhabited. +** 7 survived one lens: template sync, footprint CI, bound references, reference monitors, call-site subsumption, rulings in force, migration certificate. +** 31 were refuted by both lenses. Each was either *demoted* to the smaller corrected form its verifiers named, or *struck* (§6). +* Every entry below already includes the verifiers' corrections. Where a corrected cure still has a refuted premise, it says so. +==== + +== The unifying picture + +The 40 candidates draw on many constructs: Echo fibres, residues, warrants, K-CUT-LOSS, lenses, cut orders and trope bearers. Once the verifiers had applied their corrections, the ideas that still carried weight came down to six principles. The verifiers had to add a seventh, because most of the type-level claims broke on it. + +P1. Absence is a value, never a pass:: +A check that did not run, a missing receipt, an empty required set and an unmeasured probe are all values of a third kind (`missing`, `NotRun`, `Undetermined`). They can only block. Proved instances: mathesis `Applied/Missing.agda` (`verdict-missing`, `verdict-not-yes`; APP-1 derived `PWG-2ii`), proven-cicd `Assurance/Verdict.idr` (`emptyCannotPass`, `neverStartedCannotPass`; a model for the stated cases only), standards `ReportBack.idr`. ++ +*Correction learned:* the set of expected checks must come from intent: declared capabilities plus what is detected in the tree. If it is taken from runs observed green, the theorem never fires. That is how the ci-gate profiles left out about 35 dead workflows. + +P2. A gate is a decision with both fibres inhabited:: +A check must hold one input it accepts and one planted violation it rejects, and it must reject that violation for the stated reason. A constant check fails that test. ++ +*Correction learned:* one witness rules out only a check that is constant everywhere. The real failure is blindness to part of a defect class: the invisible-character gate killed `\x00` and missed 5 of 6 classes. So the obligation is one control per declared class, run through the deployed job, and keyed to the gate hash *and* the toolchain digest. Canon already says this in prose (standards LANGUAGE-TESTING-STANDARDS R10.1 to R10.8). What is new is enforcing it mechanically. + +P3. Derive, do not copy; one writer per artefact:: +Locks, instruction blocks, generated views and template-owned files are projections of a source and should be regenerated, never hand-synced. ++ +The estate's own measurements show copying fails even for the tools that derive things: ++ +* `arrival-pack.ncl` exists in 25 variants across 65 copies; +* `check-lock-sync.sh` exists in 38 variants across 80 copies; +* of 45,854 child files at template-owned paths, 14,711 equal template HEAD, 12,582 equal an older template version, and 18,561 equal no version. ++ +*Correction learned:* the renderer itself must be read from the canon at a pin, not copied into each repo. + +P4. A reference must resolve, by sort and by reachability, under the consumer's semantics:: +Every reference must resolve to the right kind of object, reachable in the named repository, the way its consumer will read it. Mere existence is the wrong question. ++ +The decisive finding: three of the four surviving "phantom" canon pins are *git blob ids of the reusable workflow files themselves*, written where a commit id is required (15 references in 7 repos). The fourth, `5b1d0022`, names nothing. ++ +A fork-network SHA would pass a bare existence check (impostor commit), and a moved owner works only through a redirect. + +P5. A sweep is a fan-out and must be pre-flighted over the closed world:: +Before the first push, a sweep is replayed over local copies of every target and checked by every decidable gate, with a canary and a read-back of each default branch. ++ +Measured: in 303 of 410 sweeps, half the targets were reached within one hour, and 29,840 of 33,368 landings happened within 24 hours. Today nothing stands between a sweep and the fleet. + +P6. Status is derived from receipts by a pinned reader, never typed:: +This is the strongest idea in the theory repos (resource-algebra `Ledger.agda` `eff`; standards `readProofReceipt`; hypatia `proof-ledger.sh derive / render --check`; hvn-dehallucinator `check-proof-status.sh`). ++ +*Correction learned:* a derived status is only as honest as its *inputs*. Hand-written dependency edges, self-declared supports, agent-chosen grades and agent-chosen neighbours all let overclaim back in, one level down (see §6 on Trope IR, kappa, and the dependency meet). + +P7, added by the verifiers. The binding constraint is identity and authority, not types:: +Agents commit as the owner. In a census of 4,605 licence commits, 3,660 were authored as the owner. SR-011 and the agent signing key are new. ++ +So every proposed "anchor outside the agent's write set" (ApprovalSeal, sealed regions, deny lists, path claims, `MayEditLicence`) is at present *tamper-evident, not tamper-proof*. The existing `ci-gate-tamper-guard.yml` says this in its own documentation. ++ +Until agents have a principal of their own that the forge can tell apart, the type constructions constrain models, not the estate. + +=== The meta-findings behind the corrections + +Three meta-findings changed the ranking: + +. *Most mechanisms are prior art (ring 3).* GitHub's own workflow lockfiles, Dependabot lock regeneration, zizmor `impostor-commit`, actionlint, Copier/cruft, ucf, skip-duplicate-actions, merge queues, Lean `comparator`/SafeVerify, ESLint/Semgrep rule testers, Bazel and Nix action keys, Uber SubmitQueue, MCP Agent Mail leases, and in-toto/SLSA VSA all already exist. ++ +The estate's distinctive asset is not new theory. It is the measurements, plus a few narrow additions: blob-sort pins, binding receipts to gates, and negative fixtures as a merge gate in the canon. +. *Several headline premises were refuted by the estate's own records:* +** codeql-action v4.38.1 "was never broken". The start-up deaths came from `actions.lock` drift (standards #1093, triage docs). PIN-001 and the `actions-bump-holds.txt` hold still state the refuted cause. +** Dependabot workflow bumps without a lock update fell from 40 of 1,084 lock-touching (before 2026-10-12) to 741 of 759 (from 2026-10-19), once GitHub's lockfile support went GA. +** Licence churn is mostly owner-directed ruling waves. Of 872 flips, 555 commits in April and May were owner-authored. The March and June agent waves executed owner directives. +** The G1 parse-dead class went from 519 commits before 2026-10-01 to 2 after. +. *Unwired is the dominant state.* The estate already has the decider in many cases but has not wired it in: +** `check-mint-drift.sh` is invoked by no workflow; +** the arrival-pack `verify.sh` is wired in 2 of 65 repos; +** the proven-lock gate is used by 1 repo; +** the Coaptation core's 55 placeholder copies are gated in none. ++ +Doctrine 8 (wire first) is the most violated rule across this portfolio. + +== Ranked table + +Column notes: + +* *Effect* uses: prevents, cures, shrinks, detects, reduces. +* *Verification* records the two lenses' outcome, G = grounding, R = reality: ✔ survived, ✘ refuted. "Demoted" means both lenses refuted the original and the row is the verifiers' corrected residue. +* *Scope*: R = one repo, E = estate-wide, I = industry-wide. +* Denominators are given wherever the data has one. + +=== Primary ranking: elegance and correctness + +[cols="1,6,5,2,2,7,2,3,1",options="header"] +|=== +|# |Cure (corrected form) |Pain |Ring |Effect |Pain size (estate data, with denominators) |Effort |Verification |Scope + +|1 |*Gate admission: both fibres, per class.* A required context counts only with a current kill receipt (one control per declared defect class plus an empty-input mutant, run through the deployed job, keyed to gate hash plus toolchain digest). Add a lint for `continue-on-error` and `\|\| true` inside gate jobs, and a "gate never invoked" check. |Silent green, vacuous gates |2 |shrinks |845 commits in 304 repos say a gate never ran or matched (about 29 incidents behind the 400 G2 commits). 373 of 1,204 `check-*.sh` copies are named by no test; 109 are invoked by no workflow or justfile. 6 of 15 sampled `continue-on-error` uses sit on a gate's own toolchain step |days (template), weeks (registration rule) |G ✔ R ✔ |I + +|2 |*Closed-world pre-flight.* Before a canon or template tightening, and before every sweep, compute the breaking set B over all clones. Uncloned repos count as UNDECIDED. Report latent B (canon's G′) and realised B (each consumer's pinned gate). Then canary-merge and read back each default branch. |Gate and sweep regressions repaired per repo |3 |prevents (decidable, uniform wrong values) |canon 2.1.5 reddened every 2.1.2 to 2.1.4 instance. The 998-octet cap (standards #1473) left B ⊇ 24 deeds; its "additive" commit message was false on the corpus. Timeout-minutes sweep: about 140 to 200 repairs (not 350). 5b1d0022 repin: 49 repos |days |G ✔ R ✔ |E + +|3 |*Call-site validity for first-party reusable workflows.* Passed keys must be declared inputs; required inputs and secrets must be supplied; consumed outputs must exist. `request(callee@pin) ≤ grant(job)`, where a job block *replaces* the workflow-level block. Recurse into nested callees. Refuse or propose a widening inside the pin applier. |Zero-log startup_failure after a pin move |2 |prevents (via applier), detects (at pin) |376 of 1,794 call sites lack `actions: read` at canon HEAD; 16 invalid at their own pin. 175 of 208 Scorecard repairs were callers invalid from birth (+5/−1, pin kept) |days |G ✘ R ✔ |E + +|4 |*Sort- and reachability-aware reference resolver as a required gate.* Offline: `git cat-file -e ^{commit}` against a mirror. Online: zizmor `impostor-commit`, with "undecided" kept apart. Covers job-level reusable refs, which GitHub lockfiles do not. |Fabricated or wrong-sort pins |3 + one novel finding |detects at PR |290 pin-repair commits in 184 repos across 6 waves. 16 refs (4 ids) unresolved today: 15 are blob ids of the pinned files, 1 names nothing. 1,452 refs use the pre-move owner |days |demoted (G ✘ R ✘ as typed references) |E + +|5 |*Rulings in force at the canon.* A superseding ruling's negative fixture must flip, and every projection inside the canon must regenerate, before the canon PR merges. Render the instruction block from a canon register read at the repo's pin. Keep a retired-claims register mined from the history of `.claude/CLAUDE.md`. |Recorded but not in force; instruction drift |2 (narrow) |prevents in canon, detects downstream |b2eb1efa: 9-day lag. #655: about 20 to 25 days. 25d23cf3: 0. Root CLAUDE.md files: 125, with 7 Doctrine-section hashes (54 empty); 82 still mention `.a2ml` |weeks |G ✘ R ✔ |E + +|6 |*Template upgrade by replay and merge.* `base = replay(t,a)`, `theirs = child`, `ours = replay(t′,a)` (merge-tree is already in `chain-mint.sh`). GetPut test: a second upgrade is a no-op. Wire `check-mint-drift.sh` as an external required check. Refresh over closures of coupled paths. Never touch licence paths. |Template drift, fan-out repairs |3 |shrinks; prevents for future mints |By blob id, 491 of 9,662 fan-out fix commits were pure template propagation (lower bound; ceiling 78%). 12,582 exact stale copies, at least 451 of them licence texts (excluded). Exact lens applies to 12 repos with `(mint-answers)` |weeks (replayable), months (legacy) |G ✘ R ✔ |E + +|7 |*One-sided deletion certificate for A2ML retirement.* For each source atom: mapped (equal under the spec row's transform) or dropped by a typed spec-row reference. Span coverage per dialect. Semantic reader inventory. Implemented as the check mode of the planned P-2a translator; the result extends the existing removal record. |Metadata format migration |3 |diagnoses and gates (shrinks) |26,582 `.a2ml` in 371 repos; 1,851 in repos that have a chora deed. Pilot: about 48 in-scope pairs. ECOSYSTEM table covers 55 of 149 atoms; 5 of 12 files fully |weeks |G ✘ R ✔ |E + +|8 |*Footprint-keyed CI reuse, restricted.* Same-tree de-duplication for every gate. Footprint skip only for tree-only, hermetic gates run with the network off. A `CarriedRevision` case in `Verdict.idr`. Replace the 7 polling ci-gate sweeps with a carried status. |CI cost |3 (+ kernel case) |reduces |Median 22 job-instances per push or PR event. Of 10,907 push/PR jobs: about 32% side-effect jobs, about 21% whole-tree scanners, about 25 to 35% with a narrow footprint. About 20,160 ci-gate runs a month |weeks (pilot) |G ✘ R ✔ |E + +|9 |*One canon commit per repo, from the deed.* Every job-level standards SHA must equal the deed's canon-commit field, and its owner must equal the registry's current owner. In-repo, network-free check. The applier writes binder and literal together (ratchet-style comment). |Stale, mixed and moved canon pins |3 |prevents (in committed workflows) |1,794 job-level calls in 411 repos; 238 repos run reusables at 2 to 6 canon commits (0 repos pin one reusable at two commits: staleness, not clash). 1,450 old-owner call sites |days |G ✔ R ✘ |E + +|10 |*Rulesets as the monitor at the merge chokepoint.* Apply the existing zero-bypass `require-signed-commits.json` and `branch-floor.json`. Add one required context that refuses diffs touching licence carriers, `:repo-uuid` or new `.a2ml` unless an owner-key-signed approval is present. Managed or sandbox settings act as defence in depth only. |Prose rules that come back as incidents |3 |gates (prevents unapproved) |About 13,816 squash plus 594 merge of 15,363 default-branch commits since 2026-08-25 went through a PR. 1 deny list in 28 `.claude/settings` files. 375 rulesets disabled 2026-09-22 |days (pilot), weeks (estate) |G ✘ R ✔ |E + +|11 |*Adopt the GitHub lockfile as the single writer.* `gh actions-lock` writes; `--verify --json` is the required check; one-off relock of about 160 inconsistent locks; the proven-lock judge kept as a differential oracle and offline pre-sweep check. |Lock desync, hand writers |3 |prevents (step refs) |160 of 329 locks inconsistent at HEAD; 90 closure defects, 82 of them in the 225 repos with no lock gate. Forward repair rate about 3 to 5 commits a week |days |demoted |E + +|12 |*Required set from intent (finish A3) plus a workflow inventory invariant.* Every workflow file maps to an observation or a dated waiver. Reconcile kernel and A3 on the empty set, all-exempt and advisory not-run. Prove the general membership lemma. |Parse-dead and never-run workflows |3 + kernel |shrinks |521 parse-dead repair commits by one subject search (not reproduced: other queries give 359 to 1,111 commits; precision unchecked); lags of 44 and 117 days; 17 profiles name 120 of 442 workflow files; 294 of 424 repos have no required check |months |demoted |E + +|13 |*Parse and shape gate at the writer.* actionlint (or `github-actions-models`) at pre-commit and as a required check, one refused fixture per kind, an estate override list for scopes it does not know. The two-constructor Job type as the specification. |Missing-semicolon class |3 |detects at merge |About 390 of 522 parse-dead repairs catchable (sample of 110 commits). HEAD: 5 unparseable files, 14 duplicate-key files, 5 call jobs with `timeout-minutes` |days |demoted |I + +|14 |*Conflict-marker gate plus regenerate-never-merge for derived files.* Lexical `<<<<<<< `/`>>>>>>> ` pair check over all tracked files, allow-list for quoting documents. Retire `merge=union` and `merge=ours` drivers. |Committed conflict markers |3 |prevents |5 files in 4 repos at HEAD, including standards `docs/STANDARDS-CRITICAL-PATH.adoc` and formatrix-docs `Cargo.lock`. `merge=union` on `.adb/.ads/.zig/.idr` (trigger); `merge=ours` on `package-lock.json` (developer-ecosystem) |days |demoted |E + +|15 |*Proof-status adoption.* `check-proof-status.sh` (status token plus `path#fragment` exists) and `render --check` propagated to the 84 PROOF-STATUS repos. Flag-only lexical check for "verified" without a receipt. Dependency taint taken from prover cones, not hand edges. |Overclaim in status files |3 |detects |276 overclaim corrections in 122 repos; 335 vacuous-proof commits in 142 repos. 101 repos make a machine-verification claim in README or EXPLAINME; 8 carry a receipt deed |days to weeks |demoted |E + +|16 |*Statement binding for proofs.* Adopt Lean `comparator`/SafeVerify for Lean legs. Build an Agda/Idris2 analogue (frozen statements module, its hash in the receipt). Abstraction-mutant check. Diff touching gate execution closure → Unverified. |Laundered or vacuous proofs |3 + one build |shrinks |Specimens confirmed: kategoria `?portBound` in a listed module; gnpl axiom concluding `True`; idrisiser `renderPre = True`; overlay reflexive invariant |weeks |demoted |I +|=== + +Ranks 17 onward, all demoted, smaller: + +* licence carrier coherence, flag-only (`reuse lint` plus the p10 probe; 29 of 471 repos disagree across carriers; 62 of 64 squisher `guix.scm` files contradicted their own header); +* agent principal split (decision D1 in §4); +* non-vacuity obligations, tightened; +* sweep completion from a measured zero plus a standing ratchet; +* merge queue for high-churn repos; +* Coaptation: deferral blocks once a Hunt runner exists; +* DYADT `files-examined` claim class with a syscall-level read set; +* must-differ rule for Moment paths in `check-mint-drift.sh`; +* centralised arrival-pack renderer (folded into rank 5). + +=== Secondary ranking: dependability and security + +Here a cure ranks higher when it removes a single point of failure or an unauthorised path, even if it is less elegant. + +. *Agent principal split* (D1): agent GitHub App or token plus a distinct signing key that verification can tell apart. Every other anchor depends on this (P7). +. *Rulesets as monitors* (rank 10): zero-bypass signatures and branch floor, owner-signed approval for licence, identity and A2ML diffs. +. *Reference resolver with reachability* (rank 4): closes impostor commits and wrong-sort pins. +. *Gate admission, both fibres* (rank 1): a scanner that silently stops is a security failure. +. *Lockfile single writer, plus the org "Require lockfile" policy* (rank 11). +. *Call-site permission ceiling* (rank 3): least privilege falls out; duplicate `contents:` keys made visible. +. *Required set from intent* (rank 12). +. *Closed-world pre-flight* (rank 2). +. *Parse and shape gate* (rank 13). +. *Licence coherence, flag-only* (rank 17): keeps the manual-only rule; nothing is edited. +. *Conflict-marker gate* (rank 14). +. *Statement-bound receipts* (rank 16). + +== The top twelve in detail + +=== 1. Gate admission: a gate is a decision with both fibres inhabited + +Mechanism:: +`Gate S = Σ (check : S → Verdict). Echo check Accept × Echo check Reject`. ++ +Corrections applied: ++ +* The type rules out only constant checks, so it is a *necessary* condition, not a cure. +* The operational rule: a required context needs a kill receipt for every declared defect class. Mutants are partly derived mechanically (delete the pattern, invert the condition, rewrite to a constant, empty input), so the gate's author cannot fit them to the gate. +* The rejection must happen for the intended reason (expected message, as in the reject fixtures). +* The receipt is keyed by (gate content hash, toolchain or runner digest, locale). The invisible-character bug was a `grep -P` byte-versus-character problem, which a script-hash key would miss. +* The aggregator must be the required context, because GitHub counts a job skipped by `if:` as passing. ++ +The canon already requires this in prose (standards `4-readiness/toolchain-readiness-grades/testing/LANGUAGE-TESTING-STANDARDS.adoc` R10.2/R10.3/R10.6). This cure mechanises R10.3. Extending PROOF-POLICY §8.5.4 controls to CI gates needs an owner ruling (D10). + +Estate assets:: +* `metadatastician/standards/scripts/check-pipe-grep-q.sh` with `.machine_readable/pipe-grep-q-allow.txt` (shrink-only, 87 rows); +* `hyperpolymath/trope-checker/scripts/test-gate-falsifiability.sh`; +* `hyperpolymath/proven-tests-and-benches/src/ProvenTests/Types.idr` (`FixturePair`, line 408); +* `mathesis/tests/proofs/gate_controls_test.sh`; +* `hyperpolymath/proven-cicd-and-workflows/src/Assurance/Verdict.idr`; +* `hyperpolymath/rsr-template-repo/tests/invisible-characters-test.sh` (12 planted violations, the template already follows the discipline); +* probe `findings/pain-first-scripts/p4_gate_falsifiability_census.sh`. + +First experiment (rsr-template-repo, offline):: +. Write a kill matrix for the 25 to 30 most-copied `check-*` gates, with planted violations per declared class plus an empty-input mutant. +. Sample 50 `continue-on-error`/`|| true` findings inside gate jobs and classify each as real fail-open or harmless. +. Replay the invisible-character gate from before commit 91bcceea with a single `\x00` control. It should pass that control and so show that one control is not enough. ++ +Kill conditions: ++ +* fewer than 5% of the sampled lint findings are real fail-opens; +* every gate already rejects all its classes. + +Prover:: +Idris2 for the gate-admission type and the aggregator (an API and engineering property; uses §5 tokens, no PWG). The bash gates themselves stay unproved: TESTED by their fixtures. + +Cross-cutting:: +* Security: a scanner that silently stops is a security failure. +* Cost: mutants run when the gate changes, not on every push. +* Accessibility: a failed control names the gate and the planted case. + +What could go wrong:: +* Mutants written to be easy to kill (Goodhart; ImpossibleBench). +* Planted fixtures tripping other scanners: build them at runtime, as trope-checker does. +* The pipe-into-`grep -q` shape produced about 0 real gate fail-opens in a sample of 25, so it is left out of the *new* lint and stays with the existing standards gate. +* 167 of the 428 untested child copies are stale template copies. Resyncing them is a template-drift fix, not a test-writing task. + +=== 2. Closed-world pre-flight for canon changes and sweeps + +Mechanism:: +A gate change G → G′ is backward compatible on corpus C if and only if +`B = {r ∈ C : G(r) ∧ ¬G′(r)}` is empty. For a sweep `f`, every r must keep every decidable gate it passed: G(r) ⇒ G(f r). ++ +The result is a per-target verdict table, with no row missing. It is a computation, not a theorem. ++ +Corrections applied: ++ +* Report latent B (canon G′) separately from realised B (each consumer's pinned or vendored gate). Consumers pin the linter at e0645391, which predates both new rules. +* Rerun at every pin-bump sweep. +* Uncloned targets (48) and refs to uncloned repos (222) are UNDECIDED rows, never passes. +* Fetch `refs/pull/*` before refuting a SHA. +* Validate the schema against actionlint or GitHub, not hand-written enums. The p2 schema first rejected 31 valid files and still rejects the valid `code-quality` scope. +* Follow the offline pass with a canary merge on about 5 repos and a read-back of each default branch, because platform-only failures cannot be decided offline (startup_failure). + +Estate assets:: +* `hyperpolymath/rsr-template-repo/scripts/{survey-template-damage.sh,canon-pin-check.sh,rsr-campaign.sh}`; +* `metadatastician/standards/scripts/check-canon-lockstep.sh` (Gate A, the same idea with a corpus of one repo); +* the p2, p3 and p6 probes under `findings/pain-first-scripts/`; +* ring-3 `callsite_subsumption.rb`; +* `metadatastician/standards/2-protocols/k9-coordination/tools/validate/proofs/GrammarExtension.idr` (the one proved additive bump). ++ +Measured cost: schema check of 8,005 files in 5 s; resolver over 19,565 refs in 4 s; lock judge over 329 repos in under 6 min. + +First experiment (standards):: +. Backtest the last ten gate tightenings, comparing predicted B with the repos that later got a repair commit. Two checks are already known: #1473 must give B ⊇ 24; `b593ec4a` must give exactly the 10 `#u5` deeds. +. In rsr-template-repo, re-create the timeout-minutes and 5b1d0022 sweeps as scripts over 50 scratch copies. Both must be refused. ++ +Kill: B predicts fewer than half of the repair waves, or a bad sweep passes. + +Prover:: +None required. Where a grammar bump is involved, use the `GrammarExtension.idr` pattern (Idris2, engineering). + +Cross-cutting:: +* Privacy: private repo names must stay out of public logs (mathesis ruling D-2). +* An urgent tightening may ship with B non-empty under a dated, expiring departure row. Note that the departures ledger has no expiry today, so that would be new. + +What could go wrong:: +* The open world: uncloned repos, third-party refs (16,313 undecided offline). +* Schema drift producing false refusals. +* Waivers turning into a bypass. +* The payoff claim is reduced to: it removes repairs of repairs and red-CI windows. A deliberate tightening still costs one migration per member of B. + +=== 3. Call-site validity for first-party reusable workflows + +Mechanism:: +`sig(c@s)` = declared inputs (name, type, required), secrets, outputs, and the permission request, read from `workflow_call` at the pinned commit. ++ +A site is valid if and only if all of these hold: ++ +* the keys passed are declared inputs (covariant); +* every required input and secret is supplied (contravariant); +* every consumed output exists; +* `request ≤ grant` pointwise, where the grant is the job's block if present, else the workflow block. ++ +Corrections applied: ++ +* The original Used/Delta bridge lemma was unsound. A *new required input* or a *widened request* is additive and still breaks every caller, so the additive-change lemma is restricted to new optional inputs and new outputs. +* Nested callees (governance → deed- and k9-conformance) must be checked. +* The no-op closure includes every path a reusable checks out at `job.workflow_sha` (governance, hypatia-scan and secret-scanner do this). So at most 44 of the "69 provable no-ops" remain. +* Third-party actions are dropped: over the 25 most common major pairs (523 bumps), the interface delta for estate usage was empty. The real change was `runs.using node20→node24`, a host requirement outside this check. +* The adjacent checks actionlint already performs (undeclared inputs, `timeout-minutes` on `uses:` jobs) are adopted, not rebuilt. + +Estate assets:: +* `findings/ring3-classical-scripts/{callsite_validity_at_pin.rb,callsite_subsumption.rb,callsite_validity_at_pin.rows.tsv}`; +* `metadatastician/standards/scripts/{propagate-workflow-pins.sh,apply-workflow-pins-remote.sh}` (no permission handling today); +* `metadatastician/standards/.github/workflows/scorecard-reusable.yml` lines 9 to 14 ("11 of 13 callers omitted it"); +* hypatia `lib/rules/workflow_audit.ex` WF018 (a string-match special case to replace) and WF027. + +First experiment:: +. Settle GitHub's nested-permission rule empirically. The two probes encode it differently (union of all blocks versus job-else-top), so this decides the 1,417/376 split. +. Read the latest run conclusions of the 16 sites predicted invalid at their pin. This needs forge API access, which returned 403 in every phase session. +. Backtest on the parents of the 121 permission-repair commits. ++ +Kill: most of the 16 are green; recall on historical repairs below about 90%. + +Prover:: +Idris2 for the call-site judgement as an API/ABI property. GitHub's permission semantics stay an `ASSUMED` boundary. + +Cross-cutting:: +* Least privilege: grants above the request become visible. +* Never auto-apply a widening; propose it for review. +* A 0-second, no-log failure becomes a pre-merge refusal naming the job and scope. + +What could go wrong:: +* The permission rule is read wrongly. +* The `job.workflow_sha` self-checkout closure is missed. +* Skipped jobs still read as success to required checks. + +=== 4. Sort- and reachability-aware reference resolver + +Mechanism:: +The original `Ref k = Σ name. Resolves k name` type, with a resolver-minted receipt, was refuted: ++ +* a receipt written into a committed file can be forged; +* a handle-only write path has no enforcement point (`rung`'s constructor is public, Types.idr 315 to 317); +* `commits/` accepts fork-network impostor commits. ++ +The corrected cure is a *required gate that re-resolves every reference on each PR*. It checks: ++ +. the *sort* (`^{commit}`, or an annotated tag peeled to a commit in the same repository; the 422-on-tag-object false positive is avoided); +. *reachability* from a branch or tag of the named repository; +. *consumer semantics* (a moved owner is a warning, because the runner follows the redirect); +. *undecided* kept apart from *unresolved*. ++ +Any cached receipt is a cache only. The new finding that justifies this: 3 of the 4 surviving phantom ids are git blob ids of the very file they pin (8750b94a is `scorecard-reusable.yml`, 8f31a5a4 `governance-reusable.yml`, cc58c0cb `hypatia-scan-reusable.yml`). The likely origin is the contents-API `.sha` field; that is an inference, not established. ++ +GitHub's lockfile does not cover job-level reusable calls, and all 16 surviving refs are such calls. That is the gap. + +Estate assets:: +* `findings/pain-first-scripts/p3_estate_ref_resolver.sh` (already sort-aware); +* `metadatastician/standards/scripts/{check-action-pins-resolve.sh,check-workflow-staleness.sh}` (ADR-003 ancestor check); +* hypatia `scripts/check-sibling-citations.sh`; +* EchoTypes.jl `scripts/check-agda-citations.sh` (62 names PASS); +* marches `scripts/check-correspondence.sh` (fabricated-name control); +* zizmor (`impostor-commit`, already used in verisimdb). + +First experiment:: +. Make the offline sort check a required context in `governance-reusable.yml`, with planted negatives: 5b1d0022, the blob 8f31a5a4…, a 36-hex pin, and a fork-only SHA. +. Fix the 16 refs in 7 repos. +. Find out why first-post's lock-sync gate does not fail on its ref mismatch. +. Online: sample 200 to 500 third-party SHA pins. +. For citations: lychee or asciidoctor failure levels, plus a precision study on 200 hand-labelled flags before adopting any `path#fragment` convention (464 of 3,541 is only an upper bound). + +Prover:: +None required. The resolver is TESTED by its planted negatives. + +Cross-cutting:: +* Security against impostor commits. +* Privacy: resolve against local mirrors so private names stay out of logs. +* Do not resolve repo names against chora-registry yet: it holds 328 rows and 253 universe repos are missing. + +What could go wrong:: +* The registry or the forge is unreachable: the result must be "undecided", never "pass". +* Rate limits. +* "Prevents" holds only at the gate. An agent can still type a bad literal; it just cannot merge it. + +=== 5. Rulings in force at the canon, and instruction blocks read at a pin + +Mechanism:: +A ruling is one record: id, the ruling it supersedes, a closed value where one exists, a digest of its normative sentence, the instruction text, gate parameters, and positive and negative fixtures. ++ +The canon-side invariant: a PR that supersedes a ruling cannot merge until the old ruling's negative fixture flips *and* every projection inside standards (gate, CLAUDE.md, policy page) regenerates. ++ +This would have kept the 2026-07-29 → 08-07 window (b2eb1efa: "recorded. It was not in force") and the 2026-08-28 → 09-17/22 window red. 25d23cf3 shows lockstep is already achievable by practice. ++ +Downstream, the arrival-pack generator should *fetch* its instruction slice from the canon at the repo's pin, check the digest, and read an unreachable canon as stale. It should not copy `arrival-pack.ncl`. ++ +Corrections applied: ++ +* The K-CUT-LOSS "local lag equals global lag" claim is withdrawn. Under the asynchronous model an unadopted ruling is an in-flight message costing 𝟙 to the receiver (`Async.agda:136`), so the cut cannot see it. Lag is the pin-to-HEAD distance, which `canon-pin-check.sh` already reports. +* Instance pins may lag by design. That is a notice, not a merge block. + +Estate assets:: +* `hyperpolymath/rsr-template-repo/.machine_readable/arrival-pack/{generate.sh,verify.sh,arrival-pack.ncl}`; +* `hyperpolymath/trope-particularity-workbench/tests/stack-coherence/retired-claims.tsv` (3 hand rows, a prototype); +* ijson-jcs `.ci/standards-contract.tsv` (15 pinned sentences); +* `metadatastician/standards/docs/decisions/ADR-011-deed-projection-rests-on-k-cut-loss.adoc` (Proposed; cite it as background only); +* probe `p11_retired_claims_in_instructions.sh` (740 instruction files; 281 still recommend reading a legacy `.a2ml`; 98 name the pre-move canon owner). + +First experiment:: +. Kill test (e): classify the standing rules, the 16 doctrine items and the language table. At least about ten live rulings must be expressible as closed values with fixtures. A reading suggests they are; this is argued, not tested. +. Historical replay over the full history in `metadatastician/standards`, measuring days from each ruling to InForce. + +Prover:: +None for the mechanism. If the projections `π_s` were ever claimed correct, they would be Idris2 obligations, which ADR-011 §8 records as ASSUMED. + +Cross-cutting:: +* Security: one protected register is easier to defend than about 740 instruction files. +* Cost: one regeneration wave per ruling, so batch rulings into register releases. + +What could go wrong:: +* A wrong ruling propagates *consistently*; the guarantee is consistency, not correctness. +* Prose-only rules gain only drift detection. +* Mined retired claims need human rows for reversals of meaning. + +=== 6. Template upgrade by replay and three-way merge + +Mechanism:: +This finishes the third of the estate's existing mechanism that is missing. ++ +* The replay gate (`check-mint-drift.sh`: `child = repo-init(template @ :template-commit, (mint-answers))` modulo the variant clause) is GetPut-shaped. +* The merge already exists in `chain-mint.sh`. +* The known-version guard already exists in `rsr-campaign.sh` (#446). ++ +Add an `upgrade` recipe, a test that a second upgrade is a no-op, and the base-equality guard: put changes path p only if `child[p] = mint(t,a)[p]`. ++ +Corrections applied: ++ +* `fill-guarded` covers *adding* absent paths only, so it does not support overwriting a stale value. +* `map-square` assumes the put; it does not construct it. +* "Un-rendering" `get` contradicts the script's own finding (101 rendered files), so there is no `get` that inverts rendering. +* Put works over a *closure of coupled paths*: 15 of 39 template workflows invoke repo-local scripts, `actions.lock` must be regenerated in the same commit, and phronesis#122 records the failure when it is not. +* LICENSE, LICENSES/ and SPDX lines are never put. +* A declared-diverged deed carries template-owned clauses, so it needs clause-level sub-lenses: generalise `deed-template-sync.sh`. +* The legacy fleet needs a sweep-payload ledger. In 1,347 of 1,915 files the governance/scorecard/mirror family matches no template view until `permissions:` is projected out, and those blocks are uniform sweep edits, not customisation. +* The forward-only write rule does not stop canon reversals (the README .md/.adoc swing came from a ruling); it is compare-and-swap on a base. + +Estate assets:: +* `hyperpolymath/rsr-template-repo/scripts/{check-mint-drift.sh,replay-mint.sh,chain-mint.sh,deed-template-sync.sh,rsr-campaign.sh,survey-template-damage.sh}` and `tests/workflows/{rsr_campaign_guard_test.sh,deed_template_sync_test.sh}`; +* `mathesis/scripts/census/template-blobs.sh`; +* probe `p1_template_ancestor_identity.sh`. + +First experiment:: +Replay the mint twice on all 12 children that have `(mint-answers)`, using pinned tool versions (needs just, rustc, nickel; never run in a phase session). ++ +Kill: replay is non-deterministic in more than 1 or 2 of the 12; an upgrade produces more conflicts than plain file merge on five recent template commits. + +Prover:: +None required. If the lens laws are formalised, they are Agda (theory), with sholes `Lens.agda` as the pattern only. + +Cross-cutting:: +Licence paths are excluded. Wiring `check-mint-drift.sh` as an *external* required check closes the `--write-paths` self-declaration loophole. + +What could go wrong:: +* The variant clause grows without review (repos already declare 2 to 95 diverged paths). +* Old pins become unreplayable. +* Mint determinism across tool versions has not been tested. + +=== 7. One-sided deletion certificate for A2ML retirement + +Mechanism:: +The canon rule: delete an `.a2ml` file only when every fact is present in a target deed or dropped by spec, the deed lints, and no reader remains. ++ +Made executable as a certificate checked by a small trusted checker. Corrections applied: ++ +* The two-sided Faithful = RoundTrip × Covered is dropped. The migration is lossy by ruling (state-v1 option B) and many-to-one, and no deed carries provenance to check fabrication against. So the gate is *one-sided*. +* Totality-by-typing is vacuous. Replace it with *span coverage*: every non-comment byte span belongs to exactly one extracted atom, per dialect parser. +* Drop reasons are typed `(spec-id, spec-commit, row-id)`, matched against the row's surface pattern; prose drop doctrine goes to a person. +* C5 (no remaining reader) uses a declared reader inventory with precedence. hypatia `honest_completion.ex` reads the deed first and falls back to A2ML, so it must not block deletion. +* C3 needs a defined separating normaliser for each transform class before it is claimed. +* The certificate extends the existing removal record (state-v1-decision §6: path, size, sha256, blob id). + +Estate assets:: +* `metadatastician/standards/1-formats/deed/mappings/` (closed tables; rule P-2a fails loud; META/ECOSYSTEM is still "PROPOSAL pending owner review"; META targets `META.deed` under J30); +* `metadatastician/standards/1-formats/deed/tools/deed_lint.js`; +* `metadatastician/standards/9-archive/A2ML-REMOVED.adoc`; +* `hyperpolymath/echo-types/proofs/agda/EchoFidelity.agda` (unwired; optional); +* probe `p12_dual_carrier_accounting.sh`. + +First experiment:: +. Finish the census of all 1,851 files: parse rate, and table coverage per family. +. Rerun the pilot on about 48 in-scope pairs. Exclude 7 `third_party/gossamer` files (third-party), 4 echidna sub-project files, and 7 ANCHOR pairs (no mapping family: keep and report to the owner). ++ +Kill: more than 30% of atoms cannot be extracted; per-family table coverage below about 30%. + +Prover:: +The checker is plain Bun JS next to `deed_lint.js`; a finite-table checker gains little from a soundness theorem. EchoFidelity can be wired later (Agda) as the specification. + +What could go wrong:: +* The certificate refuses most deletions until the owner rules table extensions (about 94 of 149 ECOSYSTEM atoms are outside the table). That is correct, but it is *gating*, not *curing*. +* Facts that belong to another family (an `[ecosystem]` section inside STATE). + +=== 8. Footprint-keyed CI reuse, restricted to where it is sound + +Mechanism:: +Key a verdict by the digest of the restricted input. Corrections applied: ++ +* A sparse checkout does *not* confine reads: `git ls-files`, `git show HEAD:path`, `fetch-depth: 0`, API calls and existence checks all escape it. +* Type each gate before keying it: pure-tree, whole-tree, history, diff, API/time-indexed, or effect. Only pure-tree gates, run on a `git archive` export with `--network none` in a digest-pinned image, get a footprint key. +* The large win is simpler: same-tree de-duplication (push plus PR fire on the same tree for 4,271 workflows). That is the skip-duplicate-actions pattern, reimplemented inline because the lock gate refuses `uses:`. +* Add a `CarriedRevision` constructor to `Verdict.idr`, admitted only with a digest-equality witness. The kernel's own rule ("a receipt from any other revision must not discharge") is reversed by this, so it is an owner decision. +* The 7 ci-gate repos poll every 15 minutes (about 20,160 runs a month); replace that with a carried status. +* Receipts must be writable only by the gate's identity (an attestation), not by any token with `statuses: write`. +* Sample re-runs so a lucky pass cannot become permanent. + +Estate assets:: +* `hyperpolymath/proven-cicd-and-workflows/src/Assurance/Verdict.idr`; +* PROOF-POLICY §8.5.1 and §8.5.2 (inputs-sha256 and echo records already do this for proofs); +* `hyperpolymath/rsr-template-repo/docs/practice/ci-cost-reduction.adoc` (its 60 to 80% figure is unverified); +* `findings/ring3-classical-scripts/early_cutoff_probe.out` (12,929 of 17,362 rust-ci commits leave the declared Rust key unchanged). + +First experiment:: +. Measure the push+PR same-tree repeat rate per gate. +. Census jobs by class. +. Pilot on rust-ci and the narrow dogfood-gate jobs in 5 repos. +. Shadow-run for two weeks with the owner's go-ahead. ++ +Kill: any reused verdict disagrees with a real run on an unchanged key. + +Prover:: +Idris2 for the `CarriedRevision` kernel case (engineering). + +What could go wrong:: +* Repository visibility is unknown: most repos may be public, where minutes are free and the lever is queue time, not billing. +* Footprint declarations drift for inline-copy gates, so move those to reusables first. +* Floating `ubuntu-latest` (4,704 uses) changes the key. + +=== 9. One canon commit per repo, derived from the deed + +Mechanism:: +The binder already exists: the deed `(canon …)` clause (51 of 78 deeds) and `canon-pin-check.sh`. ++ +Invariant: in committed workflows, the set of `metadatastician/standards` job-level SHAs is a singleton equal to the deed's canon-commit field, and the owner equals the registry's current owner. Checked in-repo, network-free (in estate-rules or lock-sync), because a check inside the pinned `governance-reusable.yml` cannot see its own dead pin. ++ +`apply-workflow-pins-remote.sh` becomes the single writer for binder and literal together. Adopt ratchet's `# symbol@ref` comment convention instead of building a linker. ++ +Corrections applied: ++ +* The pain is *staleness*, not *clash*: 0 repos pin one reusable at two commits. +* A rename still costs one commit per repo, but it becomes mechanical. +* "A fabricated commit cannot be authored" becomes "cannot merge"; resolution stays with rank 4. +* Standards itself pins its own reusables at three commits and needs a self-reference rule. +* The prose half (837 unresolved owner/name tokens) is deferred until chora-registry covers the universe: 328 rows, 253 universe repos missing, 20 former-name records. + +Estate assets:: +* `hyperpolymath/rsr-template-repo/scripts/{canon-pin-check.sh,check-workflow-edges.sh}` (singleton rule already enforced for scanner env pins); +* `metadatastician/standards/scripts/{apply-workflow-pins-remote.sh,relock-standards-pin.sh}`; +* `findings/ring3-classical-scripts/canon_pin_multiplicity.out`. + +First experiment:: +. Dry-run the check on three children with mixed SHAs. +. Read-only, settle whether GitHub follows the transfer redirect for job-level `uses:` (the docs conflict; the forge API was refused). ++ +Kill: deliberate reasons for mixed canon commits in more than a handful of 20 sampled repos. The sample read found none. + +Prover:: +None. + +What could go wrong:: +Coupled bumps: moving one reusable moves all of them. That is arguably the point, but it widens the blast radius per bump, so pair it with rank 2. + +=== 10. Rulesets as the reference monitor at the merge chokepoint + +Mechanism:: +Schneider: what an execution monitor can enforce is a subset of the safety properties. It requires an event that is observable, interceptable and decidable at the chosen layer. ++ +The candidate's three layers, after correction: ++ +* Repo-level `.claude/settings.json` deny rules are agent-editable and do not reach shell subprocesses. They are advisory, unless moved to managed settings plus the OS sandbox write-deny. +* Git hooks are bypassable with `--no-verify`. Advisory. +* The real monitor is server-side, in two parts. (a) Apply the existing zero-bypass `require-signed-commits.json` and `branch-floor.json` with the existing appliers. (b) Add one required context that refuses a PR diff touching licence carriers (LICENSE*, LICENSES/**, SPDX lines, the `guix.scm` licence field, Cargo/package license fields, REUSE.toml), `:repo-uuid`, or new `.a2ml`, unless an approval is present that verifies against the *owner* key fingerprint, distinct from `CLAUDE_SIGNING_KEY`. ++ +GitHub forbids authors approving their own PRs, and agents share the owner's account, so a review cannot serve as the approval. ++ +Pushes to unprotected branches (the SR-012 incident) need a push ruleset per branch pattern. Push rulesets with file-path restriction reach private and internal repos only. + +Estate assets:: +* `metadatastician/standards/config/rulesets/{require-signed-commits.json,branch-floor.json,gates.json,README.adoc}`; +* `metadatastician/standards/scripts/{apply-protection-floor.sh,apply-branch-gates.sh,remove-ruleset-bypass.sh}`; +* `hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate-tamper-guard.yml` (deployed in 24 workflow files); +* `metadatastician/standards/1-formats/k9/spec/proofs/HuntGate.idr` (the default-deny pattern); +* `hyperpolymath/hypatia/.claude/settings.json` (the only deny list). + +First experiment:: +. Classify the 11 standing rules: about 6 to 7 of them have a monitorable core. +. Replay six recorded incidents, plus squisher's `guix.scm` licence-field clobber (cargo-zigbuild parent of d648f1e), against the required context in a scratch fork. ++ +Kill: the shell-mediated or `guix.scm` edits pass. Also, the owner would need an admin bypass more than about monthly. + +Prover:: +Idris2 for the decision kernel, after the `HuntGate.idr` pattern. Licence-carrier recognition is the `ASSUMED` boundary. + +Cross-cutting:: +* Doctrine 6 is honoured: nothing edits a licence; the gate only refuses and reports. +* The policy value must first be checked for consistency: SR-009 conflicts with LICENCE-POLICY Rule 1, and SR-011 conflicts with standards CLAUDE.md on signing (D7). + +What could go wrong:: +* Over-blocking legitimate owner licence fixes, with a signing step on each. +* Required-context upkeep, where the estate has a record of phantom contexts. +* Every guarantee waits on decision D1. + +=== 11. Adopt GitHub's lockfile as the single writer; keep the proved judge as an oracle + +Mechanism:: +Corrections applied: ++ +* The proven-lock judge's certificates are proved for managed workflows, with two named `believe_me` String axioms. But by design it omits job-level reusable refs, so it names *none* of the 16 unresolved pins, and it judges `common-signal`, `cleave` and `ubicity` CONSISTENT. +* `RefOk` is a representation rule, not existence. +* `onlyAdds`, `keepsCurrent` and `idempotent` are allow-list theorems, not lock repair. +* So: `gh actions-lock` is the only writer. Retire the estate's hand-writers (`relock-sha-keys.sh`, `complete-job-refs.sh`, `prune-stale.sh`, …) and the 38 variants of `check-lock-sync.sh`. +* `gh actions-lock --verify --json` is the required check in the 225 lock repos without a gate, after a one-off relock of about 160 inconsistent locks. +* Optionally, the org "Require lockfile" policy. +* Keep the proved judge as an offline, token-free pre-sweep check (rank 2), and as a differential oracle against `--verify` categories to catch upstream regressions, pinned to the lock format version it models. + +Estate assets:: +* `hyperpolymath/proven-cicd-and-workflows/src/Proven/Lock/{Model,Judge,Axioms}.idr` and `dist/proven-lock/`; +* `findings/verify-lock-judge-scripts/`; +* `hyperpolymath/hypatia/verification/proofs/idris2/ActionsLockClosure.idr`. + +First experiment:: +. Run `gh actions-lock --verify --json` on the 58 cases where the judge and the script disagree, and on the 90 closure-defect repos. +. Compare with live run conclusions (needs forge access). + +Prover:: +Idris2 (exists). Its theorem should read "consistent with model vN", not "accepted by GitHub". + +What could go wrong:: +* The upstream format is pre-1.0 and changes (v0.0.2 → v0.0.3 already split the estate). +* The canon's preference for SHA keys conflicts with upstream's tag keys once a repo is locked (D6). + +=== 12. Required set from intent, and an inventory invariant + +Mechanism:: +Corrections applied: ++ +* The verdict kernel's `emptyCannotPass` and `neverStartedCannotPass` hold, but only for the stated head-position cases. `ADR-001` lists the general lemma as open. +* The kernel and A3 §7 *disagree* on the empty set, all-exempt and advisory not-run (D3). +* The ci-gate profiles are derived from runs observed green, so the dead workflows are absent from them. Example: valence-shell requires 2 jobs out of 25 workflow files. +* So the cure is to finish A3: the check table plus declared plus detected capabilities, under law G4 (no under-declaring). +* Add an inventory invariant: every workflow file at HEAD parses and has had a completed run without startup_failure in the last N days, or carries a dated, typed waiver. +* Prove `decide xs = Passed → All acceptable xs`, and position independence. +* Feed the adapter only I-JSON (duplicate names refused), after the duplicate-field false pass that left the adapter unpromoted. + +Estate assets:: +* `metadatastician/standards/docs/estate-reconciliation/A3-estate-gate.adoc` (DRAFT v0.2.12; E1 to E12 approved); +* `hyperpolymath/proven-cicd-and-workflows/src/Assurance/Verdict.idr` and `GitHub.idr` beside it, `hyperpolymath/proven-cicd-and-workflows/scripts/ci-gate-verdict.sh`, `hyperpolymath/proven-cicd-and-workflows/profiles/ci-gate/` and `hyperpolymath/proven-cicd-and-workflows/docs/assurance/ADR-001-VERDICT-KERNEL.adoc`; +* `mathesis/verification/proofs/agda/Applied/Missing.agda`; +* `metadatastician/standards/3-practice/fork-governance/proofs/ReportBack.idr`. + +First experiment:: +. Build an intent-derived required set for the 17 profiled repos. It must cover at least about 70% of the historical parse-dead workflow files and block fewer than 20% of required rows at HEAD. +. The bash gate already passes 646 of its 646 tests. Find at least one historical head where the kernel and the bash gate (or A3) diverge, or the kernel has no marginal effect. + +Prover:: +Idris2 (API and engineering property). Mathesis APP-1 is the theory counterpart (`PWG-2ii` derived), cited as an analogy only. + +What could go wrong:: +* An Undetermined row blocks everything, so the gate gets bypassed. +* Polling cost. +* Profile upkeep. +* The adapter lacks pull-request and reusable-workflow support. + +== Doable now, and decisions for the owner + +=== Doable immediately (no owner ruling; read-only or local, all reversible) + +These still need a session with write approval. This research step wrote nothing outside `.findings`. + +* Rerun the probes listed in each top-12 entry, and add the missing ones: +** `gh actions-lock --verify` on the disagreement set; +** run conclusions for the 16 predicted-dead call sites; +** the full 1,851-file A2ML census; +** mint replay on the 12 answer repos; +** the gate kill matrix in a scratch copy of rsr-template-repo. +* Add actionlint (pinned with sha256, as trope-checker already does) plus a conflict-marker scan to the template's `workflow-linter.yml`, *if* D4 allows the Go binary. +* Make the sort-aware resolver (p3) a report-only job in `governance-reusable.yml`. +* Extend `check-licence-consistency.sh`, flag-only, to read CITATION.cff, the `guix.scm` name and URL, and the deed `:license`. +* Wire `check-mint-drift.sh` and arrival-pack `verify.sh` as report-only CI steps. +* Retire `merge=union` on code in `hyperpolymath/trigger/.gitattributes`. This touches no licence; still a departure fix needing a write session. + +Departures found during verification, recorded and not fixed: + +* `mathesis_chora.deed` fails `deed_lint` (a `#u5` literal in `:beholding-chora`). +* mathesis carries an ungated placeholder Coaptation core (any fact witnesses any clause). +* mathesis EXPLAINME and PROOF-NEEDS say PWG-1 where its reader derives PWG-2ii, and the `no-hand-typed-grade` probe does not scan those files. +* DYADT links `spec/CLAIMS.a2ml`, which does not exist. +* PIN-001 and `actions-bump-holds.txt` state a cause standards #1093 refuted. +* 16 unresolved canon pins in 7 repos. +* Conflict markers in 5 files in 4 repos. +* `polysafe-gitfixer` `DirCapability::attenuate` never checks the new permissions against the parent's. +* `kategoria` lists `Demo_SafeAPI.idr` as verified while line 50 holds `?portBound`. +* `januskey Reversibility.agda`, choreographic-types and autoformal-fidelity `Crossing.agda` lack `--cubical-compatible`. +* 13 to 14 workflow files carry duplicate `contents:` keys. +* Mathesis CLAUDE.md names `hyperpolymath/standards` as canon where the template names `metadatastician/standards`. + +=== Decisions for the owner + +These are written as questions with options. Following doctrine 15, where the most elegant arm and the recommended arm differ, both are named. The owner should receive these through the selector, not as prose. + +D1. Should agents act as a principal of their own?:: +* (a) [elegant default, recommended] A GitHub App or token with no administration, label or ruleset rights, plus a signing key that GitHub verification distinguishes from the owner's. This makes every sealing, approval and capability cure enforceable. +* (b) Keep the owner's account. Every such cure stays tamper-evident only. +* (c) Split only for estate sweeps. ++ +Touches SR-011. + +D2. Order of `argued` versus `tested-only`?:: +* (a) Keep resource-algebra's chain: tested-only below argued, per the 2026-11-17 ruling. +* (b) Mathesis, ADR-011 and hypatia's `derive` order: argued below tested-only. ++ +Code disagrees today (hypatia `derive` versus `Evidence.agda`). The parametric Ledger can serve both, but status reports need one answer. + +D3. Verdict on the empty required set, the all-exempt set, and an advisory check that did not run?:: +* (a) The kernel's answer: block all three. +* (b) A3 §7: pass, pass, no effect. +* (c) A mix. + +D4. May CI run pinned third-party binaries written in banned languages?:: +Examples: actionlint (Go), zizmor, ScanCode (Python). +* (a) Yes, as pinned and hashed tools, never as estate code. +* (b) No; reimplement in Rust or Bun. ++ +Adopting Mergiraf would also need a GPL-3 ruling. + +D5. Lift the codeql-action v4.38.x hold?:: +standards #1093 found 4.38.1 "never broken". +* (a) Lift it after a controlled lock-consistent run. +* (b) Keep it until upstream is beyond 4.38. + +D6. Lockfile key style?:: +* (a) Upstream tag keys once a repo is locked: removes the SelfShaLeaf findings in 46 repos and most of the hand-writers. +* (b) Keep SHA keys in YAML, as canon prefers. + +D7. Resolve SR-009 against LICENCE-POLICY Rule 1, and SR-011 against standards CLAUDE.md on signing?:: +No licence expectation can be derived, and no rule can be compiled into a monitor, until each pair agrees. + +D8. Should the canon's `:kind trope` vocabulary slot hold sense-6 entries ("recurring error class")?:: +trope-checker's calculus forbids conflating trope senses. +* (a) No; use "error class" or "antipattern". +* (b) Yes, with a separate sense tag. + +D9. Template workflows: thin callers of standards reusables, or inline?:: +Ratified thin on 2026-09-02; the template has since moved to inline. Cross-owner reusables caused startup failures. + +D10. Extend PROOF-POLICY §8.5.4 negative-control receipts to CI gates?:: +* (a) Yes, keyed by gate hash plus toolchain digest. +* (b) Keep R10 as prose plus tests. + +D11. Make probe-deferred Must and Trust clauses blocking (ultraplan P2.1) before a Hunt runner exists?:: +* (a) After a runner or CI ingestion exists [recommended]. Otherwise mathesis goes red on 33 probably-true clauses. +* (b) Now. + +D12. A `Clash` clause in the deed grammar?:: +Recommended: no. Merging stays outside the grammar; derived files are regenerated. + +== What belongs outside any single repository + +Canon in standards:: +* An R10 enforcement script plus the gate-registration rule (rank 1, D10). +* The ruling register with negative fixtures, and the canon-side merge gate (rank 5). +* Proof-receipt profile fields: `:job` and `:image` on every leg, and `:correspondence-by` (who reconciled a statement and how). Today "by reading" lives only in PROOF-STATUS prose. +* A declared reader inventory for A2ML retirement (rank 7). +* The licence-carrier list for the monitor (rank 10). +* A resolution of D2, D3, D7 and D10. +* Fix PIN-001's stated cause. That file lives in hypatia; its prose cause is echoed in standards' holds file. + +Mathesis (describes, never grades):: +* Record a *shared-support report* in the census for the 11 multi-leg claims (all in two repos). For example: mathesis's three legs share one job and Guix pin 8edb9da, while secret-types' legs use distinct images. Report the cut sets, not a bare kappa, so it is never read as a grade. +* Keep `squeakwell-r3-r9-merge-laws` as an unassessed bridge. If the MV-register merge laws are ever proved over `EchoPartialSection`, a bridge record and later a claim pin follow; no grade here. +* Any theory admission needs a named estate rule that depends on it. None of the candidates supplies one yet, so nothing is admitted. + +Existing tool repos, not new ones:: +* proven-cicd-and-workflows: the kernel case, the lock oracle, the gate registration. +* rsr-template-repo: upgrade recipe, mint-drift wiring. +* gitbot-fleet or hypatia: sweep pre-flight and read-back. +* boj-server: fail-closed claims. + +A new repo:: +*Not recommended.* Doctrine says to check the map and IS-NOT before inventing. Every cure here has an existing home. If the owner wants one place for the closed-world pre-flight and resolver runner, the elegant default is a module of proven-cicd-and-workflows, not a new repo. + +== Struck and demoted candidates + +Struck candidates have no corrected form worth carrying. Their residue, if any, is folded into a ranked cure. + +[cols="3,7",options="header"] +|=== +|Candidate |Why it died + +|Criterial inherence (receipt as trope of a footprint class) |T2 "no coarser relation is sound" is false (the verdict kernel is coarser; early cutoff). T3 "unique policy" falls with it. With the full footprint, mathesis's 80 commits fall into 15 classes, not 4, and HEAD leaves the receipt's class. It is PROOF-POLICY 8.5.2 echo records plus Bazel/Nix action keys. Residue folded into rank 8. +|Blob-borne verdicts (Sep1 memo across repos) |The permutation test cannot see environment, clock or network dependence. 28 of 79 check scripts read them: `check-no-placeholders` passes in the template and fails in minted repos for the same blob; forks fail by design. A cross-repo memo can be poisoned. The saving comes from consolidating gates, not memoising. Residue folded into rank 8. +|Trope IR for agent claims |Four one-line edits launder a claim to `p-sufficient`: agent-declared root node, agent-chosen grade, free-text fuse tag, paraphrase graded preserve. `Attenuated(⊤)` does not absorb against drop or collapse (`fate-tier-meet-hom-fails`). Prevent-profile IR cannot express a lie as a deceptive value. Needs a harness that writes observations and assigns grades; that is in-toto/SLSA adoption. +|Resemblance towers and natural sweeps |The experiment's "0 mixed classes" holds by construction. A payload-reading gate (40-hex pin rule) gives mixed verdicts in 187 of 472 multi-file classes. Wrong-value sweeps, half the record, pass T1 and T2. The KYAML reprint passes T1 and still broke grep-based gates. T1 survives as a metamorphic pre-flight check inside rank 2. +|Proof-carrying bump certificate |Its host-rejection premise is refuted (#1093: 4.38.1 never broken; deaths were lock drift). Cooldown would only have delayed 4.38.1 by a week. Residue: tag-list resolution and an age gate in `bump-action-pins.sh`, folded into rank 11. +|Bump as typed revision (support survives retraction) |getrandom 0.2→0.3 (panic-attack 8a30213) left every job's resolved package set unchanged and broke the build (fixed in 308c29b). Exact classification skips about 7% of pairs, below its own kill line. Cargo is about 21% of Dependabot volume. Prior art: guppy determinator. +|Class-borne host acceptance and sticky negatives |Premise refuted: start-up acceptance in the incident depended on lock state, not the ref. A sticky negative receipt would have latched a false negative on a good ref, as PIN-001 did. Residue: one fleet-wide hold source. +|Foundation-closed deltas (nuclei) |The lock nucleus has been fixed upstream since 2026-10-15: half-nucleus Dependabot commits fell from 248 of 248 (Aug) to 6 of 239 (Nov 10 to 25), and the leftovers are workflows never onboarded. Par needs a locality lemma for `judge`, which is absent. "Weakest sound rule" is false (identical deltas). +|Affine leases with coordinator expiry |"By type" is unsound for expiry: a paused holder keeps a well-typed lease. Only fencing at the store helps, and git and the Edit tool already do compare-and-swap. The recorded incidents were starvation and semantic merge breaks, not lost updates. Residue folded into the merge-queue item. +|Error tropes as a generative kill-matrix basis |"5 survive" becomes 2 once the template's own linter steps and `git diff --check` are counted; both are in actionlint's scope. "Two gates reject none" was catalogue incompleteness: each gate kills its own target. A set-cover basis would drop live gates. Residue folded into rank 1. +|Certain repair (unique minimal repair) |G1 replay: 11 of 73 certain cases chose a repair other than the author's, including a privilege-relevant one (hybrid-automation-router 6f900c8). Whitespace is content inside block scalars. The prior art (Fan et al.; rustfix `MachineApplicable`) already gates on applicability. +|Commit kinds as verdict-transition types |Only 17 of 120 sampled fixes show any transition (below its one-third line). The revert law is wrong when commits intervene. Fix-by-deletion types as `fix`. Most estate fixes edit the gate itself. GitLab MR test summary and SWE-bench F2P/P2P are prior art. Residue: a report-only transition block and an `attempt` relabel. +|Separated evidence (kappa as cut order) |Classical minimum hitting set. Kappa is fixed by the declared base: 1 with all fields, 3 with kernel only, 2 or 1 only with a hand-inserted "reading" support. A label split doubles it. Does not block the doubling attack. Residue: the shared-support census report in §5. +|Capability-confined sessions with a linear fan-out budget (demoted, folded into D1 and rank 10) |The chokepoint covers Claude Code only. The 43.1% rework rate is Mistral Vibe and other agents (Claude: 15.4% against a 15.3% baseline). A 3-repo budget needs 31 to 149 grants a month. Owner-directed wrong-value sweeps would have been granted anyway. Residue: credential-layer scoping (D1), canary coupling (rank 2), the `attenuate` bug fix. +|Sealed regions (demoted into rank 10) |No anchor exists outside agents' write set (P7). typed-wasm's in-repo digest plus `--reseal` *is* the local-reseal attack. The tamper guard already deploys the label-reseal form. +|Licence class as a registry sum type (demoted to rank 17) |Actor typing cannot reach owner-merged agent commits. Most churn is ruling-driven. 38% of repos have no registry record. Residue: L1 coherence plus L2 flag-only departures rows. +|One trope, many faces (demoted into rank 5) |Contractibility adds nothing beyond "all decoders agree". Faces need lenses, not `x_i = r_i t`. Rename re-render would clobber correct id-domain text. The existing gate already runs in 358 callers. Residue: extend `check-licence-consistency.sh`; centralise the renderer. +|Status as derived meet over dependency edges (demoted to rank 15) |Omitting an edge never lowers `eff`, so overclaim moves into edges. hypatia's 7 cited trust_boundary references are scope exclusions, not premises: wiring them would *underclaim*. None of three historical corrections would have been flagged. Residue: adopt `check-proof-status.sh` and `render --check`. +|Unlaunderable receipts (demoted to rank 16) |ApprovalSeal is a Nat model; the PATH-shim attack through `build/manifest.scm` escapes the stated write set. Agda has no replay leg. Inhabitation witnesses miss over-strong preconditions. Scope and image pinning already exist in PROOF-POLICY §8.5. +|Non-vacuity and discrimination triple (demoted) |zerostep `ratio_correctness`, affinescript `borrow_soundness` and januskey `adversaryCannotKnow` pass both obligations as worded (its own kill line). Negations are excluded from (a). Corrected form: neighbours vary only within a fixed signature, a per-hypothesis redundancy check, a positive specification test (`nop-is-cno` pattern), Dafny-style tooling as prior art. +|Synecdoche-free quantification (demoted) |A PostToolUse Read log misses shell reads. Two of the five cited Haiku failures are aggregation errors over data that was read. The measured dominant overclaim is "tests I wrote pass". Residue: a DYADT `files-examined` claim class with a syscall-level read set and S given in the task. +|Sweep completion from a measured zero (demoted) |The 4 remaining 8f31a5a4 pins were *reintroduced* by later sweeps (2026-09-18 and 09-23), not left by false completion. The engine's breaker trips at N+5 attempts, not on "no progress". Residue: count-on-default-branch plus a standing ratchet. +|Sweep typestate canary choreography (demoted into rank 2) |rsr-campaign.sh appears in 0 commit subjects estate-wide and post-dates most bad sweeps. Most caught defects are static (actionlint, resolver). Theorems decorative. `batchAllOrNothing`'s premise breaks post-merge. +|Lawful keyed merge with conflict values (demoted to rank 14) |The flat clash resolver is not associative with tagged payloads (the lawful form is an MV-register). Keying `actions.lock` by workflow+action loses information in 13 of 360 locks. 5,118 of 5,943 merges happen on GitHub's servers, where custom drivers do not run. 0 JSONL or actions.lock files among 240 conflicting files in a 200-merge replay. +|Footprint-typed work claims (demoted) |The swap and diamond theorems assume cross-applicability (I3) and model grades, not file content. About 5 genuine merge-race repairs found in 9 busy repos. Uber SubmitQueue and MCP Agent Mail are prior art. Residue: merge queue in high-churn repos, fail-closed boj path claims. +|Finish Coaptation (demoted) |The Idris core is a model with an `ASSUMED` bridge to `coapt.ncl`, which actually decides. Subject indexing is trivial when all facts come from one deed. A single NUL control would have "witnessed" the invisible-character gate. Residue: deferral blocks in `coapt.ncl` once facts arrive (D11); in-toto-shaped facts. +|File kinds by generic versus specific dependence (demoted) |The Moment law flags the CODEOWNERS text canon prescribes verbatim (90 repos). It misses rendered stubs (4 of 30 "0% proven" files; 5 of 13 template READMEs). The Copy law flags MPL texts that differ by whitespace or http/https only. Residue: a must-differ rule for Moment paths inside `check-mint-drift.sh` replay. +|Lock judge as single authority (demoted to rank 11) |See rank 11. Judge names 0 of the 16 unresolved pins; GitHub's GA lockfile and Dependabot regeneration are prior art and cure most of the stated pain. +|Verdict kernel promoted over the bash gate (demoted to rank 12) |See rank 12. The bash gate already blocks absence (646 of 646 tests). Profiles from observed green runs omit dead workflows. Kernel and A3 disagree. +|Workflow as typed value with a canonical printer (demoted to rank 13) |W2 (`tv-iff`) needs a value-preserving step; sweeps change values; kyq has no trivia or byte model. In 199 sampled pre-repair blobs, the largest wave (lockfile coverage) and the Scorecard wave pass the type. GitHub rejects duplicate keys rather than over-granting. `github-actions-models`, `yamlpatch` and actionlint are prior art. +|=== + +Status of this document: a research synthesis, read-only, written 2026-11-30. Recommendations are ARGUED. Measurements are TESTED by the probes cited. No cure is PROVED, and no cure has been built. diff --git a/docs/proposals/types-tropes-estate-upkeep.adoc b/docs/proposals/types-tropes-estate-upkeep.adoc index 78a31fc3..b3b5aa95 100644 --- a/docs/proposals/types-tropes-estate-upkeep.adoc +++ b/docs/proposals/types-tropes-estate-upkeep.adoc @@ -6,8 +6,10 @@ :sectnums: :icons: font -Status: *findings, not ratified* (2026-11-25). This document reports a -research run that is unfinished. It claims no proved result and builds +Status: *findings, not ratified* (2026-11-25; verification completed +2026-11-30, see <>). This document reports the first pass of a +research run. The completed, re-ranked result is +link:types-tropes-estate-upkeep-portfolio.adoc[the portfolio]. It claims no proved result and builds nothing. Every idea in it carries one of three marks, defined in <>. No idea is marked as a working cure, because none has been built. @@ -87,10 +89,12 @@ standards, and no Proof Witness Grade is asserted here. grounding and soundness, then prior art and real effect. The model usage limit stopped the run after 10 of the 80 verdicts: ideas 1 to 4 under both lenses, ideas 5 and 6 under the grounding lens only. The portfolio synthesis and the - completeness critic did not run. This document is the hand-written - substitute for both. -* *Not durable.* The raw findings (about 1 MB of notes and probe scripts) - live in the session container, not in any repository. + completeness critic did not run. This document was first written as the + hand-written substitute for both. The run was later resumed and + completed: see <>. +* *Raw findings.* The notes and probe scripts are kept on the branch + `claude/types-tropes-findings-interim` of this repository until a + dedicated private repository exists. == The pain, measured @@ -268,7 +272,7 @@ proposed, and that corrected form is what is marked here. `check-mint-drift.sh`, a new `upgrade` recipe), the 12 repos that record `(mint-answers)`, then every future mint. -=== Copy versus moment files — *tested* (grounding lens only) +=== Copy versus moment files — *tested* (both lenses; refuted by both) * *Idea as written.* From formal ontology: a licence text depends generically on its pattern and must equal it; a proof file or status @@ -292,7 +296,7 @@ proposed, and that corrected form is what is marked here. * *Changes.* rsr-template-repo (`check-mint-drift.sh`, mint stops copying proof stubs and status text), Mathesis census (`scripts/census`). -=== Checks keyed by what they read — *tested* (grounding lens only) +=== Checks keyed by what they read — *tested* (both lenses; survived reality) * *Idea as written.* A gate declares its read footprint; a sparse checkout enforces it; a verdict receipt is keyed by the footprint's content; a @@ -320,8 +324,9 @@ proposed, and that corrected form is what is marked here. == The other thirty-four ideas -Numbers continue from the six ideas above (1 to 6). None was independently -verified. The verifiers' pattern above suggests the +Numbers continue from the six ideas above (1 to 6). When this table was +written none had been independently verified; each has been since, and +<> gives the verdicts. The verifiers' pattern above suggests the claims of novelty and of "prevents" in this list are optimistic. The "changes" column names the repository or tool each would alter. @@ -490,6 +495,77 @@ one. |open |standards PROOF-POLICY §8, receipt deeds, invariant-path |=== +[[outcome]] +== Verification outcome (2026-11-30) + +The stopped run was resumed on 2026-11-25 and finished on 2026-11-30. All +80 verdicts are in (two lenses on each of the 40 ideas), with a +completeness critic and a portfolio synthesis. The portfolio is +link:types-tropes-estate-upkeep-portfolio.adoc[]: it applies every +verifier's corrections, re-ranks the cures, and lists what was struck and +why. Where this document and the portfolio differ, the portfolio governs. + +* 2 ideas survived both lenses: 18 (closed-world pre-flight) and 35 (a gate + has both fibres inhabited). +* 7 survived one lens, in a reduced form: 4, 6, 15, 21, 22, 33 and 34. +* 31 were refuted by both lenses. Each was either demoted to the smaller + form its verifiers named, or struck. +* Every idea from ring 5 (new theory) was struck or demoted. What survives + is mostly adoption of existing tools on top of existing estate assets. + +The marks in the table of the other thirty-four ideas predate this +verification and are kept as the record of the first pass. The table +below supersedes them. G is the grounding-and-soundness lens, R the +prior-art-and-effect lens; ✔ survived, ✘ refuted. "Rank" is the idea's +place in the portfolio's primary ranking (elegance and correctness); +"17+" is its list of smaller items below rank 16. + +[cols="1,5,1,1,4",options="header"] +|=== +|# |Idea |G |R |Fate in the portfolio + +|1 |Lock: one writer, one judge |✘ |✘ |Demoted to rank 11 +|2 |No pass on absence (verdict kernel) |✘ |✘ |Demoted to rank 12 +|3 |Workflows as values |✘ |✘ |Demoted to rank 13 +|4 |Template sync as a lens |✘ |✔ |Rank 6 +|5 |Copy versus moment files |✘ |✘ |Demoted to 17+ (must-differ rule) +|6 |Checks keyed by what they read |✘ |✔ |Rank 8 +|7 |Criterial inherence |✘ |✘ |Struck; residue in rank 8 +|8 |Blob-borne verdicts |✘ |✘ |Struck; residue in rank 8 +|9 |Status as a derived meet |✘ |✘ |Demoted to rank 15 +|10 |Unlaunderable receipts |✘ |✘ |Demoted to rank 16 +|11 |Non-vacuity as a ledger obligation |✘ |✘ |Demoted to 17+ +|12 |Claims as Trope IR |✘ |✘ |Struck +|13 |Synecdoche-free "all" |✘ |✘ |Demoted to 17+ (files-examined claim class) +|14 |Resolver-minted references |✘ |✘ |Demoted to rank 4 +|15 |References as bound variables |✔ |✘ |Rank 9 +|16 |Sweep completion from a measured zero |✘ |✘ |Demoted to 17+ +|17 |Sweep as a typestate with a canary |✘ |✘ |Demoted into rank 2 +|18 |Closed-world pre-flight |✔ |✔ |Rank 2 +|19 |Resemblance towers |✘ |✘ |Struck; one check kept inside rank 2 +|20 |Capability-confined agent sessions |✘ |✘ |Demoted into decision D1 and rank 10 +|21 |Rules compiled to reference monitors |✘ |✔ |Rank 10 +|22 |Bump safety as call-site subsumption |✘ |✔ |Rank 3 +|23 |Proof-carrying bump certificate |✘ |✘ |Struck; residue in rank 11 +|24 |Bump as typed revision |✘ |✘ |Struck +|25 |Class-borne acceptance for bumps |✘ |✘ |Struck +|26 |Lawful keyed merge on values |✘ |✘ |Demoted to rank 14 +|27 |Foundation-closed deltas |✘ |✘ |Struck +|28 |Footprint-typed work claims |✘ |✘ |Demoted to 17+ (merge queue) +|29 |Affine leases with compare-and-swap |✘ |✘ |Struck; residue in the merge queue +|30 |Licence class as a closed sum |✘ |✘ |Demoted to 17+ (flag-only coherence) +|31 |Sealed regions |✘ |✘ |Demoted into rank 10 +|32 |One trope, many faces |✘ |✘ |Demoted into rank 5 +|33 |Rulings in force by projection |✘ |✔ |Rank 5 +|34 |Migration with a fidelity account |✘ |✔ |Rank 7 +|35 |A gate has both fibres inhabited |✔ |✔ |Rank 1 +|36 |Finish Coaptation |✘ |✘ |Demoted to 17+ +|37 |Error tropes as a generative vocabulary |✘ |✘ |Struck; residue in rank 1 +|38 |Certain repair |✘ |✘ |Struck +|39 |Commit kinds as verdict transitions |✘ |✘ |Struck +|40 |Separated evidence |✘ |✘ |Struck; residue is a shared-support report in the Mathesis census +|=== + [[principles]] == What recurs: six principles @@ -516,6 +592,14 @@ part most likely to last. . *A gate decides both ways.* A check with no planted failure it rejects is not known to be a check. +The verifiers added a seventh, and it bounds the other six: *the binding +constraint is identity and authority, not types.* Agents commit as the +owner, so any anchor said to sit outside an agent's write set is today +tamper-evident, not tamper-proof. Until agents have a principal of their +own that the forge can tell apart, a type construction constrains models, +not the estate. The portfolio puts this first in its dependability ranking +(decision D1). + Reading (the author's view): in each verified case the estate's maths supplied the specification and the soundness argument. In five of the six, an existing tool or canon design supplies the mechanism. The exception is @@ -527,6 +611,15 @@ honest use of Mathesis here. [[recommendations]] == Recommendations +The completed verification re-ranks these. The portfolio's top three, by +elegance and correctness, are: a required check counts only with a kill +receipt for each defect class it claims (rank 1); a closed-world +pre-flight of every canon change and sweep over all local clones (rank 2); +and call-site validity for the estate's own reusable workflows (rank 3). +By dependability and security its first item is giving agents a principal +of their own (decision D1). The three recommendations below remain, at +portfolio ranks 11, 12 and 6. + . *Adopt the first-party Actions lock, keeping one estate check.* `gh actions-lock` writes and `--verify` checks step-level actions, after one relock of about 160 inconsistent locks. The 38 checker variants @@ -556,10 +649,11 @@ honest use of Mathesis here. calls and the proved judge demoted to a cross-check. * Which verdict function is normative where the Assurance kernel and A3 §7 differ (empty set, all-exempt set, unrun advisory checks). -* Whether to resume the verification run (34 ideas unverified, the critic - and portfolio not run), and on which model and effort. -* Whether the raw findings and probe scripts should be kept, and where. - They are not in any repository now. +* The portfolio's twelve questions (D1 to D12), above all D1: whether + agents get a principal of their own. +* Resolved since the first pass: the verification run was resumed and + completed, and the raw findings are kept on a branch of this repository + until a private repository holds them. == Outside this repository From c0c3e1ead9bd4b999fa70a2bb517cd42cfd2a55f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 23:50:31 +0000 Subject: [PATCH 2/2] docs(proposals): correct three portfolio statements raised in review - Dependabot: the counts are bumps that also updated the lock, so that share rose (40 of 1,084 to 741 of 759); bumps without a lock update fell. - CI reuse: same-tree de-duplication only for gates whose every input is in the tree; API, clock, network and effect gates always run. - Moment files: the residue is provenance validation against receipts, not a must-differ rule, which would keep the CODEOWNERS false positive. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDg4crr69SzX97Co3Qt --- docs/proposals/types-tropes-estate-upkeep-portfolio.adoc | 8 ++++---- docs/proposals/types-tropes-estate-upkeep.adoc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/proposals/types-tropes-estate-upkeep-portfolio.adoc b/docs/proposals/types-tropes-estate-upkeep-portfolio.adoc index 43b1d676..a9bf68f7 100644 --- a/docs/proposals/types-tropes-estate-upkeep-portfolio.adoc +++ b/docs/proposals/types-tropes-estate-upkeep-portfolio.adoc @@ -88,7 +88,7 @@ Three meta-findings changed the ranking: The estate's distinctive asset is not new theory. It is the measurements, plus a few narrow additions: blob-sort pins, binding receipts to gates, and negative fixtures as a merge gate in the canon. . *Several headline premises were refuted by the estate's own records:* ** codeql-action v4.38.1 "was never broken". The start-up deaths came from `actions.lock` drift (standards #1093, triage docs). PIN-001 and the `actions-bump-holds.txt` hold still state the refuted cause. -** Dependabot workflow bumps without a lock update fell from 40 of 1,084 lock-touching (before 2026-10-12) to 741 of 759 (from 2026-10-19), once GitHub's lockfile support went GA. +** The share of Dependabot workflow bumps (in repos with a lock) that also update the lock rose from 40 of 1,084 (before 2026-10-12) to 741 of 759 (from 2026-10-19), once GitHub's lockfile support went GA. Bumps without a lock update fell from 1,044 of 1,084 to 18 of 759. ** Licence churn is mostly owner-directed ruling waves. Of 872 flips, 555 commits in April and May were owner-authored. The March and June agent waves executed owner directives. ** The G1 parse-dead class went from 519 commits before 2026-10-01 to 2 after. . *Unwired is the dominant state.* The estate already has the decider in many cases but has not wired it in: @@ -128,7 +128,7 @@ Column notes: |7 |*One-sided deletion certificate for A2ML retirement.* For each source atom: mapped (equal under the spec row's transform) or dropped by a typed spec-row reference. Span coverage per dialect. Semantic reader inventory. Implemented as the check mode of the planned P-2a translator; the result extends the existing removal record. |Metadata format migration |3 |diagnoses and gates (shrinks) |26,582 `.a2ml` in 371 repos; 1,851 in repos that have a chora deed. Pilot: about 48 in-scope pairs. ECOSYSTEM table covers 55 of 149 atoms; 5 of 12 files fully |weeks |G ✘ R ✔ |E -|8 |*Footprint-keyed CI reuse, restricted.* Same-tree de-duplication for every gate. Footprint skip only for tree-only, hermetic gates run with the network off. A `CarriedRevision` case in `Verdict.idr`. Replace the 7 polling ci-gate sweeps with a carried status. |CI cost |3 (+ kernel case) |reduces |Median 22 job-instances per push or PR event. Of 10,907 push/PR jobs: about 32% side-effect jobs, about 21% whole-tree scanners, about 25 to 35% with a narrow footprint. About 20,160 ci-gate runs a month |weeks (pilot) |G ✘ R ✔ |E +|8 |*Footprint-keyed CI reuse, restricted.* Same-tree de-duplication only for gates whose every input is in the tree; gates that read an API, the clock or the network, or have side effects, always run. Footprint skip only for tree-only, hermetic gates run with the network off. A `CarriedRevision` case in `Verdict.idr`. Replace the 7 polling ci-gate sweeps with a carried status. |CI cost |3 (+ kernel case) |reduces |Median 22 job-instances per push or PR event. Of 10,907 push/PR jobs: about 32% side-effect jobs, about 21% whole-tree scanners, about 25 to 35% with a narrow footprint. About 20,160 ci-gate runs a month |weeks (pilot) |G ✘ R ✔ |E |9 |*One canon commit per repo, from the deed.* Every job-level standards SHA must equal the deed's canon-commit field, and its owner must equal the registry's current owner. In-repo, network-free check. The applier writes binder and literal together (ratchet-style comment). |Stale, mixed and moved canon pins |3 |prevents (in committed workflows) |1,794 job-level calls in 411 repos; 238 repos run reusables at 2 to 6 canon commits (0 repos pin one reusable at two commits: staleness, not clash). 1,450 old-owner call sites |days |G ✔ R ✘ |E @@ -156,7 +156,7 @@ Ranks 17 onward, all demoted, smaller: * merge queue for high-churn repos; * Coaptation: deferral blocks once a Hunt runner exists; * DYADT `files-examined` claim class with a syscall-level read set; -* must-differ rule for Moment paths in `check-mint-drift.sh`; +* provenance validation of Moment paths against the repo's receipts, with the `check-mint-drift.sh` replay only as a first pass that finds unedited copies; * centralised arrival-pack renderer (folded into rank 5). === Secondary ranking: dependability and security @@ -803,7 +803,7 @@ Struck candidates have no corrected form worth carrying. Their residue, if any, |Lawful keyed merge with conflict values (demoted to rank 14) |The flat clash resolver is not associative with tagged payloads (the lawful form is an MV-register). Keying `actions.lock` by workflow+action loses information in 13 of 360 locks. 5,118 of 5,943 merges happen on GitHub's servers, where custom drivers do not run. 0 JSONL or actions.lock files among 240 conflicting files in a 200-merge replay. |Footprint-typed work claims (demoted) |The swap and diamond theorems assume cross-applicability (I3) and model grades, not file content. About 5 genuine merge-race repairs found in 9 busy repos. Uber SubmitQueue and MCP Agent Mail are prior art. Residue: merge queue in high-churn repos, fail-closed boj path claims. |Finish Coaptation (demoted) |The Idris core is a model with an `ASSUMED` bridge to `coapt.ncl`, which actually decides. Subject indexing is trivial when all facts come from one deed. A single NUL control would have "witnessed" the invisible-character gate. Residue: deferral blocks in `coapt.ncl` once facts arrive (D11); in-toto-shaped facts. -|File kinds by generic versus specific dependence (demoted) |The Moment law flags the CODEOWNERS text canon prescribes verbatim (90 repos). It misses rendered stubs (4 of 30 "0% proven" files; 5 of 13 template READMEs). The Copy law flags MPL texts that differ by whitespace or http/https only. Residue: a must-differ rule for Moment paths inside `check-mint-drift.sh` replay. +|File kinds by generic versus specific dependence (demoted) |The Moment law flags the CODEOWNERS text canon prescribes verbatim (90 repos). It misses rendered stubs (4 of 30 "0% proven" files; 5 of 13 template READMEs). The Copy law flags MPL texts that differ by whitespace or http/https only. Residue: validate Moment paths against the repo's receipts (provenance), with the `check-mint-drift.sh` replay only as a first pass. A must-differ rule would keep the CODEOWNERS false positive. |Lock judge as single authority (demoted to rank 11) |See rank 11. Judge names 0 of the 16 unresolved pins; GitHub's GA lockfile and Dependabot regeneration are prior art and cure most of the stated pain. |Verdict kernel promoted over the bash gate (demoted to rank 12) |See rank 12. The bash gate already blocks absence (646 of 646 tests). Profiles from observed green runs omit dead workflows. Kernel and A3 disagree. |Workflow as typed value with a canonical printer (demoted to rank 13) |W2 (`tv-iff`) needs a value-preserving step; sweeps change values; kyq has no trivia or byte model. In 199 sampled pre-repair blobs, the largest wave (lockfile coverage) and the Scorecard wave pass the type. GitHub rejects duplicate keys rather than over-granting. `github-actions-models`, `yamlpatch` and actionlint are prior art. diff --git a/docs/proposals/types-tropes-estate-upkeep.adoc b/docs/proposals/types-tropes-estate-upkeep.adoc index b3b5aa95..01250234 100644 --- a/docs/proposals/types-tropes-estate-upkeep.adoc +++ b/docs/proposals/types-tropes-estate-upkeep.adoc @@ -528,7 +528,7 @@ place in the portfolio's primary ranking (elegance and correctness); |2 |No pass on absence (verdict kernel) |✘ |✘ |Demoted to rank 12 |3 |Workflows as values |✘ |✘ |Demoted to rank 13 |4 |Template sync as a lens |✘ |✔ |Rank 6 -|5 |Copy versus moment files |✘ |✘ |Demoted to 17+ (must-differ rule) +|5 |Copy versus moment files |✘ |✘ |Demoted to 17+ (provenance validation of moment files) |6 |Checks keyed by what they read |✘ |✔ |Rank 8 |7 |Criterial inherence |✘ |✘ |Struck; residue in rank 8 |8 |Blob-borne verdicts |✘ |✘ |Struck; residue in rank 8