09 · ASCII, control characters and split bytes

09 · ASCII, control characters and split bytes

Babb

2026-11-23.


The question


Could all 128 ASCII codes be harnessed as symbols for the system? The owner sensed something missing in how bit-packing and split-byte construction were working. They then asked how the control characters in particular could be used, based on BitPads, BitLedger, ZAKO and Stream, and whether doing so would be effective.


Text and binary are different layers


Text layer: characters.
- ASCII has 128 codes: 33 control (0–31 and DEL) and 95 printable.
- Each character costs a full byte, so text carries at most about 6.5 bits of meaning per byte.
- Text saves space by leaving things out (the meaning stack), not through clever characters. A meter reading is 110 bytes as a full line and 4 in the run form.


Binary layer: bit fields. A field takes only the bits it needs, and fields can share a byte. That is a split byte. The system already had three:


Type byte            [ p p | v v v v v v ]    2-bit phase + 6-bit verb          ATTEND-begin = 0x76
ZAKO C0 signal byte [ P A C | c c c c c ] 3 flags + 5-bit control code ACK + ack-request = 0x46
Pictograph byte [ s s s s | s s s s ] two 4-bit symbols from a codebook

Why 128 ASCII can't simply carry the type byte. A split byte uses all 256 values. Text has only 95 printable characters. One printable character can carry a verb (64 fit) but not a verb and a phase (256 combinations). So the readable form needs two characters where binary needs one byte.


The catch. 0x46 is also the letter F. With the priority flag set, a control code falls in 0x80–0x9F. ISO 6429 calls that the C1 range, and UTF-8 uses those values as continuation bytes. So flagged bytes work only in binary frames at declared positions. Plain control bytes (0x00–0x1F) are unambiguous anywhere.


What the existing specifications say, and where they disagree


Three uses of control characters were found:



  1. BitPads Layer 2: file_sep, record_sep and group_sep are numeric header fields named after ASCII's separators. group_sep=63 marks a period close (a Tally), and Bell marks a batch boundary.

  2. libzako-c0: the enhanced byte (5-bit identity plus 3 flags), valid at declared frame positions P1–P13.

  3. ZAKO Wire Conventions §8: control code points used as daemon signal slots, with a 2+1+1+4 bit layout.


They disagree:
- P1–P13 means two different things in the C0 library and in the BitPads-native document.
- Wire §8's slot count is wrong. It says 13 slots but lists 14 code points.
- Wire §8's layout has no room for the identity. Its 2+1+1+4 layout leaves no bits for the control identity that the 5+3 grammar depends on.
- Wire §8 ignores ASCII meaning. It puts LEDGER_ACK on ENQ (0x05) and LEDGER_REJECT on ACK (0x06).
- A BitPads example uses an unratified verb: task_code=0x04 (MODE_TRANSITION), where the Codebook has 0x01 MODE_CHANGE and gives 0x04 to CALIBRATE.
- The C0 header miscounts: "29 unconditional + 4 conditional" adds up to 33 of the 32 codes.


The rule that makes controls effective


A control character never adds a second meaning. It is either a structural boundary, or a one-byte spelling of an existing Codebook act, and it keeps its ASCII meaning. A category (a rejection reason, a power mode) goes in a following pictograph byte. That reconciles Wire §8's category bits with the 5+3 layout.


A job for each of the 33


babb-table/1
[["Group", "Characters", "Role"], ["Framing", "SOH, STX/ETX, FS, GS, RS, US, ETB, EOT, EM, FF, VT", "Header start; enclosed text; segment, run, entry and field boundaries; a seal or Close; end of session; storage full; period boundary in text forms; descend one cascade level"], ["Conversation", "ENQ, ACK, NAK, SYN, DC1/DC3, DC2, DC4, BEL, NUL", "Status request; receipt; rejection (reason in a pictograph byte); clock sync; resume and pause a producer; set a run parameter; stop; attention; heartbeat"], ["Meaning shifts", "SO/SI, ESC, DLE", "Switch to a profile or local dictionary and back; an extended code follows; the next byte is literal"], ["Corrections", "SUB, CAN, BS", "Supersede (AMEND); cancel before commit; a reversal follows"], ["Left as text", "HT, LF, CR", "Keep their text meaning"], ["Reserved", "DEL", "Its job was erasing; an append-only log never erases"]]
Group | Characters | Role
Framing | SOH, STX/ETX, FS, GS, RS, US, ETB, EOT, EM, FF, VT | Header start; enclosed text; segment, run, entry and field boundaries; a seal or Close; end of session; storage full; period boundary in text forms; descend one cascade level
Conversation | ENQ, ACK, NAK, SYN, DC1/DC3, DC2, DC4, BEL, NUL | Status request; receipt; rejection (reason in a pictograph byte); clock sync; resume and pause a producer; set a run parameter; stop; attention; heartbeat
Meaning shifts | SO/SI, ESC, DLE | Switch to a profile or local dictionary and back; an extended code follows; the next byte is literal
Corrections | SUB, CAN, BS | Supersede (AMEND); cancel before commit; a reversal follows
Left as text | HT, LF, CR | Keep their text meaning
Reserved | DEL | Its job was erasing; an append-only log never erases

That gives about 22 natural roles and 7 plausible ones. Not every code needs a job.


Is it effective?


babb-table/1
[["Layer", "Verdict"], ["Device and wire frames", "Yes, high value. One-byte receipts, flow control and alerts replace whole records, and framing needs no escaping."], ["Framed exchange between machines", "Somewhat. Separators remove quoting and JSON syntax, though RS replaces a newline byte for byte, so size barely changes."], ["The readable log", "No. Controls are invisible in editors, break line tools, can trigger terminal escape sequences, are forbidden raw in JSON, and are untested on AI readers."]]
Layer | Verdict
Device and wire frames | Yes, high value. One-byte receipts, flow control and alerts replace whole records, and framing needs no escaping.
Framed exchange between machines | Somewhat. Separators remove quoting and JSON syntax, though RS replaces a newline byte for byte, so size barely changes.
The readable log | No. Controls are invisible in editors, break line tools, can trigger terminal escape sequences, are forbidden raw in JSON, and are untested on AI readers.

In short: the 95 printable characters are the alphabet of what the log says, and the 33 control characters are the grammar of how entries are sent, received and confirmed. That is ASCII used as its designers intended.


Before building wire framing: reconcile the three C0 definitions, restore ASCII meanings in the daemon signals, and decide BEL (attention, or batch boundary, not both).

Report Page