2026-11-22.
The question
The owner asked to keep the conceptual focus on the ZAKO codebook. ZAKO's op codes form a universal model of action, and putting them inside the Stream log should reduce the context each record has to carry.
The governing principle
State each piece of meaning at the widest scope where it holds. Per-record context is only what nothing upstream already says.
ZAKO's codebooks are the widest scope available: agreed once, for every system, and free per record. The more of a record's meaning its type carries, the less each record has to carry.
The meaning stack
| Layer | Stated | Carries | Cost per record |
|---|---|---|---|
| Standard (codebooks) | once, for every system | verbs, domains, quantity types, account pairs | 0 |
| Vocabulary version | per segment | what each type requires, payload order, validation | 0 |
| Session or stream | per segment | recorder, domain, recording depth, clock | 0 |
| Run | per header | actor, object, unit, cadence | 0 |
| Record | every line | when, which act, on what, how much | the irreducible part |
| Context (ctx) | when needed | anything not yet foreseen | the exception |
The type: verb + phase
Workwarrior's op letters mixed two things: which subsystem wrote the record, and what kind of act it was. ZAKO separates them. The type becomes:
- verb: ZAKO's 6-bit task code, 8 blocks of 8, saying what kind of act, universally;
- phase: 2 bits, the dimension ZAKO lacks. It takes the values instant, begin, end and sample.
- domain: declared per run.
Verb plus phase is one byte. The phase is what resolved the punch-out problem from 01:
| Act | Type |
|---|---|
| Operator presence at a machine | ATTEND (0x36), begin and end. Neither half claims FINISH. |
| Model call | QUERY (0x38), begin and end |
| Tool call | ACT (0x3A), begin and end |
| Meter reading | MEASURE (0x2C), instant or sample |
| Completing a work item | FINISH (0x23), a separate claim |
A printable form that is exact was proposed: a block letter plus an octal digit, with ( and ) for the phase, so W1 is START and C6( is ATTEND-begin. Whether to use it was left open. It was later argued against, because it would give letters a second meaning (08).
What the type implies, so ctx doesn't have to
- The claim and how it is validated: from the verb.
- The payload's shape and order: from the vocabulary.
- The unit: from the quantity type.
- Measured or estimated: MEASURE versus ESTIMATE.
- The direction of a transfer: from the account pair.
- Privacy: from the verb. ZAKO's JOURNAL already requires RESTRICT_FORWARD. This is the model for the whole idea.
- Which views use the record.
The journal's own acts are verbs too: OPEN, COMMIT, AMEND, ACK. The log describes itself in its own vocabulary.
A run under this design
@1752300000 dom=engineering rec=host:build-01 actor=agent:claude-07
+0 W1 k42 work item started
+0.1 L0( k42.m1 model request begins
+4.3 L0) k42.m1 12000ti 900to response; tokens used
+0.5 L2( k42.t1 tool call begins
+35.5 L2) k42.t1 33.1xs ~480J 412#
+20 W3 k42 41.0xs 610J finished, with totals
Why universal verbs matter for allotment
Because every act carries the same verb axis, one view can add up energy, CPU, tokens and wall time by verb, across people, machines and agents. For example: - energy spent on QUERY against ACT; - time spent on ATTEND against PROGRESS.
The codebook becomes an efficiency instrument, not only a compression aid.
ctx as a staging area
ctx holds meaning until it is understood well enough to codify. Track context bytes per record, and promote recurring keys into the codebook, a type's payload, or a run declaration.
Recorded as
STREAM Notation draft N11, and lineage entries ZAK-1 to ZAK-4. "Phase as its own dimension" and "letters as profiles" were decided later (10, 08). The Rust kernel implements the type byte as phase << 6 | code.