gunk-dev/the-valley

ida-8482624-federation-groups.md

sourceb160a3fca731main's published tip history
5.1 KiB · Rendered
1---
2type: idea
3id: ida-8482624
4status: adopted
5title: "Let independently governed valleys exchange selected events and evidence"
6created: 2026-07-02
7source: PR #1
8---
9
10# Let independently governed valleys exchange selected events and evidence
11
12Federation would let valleys cooperate while retaining their own policy, identities, and trust
13decisions. A valley is the organization or personal namespace that owns a set of projects under
14shared policy, as defined in [[dcr-8f069dd]](../decisions/dcr-8f069dd-valley-is-the-unit.md).
15
16Some work crosses repositories within one valley. Other work crosses between independently governed
17valleys. These require different coordination and authorization, even when both are described
18informally as cross-repository work.
19
20The [architecture](../../design/architecture.md#valleys-projects-and-hosts) records the high-level
21commitment. This adopted sketch preserves the reasoning for more detailed design when
22[S5 and later scenarios](../../design/user-scenarios.md) require it.
23
24## Services within a valley
25
26A valley's services include Git hosting, an event bus, integration controllers, and a build cache.
27Knowledge is stored with projects, while views can combine it across the valley.
28
29[[dcr-9b5da04]](../decisions/dcr-9b5da04-hosts-serve-isolated-valleys.md) defines one integrator
30principal per valley. Multiple controllers can serve different protected streams under that
31principal.
32
33The build cache allows machines and independent verifiers to reuse content-addressed inputs and
34artifacts. This matters to the re-verification model in
35[verification.md](../../design/verification.md): rebuilding every dependency from scratch would make
36verification expensive.
37
38Input retention remains open. A pure claim does not expire with time, but reproducing it still
39requires the referenced inputs to be available. The valley's cache policy needs to state what it
40retains and for how long.
41
42## Hosting
43
44A small valley can run on one machine. The design should also permit its services to span hosts,
45with separate controllers for protected refs and appropriately distributed hosting and messaging.
46
47Multi-host operation is deferred by
48[[dcr-9b5da04]](../decisions/dcr-9b5da04-hosts-serve-isolated-valleys.md). The separation of
49services makes it a direction to implement, rather than proof that distributed deployment already
50works.
51
52## Coordination within and between valleys
53
54| Concern | Within one valley | Between valleys |
55| ----------- | --------------------------------------------------------------- | ------------------------------------------------------------------ |
56| Integration | Coordinate dependent requests under shared policy and services | Exchange requests or evidence across independent policy boundaries |
57| Feedback | Route a consumer failure to another local project | Deliver selected feedback to another valley |
58| Knowledge | Reference a blocker in another project with a project namespace | Reference a node owned and served elsewhere |
59
60Shared services make the first column easier, but do not automatically provide atomic integration
61across repositories. A coordinating controller still needs to define what happens when only part of
62a multi-project operation succeeds.
63
64Federation addresses the second column: which events, evidence, and references may cross the
65boundary and how the receiving valley interprets them.
66
67## Trust
68
69Trust measurements are local to a valley's verifier pool and policy. A signer's confirmation rate
70elsewhere does not automatically have the same meaning locally.
71
72A valley may import another valley's attestations and decide how much evidence they provide. It may
73subscribe to selected event types or projects without receiving the other valley's entire bus.
74
75Both sides must authorize the exchange. Local request and access permissions remain those defined in
76[[dcr-e544f20]](../decisions/dcr-e544f20-access-is-verbs-on-projects.md).
77
78Imported evidence raises unresolved identity and trust questions. A receiver must recognize the
79signer and determine whether the foreign verification process meets its requirements. Possible
80approaches include explicit identity links, a translation or discount of external measurements, and
81requiring local verification before giving any credit.
82
83[[dcr-b87f6e8]](../decisions/dcr-b87f6e8-identity-is-a-governed-registry.md) supplies the registry
84model for independently recognizing external identities.
85
86## Discovery
87
88A valley can list the projects it owns. Discovery across valleys needs a way to find other valleys
89and learn what they publish or offer for exchange.
90
91That mechanism remains open. It belongs with federation because it must work across independently
92managed namespaces.
93
94[[ida-eac723e]](ida-eac723e-outcome-dag.md) describes the outcome engine that may use these
95relationships. [self-transparency.md](../../design/self-transparency.md) applies to federated
96changes as well as local ones, and [[dcr-2113c52]](../decisions/dcr-2113c52-pr1-relanding.md)
97records where this sketch fits in the documentation.