v0.2 exploration
Status: exploration only. No v0.2 direction has been chosen, no v0.2 draft has been adopted, and Draft v0.1 stays the adopted working draft.
This note exists so the two v0.2 candidates are recorded together, in one place, with their trade-offs stated — instead of living only inside their labs.
The two candidates
There are two different v0.2 candidates, pulling in different directions. They are not two halves of one design. They compete for the same scarce resources: the case bit, header length, and fixed width.
Candidate A — Caps (paired alphabet)
Lab: labs/stream-caps-header-lab.html
- Alphabet rebuilt as 31 pairs differing only by ASCII bit 5 (
A/a–Z/z, plus@/,[/{,\/|,]/},^/~`). Digits are excluded — they have no uppercase form. - Each character carries 5 bits of pair identity + 1 case bit. Still 30 bits in a 5-character header.
- Each character's case bit is assigned to exactly one named flag (extended-follows, estimate, change, modality, direction).
- The four caps meanings from the discussion are all implemented and genuinely working in the lab: caps as a diff, caps as a shadow header, caps as presence, caps as provenance.
- Presets re-encoded:
LOaOf,rKfNAXI@@D,gPcGKbCL@p(v0.1:QToB4,UpgALACAHT,I5wlhYAADe). - Verified: presets round-trip; 500/500 short and 500/500 extended round-trips; flipping any character's case is rejected by the check bits.
What it spends: the case bit, and the digits. What it keeps: fixed width, 6 bits per character, filterability by header alone.
Candidate B — Parser grammar (G1)
Lab: labs/stream-grammar-header-lab.html
- The header becomes a small parser-driven grammar, read left to right. Characters are not all the same kind of thing any more.
#-marked header: 3 packed characters carrying the v0.1 fields minus the delta, then a time-delta run chosen by a mode-switch character — a leading digit means a decimal run follows,za base-36 run,ta factored1d1h1m1srun — with an optional+extension for absence kinds and an XOR-fold check character.- Numbers do bitpacking work through the parser: a digit run is a plain decimal number, and fields can be factored back out of one big integer by mixed-radix division and remainder (a digit position contributes a factor of 10, a letter position a factor of 52).
- Worked overflow case v0.1 cannot hold, delta 86,400 seconds:
#QTo86400,#QToz1UO0,#QTot1d. - Verified: 600/600 round-trips, 60/60 single-character corruptions rejected, 12/12 malformed headers rejected.
What it spends: fixed width and length — variable length breaks fixed-width filtering, decimal is about 3.32 bits per character against 6 packed, and the grammar is longer than v0.1 for ordinary small deltas. What it gains: numbers readable as numbers, and deltas larger than 4095 seconds.
Why case needed a redesign
In the v0.1 alphabet (A–Z a–z 0–9 -_), case is alphabet position, not a free bit: A is value 0, a is value 26. Flipping case scrambles the value. Case can only mean a separate thing if the alphabet is rebuilt as pairs (Candidate A), or if the parser only looks at case where it is expecting a letter (Candidate B). There is no free case bit on top of the full 6-bit value.
Non-negotiables — both candidates must pass these
Confirmed 2026-11-27. Canonical (one fact, one header), filterable without decoding the payload, typed absence, versioned, corruption-detecting. A v0.2 design that fails any of these is not a candidate.
What is NOT decided
- Which candidate, if either, becomes v0.2 — or whether v0.2 combines them, or neither.
- The delta-overflow rule (v0.1 freeze gate X06): reject, saturate, wrap, or extend — still undecided.
- Whether caps-as-diff is the one caps meaning to take forward, if Candidate A is chosen at all.
- Versioning and reserved bits for a v0.2 header, in writing.
History
- 2026-11-27 morning: v0.2 opened as free imagination — caps and numbers as bitpacking channels, on top of the adopted v0.1 foundation.
- 2026-11-27 afternoon: Caps Header Lab delivered (paired alphabet).
- 2026-11-27 evening: Grammar Header Lab delivered (G1).
- 2026-11-27 evening: Morgen corrected the framing — taking the parser grammar into v0.2 would itself be the decision, not a follow-through on a settled direction — and chose to keep the grammar as a lab for now. No v0.2 draft, no repo write.