gunk-dev/the-valley

dcr-0de694f-phase2-attestation-shape.md

source36458df40860main's published tip history
6.7 KiB · Rendered
1---
2type: decision
3id: dcr-0de694f
4status: decided
5title: A Phase 2 attestation is a host-signed statement over a tree digest
6created: 2026-08-02
7source: design conversation, 2026-08-02
8---
9
10# The shape of a Phase 2 attestation
11
12A Phase 2 attestation has five elements: a statement, a signer, an envelope, a place it is stored,
13and a rule for how several of them compose. This node fixes all five, which is the whole of what
14[roadmap.md, Phase 2](../../design/roadmap.md#phase-2--attestations-verification-mvp) needs in order
15to be built. The layering it uses — statement, envelope, transparency — is the one set out in
16[[ida-d2dc957]]
17([ida-d2dc957-attestations-ride-on-a-transparent-leaf.md](../ideas/ida-d2dc957-attestations-ride-on-a-transparent-leaf.md)).
18
19## 1. The statement
20
21The **statement** is the document that makes the claim: a typed, versioned record asserting what
22ran, over what, with what result. It is the thing that is signed, and it is self-contained —
23everything a verifier needs to understand the claim is inside it.
24
25Its **subject** is what the statement is about. The subject is identified by a **digest set**: a set
26of named digests, any of which may identify the same object under a different naming scheme. A
27content-addressed digest of the resulting tree is the primary member. A commit hash may accompany it
28as an advisory member, useful for finding the change and never relied on for identity. The resulting
29tree is a function of the base the change was produced against, so an attestation is bound to that
30base — [[ida-cbcbb3c]]
31([ida-cbcbb3c-attestations-bind-to-a-base.md](../ideas/ida-cbcbb3c-attestations-bind-to-a-base.md)).
32
33Its **predicate type** is the versioned name of the kind of claim being made. The version is part of
34the name, so a statement says which revision of a claim shape it was written against. The predicate
35type carries the pure-versus-effectful distinction of
36[verification.md](../../design/verification.md), which places that distinction inside the signed
37bytes.
38
39The statement records the check that ran and its result. For a pure check it additionally records
40the digests of the check's inputs, of its derivation, and of its output, which is what a verifier
41re-derives against.
42
43The statement also carries, as content, the provenance of the run that produced the change: the
44harness, the model, digests of the prompt and of the context, and the delegation chain as recorded.
45
46## 2. The signer is the host
47
48The host signs. The host is the party competent to assert that a computation ran, in a given
49environment, with a given result.
50
51An agent run holds no key of its own, per [[ida-a8243d2]]
52([ida-a8243d2-agent-runs-act-under-delegated-authority.md](../ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md)).
53An agent-authored change is attributed inside the host-signed statement, as part of the provenance
54that statement carries — [[ida-45178f6]]
55([ida-45178f6-agent-identity-is-provenance.md](../ideas/ida-45178f6-agent-identity-is-provenance.md)).
56
57A human approval is a separate signed act carrying its own signature, per [[ida-b7025b5]]
58([ida-b7025b5-human-decisions-are-signed-acts.md](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md)),
59and is never the same signature as the host's.
60
61## 3. The envelope
62
63The **envelope** is how the statement is signed: a detached SSHSIG signature over the statement,
64under a namespace chosen for this purpose. No git object is signed — [[ida-51605e8]]
65([ida-51605e8-authenticity-not-git-coupled.md](../ideas/ida-51605e8-authenticity-not-git-coupled.md)).
66
67## 4. Storage
68
69A git ref, keyed by the subject digest.
70
71## 5. Composition
72
73Where more than one party attests to the same subject, their statements sit side by side, each
74signed by one party.
75
76## Properties this shape holds
77
78- An attestation survives the integrator's rebase, because its subject is a tree digest.
79- A verifier can tell a re-derivable claim from a notarized one from the signed bytes alone.
80- The format can evolve without invalidating what already exists, because the predicate type carries
81 a version.
82- An approval cannot be lifted onto claims it was not made about, because statements composed side
83 by side each identify their own subject.
84- Where attestations are stored can change without invalidating them, because everything is
85 referenced by digest.
86- Provenance is derived from a complete record of the run, per [[ida-b42d112]]
87 ([ida-b42d112-harness-log-is-normalized.md](../ideas/ida-b42d112-harness-log-is-normalized.md)).
88
89## What Phase 2 defers
90
91- **The transparency log and inclusion proofs**, and **witness re-verification** of pure claims.
92 Both land in [roadmap.md, Phase 6](../../design/roadmap.md#phase-6--trust-backstop).
93- **Keys held by agent runs.** Identity stays thin until a scenario forces it to grow, per
94 [[ida-a8243d2]].
95- **The actuator.** It is under exploration in [[ida-f1b39e8]]
96 ([ida-f1b39e8-outbound-effects-pass-through-an-actuator.md](../ideas/ida-f1b39e8-outbound-effects-pass-through-an-actuator.md))
97 and lands no earlier than
98 [roadmap.md, Phase 5](../../design/roadmap.md#phase-5--effectful-reactions-armstrong-as-controller).
99- **Verification of delegation chains**, as opposed to recording them. Phase 2 records a chain as
100 content in the statement. Checking a chain belongs to the enforcement point, which is the
101 integrator of [roadmap.md, Phase 3](../../design/roadmap.md#phase-3--the-integrator).
102
103## Related
104
105- The three-layer decomposition and the sibling-signature rule: [[ida-d2dc957]]
106 ([ida-d2dc957-attestations-ride-on-a-transparent-leaf.md](../ideas/ida-d2dc957-attestations-ride-on-a-transparent-leaf.md))
107- What the subject may not be coupled to: [[ida-51605e8]]
108 ([ida-51605e8-authenticity-not-git-coupled.md](../ideas/ida-51605e8-authenticity-not-git-coupled.md))
109- The authority an agent run acts under: [[ida-a8243d2]]
110 ([ida-a8243d2-agent-runs-act-under-delegated-authority.md](../ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md))
111- The provenance the statement carries: [[ida-45178f6]]
112 ([ida-45178f6-agent-identity-is-provenance.md](../ideas/ida-45178f6-agent-identity-is-provenance.md))
113 and [[ida-b42d112]]
114 ([ida-b42d112-harness-log-is-normalized.md](../ideas/ida-b42d112-harness-log-is-normalized.md))
115- The separate act a human approval is: [[ida-b7025b5]]
116 ([ida-b7025b5-human-decisions-are-signed-acts.md](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md))
117- The base an attestation is bound to: [[ida-cbcbb3c]]
118 ([ida-cbcbb3c-attestations-bind-to-a-base.md](../ideas/ida-cbcbb3c-attestations-bind-to-a-base.md))
119- The two kinds of check the predicate type distinguishes:
120 [verification.md](../../design/verification.md)
121- The protocol the helper implements: [contribute.md](../../design/contribute.md)