Created by: AI service unspecified
Working draft, adopted 2026-11-27, not frozen.
This document is the test-vector set for the STREAM Bitpack Header Draft v0.1. A second implementation passes against this file only under the conformance rule at the end.
Header format
Alphabet, most significant bit (MSB) first, 6 bits per character:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_
Short header — 5 characters, 30 bits
Bit order is MSB first.
| Field | Bits |
|---|---|
| Position | 7 |
| Phase | 2 |
| Modality | 1 |
| Direction | 1 |
| Role-presence bitmap | 4 |
| Estimate | 1 |
| Change | 1 |
| Time delta | 12 |
| Extended-follows | 1 |
Phase values: 0 instant, 1 begin, 2 end, 3 sample.
Modality values: 0 fact, 1 possible.
Direction values: 0 into, 1 out of.
Role-presence bitmap order: subject, object, kind, measure.
Time delta range: 0–4095 seconds.
Extended header — 5 more characters, 60 bits total
An extended header is 10 characters in total: the 5-character short header plus 5 more characters.
| Field | Bits |
|---|---|
| Absence kind per role | 3 each, 12 total |
| Object/kind dictionary index | 12 |
| Check bits | 6 |
Absence kind order: subject, object, kind, measure.
Absence kind values: 0 present, 1 not-yet, 2 unknown, 3 withheld, 4 not-applicable, 5 refused, 6 ambiguous, 7 reserved.
Check bits: 6 bits computed by XOR-folding bits 59–6 into nine 6-bit groups.
Valid vectors
V01 — ACT end steel, delta 60
- Header:
QToB4 - Position: 32
- Phase: end
- Modality: fact
- Direction: out
- Roles: subject + object + measure
- Estimate: no
- Change: no
- Delta: 60
- Extended: no
V02 — Position 0, instant, all roles absent, delta 0
- Header:
AAAAA - Position: 0
- Phase: instant
- Roles: all roles absent
- Delta: 0
V03 — Position 127, sample, possible, all roles present, estimate and change, delta 4095
- Header:
____- - Position: 127
- Phase: sample
- Modality: possible
- Roles: all roles present
- Estimate: yes
- Change: yes
- Delta: 4095
The header is four underscores then a hyphen.
V04 — Begin, into, subject only, delta 1
- Header:
CpAAC - Position: 5
- Phase: begin
- Direction: into
- Roles: subject only
- Delta: 1
V05 — End, possible, object and kind, delta 3600
- Header:
I0zwg - Position: 17
- Phase: end
- Modality: possible
- Roles: object + kind
- Delta: 3600
V06 — ATTEND begin, measure unknown
- Header:
UpgALACAHT - Position: 41
- Phase: begin
- Roles: subject + object
- Delta: 5
- Absence (subject / object / kind / measure): present / present / present / unknown
- Object/kind dictionary index: 7
V07 — FAIL sample, actor withheld
- Header:
I5wlhYAADe - Position: 17
- Phase: sample
- Roles: subject + object + kind
- Delta: 1200
- Absence (subject / object / kind / measure): withheld / present / present / present
- Object/kind dictionary index: 3
V08 — All absence kinds in one header
- Header:
QSAB5KcBkJ - Position: 32
- Absence (subject / object / kind / measure): not-yet / unknown / withheld / not-applicable
- Object/kind dictionary index: 100
V09 — Absence refused and ambiguous, object/kind index 4095
- Header:
Up8ABuA__u - Position: 41
- Absence (subject / object / kind / measure): refused / ambiguous / present / present
- Object/kind dictionary index: 4095
V10 — Extended, all roles present, delta 0, object/kind index 0
- Header:
AB4ABAAAA4 - Position: 0
- Delta: 0
- Absence: all present
- Object/kind dictionary index: 0
Invalid vectors
X01 — Check-bit failure
- Header:
UpgALACAHB - Expected: REJECT — XOR-fold check bits mismatch
X02 — Character outside alphabet
- Header:
QTo+4 - Expected: REJECT — character not in 64-symbol alphabet
X03 — Wrong length, 4-character short header
- Header:
QToB - Expected: REJECT — short header must be exactly 5 characters
X04 — Wrong length, 9-character extended header
- Header:
UpgALACAH - Expected: REJECT — extended header must be exactly 10 characters
X05 — Reserved absence code 7
- Header:
QSAB54AAAC - Expected: REJECT — absence code 7 is reserved
Its check bits are valid; the rejection is for the reserved code.
X06 — Delta overflow
- Header: none
- Expected: DECISION PENDING (freeze gate) — encoder must reject delta greater than 4095; no saturating or wrap encoding is defined in v0.1
X07 — Extended-follows bit set but no extension present
- Header:
QToB5 - Expected: REJECT — extended-follows = 1 but header is only 5 characters
X08 — Extension present but extended-follows = 0
- Header:
QToB4AAAAA - Expected: REJECT — 10 characters present but extended-follows = 0
Conformance for a second implementation
A second implementation (Rust, in stream-codec) must use this file as follows: it passes only if it decodes all V01–V10 to the stated fields and rejects all X01–X05, X07 and X08 for the stated reasons, and treats X06 as undecided.
Lab verification note
The three lab presets V01, V06 and V07 were verified against the lab (2,000 random round-trips, single-character corruption rejected).
The XOR-fold check is not a CRC.