Expand description
One context decision lineage (strategy package 2026-10-14, doc 19).
The gateway already decides every context object once, in one place: the
admission that emits ContextDecisionReceiptV1. This module adds what
that record does not say, without changing it: the request the decision
answered (who, through which route, from which sources, toward which
destination), the state of each source candidate, a single outcome
vocabulary, and the honest delivery state of the receipt. A
ContextDecisionLineageV1 references the existing records by digest; it
replaces none of them, so every V1 reader and digest stays as it is.
Three rules are enforced by validation, not by convention:
- only a
SourceValidityV1::Validcandidate may be materialized: a stale, revoked, deleted, unavailable or unsupported source never becomes an allow, and nothing falls back from revoked to stale; ContextReceiptStateV1::ObservedModelEgressis claimed only for a route that observes model egress AND with at least one transport observation; a context-only route reportspreparedorhanded_off, never what the host may have sent afterwards;- every outcome other than
allownames a reason.
Structs§
- Context
Decision Lineage V1 - Request → candidates → decisions → receipt, as one record over the existing ones (referenced by digest, never copied).
- Context
Request V1 - What was asked: identity, purpose, sources in scope, route, destination.
A caller-supplied tenant or user string is not an identity; the principal
is the one the gateway authenticated or
unknown. - Object
Outcome V1 - The decision about one object, in the doc 19 vocabulary.
- Source
Candidate V1
Enums§
- AclCheck
V1 - How the candidate’s right to be read was established.
- Context
Decision Outcome V1 - The five outcomes of doc 19. Projection of
ContextDispositionV1; a source that could not be decided at all isunavailable. - Context
Receipt State V1 - How far a delivery is known to have gone.
- Integration
Route V1 - The consumer path a request came through, and what that path can observe.
- Source
Validity V1 - State of a source candidate at decision time. Exactly one of these, from
the source’s own re-check; only
validmay be materialized.