Skip to main content

Module presentation

Module presentation 

Source
Expand description

Verb response presentation modes and transformation (ADR-045).

Handlers always return a canonical (verbose) shape. This module transforms that shape into a caller-appropriate form AFTER dispatch, BEFORE wire serialization.

§Transformation rules

Field typeVerbose formAgent form
UUID (36-char)"a1b2c3d4-e5f6-...""a1b2c3d4" (8 chars)
ISO-8601 timestamp"2026-05-23T16:18:15.234Z""2026-05-23T16:18" (< 24h: "3m ago")
Empty string ""includeddropped
Empty array []includeddropped
Empty object {}includeddropped
null (non-lifecycle)includeddropped
null (lifecycle *_at, relationship markers)includedpreserved
Score fields0.12345678900.123 (3 sig figs)

Verbose mode passes through canonically. Human mode is delegated to the CLI layer and is not transformed here (returned as-is from this crate).

Chain invariant: present_response MUST NOT be called on intermediate chain results — only on the final response envelope after all $prev substitutions complete.

Enums§

PresentationMode
How the response envelope is presented to the caller (ADR-045).

Functions§

present
Transform a successful verb result value according to the given PresentationMode.