Pure v1 audit-record construction, validation, normalization, and hashing.
This namespace performs no I/O and does not invent journal metadata. The
durable writer (vaelii.agents.mcp.dispatcher's JournalAuditSink) adds
record identity, sequence, and server time at the commit point.
Pure v1 audit-record construction, validation, normalization, and hashing. This namespace performs no I/O and does not invent journal metadata. The durable writer (`vaelii.agents.mcp.dispatcher`'s `JournalAuditSink`) adds record identity, sequence, and server time at the commit point.
(attempt {:keys [operation-id verb auth-status principal session-id fork-id
correlation-id input]})Construct an unstored Attempt. Identity, sequence, and time remain the durable writer's job.
Construct an unstored Attempt. Identity, sequence, and time remain the durable writer's job.
(authenticated-input verb input)Construct a typed authenticated input from already-parsed verb values.
Construct a typed authenticated input from already-parsed verb values.
(canonical-json value)Return the canonical compact UTF-8 JSON text for a JSON-shaped value.
Return the canonical compact UTF-8 JSON text for a JSON-shaped value.
(canonical-json-bytes value)Return canonical JSON as a byte array.
Return canonical JSON as a byte array.
(completion {:keys [operation-id outcome]})Construct an unstored Completion with one closed outcome variant.
Construct an unstored Completion with one closed outcome variant.
(normalize-edn value)Convert an EDN value to a deterministic JSON-shaped tagged value.
Lists, vectors, sets, maps, symbols, and keywords retain their EDN identity. Map entries and set values are sorted by their own canonical JSON bytes.
Convert an EDN value to a deterministic JSON-shaped tagged value. Lists, vectors, sets, maps, symbols, and keywords retain their EDN identity. Map entries and set values are sorted by their own canonical JSON bytes.
(resolution {:keys [operation-id resolution]})Construct an unstored Resolution, enforcing the causal-evidence boundary.
Construct an unstored Resolution, enforcing the causal-evidence boundary.
(result-summary verb result)Construct the minimized successful result variant for one verb.
Construct the minimized successful result variant for one verb.
(sha256 value)Return a lowercase sha256: digest of a canonical JSON-shaped value.
Return a lowercase `sha256:` digest of a canonical JSON-shaped value.
(untrusted-input {:keys [raw-sha256 byte-length content-type]})Construct the bounded input variant used before authentication succeeds.
Construct the bounded input variant used before authentication succeeds.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |