/ Stream
build 2026.12.03 · --:--:-- UTC · RSS

BabbTools for the frontier.

mascot mascot
All materials

The construction-order test: does the verb table apply after the fact?

construction-order-test.md View the source file

Status: Test design, untested. Written 2026-11-29 from Morgen's 13:44 EST reading of the seed. Nothing here is decided; D-03 remains undecided.

1. The claim, stated precisely

Claim (Morgen, 2026-11-29 ~13:44 EST): If the seed is the minimal needed to make the first mark and logs and build out according to established math, then we know what the resulting tables will be and their addresses (codings). The verb table is therefore applied after the fact: we know which sequence of established addresses belongs to which verb, because the construction that produced the record is deterministic.

In symbols: let C be the canonical construction (mark → cross → call → combine → … as graded in DIGEST steps 1–13), let A = C(seed) be the address sequence it generates, and let T be the verb table (address → verb, with the F/S/O context the verb carries). The claim is that for every entry e produced by C, the context bits FSO(e) are recovered by T[A(e)] — where A(e) is the address the construction assigns to e — without consulting the 6 stored bits, the kind table, or the roles. The 6 stored bits (R 2, D 1, M 1, phase 2) remain the wire spelling; the context comes from the construction, not from the bits.

What the claim is not: it is not the v2 claim. v2 tested per-record derivation — given the 6 stored bits plus kind, roles, and log frame, recover FSO — and recovered 6/75, refusing on 69, wrong on 0, with lemmas L1 (stored bits alone cannot determine context: two stored-6 groups carry mixed FSO) and L4 (FSO constant per verb, 13/13). The construction-order claim does not dispute L1 or L4. It changes the input: the derivation is from construction history, not from the record's bits. L1 says the bits alone underdetermine context; the claim agrees and says the bits were never the input — the construction was.

2. Procedure

  1. Fix the construction. Write down C as an executable procedure: the seed text's §1–§11 operations in order, with the DIGEST derivation steps (1 mark → 2; 2 cross/direction → 2; 3 call/assertion → 2; 4 combine → 4 relations; 5 cross → 8 acts; 6 call fact/possible → 16; 7 re-enter frame/world → 32; 8 sign/substance → 64; 9 self/other → 128; 10 phase ×4; 11 +5 crossing kinds; 12 four roles; 13 kind trees), each step producing its table and addresses. The construction must be deterministic: same seed, same address sequence, every run. If any step admits a choice (e.g. which name a slot gets, which order two independent doublings are applied in), the choice must be fixed in the seed text before the test runs — an unfixed choice is a free parameter, and the test fails on it.
  2. Generate the address sequence. Run C from the seed and record A: the full ordered list of (address, verb, FSO) triples it produces. This is the verb table T, generated, not asserted.
  3. Replay the corpus. Take the 75-entry corpus (docs/kernel-model/test/corpus.json). For each entry, determine its address by replaying the construction — i.e. by finding the entry's position in the construction's own generation order, not by reading its stored bits. Then apply T and compare the recovered FSO against the corpus's recorded FSO.
  4. Score. Count exact matches over all three context bits per entry, exactly as v2 scored (correct / ambiguous / wrong). The corpus covers only 13 verbs/positions, so a pass is evidence about those 13, not proof about all 128 — the same scope limit v2 carried.

Pass: 75/75 exact FSO recovery via construction replay, with zero ambiguous and zero wrong, and the construction's determinism demonstrated (two independent runs of C from the same seed produce byte-identical address sequences).

Fail: any wrong recovery, or any entry whose address cannot be determined by replay, or any non-determinism in C (two runs diverge), or any entry that needs a per-record input (kind, roles, frame anchor) beyond the construction to be placed.

How it differs from the v2 test: v2 asked "can the bits + kind + roles + frame determine context for this record, standing alone?" The construction-order test asks "can the reader, replaying the seed's construction, determine context for this entry from its place in the generation order?" v2 is a per-record function; this is a whole-log replay. v2's inputs are all present in or beside the record; this test's input is the reader's own replay of history. That is why the two tests can give different answers without contradicting each other — and why a pass here does not retroactively pass Stage C as specified.

3. Discriminating cases

Two cases decide whether the reading is real or a relabelling of the lookup:

(a) An entry whose address is reached by two different construction paths. If the construction can generate the same address by two different routes (e.g. two different doubling orders landing on the same coordinate, or a slot reached both as a phase variant and as a position), then the address alone does not identify the verb — the mapping is one-to-many, and the reader needs the path, not just the address. Find such a collision by enumerating C's generation graph: if any address has in-degree > 1 in the generation order, the claim fails in its strong form (address → verb) and survives only in a weaker form (path → verb), which requires the reader to store or recompute the path — a new cost that must be named. If no collision exists, the strong form survives this case.

(b) An entry not produced by the canonical construction. Take a real entry that did not come out of C: a migrated v1 log entry (E1 byte, no construction history), a hand-written entry, or a foreign log's entry. Run the test on it. The claim predicts it cannot be placed by construction replay — its address carries no construction history. That is a pass of the prediction (the claim is honest about its scope) but a fail of the system if such entries must be readable: it means the unfolding kernel can only read logs it built itself, and every foreign or migrated entry needs a separate admission path (which is Stage H's problem, now sharpened: migration is not just a byte conversion, it is a construction-history problem). If instead the entry can be placed, say how — that would mean the address carries the mapping after all, which would be evidence for architecture A (type bits), not for construction order.

4. What a pass would imply for D-03

A pass would mean: the verb table becomes seed-derived, not stored per record. The reader holds the seed package (seed text + construction + generated table, versioned and hashed), replays the construction, and reads context from the replay. The 6 stored bits stay the wire spelling; the context is recovered from the replay, not from the bits.

Does that rescue the 6-bit claim, or just relocate the lookup? It relocates it — and whether that counts as a rescue depends on what the 6-bit claim was claiming. If the claim was "six stored bits per record suffice, with no other trusted input", a pass does not rescue it: the reader now trusts the whole seed package and the replay, which is a larger trusted input than a verb table, not a smaller one. The no-label-lookup constraint still has to go, because the replay is a lookup — into a generated table rather than a stored one. If the claim was the weaker "six stored bits per record suffice, given the agreed seed package", a pass does rescue it: the per-record cost stays 6 bits, and the lookup lives in the seed package where the seed text already lives. The honest statement after a pass would be: "6 bits + the seed package" — and D-03's decision would be between that and E2 (full coordinate stored), with the difference now being where the lookup lives (seed package vs record), not whether one exists.

What a fail would imply: if the test fails — wrong recovery, ambiguous placement, a path collision, or non-determinism in C — the construction-order reading is out, and D-03 is back to the E2 vs E1+table choice from R1-1, with the verb table stored per record (E1) or the full coordinate stored (E2). A fail on case (b) alone (foreign entries unplaceable) would not kill the reading, but would bound it: the kernel reads only its own construction, and Stage H (migration) becomes a first-class design problem rather than a byte conversion.

Appendix: Books and quick lookups

Question (Morgen, 2026-11-29 ~13:44 EST): Books hold balances — so do they enable quick lookups?

Answer: yes — with a precondition. Fast lookup is a design commitment, not automatic.

The mechanism, checked against Claude's R2-4: Books form an abelian group — deltas in ℤⁿ per (book, unit). Because addition is associative and commutative, summaries of segments combine: prefix sums or a Fenwick tree give the balance at any address in O(log n), and a tree of segment sums can be checked against the existing "close commits by hash of the balance table". Register and authority are different: they depend on order (positional reading), so they are sequential state machines — checkpoint them at every seal, keyed by the chain hash, and a query at address a costs O(a − last seal). A checkpoint can be verified because it is tied to the chain value; the seal chain already gives content-addressed cut points, so checkpoints are a cache with a hash attached — they cost no extra trust.

The caveat, plainly: v1 as built recomputes by folding the whole log — every query is O(n). Nothing in v1 gives you O(log n) balances today. The fast lookup exists only if segment summaries and checkpoints exist and are verified against the seal chain; building them is real work (Phase 4's job, alongside the semi-naive evaluation for Reader A). Until they exist, "Books hold balances" means "balances are derivable by folding", not "balances are look-up-able".

Two different query engines over one log — the concrete query shapes:

QueryEngineCost (once summaries exist)
Balance of book (boundary, kind) at address aBooks (abelian group, prefix sums / Fenwick / segment-sum tree)O(log n)
Balance of a single book across a rangeBooks, sameO(log n)
Who may record X at address aRegister + authority (sequential, checkpoint at last seal, replay forward)O(a − last seal)
Does delegation chain D admit move M at address aReader A (closure) or B (forest walk), over the checkpointed stateA: closure cost on the segment; B: walk cost
Full state at address a (all four containers)Fold from the nearest checkpointO(a − last checkpoint)

Only the Books are commutative — that is why "a fold with a different mask" is fast for balances and slow for "who may record X at address a". Treat them as two different query engines over one log, and do not promise fast lookups for the second kind on the strength of the first.