pub struct BundleStatusWire {
pub state: String,
pub file_size: Option<u64>,
pub extra: BTreeMap<String, Value>,
}Expand description
One bundle status body (POST …/generate’s 200 answer IS the same
shape — live capture: {"state":"Generating"}). state is a
String BY DECISION (Pitfall 2: never an enum from guessed values —
an unobserved future state must ride, never refuse the parse).
Fields§
§state: StringThe captured vocabulary is Generating (mid-generation) /
Valid (terminal/ready) / Invalid (terminal steady state —
“no current bundle”) — PascalCase, live-proven
(09-LIVE-CAPTURES §5 + 09-UAT.md Gap 3). Anything else is an
UNOBSERVED state riding passthrough: never an enum, never a
refusal.
file_size: Option<u64>Bundle size — bytes (Decisions 2: fileSize ==
download Content-Length exactly). ABSENT while generating
(the key is missing, not null) → Option; present when
Valid.
extra: BTreeMap<String, Value>Unknown keys round-trip (version tolerance).