01 · The starting inquiry

01 · The starting inquiry

Babb

2026-11-22. The conversation opened with a summary of earlier work, and a request to continue it toward "an ultimate logging standard".


Where the inquiry stood


The earlier inquiry had examined two repositories, Workwarrior (at ce7379f) and MobileOS (at 8c33c65), which contains the ZAKO work. It had reached a direction:



A journal with Workwarrior's readable event structure, ZAKO's vocabulary, BitPads' compact framing, and BitLedger's accounting discipline. A machine, person, or process can write a small record. The record type determines what it claims, what context it needs, and what the journal must validate before accepting it. Task boards, machine histories, agent run traces, and account balances can then be rebuilt from the same accepted history.



What Workwarrior's Stream already had


One occurrence per line, in stream.log:


<timestamp> <OP> <action> <object> <ctx_json>


  • OP is a broad family: T tasks, B Bundy punches, F Frick transitions, D Dey signals, A annotations, H and S positional and system records.

  • ctx already did real work: actor, profile, project, signal fields, reconciliation.


Lenses derived views from the log:
- Burroughs: the sequence.
- Bundy: intervals.
- Board: open punches.
- Frick: transitions.
- Hollerith: a time-by-object grid.
- Pacioli: running counts.
- Felt: density.
- Dey: intensity, stability and fragmentation.
- Cooper: a polar projection.
- Sessions: gap-split groups.


Three limitations for a journal of record:
- Dedup drops actors. Ingest deduplicated on (timestamp, OP, action, object), so a different actor at the same second could be lost.
- Overlaps merge. Bundy and Board paired punches by object alone, so overlapping work was reconstructed wrongly.
- History was rewritten. Ingest sorted the file in place, and a reset truncated it.


The adapters recorded that a ledger posting happened, but not its amount.


What ZAKO, BitPads and BitLedger add



  • BitPads: framing, from one-byte signals up to full records, with session and batch headers that state context once.

  • BitLedger: a compact accounting component (40 bits) and a balance check across a group.

  • ZAKO: shared meanings. A Codebook of 64 verbs in 8 blocks, domains, quantity types, account pairs. Wire conventions for compound groups, corrections, signatures and hash-linked history.


The hard part: claims, not shapes


Mapping fields was easy. Mapping claims was not:
- A punch-out isn't FINISH. A Workwarrior punch-out says an interval ended; ZAKO's FINISH says the work item was completed. An operator can leave a machine while the job stays open.
- The actor isn't always the recorder. A host may record an act performed by an agent, so the record must keep both.


What the proposed service would own


babb-table/1
[["Component", "Responsibility"], ["Capture", "Accept records and batches, allow offline spooling, and use a retry cursor so a lost acknowledgement returns the original receipt"], ["Vocabulary and validation", "A versioned definition per OP + action; a check of the recorder's authority"], ["Journal", "Commit in stream order, keep occurrence time separate from arrival, append corrections"], ["Replay and views", "Rebuild state with versioned rules, and explain each figure"], ["Binary exchange and evidence", "A BitPads profile where the mapping is defined; original signed bytes kept as evidence"]]
Component | Responsibility
Capture | Accept records and batches, allow offline spooling, and use a retry cursor so a lost acknowledgement returns the original receipt
Vocabulary and validation | A versioned definition per OP + action; a check of the recorder's authority
Journal | Commit in stream order, keep occurrence time separate from arrival, append corrections
Replay and views | Rebuild state with versioned rules, and explain each figure
Binary exchange and evidence | A BitPads profile where the mapping is defined; original signed bytes kept as evidence

Two threads that ran through everything after



  • Accounting discipline. Keep observations, postings and reconciliations apart. Validate each transaction on its own; a batch total can hide two errors that cancel. Balance within a unit. A run can involve kilograms, joules and dollars at once, each with its own evidence.

  • Record size. The readable event is separate from its compact representation. Shared context, per-operation schemas, codebooks, implicit position and timing, and bit-packing were all candidate techniques. A worked example used three energy readings (38, 41, 36 J, 8 s apart): 294 bytes as full lines, 3 bytes as packed values.


The stated test of the architecture


Take an agent or machine run with:
- an offline recorder;
- a duplicate upload;
- a late observation;
- overlapping activities;
- one corrected posting.


Discard the projections and replay. The same history and balances should come back, the overlap should be preserved, gaps accounted for, and the correction traced to its evidence. The compact form must pass the same test after decoding.


That test became the first trial (02).


Verified in the repositories


These were checked directly, not assumed:
- The BitPads core and session suites passed.
- The ledger daemon doesn't compile against its store: its calls to lds_append and lds_batch_open don't match the store API.
- The specifications disagree with each other on some verb numbers and on the meaning of the direction bit.

Report Page