Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
377c32e
feat(formal): a retire with no seal, and the fresh identity
ascalva Nov 12, 2026
9ce5ac5
test(formal): attack the retire with no seal, with its controls
ascalva Nov 12, 2026
10ecf11
docs(design): a retire is the shallow removal, and six findings closed
ascalva Nov 12, 2026
906b885
docs(paper): the pass alone cascades, and the resolver's bounds
ascalva Nov 12, 2026
4e2566b
docs(readme): the Lean counts from this tree's check.sh run
ascalva Nov 12, 2026
d618d24
feat(stores): the catalog keeps its past in a landing log (SN-1)
ascalva Nov 12, 2026
5365e21
ops(secrets): the landing log's secret in the wrapper and the runbook
ascalva Nov 12, 2026
0d5da81
feat(formal): SNP-1 to SNP-5 enter the ledger as family XVI
ascalva Nov 12, 2026
f18223e
perf(stores): the log's writes by path seek the key index
ascalva Nov 12, 2026
5a08779
feat(eval): the landing log bench and its record on the corpus's catalog
ascalva Nov 12, 2026
d2faafa
docs(design): the snapshot note carries stage SN-1 as built
ascalva Nov 12, 2026
c51f7e9
docs(paper): the landing log, the article of stage SN-1
ascalva Nov 12, 2026
0916c5b
fix(stores): an open before the log's genesis waits for another's lock
ascalva Nov 12, 2026
76723f7
docs(readme): the counts from this branch's runs
ascalva Nov 12, 2026
73467ef
fix(stores): what a purge leaves, what a hole is, and a batch's faile…
ascalva Nov 12, 2026
9d847ed
feat(eval): the landing log bench's control is the write before SN-1
ascalva Nov 12, 2026
03b20b2
perf(stores): a batch's savepoints keep their journal in memory
ascalva Nov 12, 2026
daf24e2
docs(experiments): the landing log's record from runs against the wri…
ascalva Nov 12, 2026
6fc1a7e
docs(design): the snapshot note after SN-1's review
ascalva Nov 12, 2026
204cee0
docs(runbook): what the landing log's secret is needed for
ascalva Nov 12, 2026
bf191d1
docs(formal): which controls are statements, and seed 523 under SNP-2
ascalva Nov 12, 2026
92888e4
docs(paper): the landing log's article after review, and the design's
ascalva Nov 12, 2026
098301a
docs(readme): the counts from the review's runs
ascalva Nov 12, 2026
fb5535e
docs(stores): a chain's id is given once while the log's tables stand
ascalva Nov 12, 2026
c8c8f6a
docs(stores): a chain's id and a position are given once while the ta…
ascalva Nov 12, 2026
7216f2c
perf(stores): a purge by digest walks the log twice
ascalva Nov 12, 2026
c6eda44
test(stores): a batch's earlier write, the batched landing's version,…
ascalva Nov 12, 2026
a14d501
ops(lifecycle): the daemon's plists run under the secrets wrapper
ascalva Nov 12, 2026
7720134
docs(paper): the landing log's article after the second review
ascalva Nov 12, 2026
245f938
docs(readme): the counts from the second review's runs
ascalva Nov 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

[![CI](https://github.com/ascalva/mind-palace/actions/workflows/ci.yml/badge.svg)](https://github.com/ascalva/mind-palace/actions/workflows/ci.yml)
[![Lean](https://github.com/ascalva/mind-palace/actions/workflows/lean.yml/badge.svg)](https://github.com/ascalva/mind-palace/actions/workflows/lean.yml)
[![laws](https://img.shields.io/badge/laws-100_rows_in_15_families-blue)](docs/LAWS.md)
[![Lean statements](https://img.shields.io/badge/Lean-328_statements_judged-blue)](formal/README.md)
[![laws](https://img.shields.io/badge/laws-105_rows_in_16_families-blue)](docs/LAWS.md)
[![Lean statements](https://img.shields.io/badge/Lean-375_statements_judged-blue)](formal/README.md)
[![sorry](https://img.shields.io/badge/sorry-0-brightgreen)](formal/sorry-budget)
[![kernels](https://img.shields.io/badge/kernel_replay-6_checkers-6f42c1)](formal/check.sh)
[![attacks](https://img.shields.io/badge/attacks-227_with_controls-blue)](formal/PalaceTest)
[![tests](https://img.shields.io/badge/tests-3651-brightgreen)](docs/runbook.md)
[![attacks](https://img.shields.io/badge/attacks-232_with_controls-blue)](formal/PalaceTest)
[![tests](https://img.shields.io/badge/tests-3673-brightgreen)](docs/runbook.md)
[![coverage](https://img.shields.io/badge/coverage-77%25-green)](pyproject.toml)
[![mypy](https://img.shields.io/badge/mypy-0_errors_in_core-brightgreen)](pyproject.toml)
[![sealed core](https://img.shields.io/badge/sealed_core-zero_egress-6f42c1)](scripts/check_imports.py)
Expand Down Expand Up @@ -121,13 +121,13 @@ A law has one row in [`docs/LAWS.md`](docs/LAWS.md): its statement, the structur
| | |
|---|---|
| toolchain | Lean `v4.36.0-rc2`, Mathlib; Plausible for the attacks |
| the library | 38 proof modules, 37 models, 26 statement files; 25,426 lines of models and proofs, 3,460 of statements, 5,705 of attacks |
| theorems | 1,520 proved in `formal/Palace`; 328 statements in `formal/Spec` judged identical by the comparator |
| the ledger | 100 rows in 15 families, 334 cited declarations, 87 law markers checked against the rows |
| attacks | 227 Plausible attacks and 203 negative controls over 33 modules, fixed seeds |
| the library | 38 proof modules, 37 models, 27 statement files; 25,652 lines of models and proofs, 3,810 of statements, 5,757 of attacks |
| theorems | 1,538 proved in `formal/Palace`; 375 statements in `formal/Spec` judged identical by the comparator |
| the ledger | 105 rows in 16 families, 381 cited declarations, 92 law markers checked against the rows |
| attacks | 232 Plausible attacks and 206 negative controls over 33 modules, fixed seeds |
| axioms | `propext`, `Classical.choice`, `Quot.sound`; `sorry` 0 |
| the replay | 56,188 declarations accepted by all six checkers on the run of `formal/check.sh` this commit was built with |
| families | memberships · Laplacian, balance and spectral · cut and conductance · curvature · the global event clock · the shared prose plane · capability scopes · the abstraction ultrametric σ* · bridges · the retrieval curve · the query sentence algebra · the ingress · stored vectors · the growth readout · the utility field |
| the replay | 56,231 declarations accepted by all six checkers on the run of `formal/check.sh` this commit was built with |
| families | memberships · Laplacian, balance and spectral · cut and conductance · curvature · the global event clock · the shared prose plane · capability scopes · the abstraction ultrametric σ* · bridges · the retrieval curve · the query sentence algebra · the ingress · stored vectors · the growth readout · the utility field · the temporal snapshot |

## The mathematics

Expand Down Expand Up @@ -177,7 +177,7 @@ The build's own history is a dataset. Every commit's structure is snapshotted in

```sh
uv sync --extra dev
uv run pytest -q -m 'not live and not podman and not needs_vault and not needs_restic' # the deterministic tier: 3,651 tests
uv run pytest -q -m 'not live and not podman and not needs_vault and not needs_restic' # the deterministic tier: 3,673 tests
uv run mypy # strict core: 0 errors (the 67 in tests/ are pinned)
uv run python scripts/check_imports.py # the sealed core names no network module
uv run python -m ops.type_gate # every core-reaching package is type-checked
Expand Down
11 changes: 8 additions & 3 deletions core/ingest/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def sync_path(self, path: Path,
# resolved above, else the path (what the catalog will default to when the key lands), so a
# rename carries the chain forward instead of forking it.
appended = False
version = None # the version this landing is, carried by the landing log
if self.version_store is not None:
doc_id = (self.catalog.doc_id_for(source_path) if prev is not None
else resolved_doc_id if resolved_doc_id is not None else source_path)
Expand All @@ -188,17 +189,21 @@ def sync_path(self, path: Path,
rename = prev is None and any(
other != source_path for other in self.catalog.paths_for(doc_id))
if rename:
self.version_store.record(doc_id, digest)
version = self.version_store.record(doc_id, digest).version_seq
appended = True
else:
appended = record_version_if_new(self.version_store, doc_id, digest) is not None
added = record_version_if_new(self.version_store, doc_id, digest)
appended = added is not None
head = added if added is not None else self.version_store.current(doc_id)
version = head.version_seq if head is not None else None
# input == output == the content digest: for AUTHORED content the bytes read and the
# content-addressed object written share one address. This is the chain's leaf. A landing
# that appended a version is an event of its own (a revert to bytes attested before);
# one that did not attests only when nothing names its digest (a re-run after a crash)
attest_once(self.attestor, agent_role="vault_watcher", action="ingest_note", digest=digest,
event=appended)
self.catalog.record(source_path, digest, record.title, doc_id=resolved_doc_id) # the key
self.catalog.record(source_path, digest, record.title, doc_id=resolved_doc_id,
version=version) # the key
return SyncOutcome.INDEXED

def sync_one(self, path: Path) -> SyncOutcome:
Expand Down
7 changes: 5 additions & 2 deletions core/ingest/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ def finish(self, e: StoreEff, adm: _Admitted, record: IngestRecord, *,
path, label = e.path, e.content.label
catalog = self.stores.catalog
appended = False
version = None # the version this landing is, where one is kept
versions = self.stores.versions
if place.versions and versions is not None:
doc = catalog.doc_id_for(path) if prev is not None else (doc_id or path)
Expand All @@ -443,11 +444,13 @@ def finish(self, e: StoreEff, adm: _Admitted, record: IngestRecord, *,
appended = True
else:
appended = record_version_if_new(versions, doc, record.digest) is not None
head = versions.current(doc) # the version just appended, or found at the head
version = head.version_seq if head is not None else None
if producers is None:
attest_once(self.stores.attestor, agent_role=self.role, action=place.action,
digest=record.digest, event=appended)
catalog.record(path, record.digest, e.title, provenance=Provenance(label),
doc_id=doc_id) # the key, last
doc_id=doc_id, version=version) # the key, last
return Outcome("store", path, "landed", digest=record.digest,
attestations=tuple(attested_by(self.stores.attestor, place.action,
record.digest)))
Expand All @@ -461,7 +464,7 @@ def finish(self, e: StoreEff, adm: _Admitted, record: IngestRecord, *,
made.append((place.action, att.id))
mine.append(att.id)
catalog.record(path, record.digest, e.title, provenance=Provenance(label),
doc_id=doc_id) # the key, last
doc_id=doc_id, version=version) # the key, last
return Outcome("store", path, "landed", digest=record.digest,
attestations=tuple(sorted(mine)))

Expand Down
Loading
Loading