From 46d3bb86a4efbc4e2e1f6c085797455e8a7c0b25 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 09:39:29 +0000 Subject: [PATCH 1/4] registry: pin Lintel to the receipt that records its runs; clone imports for the git check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lintel's eight rows move to its receipt at main e5e57cc (metadatastician/lintel#36), which describes 434228b and records the three image-bound runs. The reader at standards 84c2d1c derives PWG-1 for L-1 to L-4, L-6 and L-7. That needed a fix here first: gitChecker gave the shared checker only the home repository's clone, so a receipt with an (import ...) failed the §8.5.3 git checks ("no clone given") and its PWG-1 was catalogued as PWG-2ii. It now clones each repository the reader's record imports and passes it as --import OWNER/REPO=DIR. Census: 12 at PWG-1, 5 at PWG-2ii, 31 at PWG-2i, 0 at PWG-3, 0 ungraded, of 48 theorems. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017yYi5JxzXZs6nz1ZSForfP --- CHANGELOG.adoc | 14 +++++++++++ docs/atlas/claims/claims.jsonl | 16 ++++++------- docs/atlas/generated/registry.adoc | 18 +++++++------- scripts/registry/claims-registry.mjs | 32 +++++++++++++++++++++---- tests/registry/claims-registry.test.mjs | 12 +++++++++- 5 files changed, 69 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index d5d4ecf9..8bab48bd 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -186,6 +186,20 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. ==== Changed +* **Lintel's claims are pinned to the receipt that records its runs.** Its + eight rows move to the receipt at main `e5e57cc` (metadatastician/lintel#36), + which describes `434228b` and records the three image-bound runs of run + 46174570112. The reader at standards `84c2d1c` derives `PWG-1` for L-1, + L-2, L-3, L-4, L-6 and L-7. Census: 12 at `PWG-1`, 5 at `PWG-2ii`, 31 at + `PWG-2i`, 0 at `PWG-3`, 0 `ungraded`, of 48 theorems. +* **The git check of the claims registry clones what a receipt imports.** + `gitChecker` in `scripts/registry/claims-registry.mjs` passed the shared + checker only the home repository's clone. A receipt with an `(import …)` + then failed §8.5.3 ("no clone given"), and its `PWG-1` was catalogued as + `PWG-2ii`; this happened to Lintel's receipt, which imports secret-types. + The checker now clones each imported repository once and passes it as + `--import OWNER/REPO=DIR`. `importedRepositories` reads the repositories from + the reader's record, and a test covers it. * **The claims of secret-types and Lintel are pinned to their current receipts.** secret-types' nine rows move to its receipt at main `0bce5bd` (secret-types#58), which describes `89302d2` (hyperpolymath/mathesis#133). diff --git a/docs/atlas/claims/claims.jsonl b/docs/atlas/claims/claims.jsonl index 33c9f8ad..00be25f7 100644 --- a/docs/atlas/claims/claims.jsonl +++ b/docs/atlas/claims/claims.jsonl @@ -7,14 +7,14 @@ {"agda":{"module":"SecretTypes.Noninterference.Generic","names":["tini"]},"claim":"N-7","id":"hyperpolymath/secret-types#N-7","kind":"theorem","receipt":{"path":"verification/receipts/agda_praxis.deed","sha256":"ecbddcdcc7b1be46542567d624ab955ba1407a9ae2a4d38cf1183cca7e0cb122"},"repo":"hyperpolymath/secret-types","source_commit":"0bce5bda840cdbdf91e191608b7aafe38a5f9489","statement":"TINI over the Lattice record: for every variable set with decidable equality, lattice, labelling and down-closed observer, two finishing runs of a well-typed command from stores agreeing on what the observer sees end agreeing on it","status_doc":"PROOF-STATUS.adoc"} {"agda":{"module":"SecretTypes.Countermodels","names":["NoUpper₁.refutes","NoUpper₂.refutes","NoDownClosure.refutes","NoTrans.refutes"]},"claim":"N-8","id":"hyperpolymath/secret-types#N-8","kind":"theorem","receipt":{"path":"verification/receipts/agda_praxis.deed","sha256":"ecbddcdcc7b1be46542567d624ab955ba1407a9ae2a4d38cf1183cca7e0cb122"},"repo":"hyperpolymath/secret-types","source_commit":"0bce5bda840cdbdf91e191608b7aafe38a5f9489","statement":"Each census law is necessary: dropping an upper-bound law or observer down-closure admits a well-typed leaking program; transitivity is necessary for principal observers","status_doc":"PROOF-STATUS.adoc"} {"agda":{"module":"SecretTypes.Noninterference.OutcomeVisibility","names":["termination-sensitive-fails"]},"claim":"N-9","id":"hyperpolymath/secret-types#N-9","kind":"theorem","receipt":{"path":"verification/receipts/agda_praxis.deed","sha256":"ecbddcdcc7b1be46542567d624ab955ba1407a9ae2a4d38cf1183cca7e0cb122"},"repo":"hyperpolymath/secret-types","source_commit":"0bce5bda840cdbdf91e191608b7aafe38a5f9489","statement":"If an observer sees finishing versus not finishing, termination-sensitive noninterference is false for the current typing rules","status_doc":"PROOF-STATUS.adoc"} -{"agda":{"module":"Lintel.Lattice","names":["⊑-refl","⊑-trans","⊑-antisym","⊔-upper₁","⊔-upper₂","⊔-least","⊓-lower₁","⊓-lower₂","⊓-greatest","anyone-least","no-one-greatest","no-one-⋢-anyone","_⊑?_"]},"claim":"L-1","id":"metadatastician/lintel#L-1","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"A lattice, not just a poset: ⊑ is a decidable partial order, ⊔ and ⊓ are least upper and greatest lower bounds, anyone is least and no-one greatest","status_doc":"docs/status/PROOF-STATUS.adoc"} -{"agda":{"module":"Lintel.Lattice","names":["⊑-readers","readers-⊑","observes-flow","flow-observes"]},"claim":"L-2","id":"metadatastician/lintel#L-2","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"⊑ is reverse inclusion of reader sets; a role sees a label exactly when the label may flow to that role's observer level","status_doc":"docs/status/PROOF-STATUS.adoc"} -{"agda":{"module":"Lintel.Instance","names":["reader-sets"]},"claim":"L-3","id":"metadatastician/lintel#L-3","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"The laws secret-types' generic TINI needs hold here, packed as an instance of its Lattice record","status_doc":"docs/status/PROOF-STATUS.adoc"} -{"agda":{"module":"Lintel.Lattice","names":["address-to-proxy","qname-to-target","link","link-confined"]},"claim":"L-4","id":"metadatastician/lintel#L-4","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"Address and query name each reach their own role; composed, only the client may observe them","status_doc":"docs/status/PROOF-STATUS.adoc"} -{"agda":null,"claim":"L-5","id":"metadatastician/lintel#L-5","kind":"demonstration","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"The typechecker refuses the self-defeating compositions and accepts the client's","status_doc":"docs/status/PROOF-STATUS.adoc"} -{"agda":{"module":"Lintel.Instance","names":["tini-per-role","tini-coalition"]},"claim":"L-6","id":"metadatastician/lintel#L-6","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"tini holds at this lattice over the address, the query name and the client's local state, for each role's observer and for any two roles observing together","status_doc":"docs/status/PROOF-STATUS.adoc"} -{"agda":{"module":"Lintel.Composition","names":["writes-flow","link-written-to-client","link-written-to-local","link-writable"]},"claim":"L-7","id":"metadatastician/lintel#L-7","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"Self-defeating privacy compositions cannot be built as programs: a typed command writes a value depending on both fields only into a variable the client alone may read","status_doc":"docs/status/PROOF-STATUS.adoc"} -{"agda":null,"claim":"A-1","id":"metadatastician/lintel#A-1","kind":"assumption","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"65e7848c5d91b6b1e40e69645ac84b146ce4b6e2738622d3c4ce9ebc0f7cffe7"},"repo":"metadatastician/lintel","source_commit":"434228bc923a2c02953f5f95e927dfa80b325871","statement":"Non-collusion: no party holds both the proxy and the target role (the gap is proved: collusion-gap)","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":{"module":"Lintel.Lattice","names":["⊑-refl","⊑-trans","⊑-antisym","⊔-upper₁","⊔-upper₂","⊔-least","⊓-lower₁","⊓-lower₂","⊓-greatest","anyone-least","no-one-greatest","no-one-⋢-anyone","_⊑?_"]},"claim":"L-1","id":"metadatastician/lintel#L-1","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"A lattice, not just a poset: ⊑ is a decidable partial order, ⊔ and ⊓ are least upper and greatest lower bounds, anyone is least and no-one greatest","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":{"module":"Lintel.Lattice","names":["⊑-readers","readers-⊑","observes-flow","flow-observes"]},"claim":"L-2","id":"metadatastician/lintel#L-2","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"⊑ is reverse inclusion of reader sets; a role sees a label exactly when the label may flow to that role's observer level","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":{"module":"Lintel.Instance","names":["reader-sets"]},"claim":"L-3","id":"metadatastician/lintel#L-3","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"The laws secret-types' generic TINI needs hold here, packed as an instance of its Lattice record","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":{"module":"Lintel.Lattice","names":["address-to-proxy","qname-to-target","link","link-confined"]},"claim":"L-4","id":"metadatastician/lintel#L-4","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"Address and query name each reach their own role; composed, only the client may observe them","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":null,"claim":"L-5","id":"metadatastician/lintel#L-5","kind":"demonstration","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"The typechecker refuses the self-defeating compositions and accepts the client's","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":{"module":"Lintel.Instance","names":["tini-per-role","tini-coalition"]},"claim":"L-6","id":"metadatastician/lintel#L-6","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"tini holds at this lattice over the address, the query name and the client's local state, for each role's observer and for any two roles observing together","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":{"module":"Lintel.Composition","names":["writes-flow","link-written-to-client","link-written-to-local","link-writable"]},"claim":"L-7","id":"metadatastician/lintel#L-7","kind":"theorem","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"Self-defeating privacy compositions cannot be built as programs: a typed command writes a value depending on both fields only into a variable the client alone may read","status_doc":"docs/status/PROOF-STATUS.adoc"} +{"agda":null,"claim":"A-1","id":"metadatastician/lintel#A-1","kind":"assumption","receipt":{"path":"verification/receipts/agda-pwg_praxis.deed","sha256":"63e47a97361f8754f4a90bc91ccb0e3dfdd82338ab1ef0d5f53ee27d72c816a6"},"repo":"metadatastician/lintel","source_commit":"e5e57cc66a32615c3375cb717aa3a171b5d63610","statement":"Non-collusion: no party holds both the proxy and the target role (the gap is proved: collusion-gap)","status_doc":"docs/status/PROOF-STATUS.adoc"} {"agda":{"module":"FeatureReachability","names":["Cargo.absent-under-all-features","Monotone.reach-mono"]},"claim":"THY-1","id":"hyperpolymath/mathesis#THY-1","kind":"theorem","receipt":{"path":"verification/receipts/theory_praxis.deed","sha256":"e57efc6832f884bc697dd2f99f0073c8d0e765fd0430c438ff604f9d199b9098"},"repo":"hyperpolymath/mathesis","shelf":"theory","source_commit":"10f9f46ff7e1c8a0433164bc8bf6d8f30842fd4c","statement":"In a dependency graph whose edges are guarded by features closed under Horn rules, and by an arbitrary per-target condition, a node unreachable with every feature requested is unreachable under any request, on each target (`Cargo.absent-under-all-features`). The general form is `Monotone.reach-mono`: reachability over a monotone family of edge sets is monotone.","status_doc":"docs/status/PROOF-STATUS.adoc"} {"agda":{"module":"Applied.Missing","names":["Proofs.closing-needs","Proofs.missing-persists","Proofs.closings-missing","Proofs.verdict-yes","Proofs.breach-decides","Proofs.verdict-missing","Proofs.verdict-not-yes"]},"claim":"APP-1","id":"hyperpolymath/mathesis#APP-1","kind":"theorem","receipt":{"path":"verification/receipts/theory_praxis.deed","sha256":"e57efc6832f884bc697dd2f99f0073c8d0e765fd0430c438ff604f9d199b9098"},"repo":"hyperpolymath/mathesis","shelf":"applied","source_commit":"10f9f46ff7e1c8a0433164bc8bf6d8f30842fd4c","statement":"Missing propagates: in the cohort model, an output that depends on a missing input is missing, in every period after it too, and never zero. A verdict is \"no\" on a known breach and otherwise missing when any value it depends on is missing; it is never \"yes\" then.","status_doc":"docs/status/PROOF-STATUS.adoc"} {"agda":{"module":"Applied.Cash","names":["Proofs.cash-identity"]},"claim":"APP-2","id":"hyperpolymath/mathesis#APP-2","kind":"theorem","receipt":{"path":"verification/receipts/theory_praxis.deed","sha256":"e57efc6832f884bc697dd2f99f0073c8d0e765fd0430c438ff604f9d199b9098"},"repo":"hyperpolymath/mathesis","shelf":"applied","source_commit":"10f9f46ff7e1c8a0433164bc8bf6d8f30842fd4c","statement":"Cash identity: the closing cash of the last period equals the opening cash plus, summed over the periods, receipts minus payments; when a value is missing, both sides are missing. Proved for any ordered abelian group; `Applied.IntLaws` proves the integers are one.","status_doc":"docs/status/PROOF-STATUS.adoc"} diff --git a/docs/atlas/generated/registry.adoc b/docs/atlas/generated/registry.adoc index f45cb685..2e333d6a 100644 --- a/docs/atlas/generated/registry.adoc +++ b/docs/atlas/generated/registry.adoc @@ -10,7 +10,7 @@ assigned (§8.5). A grade is not a discharge (§8.4): `PWG-3` theorems still owe their Rocq and Lean legs. Status of this slice: accepted in link:../../decisions/0004-claims-registry.adoc[ADR 0004], ratified by the owner. -Census: 6 at `PWG-1`, 5 at `PWG-2ii`, 31 at `PWG-2i`, 0 at `PWG-3`, 6 `ungraded`, of 48 theorems. 6 demonstrations and assumptions are listed and not graded. +Census: 12 at `PWG-1`, 5 at `PWG-2ii`, 31 at `PWG-2i`, 0 at `PWG-3`, 0 `ungraded`, of 48 theorems. 6 demonstrations and assumptions are listed and not graded. [cols="2,1,1,4,3",options="header"] |=== @@ -108,20 +108,20 @@ Census: 6 at `PWG-1`, 5 at `PWG-2ii`, 31 at `PWG-2i`, 0 at `PWG-3`, 6 `ungraded` |https://github.com/hyperpolymath/secret-types/blob/0bce5bda840cdbdf91e191608b7aafe38a5f9489/PROOF-STATUS.adoc[hyperpolymath/secret-types#N-9] at `0bce5bda840c`; the receipt describes `89302d2d1104` |theorem |`PWG-1` |If an observer sees finishing versus not finishing, termination-sensitive noninterference is false for the current typing rules (`SecretTypes.Noninterference.OutcomeVisibility`: `termination-sensitive-fails`) |— -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#A-1] at `434228bc923a` |assumption |`ungraded` |Non-collusion: no party holds both the proxy and the target role (the gap is proved: collusion-gap) |assumption, not a theorem (§8.1) +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#A-1] at `e5e57cc66a32` |assumption |`ungraded` |Non-collusion: no party holds both the proxy and the target role (the gap is proved: collusion-gap) |assumption, not a theorem (§8.1) -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-1] at `434228bc923a`; the receipt describes `d7bdc21a1264` |theorem |`ungraded` |A lattice, not just a poset: ⊑ is a decidable partial order, ⊔ and ⊓ are least upper and greatest lower bounds, anyone is least and no-one greatest (`Lintel.Lattice`: `⊑-refl`, `⊑-trans`, `⊑-antisym`, `⊔-upper₁`, `⊔-upper₂`, `⊔-least`, `⊓-lower₁`, `⊓-lower₂`, `⊓-greatest`, `anyone-least`, `no-one-greatest`, `no-one-⋢-anyone`, `_⊑?_`) |the reader derives ungraded from the legs and receipts at `d7bdc21a1264` +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-1] at `e5e57cc66a32`; the receipt describes `434228bc923a` |theorem |`PWG-1` |A lattice, not just a poset: ⊑ is a decidable partial order, ⊔ and ⊓ are least upper and greatest lower bounds, anyone is least and no-one greatest (`Lintel.Lattice`: `⊑-refl`, `⊑-trans`, `⊑-antisym`, `⊔-upper₁`, `⊔-upper₂`, `⊔-least`, `⊓-lower₁`, `⊓-lower₂`, `⊓-greatest`, `anyone-least`, `no-one-greatest`, `no-one-⋢-anyone`, `_⊑?_`) |— -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-2] at `434228bc923a`; the receipt describes `d7bdc21a1264` |theorem |`ungraded` |⊑ is reverse inclusion of reader sets; a role sees a label exactly when the label may flow to that role's observer level (`Lintel.Lattice`: `⊑-readers`, `readers-⊑`, `observes-flow`, `flow-observes`) |the reader derives ungraded from the legs and receipts at `d7bdc21a1264` +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-2] at `e5e57cc66a32`; the receipt describes `434228bc923a` |theorem |`PWG-1` |⊑ is reverse inclusion of reader sets; a role sees a label exactly when the label may flow to that role's observer level (`Lintel.Lattice`: `⊑-readers`, `readers-⊑`, `observes-flow`, `flow-observes`) |— -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-3] at `434228bc923a`; the receipt describes `d7bdc21a1264` |theorem |`ungraded` |The laws secret-types' generic TINI needs hold here, packed as an instance of its Lattice record (`Lintel.Instance`: `reader-sets`) |the reader derives ungraded from the legs and receipts at `d7bdc21a1264` +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-3] at `e5e57cc66a32`; the receipt describes `434228bc923a` |theorem |`PWG-1` |The laws secret-types' generic TINI needs hold here, packed as an instance of its Lattice record (`Lintel.Instance`: `reader-sets`) |— -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-4] at `434228bc923a`; the receipt describes `d7bdc21a1264` |theorem |`ungraded` |Address and query name each reach their own role; composed, only the client may observe them (`Lintel.Lattice`: `address-to-proxy`, `qname-to-target`, `link`, `link-confined`) |the reader derives ungraded from the legs and receipts at `d7bdc21a1264` +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-4] at `e5e57cc66a32`; the receipt describes `434228bc923a` |theorem |`PWG-1` |Address and query name each reach their own role; composed, only the client may observe them (`Lintel.Lattice`: `address-to-proxy`, `qname-to-target`, `link`, `link-confined`) |— -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-5] at `434228bc923a` |demonstration |`ungraded` |The typechecker refuses the self-defeating compositions and accepts the client's |demonstration, not a theorem (§8.1) +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-5] at `e5e57cc66a32` |demonstration |`ungraded` |The typechecker refuses the self-defeating compositions and accepts the client's |demonstration, not a theorem (§8.1) -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-6] at `434228bc923a`; the receipt describes `d7bdc21a1264` |theorem |`ungraded` |tini holds at this lattice over the address, the query name and the client's local state, for each role's observer and for any two roles observing together (`Lintel.Instance`: `tini-per-role`, `tini-coalition`) |the reader derives ungraded from the legs and receipts at `d7bdc21a1264` +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-6] at `e5e57cc66a32`; the receipt describes `434228bc923a` |theorem |`PWG-1` |tini holds at this lattice over the address, the query name and the client's local state, for each role's observer and for any two roles observing together (`Lintel.Instance`: `tini-per-role`, `tini-coalition`) |— -|https://github.com/metadatastician/lintel/blob/434228bc923a2c02953f5f95e927dfa80b325871/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-7] at `434228bc923a`; the receipt describes `d7bdc21a1264` |theorem |`ungraded` |Self-defeating privacy compositions cannot be built as programs: a typed command writes a value depending on both fields only into a variable the client alone may read (`Lintel.Composition`: `writes-flow`, `link-written-to-client`, `link-written-to-local`, `link-writable`) |the reader derives ungraded from the legs and receipts at `d7bdc21a1264` +|https://github.com/metadatastician/lintel/blob/e5e57cc66a32615c3375cb717aa3a171b5d63610/docs/status/PROOF-STATUS.adoc[metadatastician/lintel#L-7] at `e5e57cc66a32`; the receipt describes `434228bc923a` |theorem |`PWG-1` |Self-defeating privacy compositions cannot be built as programs: a typed command writes a value depending on both fields only into a variable the client alone may read (`Lintel.Composition`: `writes-flow`, `link-written-to-client`, `link-written-to-local`, `link-writable`) |— |=== diff --git a/scripts/registry/claims-registry.mjs b/scripts/registry/claims-registry.mjs index beeb059b..02aac08a 100644 --- a/scripts/registry/claims-registry.mjs +++ b/scripts/registry/claims-registry.mjs @@ -272,9 +272,25 @@ export async function checkerScript(standardsDir = process.env.MATHESIS_STANDARD return pinned(CHECKER.path, CHECKER.sha256); } +// The repositories that a receipt's (import …) forms name, read from the +// reader's record: every `imports` list it holds, at any depth, sorted. +export function importedRepositories(record) { + const repos = new Set(); + const walk = v => { + if (Array.isArray(v)) return v.forEach(walk); + if (!v || typeof v !== 'object') return; + if (Array.isArray(v.imports)) for (const i of v.imports) if (typeof i?.repository === 'string') repos.add(i.repository); + Object.values(v).forEach(walk); + }; + walk(record); + return [...repos].sort(); +} + // The shared checker of the standards checkout, after the digest checks of both -// pinned scripts. It returns (row, text) => {ok, reason}, cloning each home -// repository once, with the pull-request heads that a squashed echo source needs. +// pinned scripts. It returns (row, text, record) => {ok, reason}, cloning each +// repository once, with the pull-request heads that a squashed echo source needs: +// the home repository, and each repository the receipt imports, which the +// checker takes as `--import OWNER/REPO=DIR` (PROOF-POLICY §8.5.3). export async function gitChecker(standardsDir = process.env.MATHESIS_STANDARDS) { const script = await checkerScript(standardsDir); const work = await mkdtemp(path.join(tmpdir(), 'mathesis-git-')); @@ -294,12 +310,18 @@ export async function gitChecker(standardsDir = process.env.MATHESIS_STANDARDS) } return clones.get(repo); }; - const check = async (row, text) => { + const check = async (row, text, record = null) => { const c = clone(row.repo); if (!c.dir) return {ok: false, reason: c.reason}; + const imports = []; + for (const repo of importedRepositories(record)) { + const i = clone(repo); + if (!i.dir) return {ok: false, reason: i.reason}; + imports.push('--import', `${repo}=${i.dir}`); + } const file = path.join(await mkdtemp(path.join(work, 'r-')), path.basename(row.receipt.path)); await writeFile(file, text); - const r = run('bash', [script, '--branch', c.branch, file, c.dir]); + const r = run('bash', [script, '--branch', c.branch, ...imports, file, c.dir]); if (r.status === 0) return {ok: true}; const why = `${r.stdout}${r.stderr}`.trim().split('\n').filter(l => !l.startsWith('ok ')).slice(-2).join('; '); return {ok: false, reason: `check-proof-receipt.sh exit ${r.status}: ${why}`}; @@ -342,7 +364,7 @@ export async function deriveAll(rows, receiptsDir, readProofReceipt, gitCheck = const derived = rows.map(row => ({row, ...derive(row, reads.get(receiptKey(row)) ?? null)})); const graded = derived.filter(d => d.pwg === 'PWG-1').map(d => d.row); const checks = new Map(await Promise.all(once(graded).map(async ([key, row]) => - [key, gitCheck ? await gitCheck(row, reads.get(key).text) : {ok: false, reason: 'no git check ran'}]))); + [key, gitCheck ? await gitCheck(row, reads.get(key).text, reads.get(key).record) : {ok: false, reason: 'no git check ran'}]))); return derived.map(d => (d.pwg === 'PWG-1' ? withGitCheck(d, checks.get(receiptKey(d.row))) : d)); } diff --git a/tests/registry/claims-registry.test.mjs b/tests/registry/claims-registry.test.mjs index d5f1b668..dd650237 100644 --- a/tests/registry/claims-registry.test.mjs +++ b/tests/registry/claims-registry.test.mjs @@ -9,7 +9,7 @@ import {readFileSync, mkdtempSync, mkdirSync, writeFileSync, copyFileSync} from import {createHash} from 'node:crypto'; import {tmpdir} from 'node:os'; import path from 'node:path'; -import {isClaimId, validate, loadReader, derive, deriveAll, withGitCheck, findTool, gitChecker, checkerScript, render, READER, CHECKER, GENERATOR} from '../../scripts/registry/claims-registry.mjs'; +import {isClaimId, validate, loadReader, derive, deriveAll, withGitCheck, findTool, gitChecker, checkerScript, importedRepositories, render, READER, CHECKER, GENERATOR} from '../../scripts/registry/claims-registry.mjs'; import {parseJsonl} from '../../scripts/atlas/census-atlas.mjs'; const rows = parseJsonl(readFileSync(new URL('../../docs/atlas/claims/claims.jsonl', import.meta.url), 'utf8')); @@ -239,3 +239,13 @@ test('a claim id names a GitHub repository by GitHub\'s own rule', () => { expect(isClaimId('hyperpolymath/resource-algebra#C-1')).toBe(true); for (const id of ['../..#C-1', 'o/..#C-1', 'o_x/r#C-1', 'o#C-1', '#C-1', 'o/r#']) expect(isClaimId(id)).toBe(false); }); + +test('the git check gets a clone of every repository a receipt imports', () => { + const record = {claims: [ + {legs: [{receipts: [{imports: [{repository: 'b/two'}, {repository: 'a/one'}]}]}]}, + {legs: [{receipts: [{imports: [{repository: 'a/one'}]}, {imports: []}]}]}, + ]}; + expect(importedRepositories(record)).toEqual(['a/one', 'b/two']); + expect(importedRepositories(null)).toEqual([]); + expect(importedRepositories({claims: [{legs: [{receipts: [{imports: [{repository: 7}]}]}]}]})).toEqual([]); +}); From 37693fbdea21cc078541c5821c1af68071576feb Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 09:41:06 +0000 Subject: [PATCH 2/4] docs(changelog): keep the run number off the start of a line (asciidoctor read it as a list index) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017yYi5JxzXZs6nz1ZSForfP --- CHANGELOG.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 8bab48bd..2acddb42 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -188,8 +188,8 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. * **Lintel's claims are pinned to the receipt that records its runs.** Its eight rows move to the receipt at main `e5e57cc` (metadatastician/lintel#36), - which describes `434228b` and records the three image-bound runs of run - 46174570112. The reader at standards `84c2d1c` derives `PWG-1` for L-1, + which describes `434228b` and records the three image-bound runs of + run `46174570112`. The reader at standards `84c2d1c` derives `PWG-1` for L-1, L-2, L-3, L-4, L-6 and L-7. Census: 12 at `PWG-1`, 5 at `PWG-2ii`, 31 at `PWG-2i`, 0 at `PWG-3`, 0 `ungraded`, of 48 theorems. * **The git check of the claims registry clones what a receipt imports.** From d386dae806ebb10710d9b31080f447524291c21d Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 09:43:15 +0000 Subject: [PATCH 3/4] registry: sort imported repositories with an explicit code-unit compare (Sonar S2871) Same order as before; the compare function states it, as bridges.mjs does. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017yYi5JxzXZs6nz1ZSForfP --- scripts/registry/claims-registry.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/registry/claims-registry.mjs b/scripts/registry/claims-registry.mjs index 02aac08a..76c72a6d 100644 --- a/scripts/registry/claims-registry.mjs +++ b/scripts/registry/claims-registry.mjs @@ -283,7 +283,7 @@ export function importedRepositories(record) { Object.values(v).forEach(walk); }; walk(record); - return [...repos].sort(); + return [...repos].sort((a, b) => Number(a > b) - Number(a < b)); } // The shared checker of the standards checkout, after the digest checks of both From 2dfe498aad7797461808e31bfbb65e268b76876d Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 09:47:26 +0000 Subject: [PATCH 4/4] registry: refuse an imported repository that is not OWNER/REPO before cloning The canon reader already refuses an import :repository with more than one slash, so no receipt can reach this today; the guard keeps the clone directory and URL safe for any record, using the registry's own GitHub rule. A test covers four malformed names and fails without the guard. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017yYi5JxzXZs6nz1ZSForfP --- scripts/registry/claims-registry.mjs | 7 ++++++- tests/registry/claims-registry.test.mjs | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/scripts/registry/claims-registry.mjs b/scripts/registry/claims-registry.mjs index 76c72a6d..15b2b9b1 100644 --- a/scripts/registry/claims-registry.mjs +++ b/scripts/registry/claims-registry.mjs @@ -311,10 +311,15 @@ export async function gitChecker(standardsDir = process.env.MATHESIS_STANDARDS) return clones.get(repo); }; const check = async (row, text, record = null) => { + // An imported repository names a clone directory and a URL, so it must be + // OWNER/REPO by GitHub's rule before anything is cloned (fail closed). + const imported = importedRepositories(record); + const bad = imported.find(repo => !GITHUB_REPO.test(repo)); + if (bad !== undefined) return {ok: false, reason: `import ${JSON.stringify(bad)} is not OWNER/REPO`}; const c = clone(row.repo); if (!c.dir) return {ok: false, reason: c.reason}; const imports = []; - for (const repo of importedRepositories(record)) { + for (const repo of imported) { const i = clone(repo); if (!i.dir) return {ok: false, reason: i.reason}; imports.push('--import', `${repo}=${i.dir}`); diff --git a/tests/registry/claims-registry.test.mjs b/tests/registry/claims-registry.test.mjs index dd650237..053388ea 100644 --- a/tests/registry/claims-registry.test.mjs +++ b/tests/registry/claims-registry.test.mjs @@ -249,3 +249,17 @@ test('the git check gets a clone of every repository a receipt imports', () => { expect(importedRepositories(null)).toEqual([]); expect(importedRepositories({claims: [{legs: [{receipts: [{imports: [{repository: 7}]}]}]}]})).toEqual([]); }); + +test('an imported repository that is not OWNER/REPO is refused before any clone', async () => { + const check = await gitChecker(); + try { + for (const repository of ['a/../../x', '../x', 'a/b/c', 'a']) { + const r = await check({...theorem, receipt: {path: 'r_praxis.deed', sha256: 'a'.repeat(64)}}, fixture(), + {imports: [{repository}]}); + expect(r.ok).toBe(false); + expect(r.reason).toBe(`import ${JSON.stringify(repository)} is not OWNER/REPO`); + } + } finally { + await check.cleanup(); + } +});