gunk-dev/the-valley

sources-distributed.md

source695d65eb4898main's published tip history
17.4 KiB · Rendered
1# Sources: events, trust, and durability
2
3This register supports [Events, trust, and durability](04-events-trust-and-durability.md). All links
4were checked on 2026-09-20. “Sections” means the named portions were examined; it does not imply a
5full reading of the paper, specification, proofs, implementation, or linked references. None of the
6systems below was deployed or benchmarked for this report. Source annotations identify both what is
7useful and what the source does not establish for the-valley.
8
9## D01 — Logical causality
10
11**Leslie Lamport. 1978.
12[Time, Clocks, and the Ordering of Events in a Distributed System](https://lamport.azurewebsites.net/pubs/time-clocks.pdf).
13Communications of the ACM 21(7), 558–565.**
14
15Read: sections on partial ordering, logical clocks, and total ordering, including the
16clock-condition distinction. Establishes the difference between causal precedence and a chosen total
17order. Essential for interpreting “one history.” It does not supply a model of incident
18responsibility or establish completeness of observed events. Read before designing causal references
19across valleys.
20
21## D02 — Event sourcing and replay
22
23**Martin Fowler. 2005. [Event Sourcing](https://martinfowler.com/eaaDev/EventSourcing.html).
24Author's architecture essay, explicitly marked draft.**
25
26Read: definition, reconstruction discussion, external updates, external queries, and code changes.
27Useful for distinguishing replayable domain state from repeating real-world effects. This is a
28primary design account, not a formal correctness result or current product specification. Its
29external-system discussion is particularly relevant to the actuator proposal.
30
31## D03 — Ref history and expiration
32
33**Git project. [git-reflog](https://git-scm.com/docs/git-reflog). Living command documentation,
34accessed 2026-09-20.**
35
36Read: description and expiration options. Documents the operational log of ref updates and its
37retention controls. Useful when assessing whether repository state can reconstruct earlier ref
38transitions. A reflog's existence on one host is not evidence that the project's backup or
39synchronization path retains it. The report does not recommend changing global reflog policy without
40an explicit history contract.
41
42## D04 — Ref transactions
43
44**Git project. [git-update-ref](https://git-scm.com/docs/git-update-ref). Living command
45documentation, accessed 2026-09-20.**
46
47Read: expected old values, `--stdin`, transaction commands, and concurrent-reader warning. Supplies
48the relevant existing primitive for coordinating target, evidence, and journal refs. Its caveat
49about readers observing a subset matters to the proposed landing protocol. Further
50implementation-specific fault testing is required; this documentation alone does not establish
51arbitrary power-loss guarantees for every ref backend.
52
53## D05 — Stream storage contracts
54
55**NATS project.
56[Streams](https://github.com/nats-io/nats.docs/blob/master/nats-concepts/jetstream/streams.md).
57Official documentation repository, accessed 2026-09-20.**
58
59Read: publication acknowledgement, retention, discard policy, and configuration table. Documents the
60choices behind a “durable stream.” The official repository was archived on 2026-08-24; the
61historical documentation is linked because former documentation URLs redirected during research.
62Check these guarantees against the deployed server and CLI versions before implementation. No
63deployment-specific performance claim is inferred.
64
65## D06 — Deduplication and acknowledgements
66
67**NATS project.
68[JetStream Model Deep Dive](https://github.com/nats-io/nats.docs/blob/master/using-nats/jetstream/model_deep_dive.md).
69Official archived documentation, accessed 2026-09-20.**
70
71Read: message deduplication, acknowledgement modes, exactly-once semantics, and starting positions.
72Explains the actual scope of the transport mechanisms. Particularly useful for resisting the
73inference that acknowledging a message also commits a remote effect. This describes the documented
74mechanism and default duplicate window, not every newer server feature or configuration.
75
76## D07 — Consumer recovery state
77
78**NATS project.
79[Consumers](https://github.com/nats-io/nats.docs/blob/master/nats-concepts/jetstream/consumers.md).
80Official archived documentation, accessed 2026-09-20.**
81
82Read: consumer model, delivery guarantees, redelivery, and push/pull overview. Establishes that
83consumers maintain delivery and acknowledgement state. Relevant to deciding what replay restores and
84what a restarted subscriber must remember. It does not establish that application processing is
85idempotent or that an external action and acknowledgement are atomic.
86
87## D08 — Reconciliation
88
89**Kubernetes project. [Controllers](https://kubernetes.io/docs/concepts/architecture/controller/).
90Living documentation, accessed 2026-09-20.**
91
92Read: controller pattern, API-server control, direct external control, and desired/current-state
93discussion. Provides the operational precedent for the implemented polling integrator and proposed
94standing-demand controller. This is a conceptual description rather than a proof that any particular
95controller converges. It supports borrowing the pattern without adopting the Kubernetes platform.
96
97## D09 — Durable workflow history
98
99**Temporal project. [Events and Event History](https://docs.temporal.io/workflow-execution/event).
100Living documentation, accessed 2026-09-20.**
101
102Read: event and activity-event definitions, persisted history, history limits, and recovery
103discussion. Explains what Temporal retains to recover an execution. Useful as a comparison for any
104custom operation journal. The chapter deliberately avoids relying on exact current limits as a
105design constant. It does not evaluate Temporal's operational cost in this project's deployment.
106
107## D10 — Activity failures and cancellation
108
109**Temporal project. [Activity Execution](https://docs.temporal.io/activity-execution). Living
110documentation, accessed 2026-09-20.**
111
112Read: lifecycle, timeouts, retries, cancellation, and external asynchronous completion discussion.
113Makes the boundary between durable orchestration and fallible activity execution explicit. Relevant
114to deployment and agent attempts. It does not promise exactly-once behavior in an arbitrary external
115service or that cancellation reverses an effect already accepted there.
116
117## D11 — Transactional outbox
118
119**Microsoft / Azure Samples. 2026.
120[Azure Cosmos DB design pattern: Transactional Outbox](https://learn.microsoft.com/en-us/samples/azure-samples/cosmos-db-design-patterns/transactional-outbox/).
121Published 2026-07-06; accessed 2026-09-20.**
122
123Read: pattern explanation, transaction boundary, relay, and duplicate-consumer discussion. Shows the
124local atomicity requirement behind reliable publication. The concrete implementation is Cosmos DB
125specific; the report transfers the pattern, not its product guarantees, to a possible Git journal.
126Example code and its crash demonstration were not executed.
127
128## D12 — Compensating long operations
129
130**Hector Garcia-Molina and Kenneth Salem. 1987.
131[Sagas](https://sigmodrecord.org/?download_id=11106&smd_process_download=1). ACM SIGMOD, 249–259.**
132
133Read: abstract and introductory long-transaction and reservation examples. Establishes the
134motivation for committed subtransactions with compensation. Useful for deployments and coordinated
135releases that cannot remain one atomic transaction. This chapter uses the conceptual distinction; it
136does not claim to have reviewed the full recovery algorithm or proved that a proposed deployment
137compensation preserves an invariant.
138
139## D13 — Independent transaction scopes
140
141**Pat Helland. 2007.
142[Life beyond Distributed Transactions: an Apostate's Opinion](https://www.cidrdb.org/cidr2007/papers/cidr07p15.pdf).
143CIDR.**
144
145Read: message-versus-method discussion and §5 on retries, idempotence, and substantive behavior. A
146strong engineering account of obligations that reappear when transactional scope is local. Relevant
147even at small scale because a local process and remote actuator already cross a transaction
148boundary. Its large-scale framing is not evidence that the-valley needs large-scale infrastructure.
149
150## D14 — A provenance vocabulary
151
152**Luc Moreau and Paolo Missier, editors; W3C Provenance Working Group. 2013.
153[PROV-DM: The PROV Data Model](https://www.w3.org/TR/prov-dm/). W3C Recommendation, 30 April 2013.**
154
155Read: overview, attribution, association, delegation, influence, and bundles. Useful for separating
156production claims and authority. Representation does not establish truth or enforce permissions.
157Also registered as A04.
158
159## D15 — Operational correlation
160
161**OpenTelemetry project. [Tracing API](https://opentelemetry.io/docs/specs/otel/trace/api/). Living
162specification, accessed 2026-09-20.**
163
164Read: span context, identifiers, sampled flags, recording, and links. Useful for correlating
165execution detail with retained project decisions, including operations with multiple predecessors. A
166tracing API is not a durable audit-store contract. The report does not equate possession of a trace
167ID with authenticated provenance or assume all spans are recorded.
168
169## D16 — Ownership and local operation
170
171**Martin Kleppmann, Adam Wiggins, Peter van Hardenberg, and Mark McGranaghan. 2019.
172[Local-First Software: You Own Your Data, in spite of the Cloud](https://martin.kleppmann.com/papers/local-first.pdf).
173Onward! DOI: 10.1145/3359591.3359737.**
174
175Read: motivation, seven-ideals framing, and selected storage/synchronization comparison sections. A
176close conceptual predecessor to repo-carried project knowledge and provider independence. It is a
177design and research agenda, not evidence that CRDTs solve every governance conflict. The report does
178not claim a complete review of the prototypes or their usability results.
179
180## D17 — Convergence guarantees
181
182**Marc Shapiro, Nuno Preguiça, Carlos Baquero, and Marek Zawirski. 2011.
183[Conflict-free Replicated Data Types](https://perso.lip6.fr/Marc.Shapiro/papers/2011/CRDTs_SSS-2011.pdf).
184SSS 2011, 386–400.**
185
186Read: introduction and §2 system model, strong eventual consistency, and state-based convergence
187conditions. Clarifies which assumptions support automatic merging. Relevant to collaborative
188metadata and federation. The cited model assumes non-Byzantine processes; convergence alone does not
189establish authorization or arbitrary application invariants. Graph constructions and omitted
190companion proofs were not independently checked.
191
192## D18 — Git-backed decentralized collaboration
193
194**Radicle project. [Radicle Protocol Guide](https://radicle.dev/guides/protocol). Living protocol
195guide, accessed 2026-09-20.**
196
197Read: identity, delegates, signed references, collaborative objects, and concurrency. Relevant to
198portable governance; compatibility with the-valley remains untested. Also registered as S03.
199
200## D19 — Integrated project memory
201
202**Fossil project.
203[Fossil Versus Git](https://www.fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki). Living project
204documentation, accessed 2026-09-20.**
205
206Read: features, packaging, and export limitations. Relevant to operational simplicity;
207project-authored comparisons are not independent benchmarks. Also registered as S04.
208
209## D20 — Enforcement boundaries
210
211**Jerome H. Saltzer and Michael D. Schroeder. 1975.
212[The Protection of Information in Computer Systems: Basic Principles](https://web.mit.edu/Saltzer/www/publications/protection/Basic.html).
213Proceedings of the IEEE 63(9), 1278–1308. Author-hosted transcription.**
214
215Read: design principles, especially complete mediation, least privilege, and separation of
216privilege. The foundational test for whether the registry and actuator constrain real access paths.
217The paper is much broader than the selected excerpt. It does not supply a ready-made delegated-agent
218protocol or remove the need to define a trusted computing base.
219
220## D21 — Attenuated delegation
221
222**Arnar Birgisson, Joe Gibbs Politz, Úlfar Erlingsson, Ankur Taly, Michael Vrable, and Mark
223Lentczner. 2014.
224[Macaroons: Cookies with Contextual Caveats for Decentralized Authorization in the Cloud](https://theory.stanford.edu/~ataly/Papers/macaroons.pdf).
225NDSS.**
226
227Read: introductory construction and examples, caveat verification, holder-of-key discussion, and
228revocation/versioning. Highly relevant to monotonic delegation. The bearer-token default differs
229from the registry's stated credential policy. Formal security arguments, implementation details, and
230performance results were not independently audited. The recommendation concerns the semantics before
231the token format.
232
233## D22 — Workload authentication
234
235**SPIFFE project. [SPIFFE Overview](https://spiffe.io/docs/latest/spiffe-about/overview/). Living
236documentation, accessed 2026-09-20.**
237
238Read: standards overview, short-lived identity documents, and Workload API description. Identifies
239an existing interface for workload authentication across heterogeneous infrastructure. It is not an
240authorization policy for projects or delegated agent tasks. The ecosystem table was not used as a
241product-selection ranking, and no individual implementation's feature coverage was verified.
242
243## D23 — Identity issuance machinery
244
245**SPIFFE / SPIRE project.
246[SPIRE Concepts](https://spiffe.io/docs/latest/spire-about/spire-concepts/). Living documentation,
247accessed 2026-09-20.**
248
249Read: server/agent architecture, registration entries, node attestation, and workload attestation.
250Supplies a concrete comparison for the deferred certificate-issuance service. Potentially compatible
251with registry-derived policy, but that integration is a report proposal. Security depends on the
252chosen attestors, host boundary, and issuance policy; those have not been selected or tested here.
253
254## D24 — Trust succession
255
256**The Update Framework project.
257[Specification](https://theupdateframework.github.io/specification/latest/), version 1.0.36
258(2026-08-05).**
259
260Read: §§5.2–5.3, trusted roots and updates. Relevant to succession; initial trust remains separate.
261Also registered as V20.
262
263## D25 — Human authentication properties
264
265**W3C Web Authentication Working Group. 2026.
266[Web Authentication: An API for accessing Public Key Credentials, Level 3](https://www.w3.org/TR/webauthn-3/).
267W3C Recommendation, 25 August 2026.**
268
269Read: scope, single/multi-device terminology, backup eligibility, authenticator flags, and
270assertion-binding structure. Corrects overly broad equations between passkeys, non-exportability,
271presence, and approval. The standard is large; this is a targeted reading. No approval envelope,
272authenticator policy, or browser implementation was validated for the-valley.
273
274## D26 — What a clone preserves
275
276**Git project. [git-clone](https://git-scm.com/docs/git-clone). Living command documentation,
277accessed 2026-09-20.**
278
279Read: ordinary, bare, and mirror cloning options, especially custom-ref coverage. Important for
280backup acceptance tests because attestations and requests live outside ordinary branch names. This
281documents command behavior rather than the repository's actual backup completeness. Neither a
282successful clone nor a configured mirror demonstrates a verified disaster recovery.
283
284## D27 — Replication and agreement
285
286**Diego Ongaro and John Ousterhout. 2014.
287[In Search of an Understandable Consensus Algorithm (Extended Version)](https://raft.github.io/raft.pdf).
288USENIX ATC extended paper.**
289
290Read: leader election, log replication, commitment/safety discussion, and membership-change
291explanation. Provides the right scope for claims about agreed replicated state. It is not a
292prescription to add Raft to this project. The report did not re-prove safety or use the paper as
293evidence for protection against malicious administrators or backup deletion.
294
295## D28 — Actual cause and model assumptions
296
297**Joseph Y. Halpern and Judea Pearl. 2005.
298[Causes and Explanations: A Structural-Model Approach. Part I: Causes](https://www.cs.cornell.edu/home/halpern/papers/actcaus.pdf).
299British Journal for the Philosophy of Science 56(4), 843–887; author manuscript dated 24
300October 2005.**
301
302Read: abstract, introduction, and structural-model discussion, especially variable selection and
303counterfactual interpretation. Useful for distinguishing causal explanation from provenance. This is
304one influential formal account, not a claim that causation has a single settled definition. Later
305examples, proofs, and competing revisions were outside this chapter's reading.
306
307## Repository evidence
308
309The primary local evidence was the [requirements](../../design/requirements.md),
310[architecture](../../design/architecture.md), [roadmap](../../design/roadmap.md),
311[open questions](../../design/openquestions.md), and
312[self-transparency draft](../../design/self-transparency.md). The implementation reading covered
313event and identity schemas, ref replay, publication, the integrator's landing and evidence paths,
314and registry rendering and installation. The chapter links those files at the corresponding
315findings.
316
317The [signal contracts](../../.the-valley/decisions/dcr-62ecc36-signal-contracts.md),
318[identity registry](../../.the-valley/decisions/dcr-b87f6e8-identity-is-a-governed-registry.md),
319[valley repository](../../.the-valley/decisions/dcr-2965320-valley-is-its-repository.md),
320[agent provenance](../../.the-valley/ideas/ida-45178f6-agent-identity-is-provenance.md),
321[delegation](../../.the-valley/ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md),
322[actuator](../../.the-valley/ideas/ida-f1b39e8-outbound-effects-pass-through-an-actuator.md), and
323[production-DAG](../../.the-valley/ideas/ida-b48bded-production-dags-and-events.md) nodes informed
324the interpretation of intended behavior. An idea node is evidence of a proposal, not evidence that
325its mechanism exists.