Expand description
The jev-1 question-spec intermediate representation.
The IR is what every downstream node consumes: P0.1b emits capnp from it, P1.1
linearizes it (via crate::serialize), P3.5 pins it in prepared statements. It is
authored through crate::author (YAML/JSON) or constructed directly in Rust.
Structs§
- Choice
Option - One choice option: a name (its identity and its label) plus an optional rubric.
Nonerubric = undescribed option (D3’s choice-side counterpart). - Noul
Criteria - Noul criteria: free-form descriptions of what the
trueandfalseoutcomes mean. Keys are literally"true"/"false"on the wire; both entries are optional. - Question
Set - A parsed question-spec document: the questions map plus the optional shared
state. - Question
Spec - One runtime-declared question.
Enums§
- Question
Body - The per-kind payload of a question spec.
- Question
Kind - Question type tags.
Span/Derivedare reserved for profile v2: recognized by the authoring layer (rejected withcrate::error::SpecErrorKind::ReservedQuestionType) so that a v2 document fails loudly instead of being misread.