gunk-dev/the-valley

ida-d2dc957-attestations-ride-on-a-transparent-leaf.md

sourcee8bc3b4f9d64main's published tip history
5.9 KiB · Rendered
1---
2type: idea
3id: ida-d2dc957
4status: exploring
5title: Attestations ride on a transparent leaf
6created: 2026-07-25
7source: design conversation, 2026-07-25
8---
9
10# Attestations ride on a transparent leaf
11
12An attestation decomposes into three layers that can be chosen separately. The **statement** is what
13is asserted — the subject, the kind of check, its inputs and its outputs. The **envelope** is how
14that statement is signed. **Transparency** is how the signed statement becomes undeniable. Format
15arguments turn circular when these are conflated, because an objection to one layer is answered with
16a property of another. Keeping them apart also shows how little they constrain each other: a
17transparency log that stores only a hash barely constrains the envelope at all.
18
19This is a direction under exploration, not a decided design. What follows is where the evidence
20currently points, and the shape of the questions that remain.
21
22## Direction for the envelope and transparency
23
24The C2SP line of specifications, and specifically the emerging identity-transparency leaf format
25that unifies the Sigstore and Sigsum leaf shapes. Its leaf carries a version byte, a digest of a
26root of trust, a digest of the message, a sorted set of double-hashed ecosystem-specific key-value
27context strings, and a receipt digest. The signature covers the specification identifier, the
28checksum and those context strings.
29
30Double hashing is what makes this fit here. A value can be withheld from the log while still being
31authenticated by the signature, which matters for a project whose repositories are not public.
32
33## Direction for the statement
34
35The typed-statement shape from the in-toto attestation line: a subject identified by a digest set
36rather than a single digest value, and a versioned predicate type naming what kind of claim is being
37made.
38
39Two properties earn their place. First, a digest set can hold a content-addressed tree digest
40alongside an advisory commit hash, so a change stays identifiable after the integrator rebases it —
41which is exactly what [[ida-51605e8]]
42([ida-51605e8-authenticity-not-git-coupled.md](./ida-51605e8-authenticity-not-git-coupled.md))
43requires. Second, a versioned predicate type carries the pure-versus-effectful distinction inside
44the signed bytes, rather than leaving it to convention outside them.
45
46## Multiple parties sign as siblings
47
48When more than one party attests to the same thing, the signatures sit side by side rather than
49inside one another. Two statements over the same subject digest, each signed by one party — not one
50party's signature embedded as a field within another party's document.
51
52The attack rules nesting out. If an inner approval signature covers only a verdict or a bare tree
53hash, whoever composes the outer document can lift that approval onto a different set of claims, and
54the outer signature still verifies over the result. Sibling statements defeat this by construction,
55because each signature carries its own identification of the subject.
56
57Worth recording why nesting was tempting at all: signature formats intended for humans are not
58registered types in the note-based line, so a human approval would have had to travel inside
59something else. The nesting would have been forced by a registry gap, not chosen for any property it
60has.
61
62## Post-quantum and presence pull in opposite directions
63
64They need not be reconciled in a single signature, because they are claims with different lifetimes.
65
66Presence is consumed immediately. A gate checks it at decision time, and the question of whether a
67human was physically present has no long-lived component. Durability is the long-lived claim — that
68a statement existed, unaltered, at a given time. A log's Merkle structure is hash-based and already
69resists quantum attack, so inclusion carries much of the durability burden regardless of which
70algorithm signed the statement.
71
72Where a post-quantum signature over the statement is wanted, it need not be the hardware one.
73Requiring two signatures — a hardware classical signature for presence, and a software post-quantum
74signature for durability — yields both properties. The automatable half is worthless on its own, so
75unforgeability survives the split.
76
77## Considered and set aside
78
79The objection that signing structured documents forces a hazardous canonicalisation step does not
80apply to the pre-authentication encoding used by the in-toto envelope line, which signs a
81length-prefixed encoding rather than a re-serialised object. That envelope line was set aside for
82fit with the transparency direction, not because the canonicalisation objection stood against it.
83
84## Open
85
86**Which context keys this project would define.** The leaf's context strings are ecosystem-specific,
87so the set of keys and their meanings is a design decision this project has to make for itself.
88
89**What exactly identifies the subject.** Whether a content-addressed tree digest is the right
90primitive, and what else belongs in the digest set alongside it.
91
92**Whether a hardware-presence credential type gains first-class support in the leaf format.** No
93hardware token today can produce the raw signature such a leaf requires, which forces a human
94approval to travel as data submitted under a machine identity — the opposite of what the presence
95requirement is for.
96
97## Related
98
99- The requirement this answers — authenticity that survives a rebase: [[ida-51605e8]]
100 ([ida-51605e8-authenticity-not-git-coupled.md](./ida-51605e8-authenticity-not-git-coupled.md))
101- The human act one such statement carries: [[ida-b7025b5]]
102 ([ida-b7025b5-human-decisions-are-signed-acts.md](./ida-b7025b5-human-decisions-are-signed-acts.md))
103- Who signs the other: [[ida-a8243d2]]
104 ([ida-a8243d2-agent-runs-act-under-delegated-authority.md](./ida-a8243d2-agent-runs-act-under-delegated-authority.md))
105- The pure-versus-effectful distinction the predicate type would carry:
106 [verification.md](../../design/verification.md)
107- Where this lands in the plan:
108 [roadmap.md, Phase 2](../../design/roadmap.md#phase-2--attestations-verification-mvp)