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

BabbTools for the frontier.

mascot mascot
All materials

02 — Direction bit: choosing by testing outcomes

2026-11-29-prep-02-direction-bit-test.md View the source file

Morgen's direction: "For the direction bit — help me choose or suggest how we test for outcomes."

The disagreement, as it stands

The inherited specifications disagree about what the direction bit means (analysis 01; design/stream/starting-inquiry.md open question). The v0.1 compact-header direction field sits on top of this unresolved disagreement. The sources do not enumerate the candidate meanings in one place, so the first job is to name them. The candidates that can be recovered from the sources:

#Candidate meaning of DWhere it comes from
D1Crossing direction: into (0) vs out of (1) a boundary — entry vs exitDIGEST steps 2–4; mark-boundary entry/exit fixture *() → (*) → *()
D2Assertion polarity: the direction of the claim — into = asserting membership, out of = withdrawing itThe assertion/direction product (Candidate A in relations-and-matrix); note 19 §7: "Entry/exit; claim/withdrawal; grant/revocation; inflow/outflow" as the distinguishing cases for direction
D3Flow direction: inflow (0) vs outflow (1) of a conserved quantity — the to leg's directionNote 19 §3: TO as directed effect; the Books' paired delta
D4Operand direction: into = the operand is a referent entering a region; out of = a transition leaving itNote 19's candidate 2×2 (referent/transition × membership/evaluation)

Note 19 §7's warning applies to all of them: "Inverse cannot be assumed; label-specific refinements" — i.e. flipping D must not be assumed to give the inverse act. And: "Witness pairs must share all other declared coordinates to establish an independent split. Merely finding two different verbs is insufficient."

The test design — one transcript, each convention, compare the observables

Run the same transcript and corpus under each candidate convention, and compare. The transcript: note 16b L:1–L:16 (foundation bundle, principal rule, one-use grant, move A from B into C, refused retry). The corpus: the 75-entry kernel-model corpus. The mark-boundary fixture: entry/exit *() → (*) → *().

Observable 1 — Do to legs conserve?

For each convention, fold the corpus's to facts into Books and check: does every leg pair sum to zero per book and unit? A convention that makes a to leg read as inflow at one end and outflow at the other, with matching quantities, conserves. A convention under which the same entry reads as two inflows (or two outflows) breaks conservation — and that convention is wrong for to, whatever it does elsewhere.

  • Decides: D3 (flow) vs D1/D2 for to facts specifically. If D1 and D3 disagree on a to fact, the Books say which one is right.

Observable 2 — Are entry/exit signs consistent with the mark-boundary fixture?

Run the mark-boundary construction under each convention. The fixture produces *() then (*) then *(): an entry, then an exit. Under D1, the first crossing must read D=into and the second D=out of, and a query about an enclosure before its birth must return undefined (⊥), never "outside" and never zero. Any convention that reads the entry as out-of, or that treats a pre-birth state as zero, fails this observable outright.

  • Decides: D1 is the only candidate that even speaks to this fixture; D2–D4 must at least not contradict it. If a convention contradicts the fixture, it is not a candidate for the same bit — it would need a different bit.

Observable 3 — Does grant/revocation invert cleanly?

GRANT (0C) and REVOKE are the permission pair. Under each convention, check: does REVOKE of a GRANT return the authority state to exactly what it was before the GRANT (for that grant), and does a grant created by an action satisfy that action's own check? (Note 16b: it must not — a grant cannot satisfy its own action's check.) A convention under which GRANT and REVOKE are not inverses, or under which a self-grant passes, fails.

  • Decides: whether D carries the grant/revocation polarity (D2) or whether that polarity lives elsewhere (in the verb, not the bit).

Observable 4 — Do the 75 corpus entries keep their verb names?

For each convention, run the Stage C derivation and count verb-name recovery. Baseline is 75/75 under the current (unspecified) convention. A convention that drops recovery below 75/75 — i.e. that makes two different verbs collapse onto one coordinate, or one verb split across two — has broken the naming map, and the breakage names the entries where the convention is wrong.

Observable 5 — Does the corpus's direction bit agree with the v0.1 header's?

The compact-header draft v0.1 already has a direction field (bit 19, 0 into / 1 out of). Check each convention against the three header presets (ACT end steel QToB4, ATTEND begin UpgALACAHT, FAIL sample I5wlhYAADe): does the preset's direction bit read correctly under this convention? A convention that contradicts the adopted draft's presets forces a choice: change the convention, or change the draft (which is adopted, not frozen — so it can change, but only by a decision, not silently).

The decision procedure

  1. Run observables 1–5 for D1–D4. Record the results per convention in a table — pass/fail per observable, with the failing entries named.
  2. The winner is the convention that passes all five. If none passes all five, the honest outcome is: the direction bit is not one bit — different families need different polarity axes, and the bit must be split or moved into the verb/role. That is a real possible outcome, and the test is designed to be able to say it.
  3. If two conventions pass all five, they are equivalent on this evidence — record that, and pick the simpler one (fewest new rules), noting the equivalence.
  4. Morgen decides. The test does not decide for him; it gives him the table.

What this does not do

It does not resolve the step-4 naming (interpretive), the 42 open positions, or the three type encodings. It settles one bit. That is the point — one bit, five observables, a table, a decision.