Expand description
Persisted transcript schema.
These types are the durable audit surface: what gets written to
transcript.jsonl, what rite verify reads back, what report and
audit tooling consume. They are deliberately kept independent of the
executor and the channel plumbing, a third-party verifier can parse
a transcript with only rite-model on its dependency list.
The live runtime↔frontend channel protocol (ExecEvent, UiCommand,
Response, Icon, …) lives in rite-runtime next to the executor
that owns the channels. The boundary is persisted vs in-flight.
Structs§
- Error
Record - Structured error record for transcript serialization.
- Level
- Confidentiality level of a transcript line: who may see the fact.
- Transcript
Header - First line of every transcript: what the file is, read before any fact.
Enums§
- Error
Class - Audit classification of a bad outcome, recorded so an auditor can tell the
nature of a failure apart without parsing the free-form
message. - Format
- What kind of value a person types.
- Prompt
- Request for user input, recorded into the transcript as part of
StepFact::PromptAnswered. - Response
Record - Serializable, redacted form of a user response.
- Step
Fact - Durable, transcript-worthy fact.
- Step
Outcome - Outcome of a single step, carried by
StepFact::StepCompleted. - Validator
Spec - Validator applied by the runtime to a typed response before it is accepted.
Constants§
- FACT_
TYPES - The
typetag of everyStepFactvariant in this vocabulary. - FACT_
VOCABULARY - Version of the
StepFactvocabulary this crate writes and reads. 0 before 1.0, likeTRANSCRIPT_FORMAT. - PLACEHOLDER_
LIMIT - The longest stand-in a
Format::placeholderbuilds, in the format’s units. Large enough for any value a person would type or paste, and the entry itself is not bounded by it. - TRANSCRIPT_
FORMAT - Transcript format version this crate writes and reads: the line envelope and the chain rule.
- TRANSCRIPT_
SCHEMA - URL of the JSON Schema for the transcript lines this release writes, written on the header line for editors and other tools. A reader ignores it.
Functions§
- compile_
pattern - Compile a pattern so that it must match the whole value.