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