Expand description
Verb response presentation modes and transformation.
Transforms canonical handler output into caller-appropriate form after dispatch
and before wire serialization. Agent mode abbreviates UUIDs/timestamps and drops
empty fields; Verbose and Human pass through canonical JSON unchanged.
This module also contains the OutputFormat axis (ADR-078) which governs how
the resulting serde_json::Value is serialized or rendered to an output string.
PresentationMode and OutputFormat compose independently.
Enums§
- Note
Content Scope - Exact note-body locations selected by the request boundary for
get/list(parse_content=true). No policy marker is inferred from user JSON. - Output
Format - Output serialization format for verb results (ADR-078).
- Presentation
Mode - How the response envelope is presented to the caller.
- Redundancy
Scope - Which redundancy-reduction rules apply (ADR-078 §7, Amendment 3).
Functions§
- apply_
redundancy_ drop - Apply the redundancy-reduction pre-pass (ADR-078 §7, Amendment 3) to a
value at the given
RedundancyScope. - micros_
to_ iso - Convert a microsecond epoch
i64to an RFC 3339 / ISO-8601 string. - prepare_
format_ value - Prepare a successful result for its requested format at the wire boundary.
- prepare_
format_ value_ with_ note_ content - Apply format reductions to record metadata while preserving parsed bodies.
- present
- Transform a successful verb result value according to the given
PresentationMode. - present_
with_ policy - Present a successful result using its trusted registered verb policy. Receipt policies preserve only their closed string paths, not descendants.
- render_
format - Render a successful verb result value to a wire string using the given format.
- render_
format_ with_ note_ content - Render an opt-in parsed-note response without treating its body as metadata or a top-level record table. Auto preserves parsed values; Table stringifies non-scalar content for display only.
- rfc3339_
to_ utc_ micros - Parse an RFC 3339 timestamp (offset required) into microsecond epoch
i64— the inverse ofmicros_to_iso, and the single parse point for caller-supplied instants entering storage comparisons.