Skip to content
Swarrm

Event fields and the context dial

Generated from the normative context specification. Read the per-event tiers together with the universal keys, value constraints, and capture obligations below.

Version 1.5.0 preview. Last reviewed: .

Per-event tiers

Read the accompanying rules · Download the exact specification

Normative per-event context fields
action_typePLAINTEXT context (queryable)COMMITTED (disclosable)NEVER anywhere
llm.chatmodel, endpoint, status, stream, stream_truncated, truncation_type, finish_reason, input_tokens, output_tokens, requested_tool_names[], latency_ms, prompt_projection, output_projectionbounded request (prompt) and response (output) projectionsraw user identifiers in context
tool.calltool_name, server_name, duration_ms, is_error, outcome_observed, arg_keys[] (top-level keys only), result_kind (text/json/binary/none), result_size_band, args_projection, result_projection; actor on the Microsoft 365 action door only — the verified Entra identity {source, issuer, tenant, subject, application, scopes[], roles[]} the issuer asserted (SPEC/m365-action-gateway-v1); written by the local evidence plane, never accepted by the managed recorder (§2a)bounded tool.args and tool.result projectionsany arg/result VALUES in context
data.readsource_system, query_kind, record_count_band, duration_msquery, result_set_hashrecord contents in context
human.approve/override/rejectdecision, approver_role, latency_bandapprover_id, justificationapprover PII in context
human.escalation_timeoutwaited_ms, escalation_target_roleescalation_target_id—
payment.executecurrency, amount_band, counterparty_class, mandate_presentamount_exact, counterparty_id, mandate_refamounts/counterparty in context
agent.deployed/config_changed/tool_granted/revokedchange_kind, model_ref, tool_name (grants)config blobs (prompt text etc. as commitments)prompt text in context
agent.session_startedupstream_base, hosted_url, tenant (a recorder's resolved routing config at startup — not secrets, core/session_log.py)—credentials of any kind
interaction.messagesender, receiver, transport, rel_seq, bilateral; for bilateral Counterparty Assurance acceptance only: assurance_transcript_digest, challenge_envelope_hash, presentation_envelope_hash, asa_envelope_hash, acceptance_result_digest, assurance_message_digest, assurance_verdictmessage (the canonical transported payload)message content in context
policy.decisionengine, engine_version, decision, policy_bundle_hashpolicy_input, policy_outputio values in context
guardrail.blockedguardrail_name, rule_kind, action_takentrigger_contenttrigger content in context
evd.alert.raisedrule_id, rule_semantic_version, detection_profile, severity, triggering_receipt_hashes[], window, triggering_count, triggering_sequence_digest, triggering_sequence_digest_profile, triggering_hashes_truncated—payload of any triggering receipt; rate alerts carry at most 32 hashes and bind the exact leaf-ordered trigger count/digest under the named digest profile when truncated
lineage.born / lineage.adoptedkind, model_ref, code_digest, purpose, created_by_role, owner_org, lineage_from_seq, prior_history, field_provenancesystem_prompt, tool_manifest, config, mandate_document, created_by_idcreator PII in context; prompt/mandate text in context
lineage.revisedrevises, reason, revised_by_role, change_refsystem_prompt, tool_manifest, config, mandate_document, revised_by_idprompt/mandate text in context; reviser PII in context
mandate.assignedprincipal_display, source_channel, action_classes[], amount_cap_band, expires, change_refinstruction, principal_id, amount_cap_exactinstruction text in context; assigner PII in context
cocommit.head.signedhead_root, head_size, client_kid, client_pub, client_sig, prev_head_root, prev_head_size (SPEC/cocommit-v1 — digests, counters, key ids and detached signatures; no secrets exist here)—private keys of any kind; payload bytes of any client-recorded action
deployment.declareddoors_installed[], provider_credential_in_gateway, tool_surfaces_wrapped[], egress_allowlist_applied (customer-asserted posture, SPEC/deployment-v1.md — all plaintext, no commitments)—credentials of any kind
evd.key.* / evd.report.* / evd.grant.* / evd.disclosure.*(system — full plaintext, no secrets exist here)——
authority.root.enrolledroot_jwk, root_kid, legal_entity, enrolment_basis, effective_ts, prev_root_kid, prev_root_sig, self_sig (system — public key material + detached sigs, SPEC/authority-v1.md §3.1)enrolment_evidenceprivate keys of any kind
authority.principal.boundbirthtag_id, revision_id, principal, runtime_kid, environment, valid_from, valid_to, org_root_kid, prev_binding_id, concurrent_with, root_sig (§3.2)—private keys of any kind
authority.grant.issuedsubject_birthtag_id, binding_id, action_classes, scope, limits, policy_commitment, valid_from, valid_to, org_root_kid, transfers_grant_id, root_sig (§3.3)—private keys of any kind
authority.grant.revisedgrant_id, prev_grant_version, grant_version, subject_birthtag_id, binding_id, action_classes, scope, limits, policy_commitment, valid_from, valid_to, transfers_grant_id, effective_ts, org_root_kid, root_sig (§3.4)—private keys of any kind
authority.grant.revokedgrant_id, effective_ts, org_root_kid, root_sig (§3.5)—private keys of any kind
source.boundsource_system, account, credential_identity, mapping_version, event_key_field, finality_rule, valid_from, valid_to, org_root_kid, root_sig (§3.6)source_manifestprivate keys of any kind
source.binding.revokedsource_binding_id, effective_ts, org_root_kid, root_sig (§3.7)—private keys of any kind
action.intentaction_id, action_class, grant_id, grant_version, binding_id, policy_version, assurance_transcript_digest, challenge_envelope_hash, presentation_envelope_hash, asa_envelope_hash (§3.8; Counterparty Assurance fields appear as one all-or-none group)inputs, context_docinput/context values in context; private keys of any kind
action.submittedaction_id, source_ref (§3.9)request (the exact request as submitted)request values in context; private keys of any kind
source.batch.recordedsource, cursor_start, cursor_end, mapping_version, declared_count, event_key_root, finality_watermark, gaps, exclusions (system — node-v1 §3)batch (the canonical SourceBatch document)credentials; master keys; payload bytes
node.registereddeployment_id, node_kid, measured_digest, attestation_state, attestation_method (node-v1 §7)attestation (the signed NodeAttestation document)credentials; master keys; private keys of any kind
node.heartbeatepoch, beat, spool_depth, cursors (source → sha256(cursor)), cursors_digest (node-v1 §7)—raw cursor values; credentials; master keys
node.upgradedrelease_digest, config_digest, prev_node_kid, prev_final_heartbeat, cursors, cursors_digest, vault_root, successor_kid, handover_start, handover_end, emergency, org_root_kid, root_sig (node-v1 §7)—credentials; master keys; private keys of any kind
evd.finding.raisedrule_id, source, period, evidence_digests (node-v1 §8)—payload bytes of any evidenced material
evd.finding.triagedfinding_id, state, practitioner_id, practitioner_sig (node-v1 §8)statement (the practitioner's factual statement)coverage claims of any kind (coverage changes only by recomputation, reconcile-v1)
evd.gap.declaredscope, period, reason (node-v1 §8)—credentials; master keys; payload bytes
evd.coverage.recordedsource, period_start, period_end, cursor_start, cursor_end, claim_count, event_count, orphan_count, gaps_count, exclusions_count, event_key_root, finality_watermark (system — reconcile-v1 §6)coverage (the canonical evd/coverage-manifest/v1 document, domain evd/v1/node/coverage)credentials; master keys; payload bytes

Accompanying normative text

<!-- Apache-2.0 --> # evd/context v1 — the context dial (what is plaintext, what is committed)

Status: NORMATIVE. This table is the single authority for which fields may appear in a receipt's PLAINTEXT context per action_type. Extending it requires a PR that updates the leak test (tests/test_context_dial.py) in the same change. Anything not listed as plaintext for its action type is either COMMITTED (salted commitment, disclosable later by the payload holder) or must not exist anywhere.

1. The dial (normative table)

1a. field_provenance (lineage establishment only — ADDITIVE, advisory)

One flat string labelling how each of model_ref, tool_manifest, code_digest and created_by_id entered the establishment receipt: space-separated field=label pairs, sorted by field, where label is asserted (typed by the caller) or observed:<basis> (captured by a live door — e.g. observed:gateway, observed:mcp-wrap, observed:artifact, observed:env:GITHUB_ACTOR). It carries no payload and no PII — only how a value was obtained, so a report can say which values were observed and which were asserted. Verifiers treat it as an opaque context field; it never moves a verification level.

1b. Universal keys (birthtag-v1, reconcile-v1 §1)

birthtag_id and revision_id are allowed as PLAINTEXT context on EVERY action type (they are receipt hashes — derived, non-secret, no PII). action_id and external_ref (reconcile-v1 §1 correlation) join them: action_id is an opaque identifier created BEFORE execution and reused across every retry; external_ref is the source's returned reference. Both are opaque IDs and NEVER business data — capture surfaces carry them untouched and never validate or interpret them. These four are the only universal context keys; everything else stays per-type.

2. Bands (normative)

- amount_band = "10^N CUR" (floor of log10 of the absolute amount, plus ISO 4217 alphabetic currency code), e.g. €49.90 → "10^1 EUR". - result_size_band / record_count_band ∈ {0, <1k, <100k, ≥100k} (bytes for results, rows for record counts). - latency_band ∈ {<1s, <1m, <1h, ≥1h}.

2a. Managed-edge value types (normative)

The managed recorder accepts no recursively structured plaintext values. Universal IDs and ordinary dial fields are strings; requested_tool_names and arg_keys are arrays containing only strings; stream, is_error, outcome_observed, mandate_present, and bilateral are booleans; token counts, durations, waited_ms, and rel_seq are nonnegative signed-64-bit integers (a JSON boolean is not an integer). status is either a string or such an integer. The three band fields above and result_kind (text|json|binary|none) use their exact enums. Nested objects, nested arrays, and arrays on scalar fields are forbidden at this boundary even when the field name itself is declared. The four *_projection fields use exact|truncated|unavailable. Their absence means the capture surface made no v1 projection claim; it never means exact. If outcome_observed=false, is_error MUST be absent. If outcome_observed=true, is_error MUST be present.

3. Sessions (normative algorithm — implemented in the session engine)

1. x-evd-session header present → use it, session_inferred=false. 2. else an OpenAI-style user field (or metadata.conversation_id) is present → session_id = "s_" + hex16(SHA-256(tenant‖agent‖value)), session_inferred=true. 3. else the same (api_key, agent_id) pair has produced a receipt less than 15 minutes ago → reuse that session; else a new random s_…. session_inferred=true.

Parenting: within a session, parents=[previous receipt_hash] unless x-evd-parent is given. session_id and session_inferred are ADDITIVE receipt/v1.1 fields; verifiers treat unknown fields as opaque. Inferred causality is ALWAYS labeled — reports render an "inferred" badge and never present heuristic grouping as explicit.

4. Capture-surface obligations

Every capture surface (gateway, MCP wrap, future OTel/SDK) MUST pass the leak test: fuzzed payload/argument/result sentinels may never appear anywhere in a receipt outside commitment values, and each receipt's plaintext context keys must be a subset of the table for its action_type. The MCP wrap additionally guarantees BIT-PERFECT relay: it reads traffic, it never rewrites, reorders, retries, or filters it.

The specification is licensed Apache-2.0. These field rules do not establish that an action was captured.

Reference details

Source binding

SPEC/context-v1.md · SHA-256 acfa314368f88f7a7868d02ecdb658d19add0696ea27f72670dbcfa85fce2e98.