Repository navigation
The temporal snapshot: the store as of a cut, designed and proved before the build - #91
Merged
Merged
Conversation
`as of <cut>` reads one relation at the cut and every other store as it is now, and nothing says what a read of a store at a cut must satisfy before code is written for it. This states it and proves it, on a model of a store as a family of append chains and a cut as a prefix length for each (the vector of per-chain positions of the event clock). SNP-1, append invariance: a read at a cut inside the store, a read between two such cuts and every derived view are unchanged by any growth of the store. SNP-2, monotonicity: an earlier cut reads a prefix of a later one, and a cut of a cut is the meet. SNP-3, composition: the read at a followed by the read between a and b is the read at b, so a fold continued from a checkpoint over the delta is the fold of the prefix. SNP-4, idempotence: the read at the head cut is the store. SNP-5: a reader is append invariant exactly when it is a function of the prefixes; for keyed writes the generational store read at a cut is the state recomputed from the prefix, and at most one generation of a key is alive at a cut. SNP-6: a narrower grant's snapshot is the restriction of a wider one's. SNP-7: no erased event is visible at any cut, the store with holes keeps every position, and a key retired after a cut is served at no earlier cut. SNP-8: consistent cuts are closed under meet and join, they are the clock's cuts (CLK-2) among the frontier cuts, and every frontier resolves to one greatest consistent cut under it. SNP-9: a certificate of prefix digests verifies on every extension of the store, pins the read under a collision-free digest, extends over the delta, and survives an erasure that keeps commitments. The controls are theorems too: the reader that ignores the cut, the store rewritten in place, an event filter applied before the cut, the erasure that deletes rows, a digest with collisions. Design theorems: no code relies on them yet, so they have no ledger rows and no Spec statements. The module is registered in the Palace root. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A key retired after a cut must not be served at the cut. Two rules do that, and the design note has to choose between them, so both are in the model. The stricter one (`servedAt`) reads the seal off the chain: a retire among the events past the cut closes every earlier cut for good, and growth of the chain changes a served value only by removing it. The looser one (`servedNow`) withholds a key only while it is not live at the head, so a landing after the retire brings the key's past back. `servedNow_of_servedAt` proves the order: whatever the stricter seal serves, the looser one serves, so either rule bounds the other and both keep a key that is retired now out of every cut (`servedNow_of_not_live`). `Witness.servedNow_restores` is the cost of the looser rule as a theorem: under it growth does not only remove. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The laws of Palace/Snapshot.lean are attacked on the model's own definitions before any code is written to them (seeds 430 to 474): stores of two chains over three events, cuts from two naturals, keyed chains over three keys, chains of landings and retires from codes, grants from two bits and event filters and erasures from three, reads-from relations as lists of edges, and a digest that reads a chain as a numeral in base four. Thirty attacks survive, every one all 500 instances, and fifteen controls are refuted within 53 instances: a read at a cut past the head, the store rewritten in place, generations without their closing stamp, an event filter applied before the cut, a hidden event before the cut, an erasure that deletes rows, a state served without the seal, the looser seal taken for a monotone one, kept rows served without their sources, a frontier taken for a cut, a consistent cut advanced by one position, an additive digest, a digest over contents. One thing is attacked that the library does not define: the resolver a build will transcribe, the descent that lowers a frontier until no event inside it has a source outside. It is checked against the greatest consistent cut by enumerating every cut under the frontier. The descent holds its cut as a pair, since a function-valued cut is re-evaluated at every pass and the attack did not finish. formal/README.md gains the family's paragraph and its attacks, and names Snapshot among the design theorems and the modules with attacks. The counts in README.md are this tree's: 1,453 theorems, 208 attacks and 176 controls over 33 modules. formal/check.sh is green: sorry 0, standard axioms only, 5,099 declarations audited, the export's 56,062 accepted by the six kernel checkers, the 328 judged statements unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The design note has to say what a store that drops old generations still reads exactly, what a question under that horizon gets, and at which cut a read is taken when some store cannot serve the cut asked. None of the three had a statement. SNP-10, the horizon. `prune h` drops the generations closed at or under a horizon. At every cut from the horizon on the pruned store reads the state recomputed from the whole prefix (`genRead_prune_gens`); under the horizon a value it returns is still the value the key held (`stateAt_of_genRead_prune`), and what it lost it reads as absent, which nothing in the remaining rows tells from a key that was never there (`Witness.prune_forgets`): so the horizon is recorded and a cut under it is not served. Two horizons are the later one (`prune_prune`). Where the chains serve only some positions (those from a horizon on, and the empty prefix), every frontier still resolves to exactly one greatest consistent cut among them (`ResolvesIn`, `exists_resolvesIn`, `ResolvesIn.unique`). That cut rises with what is served and with the frontier (`ResolvesIn.mono`), never passes the resolution of the cut asked (`ResolvesIn.le_resolves`), and is that resolution when every position is served (`resolvesIn_univ`). It is the cut a read under `as of` is taken at, so such a read holds no event from after the cut it names. SNP-3 gains the membership form of the composition: an event read at the later cut was read at the earlier one or lies in the delta (`mem_readAt_iff`), a pair of events likewise, which is the rule for a job that joins two chains (`pair_readAt`), and a key the delta does not write has one state at both cuts (`stateAt_eq_of_not_written`). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Seeds 475 to 486 on the model's own definitions. Nine attacks survive, every one all 500 instances: an event of the later cut is in the earlier one or in the delta; a key the delta does not write keeps its state; the pruned generational store at and past its horizon is the recomputed state, and at any cut returns nothing or the right value; two horizons are the later one; among positions served from ten bits, the pointwise maximum of every consistent served cut under a frontier is consistent and served, lies under the resolution of the frontier, rises with what is served, and is the resolution when every position is served. Three controls are refuted: a key's state taken for the same at two cuts whatever the delta writes (17 instances), the pruned store read under its horizon as the state at the cut (30), and a frontier lowered to the served positions without the descent (24). formal/README.md names SNP-10 and the new attacks. The counts in README.md are this tree's: 1,470 theorems, 217 attacks and 179 controls over 33 modules. formal/check.sh is green: sorry 0, standard axioms only, 5,122 declarations audited, the export's 56,098 accepted by the six kernel checkers, the 328 judged statements unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The first three sections of the note. What `as of` does today, read on main: it moves the citation graph and a repository file to the cut and reads every other store as it is now; it takes a commit's sha and refuses `HEAD` and a date; the note it attaches lists `read` as reading the present though a repository path is read at the cut, and the hit drops the commit the text came from. The inventory classes every store an instance writes by what a past state of it is, with its clock, what names a position and what a rewrite loses. Seven corrections to the two-class picture follow from it. The catalog is the gap: rewritten in place by six methods called from seven modules, with no ledger of its past outside one place. Lexical units and superseded vectors are kept, and a stamp on their rows would be wrong, since a path that returns to earlier bytes makes the same rows current again. The causal store depends on the order of two jobs, and its edge ids change when a session grows. A purge leaves the words in the lexical index and in the vector table's earlier versions. A reset takes the ledgers too. The cut is one position per chain, about a dozen for an instance, the chains per provenance class where clearances separate rows, and a position is a number the store keeps. The missing ledger is a landing log in the catalog's file, written by the catalog's own methods, with the catalog as its fold. A recorded cut is a content-addressed row with its attestation. A name (`head`, a cut's id, a commit, a date) resolves to a frontier and the read is at the greatest consistent cut under it; each row records the head of the chain it reads, which is what the resolver compares. A certificate is the digest of each chain's prefix. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sections 4 to 6. The reads: `read_at` and `read_between` for each ledger with the index each needs and its cost; the landing log's two reads are the ones every other store's read at a cut goes through. Reading every head at a cut costs the part of the log walked, not the answer, and the journal form bounds it. Derived data: a view at a cut is a derivation of the prefixes, the three ways of holding one agree, so the choice is cost, store by store. Vectors and lexical units are version-keyed rows the stores keep already, and the log selects the version; a stamp on the rows would be wrong and the vector table's own versions cannot be the snapshot, since a purged text is still read through them until a compaction that drops every earlier version. The lexical statistics at a cut are the masked set's own, as under a clearance. The causal fiber is recomputed from the transcript as retained at the cut, which also removes its dependence on job order. Model output is kept by generation, archive then replace. An instance with no embedder is served: the node set comes from the log, not from the plane. Erasure and scope: a purge leaves a hole that keeps its position and its salted commitment, and the table says what a purge must reach before a store is read at a cut. A retire seals the identity's earlier cuts; the stricter seal is taken because a new note at a deleted note's path has its identity. The grant is the asker's now, an event filter is applied after the read, and an answer names the cut on the chains the grant names only. The read-only principal's list is the present's, applied to the edges inside the cut. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sections 7 to 9. The sentence surface: the name gives the cut asked, each chain serves the positions from its horizon on and its empty prefix, and the read is at the greatest consistent cut among the served positions under the cut asked. So a read under `as of` holds no event from after the cut it names, the cut read rises as stores gain a past, and the answer names the cut it read and each chain on which it differs from the cut asked, with the reason. That replaces reading those stores at the head with a note. Each mode and each edge species is given its meaning at a cut, `as of "head"` is the sentence without `as of`, and one two-cut form is admitted: the region of identities with an event between two cuts, sound for what did not change, composable, one range read. The exactness boundary: a chain's horizon is set by its genesis, by retention or by a reset; from it on every cut is exact, under it the store is never wrong but cannot tell what it lost, so the horizon is a row of the chain and a cut under it is read at the empty prefix and said to be. Retention and cost: most bytes of a past are paid already, since no store drops a superseded version; the snapshot adds 409 bytes a landing and about two kilobytes a recorded cut. The rule is a window a chain, counted in positions, with the horizon declared before anything is dropped and derived rows dropped before ledgers. A derived row is a cache entry, absent or present and reported when absent, which is lazy landing read in time. The utility field as of a cut is the fold of its use log's prefix. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The rest of the note. The ten laws, SNP-1 to SNP-10, each with its Lean declarations, its controls, its attack seeds and the property test it becomes at its stage, and what the model leaves out: one writer, opaque events, the hash's collision freedom as a hypothesis, the descent attacked and not proved. The measurements, every one on a synthetic fixture: the landing log at a million rows (409 bytes a row, a path read in 3 to 4 microseconds through its index, every head in 149 to 285 ms), a kept version in the lexical index, what a purge leaves on the test suite's throwaway palace, the order of two jobs, the events of a transcript's prefix, what `as of` accepts, row numbering after a delete. The build is eight stages, each a pull request with its tests and its rollback. The first is the landing log: one table in the catalog's file, written inside the catalog's six writing methods, with its reads and no reader. The erasure's reach lands before the first stage that reads a superseded version. A generic integrator's checkpoint is a cut and its input the delta, and three laws make a run equal a rebuild. Twelve decisions for the owner, each with a recommendation and what the alternative costs, then the parked decisions, fourteen falsifiers, the open questions and the cross-references. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The track's manifest gains SN-0, the temporal snapshot's design proved, and links the note and its article; the board is regenerated. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A knowledge store as of a cut, in ten pages: the model (a family of append chains, a cut, the reads at and between cuts, a derived view, the grant, the erasure, certificates), the ten laws as eight theorems with proof sketches and the Lean declarations that check them, the design read off the code (the landing log as the one missing ledger, cuts and their names, each derived store as a function of a cut, what an erasure must reach, the cut asked and the cut read, retention), the resolver as pseudocode, what is proved and attacked, and the measurements on synthetic fixtures. The related work is consistent cuts and their lattice, temporal and multiversion data, hash chains and commitments, view maintenance and noninterference. Built with scripts/build_papers.sh: 10 pages, no undefined reference, no overfull box, no BibTeX warning. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a final reading the retention rule dropped raw objects in the same pass as derived rows, which the note's own account of derived rows as a cache does not need and the store's rule that raw objects are kept does not allow by default. The rule is now two windows. A window for derived rows drops lexical units, occupancies and atoms and moves no horizon: the log and the raw objects stay, every ledger read is still exact, and a dropped row is pending and derived again when a cut asks for it. A window for the history moves the horizon, drops raw objects and log rows, and is the owner's to declare. Decision D8, stage SN-7 and the article's paragraph follow. Also: a citation that broke across a line, the principal of section 6.4 described without saying it is being added, and the statement that nothing is dropped today narrowed to what a landing does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tory Two facts read on main and missing from the inventory. Under lazy embedding the plane's supersession log is written by the drain, in the drain's order, and only for the versions still current when it runs, so it cannot stand in for the landing log. And a reset's targets do not include the lexical index or the relation edges, which outlast it with rows about items that are gone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The note said that at the head the cut read is the head and cited the lemma, whose hypothesis is that the frontier is consistent. The head is: a store holds the sources of its own events. The sentence now says so. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The audit found five places where the snapshot's laws said less than the note claimed of them, or where the note's reading had no theorem. A purge that nulls a row's key makes a seek by key return a superseded version, or one from after the cut. The keyed read is now defined on a chain whose holes keep their keys (holes) and proved to return the key's last write at or under the cut, as a hole when that write is erased, on all three reads (stateAt_holes, genRead_gens_holes, lastWrite_holes). The served resolution is not a per-chain floor: a record on a chain that content reads drags every reader down (Witness.record_drags). The local lowering is proved for a chain that nothing else reads (resolvesIn_update_of_unread), and the cut read on a grant's chains is a function of them when they read no chain outside (ResolvesIn.eq_on_of_closed). A certificate over commitments attests no erasure and no seal (verifies_purge_iff, Witness.seal_not_certified); under a binding commitment it pins the events (Verifies.readAt_eq_of_committed, Verifies.contents_eq). The grant and the erasure applied to one read (shown) keep the laws of each. Closure of consistent cuts under meet and join is CLK-2's, so it is now derived from Clock.IsCut.frontier_inf and frontier_sup. Two law tags are aligned with the note, and the pruned store's control is proved in its stronger form (Witness.prune_indistinct). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The served resolution was tested only by enumeration, and the build has to transcribe a descent. The floor and the descent alternated until nothing moves is now executable in the attack module and checked against the enumeration (seed 492); each one-shot order is a control (493, 494). New attacks for the keyed read under an erasure (495, controls 496 and 497), the lowering of an unread chain (498, control 499) and the composite reader (509, 511, control 510). Sixteen earlier attacks had no control of their shape; seeds 487 to 491 and 500 to 508 supply them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The stricter seal was defined on the value served at a cut. A new item written under a retired identity then carried the retired item's versions in its history, at the head and at every later cut. historyAt is the history a chain serves of a key at a cut: nothing where the key is sealed, else its landings inside the cut that no retire follows. It ends at the value served (getLast?_historyAt), and after a retire it holds only versions landed after it, at every cut (historyAt_of_retire_inside). Attacked at seed 512, with the unsealed history as its control (513). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
One line of the module docstring ran past the 100-character limit, which the build treats as fatal. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The local lowering was proved for one chain. The design applies it to all the chains that can fail to serve a cut, which are the chains no recorded bound reads, so the theorem is stated for a set of them: resolvesIn_of_unread. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Three audits of the note found claims about the code that main does not bear out, laws cited for more than they prove, and items a builder would have to guess. This is the repair, section by section. What exists. An artifact's subjects are titles and its sources are its derived_from; a commit's citation reading grows at a re-projection; a revert in the mirror is attested again; as of refuses HEAD only when the reference store holds a reading; a repository read falls back to HEAD when git lacks the commit; a path written again after a delete carries the deleted note's versions. The inventory gains the curated store, the observation readings, the structural snapshots and the dispositions, and the stores left out are named with their reasons. The cut. A chain has an id and its class is a label, so a relabel moves no row and no certificate. Recorded cuts sit on a chain of their own: on the attestation ledger one chain read low would take every landing chain to its empty prefix. A record is taken at a trough, never inside the sensor's job, and GC-N3 is quoted as written. A purged row keeps a keyed hash of its path, so a read by path returns a hole and not a superseded version. The seal covers an identity's versions. The laws. Closure under meet and join is cited to CLK-2; a certificate is said to pin what it digests and to attest no erasure, seal or grant; the grant's law is stated for the read and not for a scored answer; each law says what holds by the construction of the model. The build. Stage one names its tables, the commitment's bytes, the genesis, the reads and their returns, the tests and the ledger rows. The decisions are fourteen: D9 no longer reorders the landing, D13 and D14 are new. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The README named six of the controls and counted thirty-nine attacks. It now names all fifteen, states SNP-8 as resolution with its closure derived from CLK-2, and lists the forty-five attacks and thirty-nine controls of seeds 430 to 513 with the instances each control took. The track's line for SN-0 says resolution where it said the lattice. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The article said every other verb reads the present, that no store drops a superseded version, and that the lattice of consistent cuts and the served resolver were this work's own checked results. It now says what the note and the library say. SNP-8 is stated as resolution, with closure derived from the clock's law. SNP-7 gains the keyed read on a chain whose holes keep their keys and the history under the seal. SNP-9 says a certificate pins what it digests and attests no erasure, seal or grant. SNP-10 gains the lowering of unread chains and its control, a record on a chain content reads. The design paragraphs follow: chain ids, records on their own chain at a trough, stamped citation edges, the keyed hash a purged row keeps. The evaluation gives the figures of the redesigned log and of the run of formal/check.sh on this tree, says the probes are not in the repository, and says Algorithm 1 is run as written against enumeration. The references were checked against Crossref and OpenAlex. Fidge 1988 is dropped and the pages of Mattern 1989 and the volume and pages of Robertson and Zaragoza 2009 are left out, since no index reached confirms them; Halevi and Micali 1996 gains its pages. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Snapshot library grew by 37 theorems, 6 attacks and 21 controls, so the table's counts moved: 1,507 theorems, 223 attacks and 200 controls, 25,129 lines of models and proofs, 5,623 of attacks, and 56,159 declarations replayed. The tests badge is not touched. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The control for a record on the attestation ledger shows one case, so the note says it can take a landing chain to its empty prefix, not that it does. The per-identity retention claim is marked as the step the note infers from the control for one horizon. The decisions' preface says which of them have no cost in bytes or time to give. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The resolver was said to lower each chain that cannot serve alone, on a list of references that left out the rows which read landings and record no bound: a pass attestation, a dream claim, a claim op. Resolving them would take the attestation ledger down with a landing chain, and every landing chain after it (Witness.pass_drags). So they are kept by a filter of the read: a row is withheld when a source of it lies outside the cut or is withheld. The filtered read is closed under every reference, the greatest such set inside the cut, the prefix at a consistent cut, never short of a row whose references are all resolved, monotone and append invariant. A chain of records reads every chain it certifies, so it is not read as recorded when one of them is lowered. resolvesIn_of_followed proves the two-level case: a chain that reads the lowered chains, and that nothing else reads, follows them and takes nothing with it (Witness.record_follows). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Seeds 514 to 520. The executable filter is checked against every set of rows of the two chains that lies inside the cut and holds its own sources, so it is the greatest closed set; it is monotone in the cut and withholds nothing at a consistent cut. A chain that reads a lowered chain follows it, against the enumeration. Controls: the filter without its closure, the prefix taken for the filtered read, the follower read as asked. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The bullet, the list of controls and the attacks paragraph say what Snapshot.lean and its attack module now hold: the filtered read under SNP-8, the chain that follows under SNP-10, eighteen controls, and seeds 430 to 520 with the instances each new control took. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The list of references between chains left out the rows that read landings and record no bound: a pass attestation (the dreamer's and the curator's, on the ledger every landing reads), a dream claim, a claim op. The claim that each chain which cannot serve is lowered alone held for the recorded bounds only, and with the true references a landing chain behind a history window took the attestation ledger and every later landing chain with it. The references are now two kinds. The resolver follows a landing's to its attestation, an attestation's to its commit and a record's to its frontier. The rest are kept by a filter of the read, proved closed under every reference (SNP-8). The chain of records reads every chain it certifies, so it is lowered with them and nothing follows it (resolvesIn_of_followed). Sections 3.3, 3.5, 5.4, 6.3, 7.1, 7.2, 7.3, 8, 9.2, 9.4, 10, 12 and 13, the falsifiers and the counts follow. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The projection's attestation is emitted at code_sensor.py:498-499; the lines cited minted the edges. Section 3.6 said the claim ops and the authored supersessions are hashed from SN-6, which gave them a sequence number only: SN-6 now gives each a running hash, and 3.6 says so. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The handoff certificate, as the spine sources it, is the emptiness of two directories of one sensing handoff, not of every spool and handoff the note lists; a cut does not need those empty, since what they hold has not landed. The trough certificate needs no job queued as well as none running, so the owner's command with no daemon is served at once only on an empty queue. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The claim ops are appended by a store that calls no model, and by design they are a model's proposals, through an analyzer whose default proposes none; no caller outside the tests applies one at e3e3ee4. The verdict dispositions are append-only, one row a verdict, and belong with the ledgers, not with the stores rewritten in place. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The rows a window dropped and the rows still alive under the horizon interleave, so there was no last row dropped whose hash could seed the chain, and no column to hold one. A window now empties a closed row to its position, its closing stamp, its commitment and its hash. The chain is hashed from its first row for as long as it lives, every certificate keeps verifying, and the reads see an emptied row as a dropped one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The article said each row that reads another chain records that chain's head and that only the chains which cannot serve are lowered. Three references are resolved through recorded bounds; a pass attestation and a row of model output read landings too and are withheld by a filter, stated with SNP-8; the chain of records follows the chains it certifies, stated with SNP-10. A record on the ledger can take a landing chain down, as the control shows, not every one. The attack runs an alternation equivalent to Algorithm 1. A history window empties the log's rows and keeps their commitments. Counts from this tree's run of check.sh; ten pages. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1,520 theorems, 227 attacks and 203 controls, 25,426 lines of models and proofs and 5,705 of attacks, 56,188 declarations replayed. The tests badge is not touched: no Python changed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The table of section 5.1 still gave the claim ops' read at a cut as the rows at or under it. A claim op is served with what it names, as 3.5 and 5.4 now say. Two paragraphs are wrapped again after the last edits. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The list of references in section 3.5 counts four resolved ones and section 7.1 names three that the resolver follows between chains. Say why: a citation edge is a row of no chain and is read by its stamps on the repository and the attestation ledger. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The control shows one other landing chain lowered through the ledger, not every landing chain. Say what it shows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does "the palace as of a cut" have to mean, when
as oftoday moves one relation (the citation graph), reads a file of the repository at the commit, and reads every other store as it is now? This PR settles it in a design note and proves its laws in Lean, with no change tocore/. A cut is one position per chain, about a dozen for an instance; the one ledger that is missing is the past of the catalog, and a landing log in the catalog's own file supplies it; derived data is a function of the prefixes, held store by store in the cheapest of three equal ways; the grant and the erasure are the present's; and where a store cannot serve the cut asked, the read is taken at the greatest consistent cut among the positions the stores still serve, which never lies after the cut asked, and the answer names it. Ten laws (SNP-1 to SNP-10) are machine-checked as 175 theorems, eighteen of them the failure modes. The note ends with an eight-stage build, the first stage named exactly, and fourteen decisions for the owner.Abstract
A query on a knowledge store can ask for the store as of a past moment. In the store studied here that reading exists for one relation, a citation graph indexed by commit, and for the files of its repository; every other store is read as it is now. We design the rest. A store is modelled as a family of append chains, a cut as a prefix length for each, and the read at a cut as the prefixes. Ten laws are machine-checked in Lean 4 over Mathlib. A read at a cut is unchanged by growth of the store, and a reader has that property exactly when it is a function of the prefixes. Reads at cuts are ordered and compose with reads between cuts, so a job's checkpoint is a cut. A derived store kept by generation reads what recomputation reads, with at most one generation of a key alive at a cut. A narrower grant's snapshot is the restriction of a wider one's, and positions on a shared chain count what a filter hides. Nothing erased is visible at any cut when an erasure leaves holes; a hole must keep its key, or a read by key returns a superseded version; and a seal keeps a retired identity, with its versions, out of earlier cuts. Every frontier resolves to one greatest consistent cut. The digest of each prefix certifies a cut, survives an erasure that keeps commitments, and attests no erasure. A store that drops old generations is exact from its horizon on, never wrong under it, and unable to tell what it lost. The last law gives the rule for an incomplete history: a read is taken at the greatest consistent cut among the positions the stores still serve, which never lies after the cut asked; a chain that nothing reads is lowered alone, and a chain that others read takes them down with it. Reading the code against the usual picture of ledgers and derived stores locates the one missing ledger, the past of the map from paths to content, and a log of about 400 bytes a landing on a synthetic fixture supplies it. Measurements on synthetic fixtures give the cost of its reads and show what an erasure leaves behind today.
The article
papers/2026-11-10-temporal-snapshot/paper.tex(10 pages; the references end on the last).What changes
formal/Palace/Snapshot/Defs.lean(a store as a family of append chains, a cut, the read at a cut and between two cuts, a derived view, a keyed chain held three ways, retention at a horizon, the grant, the erasure, a keyed chain with holes, the two seals and the history served under the stricter one, the grant and the erasure over one read, consistent cuts and their resolution, the row filter for the references a resolver does not follow, certificates) andformal/Palace/Snapshot.lean: SNP-1 append invariance, SNP-2 monotonicity, SNP-3 composition and the delta, SNP-4 idempotence at the head, SNP-5 a derived view as a function of the prefixes, SNP-6 grant restriction, SNP-7 erasure dominance, the keyed read under an erasure and the seals, SNP-8 the resolution of a frontier and the filtered read (a row withheld when a source of it lies outside the cut or is withheld: closed under every reference, the greatest such set, the prefix at a consistent cut), SNP-9 certified cuts, SNP-10 the horizon and resolution among served positions, where a chain nothing reads is lowered alone and a chain that reads it, as a chain of records does, follows it. Closure of consistent cuts under meet and join is CLK-2's, already in the ledger, and is derived fromClock.IsCut.frontier_infandfrontier_sup, not claimed again. Eighteen controls are theorems: the reader that ignores the cut, the store rewritten in place, an event filter before the cut, positions that count hidden events, an erasure that deletes rows, a hole that loses its key, the looser seal, the pruned store under its horizon (twice: it reads a lost value as absent, and cannot tell it from a key never written), a digest with collisions, a seal written after a certified cut, a renamed chain, a record on a chain that content reads, a chain of records lowered with a chain it certifies, a pass attestation whose reference to a landing is resolved and the same reference filtered, a named chain that reads an unnamed one, served positions that shrink.formal/PalaceTest/Snapshot.lean, seeds 430 to 520: 49 attacks and 42 negative controls on the model's own definitions, with two executable resolvers checked against the definitions by enumeration (the descent, and its alternation with the floor to the served positions) and an executable row filter checked against every closed set of rows inside the cut.docs/design-notes/dn-temporal-snapshot.md: the inventory of every store that holds content a sentence reads, with its clock and what a rewrite loses, and the stores left out with their reasons; the cut, its chains keyed by an id, its names, its record on a chain of its own and its certificate; the references between chains, those the resolver follows and those a filter of the read keeps;read_atandread_betweenper ledger with their indexes and costs; each derived store as a function of a cut; erasure and scope; the meaning of each mode, edge species and verb at a cut; the exactness boundary; retention and cost; the laws with the property tests they become, each saying what is a theorem and what holds by the construction of the model; the measurements; the build in eight stages; fourteen decisions.papers/2026-11-10-temporal-snapshot/.docs/tracks/query-language.mdwithdocs/TRACKS.mdregenerated; the Snapshot paragraphs informal/README.md; the Lean counts inREADME.mdfrom this branch's run (the tests badge is not touched: no Python changed).core/, any Python,docs/LAWS.md,formal/Spec/,formal/comparator.json: these are design theorems, which no code relies on yet. They enter the ledger with the stage that transcribes them (SNP-1 to SNP-5 with the first, as a family XVI).Gates
formal/check.shon the final tree is green:sorry0 of budget 0; 5,213 declarations audited, standard axioms only, none resting onsorry; the export (5,166Palacedeclarations, 47 unsafe left out) replays 56,188 declarations through all six checkers; Spec ⇄ Palace: 328 statements identical, 37,536 constants compared (in-process, as macOS has no bwrap; the Lean workflow runslake comparator --paranoidon Linux); ledger ⇄ formal: 100 rows, 334 cited declarations, 87 law markers, consistent.lake build --wfail Palace,lake lintandmk_all --checkpass inside it.pytest -m needs_tex: 5 passed.ruff check .clean;scripts/check_imports.pyOK; mypy over the whole repo reports 67, the baseline;ops.type_gateOK.scripts/build_papers.shbuilds it: 10 pages, no error, undefined reference, overfull or underfull box or LaTeX warning, and BibTeX reports 0 warnings.Notes
readof a repository path underas ofis already at the cut when git holds the commit, though the answer's note says it read the present and the hit drops the commit; when git lacks the commit it returnsHEAD's blob without saying so.as of "HEAD"and a date are refused only when the reference store holds some reading; on an empty one they are answered. A purge leaves the words in the lexical index and in the vector table's earlier versions until a compaction that removes all of them, leaves the digests in the version rows and the attestations, does not open the curated store, and writes no deletion attestation though the attestation store's header says one is written. A new note written at a deleted note's path continues the deleted note's version chain. A reset's target list names the raw store first, while a comment in the same list says it is not a target. The dreamer's and the curator's attestations sit on the ledger every landing reads and take the notes' digests as inputs, so they read landings and record no bound; the claim ops are a model's proposals by design, appended by a store that calls no model; the verdict dispositions are append-only. The handoff certificate the spine sources covers the two directories of one sensing handoff, and the trough certificate needs an empty queue even with no daemon running.as oftakes, the form admitted between two cuts, retention, the attestation ledger under a purge (recommended: a salted commitment in a side table of the attestation store, which leaves the landing order as it is), model output, the read-only principal at a cut, what the merge licenses (recommended: the first two stages), where a recorded cut is kept (recommended: a chain of its own that no other chain reads), and what a purged row of the log keeps (recommended: a keyed hash of its path).landing_chainsandlandingstables in the catalog's file, written inside the catalog's six writing methods in the transaction of the row each writes,recordgiven aversionargument, a genesis for each class after the migration that fillsdoc_id, and the readschains,head,read_at,state_at,history_at,heads_at,read_betweenandverify, with no reader; its tests are SNP-1 to SNP-5 over random sequences of catalog writes, purges and relabels included.formal/check.shrerun on its head. The last confirmation leaves five low findings and one note open, all in the note's account of which rows read the landings: the authored supersessions and the CI witness's attestation of a commit are missing from the list of references; SN-6 says no authored supersession is ever replaced, though a second declaration of a pair rewrites its note; the resolver's bound is not limited to the resolved references now that pass and run rows record landing heads; the article says resolving a row of model output would lower the attestation ledger; and the dispositions are read at a position on the verdicts' own sequence, which is not a chain of the cut.Merge order
Targets
main(cut from e3e3ee4). Independent of #89 and #90 in content: it touches no file undercore/,tests/,docs/LAWS.md,formal/Spec/orformal/comparator.json. The shared files it edits areREADME.md(the attacks badge and four rows of the Lean table),formal/README.md(one bullet, two list entries, two paragraphs),formal/Palace.leanandformal/PalaceTest.lean(import lines in alphabetical place),docs/tracks/query-language.mdanddocs/TRACKS.md. After another PR that changes the Lean library merges, the counts inREADME.mdare recomputed on the combined tree from its owncheck.shrun.🤖 Generated with Claude Code