Unfolding kernel
OpenStage C report + table
The numbers, and the run that produced them.
Run: 2026-11-29, Python, local only (~/workspace/stream-stage-c/). Sources, all read at babbworks/stream main 7761b9a (HEAD verified first via the GitHub connector; note: main has moved since the earlier 525c084 — PR #7 was merged at 5d18970 and PR #8, the labs spec, at 7761b9a):
docs/kernel-model/test/corpus.json(75 entries),model.py,test_roundtrip.py,test_books.py,demo.json,gen.mjsdocs/kernel-model/DIGEST.md(§8 test results),OVERVIEW.mddesign/stream/relations-and-matrix.mddocs/creation/review/19-generative-world-model-and-matrix.md(note 19)docs/creation/review/12-codeable-unfolding-kernel-plan.md(note 12)
No repo writes were made. The corpus and harness were copied locally for the audit; the originals are untouched. Reproduce with python3 test_roundtrip.py, python3 test_books.py, python3 stage_c.py in this directory.
The claim under test
Note 12 §2 (provisional): the stored fact type is six bits — relation 2 | direction 1 | modality 1 | phase 2 — and the three context bits F (frame/world), S (sign/substance), O (self/other) are derived by a total, deterministic function:
derive_context(kind_definition, role_values, log_frame) -> Context | Ambiguous | Invalid
Constraints (note 12): no label lookup, no wall-clock heuristic. Each valid fact must either derive one context or produce a specified refusal/unknown result. Gate (note 12 §8 / Stage C): "the 6-bit/context derivation is total and unambiguous for the corpus, or the format retains explicit context bits / revises its claim."
The three numbers — kept separate, as specified
| # | Column | Result |
|---|---|---|
| 1 | Full-position recovery — encode(line) gives code c (7 bits) + phase, and decode recovers the verb name | 75 / 75 |
| 2a | Context-bit derivation, as specified — run the sources' derive_context | NOT RUNNABLE — no such function exists in the sources |
| 2b | Context-bit derivation, audit candidates (see below) | Best candidate: 4 / 75 all-three-bits correct; 31 ambiguous, 40 wrong |
| 3 | Round-trip — decode(encode(line)) == line, byte for byte | 74 / 75 |
| — | Verb-name recovery (a fourth, distinct metric — do not conflate with round-trip) | 75 / 75 |
The repo's own harness reproduces the published figures exactly when run here: test_roundtrip.py prints "round trip: 74 identical, 1 not, of 75" and test_books.py prints "identical : True".
74/75 vs 75/75 is two different metrics. Round-trip (74/75) fails on one entry; verb-name recovery (75/75) succeeds on all 75, including that entry. They must never be collapsed into one score.
Column 3 — the one round-trip failure
Entry [40], conformance, NOTE:
in 1752300001 NOTE x {"text":"hi","rec":"actor:root"}
out 1752300001 NOTE x {"rec":"actor:root","text":"hi"}
This is conformance case 04, non-canonical by design — the input keys are not in sorted order, so canonical re-serialisation changes the byte order. The verb, the position (0x4a, instant) and every fact survive; only the byte order differs. It is a failure of the input to be canonical, not of the model. All other 74 entries round-trip byte-for-byte.
Column 1 — full-position recovery, 75/75
Every entry encodes to a code c and phase, and decode returns the original verb name with no label needed (test_roundtrip.py: "labels needed to recover a verb name: {}"). Placement: 65 entries as positions, 10 as "sensing" (all MEASURE, a sample of the power-flow position 0x26).
Coverage warning: the corpus uses only 13 distinct verbs and 13 of the 128 positions, in 15 distinct (code, phase) pairs, and only 8 of the 16 (F,S,M,O) combinations. The corpus is a narrow slice of the grid. Even a perfect score here would be evidence about these 13 positions, not a proof about all 128.
Column 2a — the specified derivation: NOT RUNNABLE
There is no derive_context function in the sources. Note 12 defines the signature and the constraints and says "Define a total, deterministic function" — as an open task. Note 19 §7 states per-split obligations (what each bit would have to rest on) but gives no function. Relations-and-matrix lists "Can the stored bits recover the context?" as an open question: "Deriving frame, sign and self or other from six stored bits needs a stated function over a defined domain, with counterexamples and an ambiguity policy. Success on a corpus is evidence and not a proof."
This is the single most important Stage C finding: the gate cannot pass, because the thing being gated does not exist yet. The audit below (2b) does not substitute for it — it tests whether any plausible function of the allowed inputs could work, to show what the function would have to overcome.
Column 2b — candidate functions (audit constructions, NOT source functions)
Three candidates were constructed by this audit and run with a per-entry trace (full traces in stage-c-table.csv). They are labelled CAND-A/B/C throughout; a pass by a candidate would not prove the claim.
CAND-A — recorder-relative self/other, quantity-based sign/substance, log-internal frame/world
- O: self iff the fact's subject == recorder (
rec); other iff different; ambiguous if no subject is determinable. - S: substance iff the entry carries a conserved quantity (
qwith a conserved unit,legs, oruse); sign otherwise. - F: frame iff the entry concerns the log itself (kind in {genesis, segment, seal}, verb in {OPEN, COMMIT, BIND}, object
log:*/seg-*). This is a kind/verb label lookup, explicitly forbidden by note 12 — flagged wherever it fires.
Result: 4 / 75 correct, 31 ambiguous, 40 wrong.
Per-bit, where determined:
| Bit | Correct | Ambiguous |
|---|---|---|
| F (frame/world) | 33 / 75 | 0 |
| S (sign/substance) | 67 / 75 | 0 |
| O (self/other) | 9 / 44 | 31 |
The 4 "correct" entries are all the same context (F=1, S=0, O=1) — QUERY begin and NOTE instant with no quantity carried. The candidate only works where the true context happens to be the default.
Why CAND-A fails — the pattern, bit by bit
F fails on all 42 frame entries that are not OPEN/COMMIT/BIND. In the corpus, F=0 (frame) is a property of the verb's assigned position — CREATE, GRANT, AMEND, ACK and MEASURE are all frame positions — not of the payload. No kind or role field distinguishes a frame CREATE from a world ACT: both have an actor, a recorder, and no conserved quantity. The log-internal lookup catches only the three log verbs and misses the other 42 frame entries. F cannot be derived from kind/roles as the corpus stands; it is currently carried by the verb's table assignment.
O fails wherever it can be determined (9/44) and is undeterminable in 31 entries. 31 entries have no subject determinable at all — OPEN, COMMIT, MEASURE, PAY, ACK carry no subject in the main fact — so the recorder-relative rule has nothing to compare. Where a subject exists, the rule is mostly wrong: every CREATE in the corpus is O=0 (self) in the position table regardless of whether the created subject equals the recorder (e.g. [4] CREATE human:op-07, recorded by human:ops-lead, is self). O, like F, is currently a property of the verb's assigned position, not of the subject/recorder relationship. Note 19 §7 already warns: "Multiple owners or unknown membership may make the bit ambiguous."
S is the best bit (67/75) and still fails in both directions. Carrying a quantity does not determine S:
ACTwithoutuseis substance (true S=1, candidate says sign) — [12], [16], [67], [70]. The act expends a resource the entry does not itemise.QUERYwithuse,ESTIMATEwith a USD quantity,AMENDwithlegsare sign (true S=0, candidate says substance) — [14], [21], [23], [68]. A query that consumes tokens is still a message; an amended payment is still a claim about a claim. Note 19 §7: "All records are signs; this bit concerns their described act, not their bytes." S depends on the described act — i.e. on the verb's assigned meaning — not on whether a quantity is present.
CAND-B — kind-definition only
Derive all three bits from kind_definition alone. Result: 75/75 ambiguous. Most entries have no kind field at all, and no kind-definition table exists in the corpus (or in the repo) to derive from. There is nothing for the function to read.
CAND-C — log_frame only
log_frame is constant per log (demo / conformance / pack / your log), so it can at most supply a constant F per log and nothing for S or O. Result: 75/75 ambiguous. A single log mixes frame and world facts (the demo log contains OPEN/BIND and PAY/ACT), so a constant per log cannot match both.
The Books — rebuilt from flow facts alone: IDENTICAL
test_books.py over demo.json: today's rules vs flow facts alone produce the identical balance table (host:build-01 −419 J, −14,300 ti, −786 to, −51.6 xs, ops-lead −89 USD; task-83 and vendor:model-api the mirror image), with 3 samples not posted ("samples are looking, possibles are not yet"). Books: identical, as published. This is the strongest result in the audit — the to-fact fold reproduces the ledger without the v1 rules — but it is a result about the 13 positions in the corpus, and about to facts only.
What Stage C does and does not prove
It proves:
- The 75-entry corpus is in the repo (
docs/kernel-model/test/corpus.json) with a working harness (model.py,test_roundtrip.py,test_books.py) — the earlier "not in the repo" report (2026-11-26) is now out of date. - Full-position recovery works on the corpus: 75/75 verb names recovered, no labels needed.
- Round-trip works except the designed non-canonical case: 74/75.
- Books rebuild identically from flow facts alone.
- The context-derivation gate cannot pass as specified, because the
derive_contextfunction does not exist. No candidate function of the allowed inputs (kind definition, role values, log frame) recovers the context on this corpus: best 4/75, with the F and O bits systematically carried by the verb's table assignment rather than by any payload field, and the S bit not determined by carrying a quantity.
It does not prove:
- That the 6-bit scheme is impossible. It proves the function is missing, not that no function could exist. A function would have to draw on something the corpus does not currently carry — e.g. an explicit kind-definition table, a declared owner boundary, or a frame anchor per fact — and note 12's constraints (no label lookup) may themselves need revisiting: if context is recoverable only via the verb, then the stored form is really "6 bits + a verb table", and that should be said plainly.
- Anything about the other 115 positions, the 42 open slots, or domains outside this corpus. Only 13 positions are exercised.
- That the direction bit is settled. D is one of the six stored bits and was taken as given here (from the position table); the direction-bit dispute across inherited specifications is a separate open question and was not tested.
Consequences for the next steps
- Do not freeze the 6-bit wire form. Note 12's own rule: "Until this is proven on the corpus and edge cases, retain the full context in the reference AST and do not freeze the 6-bit wire form." Stage C confirms that condition is not met.
- **The next work is to write
derive_context, not to test it again.** The function needs a defined domain: a kind-definition table, a declared owner/responsibility boundary (for O), a frame anchor per fact (for F), and a rule for S that refers to the described act rather than to the presence of a quantity. Until those inputs exist in the seed, no derivation can be total. - Or revise the claim. If context is in practice recovered from the verb's position, say so: the stored form is 6 bits plus the position table, and the "derivation" is a table lookup. That is a legitimate design — it is just not the derivation note 12 describes, and the label-lookup ban would have to be lifted for it.
- Reader A / Reader B can proceed independently. The reader comparison does not depend on the 6-bit scheme: both readers can carry the full 7-bit position + phase in the reference AST, as note 12 requires.
- Stage C is now done and reproducible.
stage_c.py+stage-c-table.csvin this directory; the three numbers are 75/75, NOT RUNNABLE (best candidate 4/75), 74/75.
Files in this directory
STAGE-C-REPORT.md— this report.stage-c-table.csv— one row per corpus entry (i, src, verb, code, phase, F/S/M/O, rel, D, stored 6 bits, col-1 and col-3 verdicts, CAND-A/B/C scores and traces, full line).stage_c.py— the audit script.stage-c-run.log— the run output.corpus.json,model.py,test_roundtrip.py,test_books.py,demo.json,gen.mjs— copies of the repo files at main7761b9a(SHA-256 of corpus.json:4d1dc36e388222af3e0b4cf1985bc189e83662f4d3c4206d6fb31d55eb2827ec).src-*— the source files as fetched, with the raw connector output alongside.
| i | src | verb | code_hex | phase | F | S | M | O | rel | D | how | stored6_rel | stored6_dir | stored6_mod | stored6_phase | col1_position_ok | col3_roundtrip_ok | candA_F | candA_S | candA_O | candA_score | candA_trace | candB_score | candB_trace | candC_score | candC_trace | line |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | demo | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=genesis verb=OPEN obj=log:acme [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=genesis present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.11 OPEN log:acme {"clock":"browser","kind":"genesis","log":"acme","rec":"human:ops-lead","root":["human:ops-lead"],"tz":"UTC"} |
| 1 | demo | BIND | 0x06 | instant | 0 | 0 | 0 | 0 | to | 0 | position | to | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=None verb=BIND obj=log [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.114 BIND log {"name":"si-units@1","pack":"sha256:42cefac14349f7e96ef15374fd7392d366c0d42ee8ff534c9f4f5fcce587e24f","rec":"human:ops-lead"} |
| 2 | demo | BIND | 0x06 | instant | 0 | 0 | 0 | 0 | to | 0 | position | to | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=None verb=BIND obj=log [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.116 BIND log {"name":"agent-ops@1","pack":"sha256:4e78a87529eac61668f8742e0704d51f025d265a10d6f19939bbca5c046b404e","rec":"human:ops-lead"} |
| 3 | demo | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 0 | WRONG | O=self: subject human:ops-lead == rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=actor verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=actor present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.117 CREATE human:ops-lead {"class":"person","kind":"actor","name":"Ops lead","rec":"human:ops-lead"} |
| 4 | demo | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject human:op-07 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=actor verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=actor present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.117 CREATE human:op-07 {"class":"person","kind":"actor","name":"Operator 07","rec":"human:ops-lead"} |
| 5 | demo | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject host:build-01 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=actor verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=actor present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.117 CREATE host:build-01 {"class":"machine","kind":"actor","name":"Build host 01","rec":"human:ops-lead"} |
| 6 | demo | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject agent:claude-07 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=actor verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=actor present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.117 CREATE agent:claude-07 {"class":"agent","kind":"actor","name":"Agent 07","rec":"human:ops-lead"} |
| 7 | demo | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject host:build-01 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=pool verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=pool present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.117 CREATE host:build-01 {"kind":"pool","name":"Build host 01","rec":"human:ops-lead","units":["J","xs","ti","to"]} |
| 8 | demo | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject meter:pdu-4 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=meter verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=meter present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.118 CREATE meter:pdu-4 {"every":"8","kind":"meter","name":"PDU 4, outlet 3","rec":"human:ops-lead","scope":"host:build-01","u":"J"} |
| 9 | demo | GRANT | 0x0c | instant | 0 | 0 | 0 | 1 | may | 0 | position | may | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject host:build-01 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=GRANT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795580801.118 GRANT host:build-01 {"for":"agent:*","may":"record","rec":"human:ops-lead","to":"host:build-01"} |
| 10 | demo | PAY | 0x6f | instant | 1 | 1 | 0 | 1 | to | 1 | position | to | 1 | 0 | instant | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: legs present; F=world: kind/verb lookup found nothing log-internal (kind=None verb=PAY) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484701.3 PAY payment-r18ak5 {"legs":[{"a":"human:ops-lead","q":"-99","u":"USD"},{"a":"vendor:model-api","q":"99","u":"USD"}],"ps":1,"rec":"human:ops-lead"} |
| 11 | demo | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484702.6 MEASURE* meter:pdu-4 {"ps":1,"q":"41","rec":"host:build-01","scope":"host:build-01","u":"J"} |
| 12 | demo | ACT | 0x60 | begin | 1 | 1 | 0 | 0 | in | 0 | position | in | 0 | 0 | begin | True | True | 1 | 0 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ACT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484703.9 R:ACT( task-83 {"actor":"agent:claude-07","ps":2,"rec":"host:build-01","run":"k83","title":"Task k83 · write importer test"} |
| 13 | demo | QUERY | 0x5e | begin | 1 | 0 | 1 | 1 | to | 0 | position | to | 0 | 1 | begin | True | True | 1 | 0 | 1 | CORRECT | O=other: subject agent:claude-07 != rec host:build-01; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=QUERY) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484705.2 R:QUERY( task-83 {"actor":"agent:claude-07","parent":"k83","ps":3,"rec":"host:build-01","run":"k83.m1","title":"Model call m1"} |
| 14 | demo | QUERY | 0x5e | end | 1 | 0 | 1 | 1 | to | 0 | position | to | 0 | 1 | end | True | True | 1 | 1 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=substance: use present; F=world: kind/verb lookup found nothing log-internal (kind=None verb=QUERY) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484706.5 R:QUERY) task-83 {"actor":"agent:claude-07","pool":"host:build-01","ps":4,"rec":"host:build-01","run":"k83.m1","status":"ok","use":{"ti":"7150","to":"393"}} |
| 15 | demo | ACK | 0x0f | instant | 0 | 0 | 0 | 1 | to | 1 | position | to | 1 | 0 | instant | True | True | 1 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ACK) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484707.8 ACK task-83 {"digest":"ce47eab329c7487b4d5cfeb5a883c34a029f3efef4b6f7a41cec78c4c08a3a1e","ps":1,"rec":"human:op-07","refused":"human:op-07 may not record for agent:claude-07"} |
| 16 | demo | ACT | 0x60 | begin | 1 | 1 | 0 | 0 | in | 0 | position | in | 0 | 0 | begin | True | True | 1 | 0 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ACT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484709.1 R:ACT( task-83 {"actor":"agent:claude-07","parent":"k83","ps":5,"rec":"host:build-01","run":"k83.t1","title":"Tool call t1"} |
| 17 | demo | ACT | 0x60 | end | 1 | 1 | 0 | 0 | in | 0 | position | in | 0 | 0 | end | True | True | 1 | 1 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=substance: use present; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ACT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484710.4 R:ACT) task-83 {"actor":"agent:claude-07","pool":"host:build-01","ps":6,"rec":"host:build-01","run":"k83.t1","status":"ok","use":{"J":"~343","xs":"24.5"}} |
| 18 | demo | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484711.7 MEASURE* meter:pdu-4 {"ps":7,"q":"35","rec":"host:build-01","scope":"host:build-01","u":"J"} |
| 19 | demo | ACT | 0x60 | end | 1 | 1 | 0 | 0 | in | 0 | position | in | 0 | 0 | end | True | True | 1 | 1 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=substance: use present; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ACT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484713 R:ACT) task-83 {"actor":"agent:claude-07","pool":"host:build-01","ps":8,"rec":"host:build-01","run":"k83","status":"ok","use":{"J":"76","ti":"7150","to":"393","xs":"27.1"}} |
| 20 | demo | NOTE | 0x4a | instant | 1 | 0 | 0 | 1 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | CORRECT | O=other: subject task-83 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=NOTE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484714.3 NOTE task-83 {"ps":2,"rec":"human:ops-lead","text":"importer test written"} |
| 21 | demo | ESTIMATE | 0x52 | instant | 1 | 0 | 1 | 0 | is | 0 | position | is | 0 | 1 | instant | True | True | 1 | 1 | 1 | WRONG | O=other: subject task-83 != rec human:ops-lead; S=substance: q with conserved unit USD; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ESTIMATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484715.6 ESTIMATE task-83 {"basis":"1:16","method":"tariff t1","ps":3,"q":"~0.09","rec":"human:ops-lead","u":"USD"} |
| 22 | demo | AMEND | 0x03 | instant | 0 | 0 | 0 | 0 | is | 1 | position | is | 1 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject task-83 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=AMEND) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484716.9 AMEND task-83 {"ps":4,"reason":"wrong wording","rec":"human:ops-lead","ref":"1:21","text":"importer test drafted"} |
| 23 | demo | AMEND | 0x03 | instant | 0 | 0 | 0 | 0 | is | 1 | position | is | 1 | 0 | instant | True | True | 1 | 1 | 1 | WRONG | O=other: subject payment-r18ak5 != rec human:ops-lead; S=substance: legs present; F=world: kind/verb lookup found nothing log-internal (kind=None verb=AMEND) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484718.2 AMEND payment-r18ak5 {"legs":[{"a":"human:ops-lead","q":"-89","u":"USD"},{"a":"vendor:model-api","q":"89","u":"USD"}],"ps":5,"reason":"amount was 89","rec":"human:ops-lead","ref":"1:11"} |
| 24 | demo | AMEND | 0x03 | instant | 0 | 0 | 0 | 0 | is | 1 | position | is | 1 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject host:build-01 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=AMEND) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484719.5 AMEND host:build-01 {"ps":6,"reason":"renamed","rec":"human:ops-lead","ref":"1:6","set":{"name":"Build host one"}} |
| 25 | demo | COMMIT | 0x01 | instant | 0 | 0 | 0 | 0 | in | 1 | position | in | 1 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=seal verb=COMMIT obj=seg-000001 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=seal present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484720.8 COMMIT seg-000001 {"chain":"2b6e3f41a16405151048c7bc5ecc22a5a25f2da545220b5484f94b0ba2fb782d","kind":"seal","n":25,"rec":"log:acme","sha256":"992a013f8f1d9f3b018cd97467236a3f5073159300c6e3a11c6f8c70c3a3792e"} |
| 26 | demo | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=segment verb=OPEN obj=seg-000002 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=segment present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484722.1 OPEN seg-000002 {"kind":"segment","prev":"2b6e3f41a16405151048c7bc5ecc22a5a25f2da545220b5484f94b0ba2fb782d","rec":"log:acme"} |
| 27 | demo | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=demo is constant per log; cannot vary S or O within a log | 1795484722.1 MEASURE* meter:pdu-4 {"ps":9,"q":"38","rec":"host:build-01","scope":"host:build-01","u":"J"} |
| 28 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=genesis verb=OPEN obj=log:c1 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=genesis present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300000 OPEN log:c1 {"clock":"ntp","kind":"genesis","log":"c1","rec":"actor:root","root":["actor:root"],"tz":"UTC"} |
| 29 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=genesis verb=OPEN obj=log:c2 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=genesis present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300000 OPEN log:c2 {"clock":"ntp","kind":"genesis","log":"c2","rec":"actor:root","root":["actor:root"],"tz":"UTC"} |
| 30 | conformance | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300008 MEASURE* m1 {"ps":1,"q":"38","rec":"meter:m1","u":"J"} |
| 31 | conformance | COMMIT | 0x01 | instant | 0 | 0 | 0 | 0 | in | 1 | position | in | 1 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=seal verb=COMMIT obj=seg-000001 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=seal present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300020 COMMIT seg-000001 {"chain":"7f663b9ded163494128358e48af3776b129b23c88bb59f7b13a8b37bb204cacd","kind":"seal","n":2,"rec":"log:c2","sha256":"7d9d18d709f0c2746fa54a007a0343f4264df23f7dfab67fa967fc73305a5ce5"} |
| 32 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=segment verb=OPEN obj=seg-000002 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=segment present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300030 OPEN seg-000002 {"kind":"segment","prev":"7f663b9ded163494128358e48af3776b129b23c88bb59f7b13a8b37bb204cacd","rec":"log:c2"} |
| 33 | conformance | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300016 MEASURE* m1 {"ps":2,"q":"41","rec":"meter:m1","u":"J"} |
| 34 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=genesis verb=OPEN obj=log:c2 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=genesis present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300000 OPEN log:c2 {"clock":"ntp","kind":"genesis","log":"c2","rec":"actor:root","root":["actor:root"],"tz":"UTC"} |
| 35 | conformance | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300008 MEASURE* m1 {"ps":1,"q":"39","rec":"meter:m1","u":"J"} |
| 36 | conformance | COMMIT | 0x01 | instant | 0 | 0 | 0 | 0 | in | 1 | position | in | 1 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=seal verb=COMMIT obj=seg-000001 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=seal present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300020 COMMIT seg-000001 {"chain":"7f663b9ded163494128358e48af3776b129b23c88bb59f7b13a8b37bb204cacd","kind":"seal","n":2,"rec":"log:c2","sha256":"7d9d18d709f0c2746fa54a007a0343f4264df23f7dfab67fa967fc73305a5ce5"} |
| 37 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=segment verb=OPEN obj=seg-000002 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=segment present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300030 OPEN seg-000002 {"kind":"segment","prev":"7f663b9ded163494128358e48af3776b129b23c88bb59f7b13a8b37bb204cacd","rec":"log:c2"} |
| 38 | conformance | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300016 MEASURE* m1 {"ps":2,"q":"41","rec":"meter:m1","u":"J"} |
| 39 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=genesis verb=OPEN obj=log:c1 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=genesis present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300000 OPEN log:c1 {"clock":"ntp","kind":"genesis","log":"c1","rec":"actor:root","root":["actor:root"],"tz":"UTC"} |
| 40 | conformance | NOTE | 0x4a | instant | 1 | 0 | 0 | 1 | is | 0 | position | is | 0 | 0 | instant | True | False | 1 | 0 | 1 | CORRECT | O=other: subject x != rec actor:root; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=NOTE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300001 NOTE x {"text":"hi","rec":"actor:root"} |
| 41 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=genesis verb=OPEN obj=log:c1 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=genesis present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300000 OPEN log:c1 {"clock":"ntp","kind":"genesis","log":"c1","rec":"actor:root","root":["actor:root"],"tz":"UTC"} |
| 42 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=genesis verb=OPEN obj=log:c2 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=genesis present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300000 OPEN log:c2 {"clock":"ntp","kind":"genesis","log":"c2","rec":"actor:root","root":["actor:root"],"tz":"UTC"} |
| 43 | conformance | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300008 MEASURE* m1 {"ps":1,"q":"38","rec":"meter:m1","u":"J"} |
| 44 | conformance | COMMIT | 0x01 | instant | 0 | 0 | 0 | 0 | in | 1 | position | in | 1 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=seal verb=COMMIT obj=seg-000001 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=seal present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300020 COMMIT seg-000001 {"chain":"7f663b9ded163494128358e48af3776b129b23c88bb59f7b13a8b37bb204cacd","kind":"seal","n":2,"rec":"log:c2","sha256":"7d9d18d709f0c2746fa54a007a0343f4264df23f7dfab67fa967fc73305a5ce5"} |
| 45 | conformance | OPEN | 0x00 | instant | 0 | 0 | 0 | 0 | in | 0 | position | in | 0 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=segment verb=OPEN obj=seg-000002 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=segment present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300030 OPEN seg-000002 {"kind":"segment","prev":"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","rec":"log:c2"} |
| 46 | conformance | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=conformance is constant per log; cannot vary S or O within a log | 1752300016 MEASURE* m1 {"ps":2,"q":"41","rec":"meter:m1","u":"J"} |
| 47 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:s != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:s {"base":true,"conserved":false,"dimension":"time","kind":"unit","note":"wall time: the envelope","rec":"pack:si-units@1"} |
| 48 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:h != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:h {"conserved":true,"dimension":"capacity-time","kind":"unit","note":"actor hours drawn from capacity","rec":"pack:si-units@1"} |
| 49 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:xs != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:xs {"base":true,"conserved":true,"dimension":"cpu-time","kind":"unit","rec":"pack:si-units@1"} |
| 50 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:J != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:J {"base":true,"conserved":true,"dimension":"energy","kind":"unit","rec":"pack:si-units@1"} |
| 51 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:kWh != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:kWh {"conserved":true,"dimension":"energy","equals":"3600000 J","kind":"unit","rec":"pack:si-units@1"} |
| 52 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:B != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:B {"base":true,"conserved":true,"dimension":"data","kind":"unit","rec":"pack:si-units@1"} |
| 53 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:kg != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:kg {"base":true,"conserved":true,"dimension":"mass","kind":"unit","rec":"pack:si-units@1"} |
| 54 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:L != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:L {"conserved":true,"dimension":"volume","equals":"0.001 m3","kind":"unit","rec":"pack:si-units@1"} |
| 55 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:m3 != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:m3 {"base":true,"conserved":true,"dimension":"volume","kind":"unit","rec":"pack:si-units@1"} |
| 56 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:# != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:# {"base":true,"conserved":true,"dimension":"count","kind":"unit","note":"sub-acts not recorded individually","rec":"pack:si-units@1"} |
| 57 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:USD != rec pack:si-units@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:USD {"base":true,"conserved":true,"dimension":"money","kind":"unit","rec":"pack:si-units@1"} |
| 58 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:ti != rec pack:agent-ops@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:ti {"base":true,"conserved":true,"dimension":"tokens-in","kind":"unit","rec":"pack:agent-ops@1"} |
| 59 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:to != rec pack:agent-ops@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:to {"base":true,"conserved":true,"dimension":"tokens-out","kind":"unit","rec":"pack:agent-ops@1"} |
| 60 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:tr != rec pack:agent-ops@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:tr {"base":true,"conserved":true,"dimension":"tokens-cache-read","kind":"unit","rec":"pack:agent-ops@1"} |
| 61 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject unit:tw != rec pack:agent-ops@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=unit verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=unit present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE unit:tw {"base":true,"conserved":true,"dimension":"tokens-cache-write","kind":"unit","rec":"pack:agent-ops@1"} |
| 62 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject profile:R != rec pack:agent-ops@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=profile verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=profile present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE profile:R {"kind":"profile","note":"agent and machine run spans","pairs_by":"run","rec":"pack:agent-ops@1","requires":["run"],"verbs":["QUERY","ACT"]} |
| 63 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject view:attribution@1 != rec pack:agent-ops@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=view verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=view present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE view:attribution@1 {"kind":"view","method":"builtin:stream-books/attribution","reads":["QUERY","ACT"],"rec":"pack:agent-ops@1","shows":"tree"} |
| 64 | pack | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject view:balances@1 != rec pack:agent-ops@1; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=view verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=view present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=pack is constant per log; cannot vary S or O within a log | 0 CREATE view:balances@1 {"kind":"view","method":"builtin:stream-books/balances","reads":["legs","use"],"rec":"pack:agent-ops@1","shows":"ledger"} |
| 65 | your log | COMMIT | 0x01 | instant | 0 | 0 | 0 | 0 | in | 1 | position | in | 1 | 0 | instant | True | True | 0 | 0 | AMB | AMBIGUOUS | O: no subject determinable; S=sign: no conserved quantity carried; F=frame: kind/verb lookup on kind=seal verb=COMMIT obj=seg-000001 [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=seal present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484767.579 COMMIT seg-000001 {"chain":"9b8b2fc53557ff8ad1c5adf27ceaab783c6de0fd12fb564d9770f8c26d92abfd","kind":"seal","n":18,"rec":"log:acme","sha256":"207fcbf94cfe09db190664ed85082880089e632a1b52e63ef9303cd03180f82f"} |
| 66 | your log | MEASURE | 0x26 | sample | 0 | 1 | 0 | 0 | to | 0 | sensing | to | 0 | 0 | sample | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: q with conserved unit J; F=world: kind/verb lookup found nothing log-internal (kind=None verb=MEASURE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484754.725 MEASURE* meter:pdu-4 {"ps":7,"q":"35","rec":"host:build-01","scope":"host:build-01","u":"J"} |
| 67 | your log | ACT | 0x60 | begin | 1 | 1 | 0 | 0 | in | 0 | position | in | 0 | 0 | begin | True | True | 1 | 0 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ACT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484749.975 R:ACT( task-83 {"actor":"agent:claude-07","parent":"k83","ps":6,"rec":"host:build-01","run":"k83.t1","title":"Tool call t1 · run test suite"} |
| 68 | your log | QUERY | 0x5e | end | 1 | 0 | 1 | 1 | to | 0 | position | to | 0 | 1 | end | True | True | 1 | 1 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=substance: use present; F=world: kind/verb lookup found nothing log-internal (kind=None verb=QUERY) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484748.975 R:QUERY) task-83 {"actor":"agent:claude-07","pool":"host:build-01","ps":5,"rec":"host:build-01","run":"k83.m1","status":"ok","use":{"ti":"7150","to":"393"}} |
| 69 | your log | QUERY | 0x5e | begin | 1 | 0 | 1 | 1 | to | 0 | position | to | 0 | 1 | begin | True | True | 1 | 0 | 1 | CORRECT | O=other: subject agent:claude-07 != rec host:build-01; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=QUERY) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484743.725 R:QUERY( task-83 {"actor":"agent:claude-07","parent":"k83","ps":3,"rec":"host:build-01","run":"k83.m1","title":"Model call m1"} |
| 70 | your log | ACT | 0x60 | begin | 1 | 1 | 0 | 0 | in | 0 | position | in | 0 | 0 | begin | True | True | 1 | 0 | 1 | WRONG | O=other: subject agent:claude-07 != rec host:build-01; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=ACT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484741.725 R:ACT( task-83 {"actor":"agent:claude-07","ps":2,"rec":"host:build-01","run":"k83","title":"Task k83 · write importer test"} |
| 71 | your log | PAY | 0x6f | instant | 1 | 1 | 0 | 1 | to | 1 | position | to | 1 | 0 | instant | True | True | 1 | 1 | AMB | AMBIGUOUS | O: no subject determinable; S=substance: legs present; F=world: kind/verb lookup found nothing log-internal (kind=None verb=PAY) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484718.452 PAY payment-r18ak5 {"legs":[{"a":"human:ops-lead","q":"-99","u":"USD"},{"a":"vendor:model-api","q":"99","u":"USD"}],"ps":1,"rec":"human:ops-lead"} |
| 72 | your log | GRANT | 0x0c | instant | 0 | 0 | 0 | 1 | may | 0 | position | may | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject host:build-01 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=None verb=GRANT) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | no kind field at all — nothing to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484682.539 GRANT host:build-01 {"for":"agent:*","may":"record","rec":"human:ops-lead","to":"host:build-01"} |
| 73 | your log | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject meter:pdu-4 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=meter verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=meter present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484682.538 CREATE meter:pdu-4 {"every":"8","kind":"meter","name":"PDU 4, outlet 3","rec":"human:ops-lead","scope":"host:build-01","u":"J"} |
| 74 | your log | CREATE | 0x02 | instant | 0 | 0 | 0 | 0 | is | 0 | position | is | 0 | 0 | instant | True | True | 1 | 0 | 1 | WRONG | O=other: subject host:build-01 != rec human:ops-lead; S=sign: no conserved quantity carried; F=world: kind/verb lookup found nothing log-internal (kind=pool verb=CREATE) [FORBIDDEN by note 12: label lookup] | AMBIGUOUS | kind=pool present but no kind_definition table exists to derive from | AMBIGUOUS | log_frame=your log is constant per log; cannot vary S or O within a log | 1795484682.538 CREATE host:build-01 {"kind":"pool","name":"Build host 01","rec":"human:ops-lead","units":["J","xs","ti","to"]} |
derive_context v2
The failing test, run honestly.
Run: 2026-11-29, Python 3 stdlib only, local. No GitHub writes, no Lab tool work. Code: derive_context.py Per-entry table: derive_context_table.csv Run log: derive_context_run.log Corpus: docs/kernel-model/test/corpus.json, 75 entries, at babbworks/stream main 5d18970 (HEAD verified via the GitHub connector; blob SHA 82c7110c…; content SHA-256 4d1dc36e…, byte-identical to the Stage C local copy). Ground truth F/S/O comes from model.py encode/bits, the same source Stage C used. The harness asserts the corpus hash before running.
Headline
v2 is written, total, deterministic, and honest — and it fails. With the three missing inputs supplied as the seed would have to supply them, it recovers all three context bits on 6 of 75 entries, refuses on 69, and is wrong on 0 as an entry (4 wrong bits, all of them the O bit of QUERY). The only construction that passes is the verb-keyed control: 75/75 by lookup on the verb name. The constraint verdict is therefore:
The no-label-lookup constraint has to go if the 6-bit claim is kept. The stored form is really "6 bits + a verb table" — the context bits are recovered by looking the verb up in the position table, not derived from kind, roles, and frame. Equivalently: keep the constraint, and the 6-bit wire form cannot be frozen — the full context stays in the reference AST, exactly as note 12 §2 already requires until this is proven.
1. v2 design
Signature (extends note 12 §2, which gave derive_context(kind_definition, role_values, log_frame) -> Context | Ambiguous | Invalid):
derive_context(kind_definition, role_values, log_frame,
*, owner_boundary, frame_anchor, stored6=None) -> Outcome
Outcome.verdict is Context (all three bits 0/1), Ambiguous (at least one bit undecided, with a per-bit reason naming the missing input), or Invalid (the inputs are contradictory/malformed: bad enum in the kind table, a principal both in and out of the boundary, legs that do not balance per unit, no recorder). The function never raises on well-formed input. It never sees the verb name or the position code — the harness enforces this by construction. The stored six bits are passed only to select which role is the O-relevant principal and to check legs balance, never to look up context.
Rules per bit (full statement with rationales in the module docstring):
- F (frame/world) — from the per-fact frame anchor: the anchor is the log itself, a segment, or an entity whose kind is an apparatus kind → frame (0); an anchor whose kind is a declared subject kind → world (1); otherwise Ambiguous, falling back to
kind_definition.frame_domain. No subject kind is declared in the v2 seed table — no kind occurring in the corpus is a subject-matter kind — so the anchor rule can only ever say "frame" or "don't know", never "world", on this corpus. - S (sign/substance) — from
kind_definition.effect_classONLY. Quantity presence is deliberately never used: Stage C proved it fails both ways (ACT withoutuseis substance; QUERY withuse, ESTIMATE with q USD, AMEND withlegsare sign). No kind definition → Ambiguous. No kind in the v2 table has effect_classconserved-effect— defining a unit, even a conserved one, is a representation act — so S=1 is never derived in Mode B. Substance is a property of the described act, and no entity kind in the corpus names an act. - M (actual/possible) — NOT derived. M is one of the six stored bits, so it is given, not recovered. There is no M rule in v2 by design.
- O (self/other) — from the declared owner boundary. The O-relevant principal is the actor, else the grantee (
for), else the subject if it is a principal id; for TO facts with legs, the boundary-crossing rule applies (legs spanning the boundary → other; wholly inside → self). Inside the boundary → self; a known principal outside it → other; wildcard / unregistered / absent principal → Ambiguous. The recorder is NOT the comparator — that was CAND-A's error (every CREATE is self regardless of recorder).
The kind table covers the 9 entity kinds occurring in the corpus (genesis, segment, seal, unit, profile, view, meter, actor, pool), built only from the sources' semantics. Two judgement calls are flagged in the code, not hidden: meter → apparatus (the meter is the recording instrument itself), and actor/pool → apparatus (the log's register of actors/pools is apparatus; the entities themselves are world entities — this encodes "facts defining/registering an actor are frame acts", which works only because the corpus never uses kind=actor/pool outside CREATE/GRANT/AMEND). The sensitivity run (§3) measures the cost of the opposite declaration.
The owner boundary is declared per log: Genesis roots + registered actors (acme: {human:ops-lead, human:op-07, host:build-01, agent:claude-07}; conformance: {actor:root}; pack: undeclared — no Genesis, so O is always Ambiguous there). The registry is whole-log, not prefix-only — generous to v2, since a prefix-correct registry would resolve fewer anchors. The registry is set-valued per entity (an entity can hold several kinds; host:build-01 is both actor and pool) after the first run caught a single-kind registry overwriting actor with pool and misclassifying three CREATE/AMEND O-bits — itself a small finding: boundary membership derived from kind registration is order-dependent unless the Register keeps every claim (note 12 §2.2, BKL-02).
2. Results
| Mode | Correct | Ambiguous | Wrong | Invalid |
|---|---|---|---|---|
| A — corpus as-is, no v2 inputs | 0 | 75 | 0 | 0 |
| B — v2 inputs supplied | 6 | 69 | 0 | 0 |
| C — CONTROL, verb-keyed kind table | 75 | 0 | 0 | 0 |
Per-bit, Mode B (correct / ambiguous / wrong): F 51/24/0; S 42/33/0; O 15/56/4. Mode A is 0/75/0 on every bit: total refusal, vacuous.
Mode B correct entries (all three bits, all of them): [3], [4], [5], [6], [7] demo CREATE and [74] "your log" CREATE — all context 000, all CREATEs whose subject is a registered principal. No world fact, no substance fact, and no other fact is ever fully recovered: the 6 correct entries are one context, and the other 41 entries with true context 000 are Ambiguous (mostly CREATEs of non-principal subjects and OPEN/COMMIT/ BIND, whose O is undeterminable — a log has no "self" to compare).
Per-bit detail (Mode B):
- F 51/24/0. Correct on all 42 kind-carrying entries plus BIND ×2 (anchor is the log), GRANT ×2 and AMEND ×1 (anchor host:build-01), MEASURE ×4 (anchor meter:pdu-4; the other 6 MEASUREs are conformance
m1, never registered). Ambiguous on all ACT/QUERY/NOTE/ESTIMATE/PAY/ ACK — their objecttask-83/payment-r18ak5was never registered, so the anchor kind is unknown. Never wrong — because the rule only ever fires on frame acts in this corpus (see §4). - S 42/33/0. Correct on exactly the 42 kind-carrying entries (OPEN, COMMIT, CREATE — all sign). Ambiguous on all 33 kind-less entries, including all 10 MEASUREs (true substance), all 6 ACTs (true substance) and both PAYs (true substance). S=1 is never derived.
- O 15/56/4. Correct on ACT ×6 (actor in boundary), CREATE-principals ×6, PAY ×2 (legs span the boundary), AMEND-host ×1. Ambiguous wherever no principal is determinable (56). Wrong on exactly 4 bits: the O bit of QUERY [13], [14], [68], [69].
Self-test: 8 checks pass (determinism, Ambiguous-on-absence, Invalid ×4: unbalanced legs, contradictory boundary, malformed kind def, missing recorder; no quantity→S fallback).
3. The failing pattern
v2 fails in the same place CAND-A failed, for the same reason: on this corpus F/S/O are constant per verb, while every v2 input is constant across verbs that share it. Computed lemmas (in the harness, not asserted):
- L1 — stored bits alone cannot determine context. Two stored-6 groups carry mixed FSO:
(is,0,0,instant)→{000 CREATE, 101 NOTE}and(to,1,0,instant)→{001 ACK, 111 PAY}. Identical stored bits, different context. This is a proof, not a heuristic failure. - L2 — same actor, different O. Actor
agent:claude-07: ACT is O=0 (self), QUERY is O=1 (other). No owner-boundary rule over the actor can get both right. - L3 — same object, different F. Object
task-83: AMEND is F=0, ACT/QUERY/NOTE/ESTIMATE are F=1 (andpayment-r18ak5: AMEND F=0 vs PAY F=1). No frame-anchor rule over the object can get both right. - L4 — FSO constant per verb: 13/13 verbs single-valued. The verb is the only input that varies exactly as FSO varies.
- L5/L6 — the verb-proxy artefact. Kind-field presence implies F=0 (42/42) and S=0 (42/42) in this corpus, because kind-carrying facts are all definitional/log verbs (CREATE/OPEN/COMMIT). Mode B's F and S scores are therefore measured on frame/sign facts only; the kind table has no demonstrated ability to say "world" or "substance".
The four wrong O bits are the sharpest instance: QUERY's other is the intended respondent, who is not named in any role of the fact. The corpus does not carry the principal whose membership would decide O. Likewise AMEND vs NOTE on the same object: the difference is the act (amending a claim is about the record; noting is about the work), and nothing in the anchor says which relation the fact bears to its anchor — the corpus carries no defines/uses/amends field.
Sensitivity: declaring actor/pool as subject kinds (the semantically plain reading — actors and pools are world entities) moves F from 51/24/0 to 42/24/9, newly wrong on [3, 4, 5, 6, 7, 9, 24, 72, 74]. Nine entries — the entire CREATE/GRANT/AMEND F score — ride on that one judgement call.
4. Constraint verdict
The no-label-lookup constraint has to go if the 6-bit claim is kept. What v2 shows, run by run:
- Mode A: without the new inputs, the function is total but vacuous (75× Ambiguous). The inputs Stage C asked for are real and necessary.
- Mode B: with the new inputs built honestly from non-verb information, the function recovers 6/75 — all one context, all CREATEs — and refuses the rest. The three inputs can each say "frame" or "sign" or "self" about the facts that carry them, but none of them can say "world", "substance", or "other" about a fact whose verb says otherwise, because in this corpus those values arrive only via the verb.
- Mode C: key the kind table on the verb (kind := verb, FSO from the position table) and it passes 75/75 — by lookup. That is the control that proves the pass requires the verb table.
So the honest statement of the stored form is: 6 bits + a verb table (equivalently, 6 bits + the position table, which maps each verb to its FSO). That is a legitimate design — a 13-verb (in the corpus; 51-verb in the full table) lookup is small and deterministic — but it is not the derivation note 12 describes, and the label-lookup ban would have to be lifted for it. The alternative, keeping the ban, is to retain the full context in the reference AST and not freeze the 6-bit wire form (note 12 §2's own rule, reaffirmed by Stage C). There is no third option visible from this corpus: L1–L4 close off stored-bits-only, actor-only, object-only, and entity-kind-only derivations alike.
5. What v2 needs that the corpus does not carry
- A kind-definition table. None exists in the repo. The corpus's
kindfields are entity kinds on 42 entries; 33 entries carry no kind at all, and no entry carries a fact kind. - A declared owner boundary. Genesis gives roots only; there is no membership list and no rule for who counts as self. The "your log" slice carries no Genesis at all.
- A per-fact frame anchor. No anchor field exists in any entry. The line object is not an anchor: it does not say whether the fact defines, uses, amends, or reads the anchor — the relation that would decide F for AMEND-vs-NOTE.
- The O-relevant party for QUERY/ACK/NOTE. The respondent (QUERY), the party whose recording is acknowledged/refused (ACK), and the owner of the noted work (NOTE) are not named in any role.
- An act effect class for kind-less facts. ACT/PAY/MEASURE substance vs QUERY/ESTIMATE sign is carried only by the verb.
6. What would have to change in the corpus / seed to supply them
- Seed (note 12 §2.1 layer 4): publish the kind-definition table as a versioned, content-addressed interpretation pack, with
frame_domain/effect_classper kind and a stated falsifier per entry — and decide, in writing, whether the table is keyed by entity-kind (then FSO stays underdetermined per L1–L4) or by fact-kind/verb (then the no-label-lookup constraint is dropped and the stored form is declared "6 bits + verb table"). - Seed (note 12 §3.3): extend the GENESIS constructor with an explicit owner/membership declaration (not derivable from kind=actor CREATEs — that is order-dependent, §1) and a declared apparatus-kind set, so the boundary and the apparatus are stated, not inferred.
- AST (note 12 §2.2): add a per-fact frame anchor carrying the fact's relation to its anchor (defines / uses / amends / reads / about). Without the relation, the anchor cannot separate AMEND from NOTE on the same object.
- Corpus: add the missing roles (QUERY respondent; ACK's concerned party), add kind fields to kind-less facts or a fact-kind field, and — most importantly for any future claim — add counterexample entries that break verb-proxy tables: a world fact about a registered entity (e.g. NOTE about host:build-01), a substance fact carrying a kind, a frame fact about an unregistered entity. As the corpus stands, any table built from kind-field presence scores spuriously (L5/L6), and only such counterexamples can show whether a future derivation is real or another proxy for the verb.
- Corpus (coverage): the 75 entries exercise 13 of 128 positions and 8 of 16 (F,S,M,O) combinations. A derivation claim over the full grid needs entries that vary one bit at a time — witness pairs sharing all other coordinates (note 19 §7) — which this corpus does not contain.
Files
derive_context.py— v2 (derive_context, kind table, owner boundary, frame anchor, harness, lemmas, self-test, sensitivity run). Run withpython3 derive_context.py.derive_context_table.csv— one row per entry: true FSO, stored 6 bits, Mode A/B/C verdicts, bits and traces, full line.derive_context_run.log— run output.DERIVE-CONTEXT-V2-REPORT.md— this report.
Source on GitHub
Readers
A vs B, and the probe that separates them.
Stage D prep, local only. No GitHub writes, no Lab tool work. Python standard library only. Sources: babbworks/stream main 5d18970 (notes 15, 16b, 18; experiments/mark-boundary/), prep package ~/workspace/stream-unfolding-lab-prep/01-stage-c-and-readers.md, Stage C report ~/workspace/stream-stage-c/STAGE-C-REPORT.md.
What runs
~/workspace/stream-unfolding-work/readers/
transcript.py shared data only: bundles F + D, L:1–L:16 records,
mark-boundary fixture, state formatting
reader_a.py Reader A: finite relational closure
reader_b.py Reader B: finite derived expressions / forest traversal
run_readers.py driver: runs both on the same inputs, writes the logs
test_readers.py 15 stdlib-unittest tests (both readers, same assertions)
reader-a-transcript.txt full run log, Reader A
reader-b-transcript.txt full run log, Reader B
metrics.json measured numbers behind the table below
READERS-COMPARISON.md this report
Run: python3 run_readers.py (rewrites both logs + metrics.json); python3 test_readers.py — 15 tests, all pass (0.073 s).
Both readers run (a) the note-16b L:1–L:16 bootstrap transcript with a GENESIS record first, reporting Kn/Bn/Cn after every step, and (b) the mark-boundary entry/exit fixture. Both also run the same probes (pre-activation invoke, second GENESIS, pending-definition invoke, unsafe rule at proposal, same-key retry, scope refusal, cycle refusal) and the same Books paired-transfer checks.
Headline: on these two inputs the readers agree on every observable outcome. All 6 transcript checks pass in both; the mark-boundary spellings are * → *() → (*) → *() in both; all refusal probes refuse in both; the Books transfer conserves in both. Where they differ is what they accept as a definition and how they explain — which is exactly the difference note 18 says not to silently exchange.
The one deliberate asymmetry (read this first)
The two readers share admission, activation, authentication, atomic commit and idempotency machinery (proposal → activation effective next position; steward C0 as supplied trust premise; exact occurrence addressing; staged post-state checks; identical-retry receipts). They differ only in derivation — that is the comparison's point, and the shared shape is stated here rather than hidden.
- Reader A admits the bundle's rules as written, including the recursive
inrules, and derives by least-fixed-point closure. - Reader B refuses recursive rules as rules at proposal time and requires a covering derived definition supplied in the same bundle:
inbecomes an ancestor-walk,withina reflexive-or check,principala conjunction check. The translation is recorded in the run log (translation F: in-trans (in) -- recursive: refused as rule, translated to derived definition). A recursive rule with no covering derived definition is refused outright (tested). - Grant shape: A stores note 16's 5-tuple
grant(g, holder, action, scope, remaining)withremaining = 1; B stores note 18's reductionone_use_grant(holder, action, scope)with the occurrence itself as the token, no counter, no separate grant id. Same observable behaviour (one use, then spent), different stored definition.
Transcript run — L:1–L:16 (both readers, identical outcomes)
Refs are birth occurrence addresses: R=1, B=3, A=5, C=7, P=9. Parent occurrences: L:8 → #11, L:9 → #12 (q9), L:10 → #13. Grant occurrence: L:14 → #15 (q14). L:15 emits #16 parent(A,C).
| Step | Record | Outcome (both) | Cn after (both) |
|---|---|---|---|
| GENESIS | C0 genesis | accepted, pos 1 | empty |
| L:1 | propose F | accepted; F inactive | empty |
| L:2 | activate F | accepted; usable from L:3 | empty |
| L:3 | make_node → R | accepted, occ #1–2 | within={(1,1)} |
| L:4 | make_node → B | accepted, occ #3–4 | within+={(3,3)} |
| L:5 | make_node → A | accepted, occ #5–6 | within+={(5,5)} |
| L:6 | make_node → C | accepted, occ #7–8 | within+={(7,7)} |
| L:7 | make_node → P | accepted, occ #9–10 | principal still absent |
| L:8 | attach(B,R) | accepted, occ #11 | in={(3,1)} |
| L:9 | attach(A,B) | accepted, occ #12 (q9) | in={(3,1),(5,1),(5,3)} |
| L:10 | attach(C,B) | accepted, occ #13 | in+={(7,1),(7,3)} |
| L:11 | propose D | accepted; D inactive | unchanged |
| L:12 | attest_binding(P,CP) | accepted, occ #14 | principal still absent |
| L:13 | activate D | accepted; usable from L:14 | principal={(9,)} |
| L:14 | issue(P,move,B,1) | accepted, occ #15 (q14) | unchanged |
| L:15 | CP move(P,A,B,C,q14,q9) | accepted; retired #12,#15; emitted #16 | in={(3,1),(5,1),(5,3),(5,7),(7,1),(7,3)} |
| L:16 | CP retry, new key, spent refs | REFUSED [unknown_occurrence] — occurrence #15 is not live; no domain change | identical to L:15 |
Final Bn (both): #11 parent(3,1), #13 parent(7,3), #16 parent(5,7) plus the ten entity/boundary occurrences and #14 binding_verified(9,CP). This matches note 16 §6 exactly: parent set {(B,R),(C,B),(A,C)}, closure in(A,C), in(A,B), in(A,R), in(C,B), in(C,R), in(B,R).
Checks (both readers, all true): in-set after L:9; principal absent after L:12; principal(P) present after L:13; final parent set; final in set; L:16 left the parent set unchanged.
Two real bugs were caught by these checks while building, and are worth recording because they are the kind of silent exchange the notes warn about: (1) Reader B first evaluated principal from base evidence regardless of activation, so it derived principal(P) at L:12 while D was dormant — fixed by gating every derived query on the definition being active; (2) the shared bundle data first defined principal inside F, contradicting note 16 §4 (F declares principal with no defining rules) — fixed by moving the definition into D only.
Probes (both readers, all refuse as expected)
| Probe | Result (both) |
|---|---|
P0 invoke make_node before any activation | REFUSED [unknown_action] — no active action; Bn empty |
| P1 second GENESIS | REFUSED [second_genesis] |
P2 invoke make_node while F only proposed | REFUSED [inactive_definition] — proposed but not active |
P3 unsafe rule (head $z bound by no body atom) at proposal | A: REFUSED [Unsupported] unsafe rule; B: REFUSED [Unsupported] no covering derived definition |
Same-key retry of L:15 (key k15) | original receipt returned, replay: True, no new event, Bn unchanged |
| Scope refusal: grant scoped to B, move A C→R | REFUSED [target_outside_scope] — target 1 is not within scope 3 |
| Cycle refusal: attach would put target inside item | REFUSED [cycle] via guard (exercised in both readers' guards) |
| Recursive rule with no covering derived definition | B: REFUSED [Unsupported]; A: admitted (general recursion is A's point) |
Refusal precedence is deterministic and reported, but note 16 §7's point stands: the precedence itself is unspecified by the notes. In these skeletons the grant-occurrence liveness check fires before the parent-occurrence check, so L:16 reports the spent grant, not the stale parent. A canonical order still needs deciding if refusal bytes are ever hashed.
Mark-boundary entry/exit fixture (both readers)
Fixture: experiments/mark-boundary/examples/entry-exit.json (profile mark-boundary-v1): mark → enclose [] → relocate 1 null→2 → relocate 1 2→null.
| Step | A (relational rendering) | B (native forest) |
|---|---|---|
1 mark | spelling *, inside(1,2)=undefined | spelling *, inside(1,2)=undefined |
2 enclose [] | spelling *(), inside(1,2)=False | spelling *(), inside(1,2)=False |
| 3 relocate 1→2 | spelling (*), inside(1,2)=True (delta +1) | spelling (*), inside(1,2)=True (delta +1) |
| 4 relocate 1→null | spelling *(), inside(1,2)=False (delta −1) | spelling *(), inside(1,2)=False (delta −1) |
Expected spellings ['*', '*()', '(*)', '*()'] and inside values ['undefined', False, True, False] — OK in both.
Representation difference: A renders the forest relationally with a distinguished ROOT terminator fact (parent(x, ROOT) = "x is a root"); B's parent-slot map has no slot at all for a root. A therefore translates the fixture's JSON null source/target to ROOT at the boundary — a small, visible adapter, not a semantic change. B needs no adapter here: the fixture is a forest.
Books (both readers)
Paired transfer, harness-seeded balances (the skeleton has no balance-seeding action; seeding is marked as harness, not a log event): balance(i,USD,1000) + balance(j,USD,250) → transfer 400 → balance(i,USD,600) + balance(j,USD,650), total 1250 conserved, (x−q)+(y+q) = x+y checked on the staged delta. Failure modes, each on a fresh pair so the intended guard fires:
| Case | Result (both) |
|---|---|
| insufficient funds (1000 < 2000) | REFUSED [insufficient_funds] |
| self-transfer | REFUSED [self_transfer] — explicit policy required |
| overflow (2⁶² + 2⁶² > 2⁶³−1) | REFUSED [overflow] |
| unit mismatch USD vs EUR | REFUSED [unit_mismatch] |
Not done: no aggregate sums (note 15 §11), no reservations / conversions / partial settlement, no overdraft policy beyond refusal.
Comparison on the 7 criteria (prep package §1.2)
Measured numbers: A = reader_a.py, 640 non-blank lines (533 code), 33,595 B; B = reader_b.py, 606 non-blank lines (513 code), 30,991 B. Shared data: transcript.py 276 non-blank lines; bundle F 2,486 B, bundle D 276 B, F+D 2,762 B; transcript records 2,763 B. Derivation machinery alone is ~130 lines in each reader (A: matcher + closure + safety + provenance; B: ancestor walk + derived checks + translation checker + witness builder). The ~400 remaining lines in each file are the shared-shape admission/action/guard/commit code.
| # | Criterion | Reader A | Reader B | Reading | ||
|---|---|---|---|---|---|---|
| 1 | Trusted size | 640 lines / 33.6 KB total; derivation ~130 lines | 606 lines / 31.0 KB total; derivation ~130 lines | Nearly tied in this skeleton. B is ~5% smaller overall, but the saving is not in derivation machinery — it is in the mark-boundary adapter (no ROOT terminator) and the shorter grant action. The dominant cost in both is the shared admission/guard/commit code, which B does not remove. A real size win for B would have to come from deleting shared machinery, not from the derivation swap. Premise inventory: same as experiments/mark-boundary/premises.json plus: finite closure, matching/substitution, rule safety, provenance (A); or: ancestor walk, translation check, sibling-order maintenance (B). | ||
| 2 | Definition size | Bundle F+D 2,762 B + transcript 2,763 B as written | Same bundle bytes as input, but B additionally requires the derived definitions to be supplied (in F: in, within; in D: principal) | Same input bytes; different acceptance condition. B's definitions are not smaller — the traversal definitions are spelled out in the bundle alongside the rules they replace. What B saves is not definition bytes but the absence of a rule engine to interpret them. If the derived definitions were ever counted as extra definitions, B's admitted-definition size is larger. | ||
| 3 | Evaluation bounds | Worst case: at most Σ_p \ | D\ | ^arity(p) derived tuples; each closure iteration applies every rule; measured on the transcript: 242 closure iterations, 1,078 rule applications (closure is recomputed on every guard query — the skeleton's real cost) | Worst case: one query walks one ancestor chain, ≤ MAX_PATH (1,024) steps; measured: 238 walk steps, 63 derived queries; no recomputation | B is cheaper per query and the gap grows with domain size. A's cost is per-closure (whole-relation recomputation per guard); B's is per-chain. A's bound is a global tuple count; B's is a local path length. Both honour the limit rule: exhaustion raises EvaluationLimit, never False. A's skeleton needs incremental closure or memoisation before it is affordable at any size; B's needs nothing for this transcript. |
| 4 | Expressiveness | All eight note-15 forms as written: relation, rule (general positive recursion), action, activate, invoke, fresh, emit, retire. Arbitrary positive recursive rules; arbitrary graph reachability; multi-parent membership expressible as data. | Seven forms as written; rule only as an acyclic derived definition supplied alongside. Recursive rules refused unless translated. Single-parent forest only: no multi-parent membership, no arbitrary graph reachability, no recursive delegation, no recursive domain inference. | A is strictly more expressive; B is a restriction, not a reimplementation. On this transcript they coincide, because the transcript's only recursion is forest containment and its only derived rule besides that is acyclic. That coincidence is transcript-relative and must not be read as equivalence. | ||
| 5 | Explanation quality | Proof witness: rule id + supporting base occurrences, recursively. E.g. in(A,R): in-trans ← #16 parent(A,C) + in(C,R) ← in-trans ← #13 parent(C,B) + in(B,R) ← in-base ← #11 parent(B,R). principal(P): principal-rule ← #9 entity(P) + #14 binding_verified(P,CP). | Witness chain: in(A,R) ← ancestor chain [5, 7, 3, 1]; principal(P) ← entity(9) + binding occurrence [14]. | **Both explain; A explains why a rule applied, B explains which path holds.** A's witness names the rule and can compose across predicates; B's witness is shorter and directly checkable by walking. A can also explain a refusal by naming the guard that fired (both readers do this identically, since guards are shared). Neither enumerates every proof path (note 15 §5: there can be infinitely many). | ||
| 6 | Books | Paired transfer with exact int arithmetic, range limits, conservation check on the staged delta; all four failure modes refuse with the intended guard. | Identical: same transfer, same guards, same conservation check. | Tied. Books here is a guarded consume/produce delta in both readers (note 18 §8), and the delta machinery is shared-shape. Neither reader does aggregate sums, so neither covers "Books" in the full accounting sense — only the paired local transfer. | ||
| 7 | Failure behaviour | Refused pre-activation use leaves K/B unchanged (P0/P2, Bn empty / unchanged). Spent grant refuses (unknown_occurrence, #15 not live). Second GENESIS refused. Limit exhaustion → EvaluationLimit, never False. Unsafe rule refused at proposal. | Identical on every probe. | Tied on the transcript. Both refuse deterministically with a named guard, commit atomically, and advance audit history only on refusal. The one behavioural difference is where a definition fails: A can fail at evaluation time (closure budget), B fails earlier, at proposal time (untranslatable rule). |
Verdict — they differ in kind, not just quality
No winner is forced, because the two readers are not two attempts at the same thing:
- Reader A is a general language (finite positive recursion as data) with a forest transcript as one application. Its cost is a closure engine and per-query recomputation; its benefit is that new domain rules — recursive delegation, multi-parent membership, arbitrary reachability — are admitted as definitions without new reader code.
- Reader B is a restricted machine (one forest + acyclic derived expressions) that reproduces this transcript's observations with cheaper per-query evaluation. Its cost is a translation obligation: every recursive definition must be re-expressed as a traversal, and anything that cannot be so expressed is refused. Its benefit is a smaller derivation core per query and witnesses that are paths rather than proof trees.
On the evidence of these two inputs alone, B reproduces everything A does — but that is evidence about this forest transcript, not about STREAM's wider operators. Per note 18 §6 and the prep package decision rule, A stays the reference semantics until the wider operators (the eight forms in general, the Books beyond paired transfer, refusal rules, delegation, multiple memberships, matrix row-crossing) are expressed in both and B's restrictions are shown sufficient. The concrete next test is note 18 §9's: express IN, IS, MAY and TO as typed guarded rewrites in both readers and mark which parts share machinery and which need distinct laws. The TO/Books extension past paired transfer and a recursive-delegation example are the sharpest discriminators: A admits them as rules, B must either translate or refuse, and that outcome — not the transcript tie — decides whether B's restrictions suffice.
What each reader can and cannot do yet
Both (shared limits): no canonical byte encoding, no hashes / signatures / durable storage (integrity profile out of scope, note 15 §2); no cross-log governance, clocks, or physical-effect dispatch; no aggregate sums; complete-scope not-exists assumes a complete local replica (a partial replica returns Unknown — implemented as a refusal in A, unimplemented in B, which only does forest-chain absence); refusal precedence is deterministic but not yet canonically specified (note 16 §7); no second implementation to cross-check against (this is the second implementation, for the transcript only).
Reader A cannot yet: evaluate affordably — holds() recomputes the full closure on every guard query (1,078 rule applications for a 16-step transcript); needs incremental closure or memoisation, plus truth maintenance across retractions (currently full recompute, which is correct but slow). Cannot explain which guard ordering is canonical. Cannot run the mark-boundary fixture without the ROOT terminator adapter.
Reader B cannot yet (by design): accept any recursive rule without a supplied translation; express multi-parent membership, arbitrary graph reachability, recursive delegation, or recursive domain inference; answer general absence queries (only complete-chain checks); or claim byte compatibility with A — the same bundle runs in both only because the translations were supplied in the bundle data. Its _check_translations dependency walk covers only the proposed bundle's rules (no active general rules exist by construction), so a future extension admitting acyclic rules would need the check extended. Its sibling-order maintenance (_reorder_children) rebuilds a dict per relocate — correct, but order is carried by dict insertion order, which is implicit machinery worth making explicit if B grows.
Full run outputs
reader-a-transcript.txt— Reader A: transcript with Kn/Bn/Cn after every step, retry/scope/Books/probes, mark-boundary trace.reader-b-transcript.txt— Reader B: same sections; additionally records each rule translation in the state notes after every step.metrics.json— LOC, file bytes, definition bytes, metering counts, and the six transcript checks (all true in both readers).
Stage D prep, local only. Python stdlib only. No GitHub writes, no Lab tool work. Sources: babbworks/stream main 5d18970, notes 12 (§4, BKL-03), 15 (§5), 16 (§4–§5), 18 (§8–§9), 19 (§3–§4).
Files
~/workspace/stream-unfolding-work/readers/
rewrites.py shared spec data: the four rewrite specs,
kind registry, can rules (A form),
can derived definition (B form),
bundles RW + DL
discriminator.py DiscReaderA / DiscReaderB subclasses,
rewrite entry points, D1–D5 scenarios,
rewrite probes, driver (writes the log)
test_discriminator.py 14 stdlib-unittest tests (new)
discriminator-log.txt full driver run log
READERS-DISCRIMINATOR-REPORT.md this report
Run: python3 discriminator.py; python3 test_discriminator.py (14 tests, all pass); python3 test_readers.py (15 tests, all still pass — the existing readers, transcript, driver and tests were not modified).
Discriminator outcome (one sentence)
The four rewrites do not separate A from B on forest-shaped data — all 19 IN/IS/MAY/TO probes return identical outcomes in both readers — but recursive delegation does: on branching delegation A admits the second delegator and the move while B refuses both, so the discriminator separates A from B only at MAY's recursive can, not at the four families as such.
What was built
The four rewrites (rewrites.py + discriminator.py)
Each family is a typed guarded rewrite: typed operands checked first, a named guard list in fixed order, then an atomic consume/produce delta B' = (B ∖ C) ∪ A with immutable append to H (note 19 §4: this delta is execution machinery shared by all four families, "not the entire meaning of each family"). Signatures and direction follow note 12 §4; the candidate equations follow note 19 §3 (IN_B(x,S), IS_k(x,v,S), MAY_P(a,tau,S), TO_tau(S,S')).
| Family | Rewrite (op) | Guards (in order) | Effect |
|---|---|---|---|
| IN | into: open membership; out: close named membership | typed Refs; entity/boundary exist; distinct; into: no current membership, no cycle; out: matched live parent occurrence | into: produce parent(x,B); out: retire it |
| IS | assert; supersede/withdraw (named target) | typed (Ref, Kind, Value); kind in registry; entity exists; assert on single-valued kind: no live conflicting claim; supersede: target live, same subject+kind, value differs | assert: produce says(caller,subj,kind,val); supersede: retire target, produce new says; withdraw: retire target |
| MAY | grant; revoke (named grant); delegate | typed; holder is principal; action active; scope is a boundary; grant: one-use occurrence; revoke: named live grant, caller bound to holder or steward; delegate: delegator authorized (can), depth strictly decreases, (B only) single delegator | grant: produce grant/one_use_grant; revoke: retire it; delegate: produce delegate(q,p,action,scope,depth) |
| TO | transfer (paired) | typed (Occ, Occ, positive Int); distinct accounts; unit match; sufficient funds; exact range; conservation on the staged delta | retire both balances; produce balance(i,u,x−q), balance(j,u,y+q) |
Shared machinery (note 18 §9's marking): typed operands, occurrence addressing, the atomic consume/produce delta, immutable H append. Distinct laws: IN topology/acyclicity; IS kind typing + conflict state; MAY grant/delegation/revocation policy (including the recursive can); TO exact units + paired conservation.
New actions, admitted through the normal propose/activate path in bundles RW (detach, supersede, withdraw, revoke) and DL (delegate, move_via_delegation): each reader implements them as _act_* handlers on a subclass; no core reader code was touched.
The recursive-delegation example (D1–D5)
can(P,A,S) — P may do action A in scope S — is the MAY family's recursive core (note 12: "no general permission-transitivity law is assumed"; BKL-03: child subsumption by action subset, nested scope, contained validity interval, strictly smaller remaining delegation depth). Root grants confer depth 3 (MAX_DELEG_DEPTH); each delegation must strictly decrease it.
- Reader A admits
canas two positive rules (note 15 §5 safe):can-base: can(P,A,S) :- grant(G,P,A,S2,R), within(S,S2)andcan-deleg: can(P,A,S) :- delegate(Q,P,A,S2,D), can(Q,A,S), within(S,S2). Scope narrows down the chain; thewithinatom incan-baseis load-bearing — D2 caught the first version (exact scope match) failing, because a grant scoped to R must authorize a delegation scoped to B. - Reader B refuses both rules as rules at proposal time and records the translation (
translation DL: can-base (can) -- recursive: refused as rule, translated to derived definition; same forcan-deleg), evaluatingcaninstead as the supplieddelegation-walkderived definition: follow the delegatee's single delegator slot toward a root grant, checking at every edge that the requested scope lies within the edge scope and depth strictly increases toward the root, checking the root grant before following the slot (cycle-safe order). The walk lives in a derived index,delegate_slot, rebuilt from base after every accepted invoke — the same index-vs-view shape as B'sparent_slot.
Per-reader results
Setup for every scenario (both readers, identical): transcript through L:13 (F + D active), RW + DL proposed and activated, Q1/Q2 made, bound (CQ1/CQ2), root-granted move in scope R. Refs: R=1, B=3, A=5, C=7, P=9, Q1=15, Q2=17 (birth occurrence addresses).
D1 — linear delegation (Q1 → P, scope R, depth 2; P moves A B→C)
| Observable | A | B |
|---|---|---|
| delegate | accepted, occ #23 | accepted, occ #23 |
can(P,move,R) before | True | True |
| witness | rule can-deleg ← base #23 + can(Q1) ← can-base ← base #21 + within(R,R) | chain [9, 15] |
| move A B→C | accepted; retired #12 (parent) + #23 (delegate) | accepted; same |
can(P,move,R) after | False (one-use capability consumed) | False |
| Q1 root grant live after | True (a delegated use does not consume the root grant) | True |
| parents after | {(B,R),(A,C),(C,B)} | identical |
Agree on every observable. Cost of the can query: A 294 rule applications / 42 closure iterations (full closure recomputed per query, as in the transcript comparison); B 5 walk steps / 11 derived queries. Where the translation obligation lands for B: (1) the bundle author must supply can as a delegation-walk derived definition — B never invents it; (2) B's reader code needs a new walk (_can, delegate_slot, _rebuild_delegate_slot) — the translation is not data-only, each new recursive shape needs new reader code, whereas A needs only new rules as data; (3) the walk's validity conditions (scope nesting, depth order, root-grant-first order) must be re-implemented in the walk, duplicating logic A gets from the rules.
D2 — branching delegation (THE separation)
Q1 → P (scope B, depth 2), then Q2 → P (scope R, depth 2); the move is C B→R, which needs scope R (scope B does not contain R).
| Observable | A | B |
|---|---|---|
| delegate Q1→P (scope B) | accepted, occ #23 | accepted, occ #23 |
| delegate Q2→P (scope R) | accepted, occ #24 | REFUSED [multi_parent_delegation] — "delegatee 9 already has a delegator for action move (15); a second delegator has no covering derived definition" |
| live delegate edges | #23 (Q1,B) + #24 (Q2,R) | #23 only |
can(P,move,R) | True (via Q2) | False (only chain is Q1 scope B; within(R,B) false) |
can(P,move,B) | True | True (B keeps the Q1 chain) |
| move C B→R | accepted; retired #13 + #24; parents {(B,R),(A,B),(C,R)} | REFUSED [target_outside_scope] — target 1 is not within scope 3; parents unchanged {(B,R),(A,B),(C,B)} |
The mechanism, exactly: B's can is an ancestor-walk over a single-parent delegation forest — one delegator per (delegatee, action), stored in delegate_slot. Two delegators for the same action is not a forest, so B refuses the second delegation at the action guard as a representation refusal, not a domain-law refusal. A derives can by closure over a relation, so disjunction over delegators (either chain suffices) falls out of the fixed point. The separation is observable on an outcome (accept vs refuse of the same move), not only on internal state.
D3 — 2-cycle delegation (Q1 → P, then P → Q1 at depth 1)
Both readers accept the back-delegation, derive can(P) and can(Q1), and accept the move A B→C. A 2-cycle with a root grant in it is harmless in both: A's least fixed point terminates (nothing is derived from the cycle alone), and B's walk checks the root grant before following the delegator slot, so it never follows the cycle. (A cycle with no root grant cannot form through the guarded actions at all: delegate requires can(delegator) first, so an unauthorized delegator is refused [delegator_not_authorized] in both — tested.)
D4 — depth enforcement at issuance
P (remaining depth 2) delegating at depth 2 is refused [bad_depth] in both (not strictly smaller, note 12 BKL-03); delegating at depth 1 is accepted in both. Depth is enforced by the shared action guard in both readers.
D5 — over-depth edge, harness-seeded (second separation)
A delegate(Q1,P,move,R,depth=99) fact is written straight into base, bypassing the delegate guard (marked harness-seeded, as with the Books balance seeding). Then:
| Observable | A | B |
|---|---|---|
can(P,move,R) | True | False |
A's rules do not re-check depth at query time (note 15 rules carry no arithmetic), so the malformed edge is honoured. B's walk re-checks depth at query time (last edge depth must be < MAX_DELEG_DEPTH = 3 at the root grant), so it is rejected. This separates query-time re-validation, not the guarded actions — through the delegate action both readers agree (D4), because a depth-99 edge can never enter the log that way. It is a robustness property of admitted data, and it cuts in B's favour: B re-validates more at query time (depth), while A re-validates scope (via within in the rules) but not depth.
Rewrite probes — all 19 agree
| Probe | A | B |
|---|---|---|
| IN into X→C / out X→C | accepted / accepted | accepted / accepted |
| IN into A→C (second parent) | REFUSED [already_parented] | REFUSED [already_parented] |
| IN out A→R (unmatched) | REFUSED [unmatched_close] | REFUSED [unmatched_close] |
| IS assert height(P)=180 | accepted | accepted |
| IS assert height(P)=190 | REFUSED [conflicting_claim] (names live occ) | identical |
| IS assert note(P) ×2 (multi) | accepted | accepted |
| IS supersede height 180→181 | accepted (retires target) | accepted |
| IS withdraw note | accepted | accepted |
| IS assert unknown kind | REFUSED [unknown_kind] | identical |
| MAY grant P move scope C | accepted | accepted |
| MAY revoke by stranger CQ1 | REFUSED [caller_not_bound] | identical |
| MAY revoke by holder CP | accepted | accepted |
| MAY revoke again (spent) | REFUSED [unknown_occurrence] | identical |
| TO transfer 400 (conserves) | accepted, 600+650=1250 | accepted |
| TO transfer 2000 | REFUSED [insufficient_funds] | identical |
| TO transfer 2⁶² | REFUSED [overflow] | identical |
| TO transfer cross-unit | REFUSED [unit_mismatch] | identical |
| TO transfer qty 0 | REFUSED [bad_quantity] | identical |
Two notes on the IN probes. First, the second-parent refusal fires at the action guard (already_parented) in both readers, before A's post-state unique_parent constraint — so IN does not separate on outcomes; the difference is architectural and shown by inspection, not by a run: in A, unique-parent is a check over base facts (a law a bundle could change); in B it is the parent_slot representation itself (unrepresentable without a new representation). Second, the same holds for the TO probes: TO is shared machinery (the guarded consume/produce delta) in both readers, and the multi-leg / chained settlement extension past paired transfer is unbuilt in both.
What it does NOT prove
- Not a general separation of the four families. IN, IS and TO as implemented here, and MAY's grant/revoke, coincide exactly on every probe. The discriminator separates only MAY's recursive
canunder branching, plus the D5 query-time depth re-validation for harness-seeded data. A reader that only ever sees linear delegation chains and guarded actions cannot be told apart from A by any test in this batch. - Not that B is sufficient for STREAM. The D2 case is one branching shape; delegation-through-derived-membership (a join, e.g. authority via group membership + grant), multi-parent membership, arbitrary graph reachability, and the matrix's row-crossing operations are still unexpressed in both readers, and B's restrictions on those are untested. Per note 18 §6, A stays the reference semantics.
- Not that A is safe as written. D5 shows A's
canrules trust admission-time guards for depth: a malformed delegate edge admitted by any other path (older bundle version, direct import, a bug in a future delegate action) is honoured at query time. If depth is a load-bearing law, it needs either a query-time check outside the rules or a proof that no admission path can produce a bad edge. - Not a cost verdict. The metering (A: 294 rule applications per
canquery on this tiny state; B: 5 walk steps) repeats the transcript comparison's finding — A recomputes the whole closure per query — but the states here are toy-sized, and neither reader was optimized. The cost gap is real in shape (per-closure vs per-chain) and unmeasured at any realistic size. - Not byte compatibility. B runs the same bundles only because the translations were supplied in the bundle data and the new walks were written in B's code. The DL bundle is one input with two readings, exactly as note 18 §6 warns.
- Scope of the kind registry. IS kinds are a two-entry registry (
heightsingle,notemulti) invented for this experiment; no claim is made about STREAM's real kinds, conflict rules, or supersession policy.
Bugs caught while building (recorded, as in the comparison)
can-basefirst required exact scope match (grant(G,P,A,S,R)), so a root grant scoped to R did not authorize a delegation scoped to B and D2 failed at the first delegation in A. Fixed by addingwithin(S,S2)tocan-base— the subsumption atom is load-bearing, and the failure is what proved it.authority_depthfirstbreakout of its scan after the first grant row, skipping delegate edges entirely. Restructured into two clean passes (grants, then delegate edges).- A test expectation bug (fresh-reader active set is
["DL","RW"], not the full transcript set) — test-only, no reader code involved.
Sharpest remaining difference between A and B
A derives authority from data (rules + closure: disjunction, joins and recursion fall out of the fixed point), while B derives it from shape (one walk over one single-parent forest per predicate): anything whose authority needs two parents, a join, or a second recursive predicate is representable in A as a rule and unrepresentable in B without new reader code — and the translation obligation for each such shape lands twice, once on the bundle author (supply the derived definition) and once on the reader implementer (write the walk).
Direction
The 4/5 ceiling, twice.
Run: Sun 2026-11-29, Python stdlib only, local. Files: direction_bit_test.py (the test) and this report, in ~/workspace/stream-unfolding-work/direction-bit/. Reproduce: python3 direction_bit_test.py in that directory. It imports the Stage C harness (model.py) from ~/workspace/stream-stage-c/ unchanged. No GitHub writes, no Lab tool work, no repo writes of any kind.
Material tested: the note 16b transcript (L:1–L:16), the 75-entry kernel-model corpus, the mark-boundary entry-exit fixture, and the three v0.1 compact-header presets.
Sources:
- Candidates and observables:
~/workspace/stream-unfolding-lab-prep/02-direction-bit-test.md. - Corpus + harness:
~/workspace/stream-stage-c/(copies ofbabbworks/streamdocs/kernel-model/test/at main7761b9a). - Transcript:
docs/creation/review/16-seed-dependencies-and-bootstrap-transcript.md(note 16b) at main5d18970. - Fixture:
experiments/mark-boundary/(entry-exit.json,checker.py,README.md,premises.json) at main5d18970. - Presets:
docs/compact-header/bitpack-header-draft-v0.1.mdandbitpack-header-test-vectors-v0.1.mdat main5d18970. - Family direction contracts: note 19 §5 and §7 (
docs/creation/review/19-generative-world-model-and-matrix.md). - The dispute's earliest record:
docs/creation/analysis/01-origin.md: "The specifications disagree with each other on some verb numbers and on the meaning of the direction bit."
The table
| Candidate | O1 to legs conserve | O2 entry/exit fixture | O3 grant/revocation | O4 75/75 verbs | O5 v0.1 presets |
|---|---|---|---|---|---|
| D1 crossing | FAIL | PASS | FAIL | FAIL (4/75) | FAIL (2/3) |
| D2 claim polarity | FAIL | FAIL | PASS | FAIL (71/75) | FAIL (2/3) |
| D3 flow | PASS | FAIL | FAIL | FAIL (6/75) | FAIL (1/3) |
| D4 operand direction | PASS | FAIL | FAIL | FAIL (38/75) | PASS (3/3) |
| D1b (supplementary: note 19 §5 per-relation composite) | PASS | PASS | PASS | FAIL (71/75) | PASS (3/3) |
No candidate passes all five observables. Each uniform candidate passes exactly the observable(s) of its home family — D1 the fixture, D2 the grant pair, D3 the to fold, D4 the presets — and fails the rest. The supplementary composite D1b passes four of five and fails O4 on 4 named entries (see below).
The honest outcome: the direction bit is not one bit
No single uniform meaning of D survives all five observables. What does survive, observable by observable, is note 19 §5's per-relation reading: IN open/close, IS assert/withdraw, MAY grant/revoke, TO incoming/outgoing. That is not one bit with one meaning — it is one bit whose interpretation is selected by the relation. The test therefore returns the outcome the test design named: the direction bit is not one bit.
What that implies, in order of increasing change:
- Keep one bit, make its meaning explicitly per-relation. The bit stays in the header and in the 7-bit position, but its contract is written as four relation-specific rules (note 19 §5), not as one sentence about "direction". This is the smallest change that fits the evidence — and it is already what the sources do in practice. It requires the two O4 refinements below to be decided, not assumed.
- Split the bit. If a per-relation reading is judged too implicit to carry in one bit, the polarity axes split: a membership axis for IN/MAY facts, a flow axis for TO facts, a claim axis for IS facts. That costs bits and a layout change, and needs a decision, not a silent drift.
- Move polarity into the verb/role. Drop D as an independent bit and let the verb (GRANT vs REVOKE, OPEN vs COMMIT) or the role carry the polarity. The GRANT/REVOKE pair already works this way in effect — the two verbs differ in nothing but D — so this would be naming what is already true for MAY, at the cost of the same treatment everywhere.
The test does not choose between these. Morgen decides. The table is the evidence for that decision.
Method note (read before disputing a count)
Every prediction rule in the script reads the entry's verb, phase and payload only. No rule reads the stored code or the stored D — that would be circular, since the test is whether the candidate's rule, applied to the entry's content, reproduces the stored D. A prediction of None means the candidate's rule assigns no D to that entry at all; that counts against verb recovery, because the v0.1 header carries a direction field on every line — a bit that is undefined for most lines is not a working bit. The full rules, with their justifications, are in the script's docstrings; the per-verb rules for O4 are stated in the O4 section below.
O1 — Do to legs conserve?
The published fold (test_books.py rule B) posts every to fact subject → object and ignores D entirely — it is D-agnostic. The test therefore builds a D-driven fold: the same fact selection as rule B (12 to facts over the corpus once superseded entries are excluded: 2 leg-pair facts, 10 use facts; the demo PAY [10] is superseded by the AMEND [23] and excluded), but the signs come from each candidate's reading of the fact's stored D. The check is whether the D-driven fold reproduces rule B's Books over the same corpus.
Reference (rule B) Books over the corpus: host:build-01 −419 J, −21,450 ti, −1,179 to, −51.6 xs; human:ops-lead −188 USD; task-83 the mirror image (+419 J, +21,450 ti, +1,179 to, +51.6 xs); vendor:model-api +188 USD. (These differ from the published demo-only table because the corpus also folds the your-log PAY and QUERY use facts.)
- D3 PASS, D4 PASS. Both read D=1 as subject → object, so their folds are identical to rule B. Note the equivalence: on TO facts, D4's rule ("the transition leaves the subject") folds exactly like D3's ("outflow from the subject"). D4's pass here is D3's pass in different words — and D4's rule is silent on a D=0 TO fact (a transition entering is not covered), of which the corpus happens to contain none.
- D1 FAIL — all 12 pair sums break. D1 reads the fact's D as the crossing direction of the operand, applied at both ends: D=1 means the quantity leaves each end's boundary. Every
tofact in the corpus carries D=1, so every pair folds as two outflows. Concrete: the AMEND [23] legs fold as −89 and −89 USD (pair sum −178, not 0); the PAY [71] legs as −99 and −99; the QUERY) [14] use facts as −7,150 and −7,150 ti, −393 and −393 to; the ACT) [17] use facts as −343 and −343 J, −24.5 and −24.5 xs; the ACT) [19] use facts likewise for J, ti, to, xs. The folded Books get every source side right and every destination side wrong: task-83 −419 J (reference +419 J), vendor:model-api −188 USD (reference +188 USD). A transfer cannot be one crossing of one boundary — it is an exit from one boundary and an entry into another, and one bit cannot say both. - D2 FAIL — the fold posts nothing. D is claim polarity; it assigns no flow sign to either end of a transfer. The D2-driven fold is empty (
{}) against the reference's ten nonzero balances. A D2 reader would have to fold from the payload signs and ignore D — which concedes the bit is silent ontofacts. Supporting evidence: everytofact in the corpus carries D=1, which under D2 reads as withdrawing the claim that the transfer happened — so under D2 the corpus asserts no transfer at all.
O2 — Are entry/exit signs consistent with the mark-boundary fixture?
The script re-runs the fixture locally (a condensed re-implementation of checker.py): mark → enclose [] → relocate 1 null→2 → relocate 1 2→null. Verified: spellings * → *() → (*) → *(); entry delta +1, exit delta −1; a query about the enclosure before its birth (inside(1,2) at the state after step 1) returns undefined, never "outside" and never zero.
- D1 PASS. Entry reads D=0 (into), exit reads D=1 (out of), and the pre-birth query is undefined — D1 is the only candidate whose semantics even includes a boundary's birth.
- D2 FAIL, D3 FAIL. The relocation steps are not claims (D2) and carry no conserved quantity (D3); both candidates assign no D to either step, and neither has any rule for a pre-birth state.
- D4 FAIL. Entry reads D=0 (the mark is a referent entering the boundary) but the exit step is undefined: a referent leaving is not covered by D4's rule (only referent-entering is D=0 and transition-leaving is D=1). Under the alternative transition-operand reading the exit is D=1 but the entry is then undefined — either uniform reading fails one step.
Transcript cross-check (note 16b L:15, supplementary to O2). The move of A from B into C has three membership deltas at once: direct membership in C +1, immediate parenthood under B −1, transitive membership in B 0. No single D value matches all three; D1 needs a named boundary as an argument, which the bit does not carry. One act, three signs — the bit cannot encode the move without saying which query it answers.
O3 — Does grant/revocation invert cleanly?
GRANT is 0x0C, REVOKE is 0x0D: the pair differs in nothing but D, so this observable is a direct test of whether D carries the permission polarity. The script replays the transcript (L:14 issue creates grant G; L:15 move consumes G and retires parent q9 and emits parent(A,C); L:16 retry with the spent grant and stale parent is refused — all reproduced), then runs a synthetic GRANT-then-REVOKE of corpus GRANT [9] (GRANT host:build-01 {for: agent:*, may: record, to: host:build-01}) and checks whether authority returns to exactly its pre-GRANT state.
- D2 PASS. GRANT reads D=0, REVOKE reads D=1 — distinct, so the REVOKE removes exactly the grant named and the state returns.
- D1 FAIL, D3 FAIL. A grant is not a boundary crossing (D1) and carries no conserved quantity (D3); both assign no D to GRANT or REVOKE, so the reader cannot tell the two verbs apart by the bit at all — the pair collapses onto one coordinate.
- D4 FAIL. Under the uniform subject-operand rule GRANT reads D=0 (the grantee, a referent, enters the allowed set) but REVOKE is undefined (a referent leaving is not covered). Under the uniform transition-operand rule GRANT would predict D=1 (a transition leaving the granter), contradicting its stored 0. Either uniform rule fails; D4 can match both stored values only by switching the operand reading between the two verbs.
The second half of O3 — a grant created by an action must not satisfy that action's own check — holds under all four candidates, so it does not discriminate: it is a property of prefix evaluation (note 16b §2: admission is evaluated under prefix-effective knowledge; at the pre-L:14 prefix G does not yet exist), not of D. It is recorded here as passing everywhere, not as evidence for any candidate.
O4 — Do the 75 corpus entries keep their verb names?
Each candidate's content-based rule predicts the main fact's D for all 75 entries; a mismatch changes the code (the verb is lost or collides), and an undefined prediction leaves the coordinate incomplete. Baseline under the stored convention: 75/75.
Verb distribution in the corpus: CREATE 26, OPEN 11, MEASURE 10, ACT 6 (4 begin, 2 end), COMMIT 5, QUERY 4 (2 begin, 2 end), AMEND 3, BIND 2, GRANT 2, PAY 2, NOTE 2, ACK 1, ESTIMATE 1.
- D1: 4/75 (4 correct, 2 wrong, 69 undefined). The narrow crossing rule speaks only to the ACT's run membership: begin predicts 0 (correct, [12], [16], [67], [70]) and end predicts 1 (wrong, [17], [19] — stored 0). Everything else is undefined: no other main fact records a referent crossing a named boundary.
- D2: 71/75 (71 correct, 4 wrong, 0 undefined). Failing entries: PAY [10] and [71] (a payment asserts a transfer occurred, so D2 predicts 0; stored 1 — the code reads the payment as outgoing flow, not as a claim) and R:ACT) [17] and [19] (end-phase withdraws the act's run membership, so D2 predicts 1; stored 0).
- D3: 6/75 (6 correct, 0 wrong, 69 undefined). Correct only where a flow is actually carried: PAY [10], [71] (outflow from the payer) and QUERY)/ACT) with
use— [14], [68], [17], [19] (inflow to the task). A sample value (MEASURE ×10) and a claimed quantity (ESTIMATE) are not flows, and no IN/IS/MAY main fact carries one. - D4: 38/75 (38 correct, 7 wrong, 30 undefined). Wrong: QUERY ×4 ([13], [14], [68], [69] — a query is a transition leaving the asker, so D4 predicts 1; stored 0) and AMEND ×3 ([22], [23], [24] — the new value is a referent entering the register, so D4 predicts 0; stored 1). Undefined: OPEN ×11, MEASURE ×10, COMMIT ×5, BIND ×2, ACT end ×2 (a segment being created or sealed, a sample, a binding, and a referent leaving are all outside D4's two clauses).
The ACT-end entries [17] and [19] fail under D1, D2 and D1b alike. Every content-based rule that reads "end = closing / withdrawing" conflicts with ACT's stored D=0. The model's phase mechanism already carries the close (begin/end marks); D re-encoding it double-counts the same distinction. That is the single most robust O4 finding: it is not an artifact of one candidate's rule.
D1b (supplementary): 71/75 (71 correct, 4 wrong, 0 undefined). Failing entries: R:QUERY( [13] and [69] (the question goes out, so the TO rule predicts 1; stored 0) and R:ACT) [17] and [19] (the IN rule predicts closing → 1; stored 0). D1b is the per-relation composite, so its O4 failures name exactly where the composite itself breaks: the phase/D double-encoding (ACT end) and the act/flow ambiguity (QUERY begin, where the question goes out but the code says incoming because the tokens come in). Two refinements would be needed for the composite to pass O4: (a) state that phase, not D, carries open/close for IN verbs; (b) state the TO rule's anchor for a query-begin, which carries no observable flow in its payload. Both are decisions for Morgen, not conclusions of this test.
O5 — Does the corpus's direction bit agree with the v0.1 header's?
The script decodes the three presets independently from the published vectors (alphabet, MSB-first, short-header layout) and verifies them: QToB4 → position 32, end, direction out (1), delta 60; UpgALACAHT → position 41, begin, direction into (0), delta 5; I5wlhYAADe → position 17, sample, direction into (0), delta 1200. All three vectors verify, including the XOR-fold check bits on the two extended headers. The preset acts are then read under each candidate:
- D1: 2/3. ACT end steel transfer → out (1) ✓; ATTEND begin → into (0) ✓; FAIL sample → no boundary crossing described, undefined ✗.
- D2: 2/3. ACT end steel → asserts a transfer (0) ✗ against preset 1; ATTEND begin → asserts attendance (0) ✓; FAIL sample → asserts a failure (0) ✓.
- D3: 1/3. ACT end steel → steel flows out (1) ✓; ATTEND begin and FAIL sample move no conserved quantity, undefined ✗✗.
- D4: 3/3 PASS. Steel transfer → the transfer is a transition leaving the source (1) ✓; ATTEND begin → the attendee is a referent entering the event (0) ✓; FAIL sample → the sample is a referent entering the record (0) ✓. The FAIL reading is the softest call in O5 (see sensitivities): it infers the operand kind from the preset's grid position (17 = IN), which the preset text does not state.
Sensitivities (where a different reading would change a count)
These were checked; none changes the verdict (no candidate passes all five under any of them):
- D2 on PAY (O4): the report's rule reads a payment as asserting a transfer (D=0 → wrong). Reading it as withdrawing the funds' membership in the payer's holding gives D=1 (correct) and D2 becomes 73/75 — still failing on the two ACT-end entries.
- D1b on QUERY begin (O4): reading the query act as bringing information in (D=0) instead of sending a question out (D=1) gives D1b 73/75 — still failing on the two ACT-end entries.
- D4 on the FAIL preset (O5): reading the failure sample's operand as a transition rather than a referent makes V07 undefined and D4 2/3 — which would leave no candidate passing O5.
- D1 strict (O4): refusing the ACT begin/end = entry/exit reading (the run is a scope, not a boundary) drops D1 from 4/75 to 0/75.
- D3 on QUERY)/ACT) main facts (O4): ruling that the flow lives in the attached
usefacts, not the main fact, drops D3 from 6/75 to 2/75 (PAY only).
Caveats
- Preset positions ≠ kernel-model positions. The presets' position numbers (32, 41, 17) do not match the kernel-model POS table (ACT 0x60, ATTEND 0x68, FAIL unlisted), and each preset's grid D (from its position number) disagrees with its header direction bit. The lab presets use their own position map. O5 therefore tests the presets' direction bits against the candidate readings of the acts, not the position numbers — and the mismatch itself is worth a look before the header is frozen.
- The D-driven fold is the test's construction. The published Books fold ignores D; O1 asks what happens when the fold is driven by D instead. A candidate that "passes" O1 by having its D-reading coincide with the D-agnostic fold (D3, D4) has shown its D is consistent with the Books, not that the Books need its D.
- The transcript replay is a harness check, not a discriminator. It reproduces note 16b's stated outcomes (L:15 succeeds, L:16 refused); the candidate-dependent part of O3 is only the GRANT/REVOKE distinguishability.
- Coverage. The corpus exercises 13 verbs and 13 of the 128 positions (Stage C). These results are evidence about those positions, not a proof about all 128 — in particular, no REVOKE entry exists in the corpus, so O3's REVOKE half is synthetic.
Run: Sun 2026-11-29, Python stdlib only, local. Files: option9_test.py (the test) and this report, in ~/workspace/stream-unfolding-work/direction-bit/. Reproduce: python3 option9_test.py in that directory (verified: two consecutive runs byte-identical). It imports direction_bit_test.py from the same directory and reuses its harness unchanged (corpus parsing, to_facts, rule-B fold, fixture, replay, preset decoder). No GitHub writes, no Lab tool work, no repo writes of any kind.
Material tested: the note 16b transcript (L:1–L:16), the 75-entry kernel-model corpus, the mark-boundary entry-exit fixture, and the three v0.1 compact-header presets — the same material as the direction-bit test.
Sources:
- Option 9 definition: the task brief (direction as a 2-bit mode over a named pair).
- Pairs normal/reversal/edge semantics:
~/workspace/pairs/modules/pairs.py(14 pairs, each with normal/reversal/edge) and~/workspace/pairs/lib/entry.py(infer_pairreturnsCOMPOUNDwhen the two-account model does not honestly describe the entry). - Per-relation contracts: note 19 §5 (
docs/creation/review/19-generative-world-model-and-matrix.md). - Corpus + harness:
~/workspace/stream-stage-c/(copies ofbabbworks/streamdocs/kernel-model/test/at main5d18970). - Presets:
docs/compact-header/bitpack-header-draft-v0.1.mdandbitpack-header-test-vectors-v0.1.mdat main5d18970. - Prior result:
DIRECTION-BIT-REPORT.mdin this directory (D1b 4/5, failing O4 on 4 entries).
Option 9, stated
Direction is a 2-bit mode over a named pair, replacing the 1-bit D:
| Mode | Name | Meaning |
|---|---|---|
| 00 | normal | traverse the pair in its defined direction |
| 01 | reversal | same pair, sign flipped (traverse outward) |
| 10 | edge | no traversal; relabel / recognise / accrue / impair — the home of is facts and of QUERY |
| 11 | compound | the fact is not honestly a single pair; it names its legs instead |
The named pair, per relation (note 19 §5):
- IN — membership of a referent in a boundary/run. Defined: in. Reversal: out.
- IS — claim of a property about a subject. Defined: assert (into the record). Reversal: withdraw / supersede.
- MAY — permission held by a subject. Defined: grant (into the allowed set). Reversal: revoke.
- TO — flow of a conserved quantity between subject and object. Defined: incoming to the anchor. Reversal: outgoing from the anchor.
Every pair's defined direction is an into direction. That is what makes the projection below uniform across relations.
The table
| Relation | Verb | Phase | Mode | Anchor | Source / rationale |
|---|---|---|---|---|---|
| in | OPEN | instant | 00 normal | membership pair | note 19 §5 IN: open. Pairs normal = traverse in defined direction. |
| in | COMMIT | instant | 01 reversal | membership pair | note 19 §5 IN: close. Pairs reversal = same pair, sign flipped. |
| in | ACT | begin | 10 edge | run-scope (not a traversable boundary) | Pairs edge = reclassification. The run is a scope, not a boundary the act crosses (D1-strict); phase carries begin/end, so the mode does not re-encode it. Begin and end take the same mode: the mode describes the act's relation to its run-scope; the begin/end distinction lives in phase. |
| in | ACT | end | 10 edge | run-scope (not a traversable boundary) | Pairs edge = reclassification (running → complete). Phase already carries the close; D re-encoding it double-counts the same distinction (DIRECTION-BIT-REPORT O4). The actual flows live in the attached use facts, which keep their own TO modes. |
| in | ATTEND | begin | 00 normal | event membership | note 19 §5 IN: enter. Pairs normal. (Preset-only verb; not in the corpus. Used for O5.) |
| in | FAIL | sample | 10 edge | failure recognised | Pairs edge = recognise. A sample is looking, not crossing (DIRECTION-BIT-REPORT O1/O4). (Preset-only verb; not in the corpus. Used for O5.) |
| is | CREATE | instant | 00 normal | record | note 19 §5 IS: assert. Pairs normal: a new referent enters the record. CREATE is the only IS main verb that introduces a new referent, so it is the pair's normal member; ESTIMATE/NOTE are edge recognitions below. |
| is | ESTIMATE | instant | 10 edge | claimed quantity accrued | Pairs edge = accrue/recognise. A claimed quantity is recognised, not a new referent entering; no traversal. |
| is | NOTE | instant | 10 edge | annotation recognised | Pairs edge = recognise. A note annotates an existing thing; no traversal. |
| is | AMEND | instant | 01 reversal | prior assertion | note 19 §5 IS: withdraw. Pairs reversal: correcting an entry is done by reversing it; a supersede undoes the prior assert. |
| may | GRANT | instant | 00 normal | allowed set | note 19 §5 MAY: grant. Pairs normal (grantee enters the allowed set). |
| may | REVOKE | instant | 01 reversal | allowed set | note 19 §5 MAY: revoke. Pairs reversal = grant flipped. (Synthetic for O3; no REVOKE entry exists in the corpus.) |
| to | BIND | instant | 00 normal | the binding (object anchor) | note 19 §5 TO: incoming. Binding attaches/brings in; Pairs normal. |
| to | PAY | instant | 01 reversal | payer (subject anchor) | note 19 §5 TO: outgoing from the payer. Pairs reversal: money leaves the payer's holding. |
| to | ACK | instant | 01 reversal | acknowledger (subject anchor) | note 19 §5 TO: outgoing. The denial goes out from the acknowledger. Pairs reversal. |
| to | MEASURE | sample | 10 edge | meter reading recognised | Pairs edge = recognise. A sample is looking, not crossing; a reading is recognised/accrued, not traversed. |
| to | QUERY | begin | 10 edge | question posed (no flow yet) | Pairs edge = recognise. The question as posed carries no observable flow in its payload (DIRECTION-BIT-REPORT O4); posing it recognises a need for information. It is not a traversal of the TO pair — nothing flows yet. |
| to | QUERY | end | 00 normal | task (object anchor) | note 19 §5 TO: incoming. The use flows into the task. Pairs normal. |
This table is the whole assignment. The script prints it from the same MODE_TABLE dict it predicts from, and the report reproduces it verbatim. No prediction rule looks anything up silently. Every attached is fact in the corpus (payload properties) is edge by the same rule — a property stated, never traversed — which is the sense in which mode 10 is the home of is facts; among IS main verbs, CREATE is the normal assert and AMEND its reversal, while ESTIMATE and NOTE are edge recognitions (see sensitivities: that CREATE/AMEND split is a judgment call, but it is not load-bearing for the score in the way ACT end and QUERY begin are).
Projection to the stored 1-bit D (a stated convention, not a derivation): D = 1 iff the mode is reversal (01). Normal traverses inward and edge traverses nothing, so both project to 0. Compound (11) has no projection: a fact naming several traversals, some in and some out, cannot be stored in one bit. O4 for Option 9 is therefore a joint test of this table and this projection — the mode is predicted from content, projected to D, and compared with stored D.
The table (5 observables)
| Candidate | O1 to legs conserve | O2 entry/exit fixture | O3 grant/revocation | O4 75/75 verbs | O5 v0.1 presets |
|---|---|---|---|---|---|
| Option 9 | PASS | PASS | PASS | PASS (75/75) | FAIL (2/3) |
| D1b (for comparison) | PASS | PASS | PASS | FAIL (71/75) | PASS (3/3) |
Option 9 passes 4/5 — the same count as D1b, with the failure moved from O4 to O5. It does not pass all five. The failure is not a near-miss in the assignment: it is a disagreement in the data (see O5 and the invariance argument below).
O4 — Do the 75 corpus entries keep their verb names? PASS (75/75)
Mode predicted from content, projected to D, compared with stored D: 75 correct, 0 wrong, 0 undefined. Per-mode: normal (00) 43 correct, reversal (01) 11 correct, edge (10) 21 correct. No corpus entry is compound, so the unprojectable mode is untested by O4.
The 4 entries D1b failed all pass under Option 9:
| Entry | Verb / phase | Mode | Projected D | Stored D |
|---|---|---|---|---|
| [13] | R:QUERY( | 10 edge | 0 | 0 |
| [17] | R:ACT) | 10 edge | 0 | 0 |
| [19] | R:ACT) | 10 edge | 0 | 0 |
| [69] | R:QUERY( | 10 edge | 0 | 0 |
Why they pass: the edge mode exists precisely for facts that are not traversals. ACT end is a status reclassification (running → complete) whose close is already carried by phase, with the real flows in the attached use facts; QUERY begin poses a question that carries no observable flow in its payload. Both project to 0 under the stated convention (edge traverses nothing, so nothing is outgoing), which is what the corpus stores.
What the pass depends on (read before citing it). The O4 pass rests on two load-bearing judgment calls plus one stated convention:
- ACT end → edge, not reversal. Under D1b's uniform "close = reversal" reading, [17] and [19] fail. Option 9 fixes them only because the edge mode lets the close live in phase instead of in the mode. The justification is the D1-strict reading (the run is a scope, not a boundary) plus the double-counting diagnosis from the direction-bit report. If that reading is rejected, O4 falls to 73/75.
- QUERY begin → edge, not outgoing. Under D1b's "the question goes out" reading, [13] and [69] fail. Option 9 fixes them only because posing a question is treated as recognition, not traversal. If that reading is rejected, O4 falls to 73/75.
- The projection convention (edge → 0). If edge projected to 1 instead, all 21 edge entries would fail and O4 would be 54/75. The convention is justified (no traversal ⇒ nothing outgoing) but it is a convention, and the O4 result is joint with it.
Calls that do not move the score: ACT begin → edge is symmetric with ACT end (begin normal + end edge would still give 75/75, since both project to 0); the choice is made on coherence grounds, not score. CREATE → normal vs edge is likewise score-neutral (both project to 0); CREATE is normal so that AMEND can coherently be its reversal — a reversal of an edge would be incoherent in Pairs terms, since reversal flips normal. COMMIT/AMEND/PAY/ACK → reversal are D1b's own rules, unchanged; they are load-bearing (11 entries project to 1) but they are independently justified by note 19 §5, not fitted to the stored bits.
O1 — Do to legs conserve? PASS
The mode-driven fold reproduces the reference (rule B) Books exactly over the same 12 live to facts (10 use, 2 leg-pair), with 0 pair-sum failures and 0 unhandled facts. Fold rule per attached to fact, read from its content (never its stored dir): the anchor is the fact's subject; a fact whose subject is the source of the flow is outgoing → reversal (01) → subject −q, object +q; a fact whose subject is the sink is incoming → normal (00) → subject +q, object −q; edge posts nothing; a compound leg posts as written. All 12 corpus facts are subject-is-source (the pair fact's subject holds the negative leg; the use fact's subject is the supplying pool), so all 12 fold as reversal — which is exactly the subject → object posting rule B uses.
Coverage caveat: the normal (00), edge (10) and compound (11) fold branches are untested by the corpus — no attached to fact exercises them. O1 passes, but only via the reversal branch. The main-fact modes do not enter the fold: no main to fact carries a measure in this corpus (MEASURE main facts are samples and excluded; QUERY)/ACT) main facts carry their flow in attached use facts).
O2 — Are entry/exit signs consistent with the fixture? PASS
Fixture steps as IN facts over the membership pair: entry is the normal traversal (00 → D 0), exit is its reversal (01 → D 1); pre-birth there is no boundary, so no pair exists to name and the mode is undefined. Spellings * → *() → (*) → *(), entry delta +1, exit delta −1 — all reproduced.
L:15 (compound) — handled honestly: yes. The move of A from B into C is mode 11, naming its three legs, each with its own pair and mode:
| Leg | Pair | Mode | Delta |
|---|---|---|---|
| A direct-in-C | in | 00 normal | +1 |
| A parent-under-B | in | 01 reversal | −1 |
| A inside-B (transitive) | in | 10 edge | 0 |
The legs reproduce the three deltas exactly. The zero leg is named too: a reader recomputing transitive membership needs to know A stays inside B. The compound's projection to D is None — no single bit can carry this fact, and the test records that rather than picking one of the three signs. The cost is that the legs must be stored (payload / attached facts); the mode alone says "compound, see legs".
O3 — Does grant/revocation invert cleanly? PASS
GRANT is MAY normal (00 → D 0), REVOKE is MAY reversal (01 → D 1): distinct modes, distinct projected D, so the REVOKE removes exactly the grant named. The transcript replay (L:15 guard, L:16 refusal) and the self-grant prefix property reproduce as in the direction-bit test; they are mode-independent, as before.
O5 — Does the corpus's direction bit agree with the v0.1 header's? FAIL (2/3)
| Preset | Act | Mode | Projected D | Preset direction |
|---|---|---|---|---|
| QToB4 | ACT end, steel transfer | 10 edge | 0 | 1 |
| UpgALACAHT | ATTEND begin, measure unknown | 00 normal | 0 | 0 |
| I5wlhYAADe | FAIL sample, actor withheld | 10 edge | 0 | 0 |
The single failure is QToB4. Under Option 9, ACT end is edge (→ 0) because the corpus stores ACT end as D=0 — the same assignment that makes O4 pass. The preset says 1. The corpus and the presets disagree about ACT end, and one (relation, verb, phase) row cannot project to both values.
Invariance argument (computed, not asserted). The script's sensitivity check reads ACT end as naming the TO pair instead of the IN pair — the steel outflow in the preset, the use outflow in the corpus entries — which makes ACT end reversal (01 → D 1). Then QToB4 agrees, but corpus [17] and [19] fail O4 (projected 1, stored 0). So whichever pair ACT end names, one side fails: the disagreement is in the data, not in the assignment. The only escape would be keying the mode on payload details (steel transfer vs use consumption), which is exactly the silent verb lookup the assignment rule forbids — and it would be fitting the two values after the fact, not deriving them. The two readings also expose what the disagreement is about: the preset's direction bit reads as the TO pair's flow direction (steel out), while the corpus stored D reads as the IN pair's mode (or its edge default). The v0.1 header has one direction field, so it cannot carry both — and Option 9's named pair is what forces the question "which pair?" that the 1-bit D elides. That is diagnostic progress, not a pass.
The other two presets agree. The FAIL reading carries the same softness the direction-bit report flagged for D4: the preset text does not state the operand, and the IN reading is inferred from grid position 17; a sample is edge under any operand reading, so the agreement is robust to that softness (edge projects to 0 either way).
Cost to the header, the presets, and the 6-bit stored form
The v0.1 short header. The short header is 30 bits — position 7, phase 2, modality 1, direction 1, roles 4, estimate 1, change 1, delta 12, extended 1 — packed as five 6-bit characters. A 2-bit mode does not fit in the 1-bit direction field. The options, each with a price:
- (a) Widen direction to 2 bits by taking 1 bit from delta (12→11): maximum representable delta falls 4095→2047. Preset I5wlhYAADe's delta 1200 still fits, but the delta-overflow rule is already the one undecided freeze gate in v0.1, and this makes it bite sooner.
- (b) Take 1 bit from roles (4→3): one fewer role-presence bit; the typed-absence coding in the extended header would need rework.
- (c) Grow the short header to 31 bits: the 5-character packing breaks (30 bits = 5×6); every short header becomes 6 characters.
- (d) Keep the 1-bit direction in the short header as the projection and carry the full mode only in the extended (10-character) header: short headers keep decoding, but they can no longer distinguish normal from edge, or reversal from compound — the mode would have to come from the verb table.
Under (a), (b) or (c) the field layout shifts, so all three preset headers as published (QToB4, UpgALACAHT, I5wlhYAADe) would no longer decode and would need re-encoding; O5 would have to be re-run against re-encoded presets. Under (d) the presets keep decoding but the short form stops carrying the mode. Either way, the O5 failure on QToB4 is not a layout artifact: even after re-encoding, the preset's ACT-end value (outgoing) and the corpus ACT-end value (0) would still disagree unless one of the two values is changed.
The 6-bit stored form. The stored six (derive_context's stored6) are rel (2 bits) + D (1) + M/modality (1) + phase (2). Option 9 widens the direction field from 1 bit to 2, so the stored form becomes 7 bits — one extra bit per line, and the "6-bit" claim goes. The alternative is to store 6 bits and recover the mode from the (position, phase) assignment table, i.e. "6 bits + a mode table" — the same shape as derive_context's verdict ("6 bits + a verb table"), and subject to the same no-label-lookup constraint: a stored-form claim of "6 bits" under Option 9 is really a claim about 6 bits plus the table. Note also that mode 11 itself fits in the widened 2-bit field, but the legs a compound fact names do not fit in the header or the stored form at all — they live in the payload / attached facts, and a reader that drops them cannot reconstruct the fact.
What does not change. Positions (the 128-position grid), phases, and the Books fold rules are untouched. The mode is per-line overhead, not per-position. The fold's reference Books are identical under Option 9 (O1).
The honest verdict
Option 9 is a genuine improvement over D1b in exactly one place and a genuine regression in exactly one place, and they are the same place: it fixes O4 by moving the ACT-end failure into O5. The edge mode gives ACT end and QUERY begin a principled home — facts that are not traversals stop being forced into a traversal bit — and that takes O4 from 71/75 to 75/75, with L:15 handled honestly at last (compound, legs named, no single D pretended). But the same assignment breaks the one preset that reads ACT end as an outflow, because the corpus and the presets disagree about ACT end and no assignment keyed on (relation, verb, phase) — and no choice of named pair — can satisfy both. The score is 4/5 either way; Option 9 trades a corpus failure for a preset failure.
What Option 9 does settle, even in failing: the direction question is now well-posed. A 2-bit mode over a named pair can express everything the five observables demand — normal, reversal, edge, compound — where one bit could not. What it does not settle is which value ACT end carries, because that disagreement lives in the sources (corpus D=0 vs preset direction=1), and neither side is self-evidently wrong: the corpus reads ACT end as the act's IN membership (edge default 0), the preset reads it as the steel's TO flow (outgoing 1). Resolving it is a decision for Morgen, not a further test: either the preset's ACT-end direction is re-read as the IN pair (making QToB4's direction 0 and the preset a statement about membership, not flow), or the corpus ACT-end stored D is re-read as the TO pair (making [17]/[19] stored 1 and the entries statements about outflow, not membership), or the header is allowed to carry the pair explicitly so both readings can coexist. Until that decision is made, Option 9 is the best-scoring direction proposal that is honest about its own cost: 4/5, O4 fixed, O5 broken on QToB4, +1 bit per line (6→7 stored bits, or 6 bits + a mode table), presets to re-encode under any widening.
Sensitivities (where a different reading would change a count)
These were checked; the O5 failure is invariant under all of them:
- ACT end as TO pair (computed in the script): O4 fails [17], [19]; O5 passes QToB4. The failure moves, it does not disappear.
- ACT begin normal + ACT end edge: O4 stays 75/75 (both project to 0). Score-neutral; the symmetric edge/edge choice is coherence, not score.
- CREATE edge instead of normal: O4 stays 75/75 (both project to 0). Score-neutral; CREATE is normal so AMEND can coherently be its reversal.
- Edge projecting to 1 instead of 0: O4 falls to 54/75 (all 21 edge entries fail). The pass is joint with the projection convention.
- FAIL preset operand as transition rather than referent: O5 stays 2/3 — a FAIL sample is edge under either operand reading, and edge projects to 0 either way.
- COMMIT/AMEND/PAY/ACK as edge instead of reversal: O4 falls to 64/75 (all 11 stored-1 entries fail). These are D1b's rules, kept unchanged.
Caveats (inherited from the direction-bit test)
- Preset positions ≠ kernel-model positions (32/41/17 vs ACT 0x60, ATTEND 0x68, FAIL unlisted); O5 tests the presets' direction bits, not their position numbers.
- The mode-driven fold is the test's construction, as the D-driven fold was: the published Books fold ignores D (and the mode). A pass shows the mode is consistent with the Books, not that the Books need it.
- Coverage: the corpus exercises 13 verbs and 13 of the 128 positions. No REVOKE entry exists in the corpus (O3's REVOKE half is synthetic); no corpus entry is compound (mode 11 is exercised only by the transcript's L:15); no attached
tofact exercises the normal, edge or compound fold branches.
This Lab has no interactive HTML artifacts of its own. Its exhibits are the reports. The interactive pages from the same exploration live beside it on the site: the 128-positions explorer, the Genesis narrative, and the kernel companion — linked from the landing page.