gunk-dev/the-valley

ida-a5214da-formats-tailored-to-the-valley.md

source0b6e3bf1f24fmain's published tip history
2.6 KiB · Rendered
1---
2type: idea
3id: ida-a5214da
4status: adopted
5title: Formats and interfaces are tailored to the-valley
6created: 2026-08-02
7source: design conversation, 2026-08-02
8---
9
10# Formats and interfaces are tailored to the-valley
11
12The formats and interfaces this design defines are shaped for its own use. Where an external format
13fits, it is adopted; where it does not, the design defines its own rather than contorting itself to
14fit an ecosystem it does not otherwise participate in.
15
16## Where this already holds
17
18- The host declaration ([`schema/valley.cue`](../../schema/valley.cue)) and the event vocabulary
19 ([`schema/events.cue`](../../schema/events.cue)) are CUE documents that are deliberately not Nix.
20 Installers are their consumers: the NixOS module in this repo is one, and another installer reads
21 the same files.
22- The attestation vocabulary of [[dcr-0de694f]]
23 ([decisions/dcr-0de694f-phase2-attestation-shape.md](../decisions/dcr-0de694f-phase2-attestation-shape.md))
24 is the project's own. Its predicate types and digest schemes are named for this project, so no
25 external tool would read one of its statements regardless of encoding. Its statement borrows the
26 digest-set and versioned-predicate ideas from an external line of specifications while taking none
27 of its wire format.
28- [[ida-b9f646c]]
29 ([ida-b9f646c-nix-backend-not-substrate.md](./ida-b9f646c-nix-backend-not-substrate.md)) holds the
30 same shape one level down: an implementation is a backend, never the contract.
31
32## The boundary
33
34A tailored format is not a closed one. Two things bound it.
35
36Federation crosses valley boundaries. [[ida-8482624]]
37([ida-8482624-federation-groups.md](./ida-8482624-federation-groups.md)) holds that a valley — the
38organization that owns a set of repos and shares one trust domain — may import another valley's
39attestations and decide by its own policy how much they count, and it leaves federated identity
40mapping open. Whatever crosses that boundary is understood by two parties who did not agree in
41advance, so the boundary is where an external format earns its place.
42
43The _Open source_ constraint of [requirements.md](../../design/requirements.md#constraints) holds
44that the substrate must be inspectable and forkable. A format nobody outside can implement from its
45specification would satisfy the letter of that and defeat it in practice. So a tailored format
46carries an obligation: it is specified well enough to be implemented independently.
47
48## Open
49
50- Where the line falls between a format the valley defines and one it adopts.
51- What a federated boundary requires, which is undesigned.