gunk-dev/the-valley

sources-verification.md

sourcefec8fb9dfaf0main's published tip history
17.9 KiB · Rendered
1# Annotated sources: verification and integration
2
3These sources support
4[Verification that can travel with a change](./03-verification-and-integration.md). IDs are local to
5this report. All external resources were accessed on **2026-09-20**. Publication dates identify
6papers; documentation entries are living documents unless a version is specified. “Read” records the
7portions examined, not a claim that every cited work was read cover to cover. The annotations
8distinguish a source's contribution from this report's assessment of its relevance.
9
10The search followed three connected lines: sound reuse of computation, authentication of claims
11about computation, and validation at an integration boundary. Academic papers supplied models and
12limits; official documentation supplied operational contracts. No citation count, product marketing
13claim, or search-result summary alone was treated as proof of a system's security.
14
15## V01 — Nix's deployment model
16
17[The Purely Functional Software Deployment Model](https://edolstra.github.io/pubs/phd-thesis.pdf) —
18Eelco Dolstra, PhD thesis, Utrecht University, 2006.
19
20**Read:** contents and targeted passages on trust, content addressing, and purity, especially
21§6.2–6.3 and §7.1.3–7.1.5. **Contribution:** makes functional deployment and dependency identity the
22basis for reliable reuse. **Limitation:** a foundational model and implementation account, not proof
23of every current Nix build's determinism. **Relevance:** the-valley's equality argument should
24retain the purity assumptions that accompany the original model.
25
26## V02 — Build-system decomposition
27
28[Build Systems à la Carte](https://www.microsoft.com/en-us/research/uploads/prod/2018/03/build-systems.pdf)
29— Andrey Mokhov, Neil Mitchell, and Simon Peyton Jones, _Proceedings of the ACM on Programming
30Languages_, ICFP, 2018.
31
32**Read:** task and build abstractions, dynamic dependencies, and scheduler/rebuilder sections,
33including concrete systems. **Contribution:** separates execution order from deciding whether
34results need replacement. **Limitation:** its computational model is not an adversarial attestation
35protocol. **Relevance:** supplies a clearer decomposition for integration scheduling, evidence
36validation, and caching.
37
38## V03 — Dynamic dependency tracking
39
40[An Experimental Analysis of Self-Adjusting Computation](https://www.philinelabs.net/~ktangwon/papers/toplas09.pdf)
41— Umut A. Acar, Guy E. Blelloch, Matthias Blume, Robert Harper, and Kanat Tangwongsan, _ACM TOPLAS_
4232(1), article 3, 2009.
43
44**Read:** abstract, introduction, and overview of dynamic dependence graphs and change propagation.
45**Contribution:** combines dependency tracking and memoization to reuse parts of changing
46computations. **Limitation:** selected computations and an instrumented model; no arbitrary-shell
47completeness guarantee. **Relevance:** exposes the tradeoff between dependency precision,
48instrumentation cost, and reuse.
49
50## V04 — Nix's actual sandbox and cache controls
51
52[Nix 2.28.8 Reference Manual: nix.conf](https://nix.dev/manual/nix/2.28/command-ref/conf-file) — Nix
53contributors, versioned documentation.
54
55**Read:** configuration precedence, `require-sigs`, `sandbox`, `sandbox-fallback`, and
56`sandbox-paths`. **Contribution:** specifies concrete isolation and substitution controls, including
57exceptions. **Limitation:** documentation does not establish how a particular host is configured or
58whether it is trustworthy. **Relevance:** runner identity must include or constrain the execution
59boundary; invoking Nix alone does not attest those settings.
60
61## V05 — Evaluation can trigger builds
62
63[Nix 2.28.8 Reference Manual: Import From Derivation](https://nix.dev/manual/nix/2.28/language/import-from-derivation)
64— Nix contributors, versioned documentation.
65
66**Read:** complete explanatory text, example, and diagrams. **Contribution:** describes evaluation
67pausing to realize a store object and the switch that disables this. **Limitation:** establishes a
68possible behavior, not that the-valley's current checks exercise it. **Relevance:** the integrator's
69“builds nothing” contract needs an enforced runner restriction and a regression case.
70
71## V06 — What a Nix content address means
72
73[Nix 2.28.8 Reference Manual: Content-Addressing Store Objects](https://nix.dev/manual/nix/2.28/store/store-object/content-address)
74— Nix contributors, versioned documentation.
75
76**Read:** complete page, including references, self-references, and addressing methods.
77**Contribution:** specifies content identity and distinguishes content-addressed from
78input-addressed objects. **Limitation:** a store-object identity is not an execution proof.
79**Relevance:** prevents overinterpreting a digest of derivation reference names as a measurement of
80all runtime input bytes.
81
82## V07 — Practical hermeticity
83
84[Hermeticity](https://bazel.build/basics/hermeticity) — Bazel contributors, living documentation.
85
86**Read:** definition, benefits, non-hermeticity examples, and troubleshooting. **Contribution:**
87identifies concrete environmental dependencies that undermine reuse. **Limitation:** engineering
88guidance, not a formal guarantee for every Bazel action. **Relevance:** a useful checklist for
89constructing adversarial dependency tests, especially around host tools, timestamps, and source-tree
90writes.
91
92## V08 — Action results versus stored bytes
93
94[Remote Caching](https://bazel.build/remote/caching) — Bazel contributors, living documentation.
95
96**Read:** overview of actions and cache storage, plus cache backend and access-control passages.
97**Contribution:** separates the action-result mapping from content-addressed output storage.
98**Limitation:** shared caching relies on suitable reproducibility and access assumptions.
99**Relevance:** a digest can authenticate output bytes while leaving the claimed connection to a
100computation dependent on another authority.
101
102## V09 — Reproducibility's scope
103
104[Definitions](https://reproducible-builds.org/docs/definition/) — Reproducible Builds project,
105living documentation.
106
107**Read:** full definition and explanations. **Contribution:** defines reproducibility in terms of
108specified source, environment, instructions, and artifacts. **Limitation:** the definition itself
109provides neither a measurement nor a guarantee. **Relevance:** separates artifact agreement from
110incidental logs, execution truth, and functional correctness.
111
112## V10 — Historical Nix rebuildability
113
114[Reproducibility of Build Environments through Space and Time](https://arxiv.org/html/2402.00424v1)
115— Julien Malka, Stefano Zacchiroli, and Théo Zimmermann, ICSE-NIER, 2024; DOI
11610.1145/3639476.3639767.
117
118**Read:** abstract, introduction, definitions, and targeted methods/results/failure passages.
119**Contribution:** measures historical environment reconstruction and successful rebuilding.
120**Limitation:** reuses cached dependencies, leaves bit-for-bit artifact reproducibility for later
121work, and gives preliminary failure classifications. **Relevance:** supports practical optimism
122about functional deployment without establishing full source-closure rebuildability or deterministic
123outputs.
124
125## V11 — Optimistic validation
126
127[On Optimistic Methods for Concurrency Control](https://www.eecs.harvard.edu/~htk/publication/1981-tods-kung-robinson.pdf)
128— H. T. Kung and John T. Robinson, _ACM TODS_ 6(2), 1981; DOI 10.1145/319566.319567.
129
130**Read:** read/write phases, serial-equivalence validation, and passages on moving work outside the
131critical section. **Contribution:** validates speculative transactions before publishing their
132writes. **Limitation:** assumes transactions preserve the specified integrity conditions.
133**Relevance:** provides the integration analogy and its often omitted precondition: checks must
134actually establish the properties being preserved.
135
136## V12 — Conflicts beyond text
137
138[Proactive Detection of Collaboration Conflicts](https://people.cs.umass.edu/~brun/pubs/pubs/Brun11fse.pdf)
139— Yuriy Brun, Reid Holmes, Michael D. Ernst, and David Notkin, ESEC/FSE, 2011.
140
141**Read:** abstract and introductory study/Crystal discussion; dataset not reanalyzed. Contribution
142and limitations: [S20](sources-systems.md#s20--proactive-collaboration-conflicts).
143
144## V13 — Speculative project gating
145
146[Project Gating](https://zuul-ci.org/docs/zuul/latest/gating.html) — Zuul contributors, living
147documentation.
148
149**Read:** speculative testing, failed predecessors, windows, and cross-project dependencies.
150Contribution and limitations: [S12](sources-systems.md#s12--zuul).
151
152## V14 — A hosted merge-queue baseline
153
154[Managing a merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue)
155— GitHub, living documentation.
156
157**Read:** overview, required-check behavior, and operation description. **Contribution:** validates
158candidates with the target branch and preceding queued work. **Limitation:** documented product
159behavior is not a workload-independent performance result. **Relevance:** comparisons with hosted CI
160should include contemporary merge queues rather than assume every forge serially reruns isolated
161branches.
162
163## V15 — End-to-end workflow integrity
164
165[in-toto: Providing farm-to-table guarantees for bits and bytes](https://www.usenix.org/system/files/sec19-torres-arias.pdf)
166— Santiago Torres-Arias, Hammad Afzali, Trishank Karthik Kuppusamy, Reza Curtmola, and Justin
167Cappos, USENIX Security, 2019.
168
169**Read:** introduction, definitions, threat model, security goals, and project-owner-compromise
170passage. **Contribution:** binds authorized supply-chain steps and artifact flows through signed
171metadata. **Limitation:** compromised policy authority or unsuitable authorized checks remain
172fundamental limits. **Relevance:** close prior art for composing evidence across independently
173operated tools.
174
175## V16 — Typed claims about immutable subjects
176
177[Statement layer specification, v1](https://in-toto.io/Statement/v1) — in-toto contributors, living
178specification.
179
180**Read:** schema and subject/predicate field semantics. **Contribution:** binds a typed predicate to
181artifact digests. **Limitation:** predicate meaning and acceptance policy remain external to the
182generic statement layer. **Relevance:** the pure/effectful distinction can be expressed
183interoperably rather than treated as an objection to typed supply-chain attestations.
184
185## V17 — SLSA's actual requirements
186
187[SLSA v1.2: Build requirements](https://slsa.dev/spec/v1.2/build-requirements) — SLSA
188community/OpenSSF, approved versioned specification.
189
190**Read:** requirements table, provenance generation, and isolation. **Contribution:** defines
191concrete Build-level obligations. **Limitation:** conformity requires deployment assessment.
192**Relevance:** local signatures and sampling do not justify the repository's approximate Level 3
193claim.
194
195## V18 — Signing without confusing payload types
196
197[DSSE Protocol](https://github.com/secure-systems-lab/dsse/blob/master/protocol.md) — DSSE
198contributors, living specification.
199
200**Read:** pre-authentication encoding, signing, verification, and multi-signature procedures.
201**Contribution:** binds payload type and exact payload bytes in a signature envelope.
202**Limitation:** says nothing about the truth of the payload. **Relevance:** clarifies what canonical
203serialization solves and what an interoperability adapter must preserve.
204
205## V19 — Identity and transparency services
206
207[Security Model](https://docs.sigstore.dev/about/security/) — Sigstore contributors, living
208documentation.
209
210**Read:** identity, trust-root, Fulcio, certificate-transparency, and short-lived-certificate
211explanations. **Contribution:** connects identity-based signing with an auditable history.
212**Limitation:** identity and transparency do not establish computation correctness; monitoring
213remains necessary. **Relevance:** an optional signing ecosystem, with trust and operational choices
214separate from the-valley's evidence semantics.
215
216## V20 — Updating trust safely
217
218[The Update Framework Specification](https://theupdateframework.github.io/specification/latest/) —
219TUF contributors, living specification.
220
221**Read:** roles and delegation, client update/expiration passages, and key-rotation procedures.
222**Contribution:** addresses secure delivery of trusted metadata amid replay, staleness, and partial
223compromise. **Limitation:** cannot make an authorized artifact correct or recover automatically from
224every root compromise. **Relevance:** authoritative revocation distribution needs more than
225appending a negative statement to a log.
226
227## V21 — Transparency's explicit limits
228
229[RFC 9162: Certificate Transparency Version 2.0](https://www.rfc-editor.org/rfc/rfc9162.html) — Ben
230Laurie, Eran Messeri, and Rob Stradling, IETF Experimental RFC, 2021.
231
232**Read:** overview and §11 security considerations, especially detection and misbehaving logs.
233**Contribution:** distinguishes logged evidence, monitoring, and inconsistent log views.
234**Limitation:** a certificate protocol; direct reuse requires adaptation, and some gossip mechanisms
235are outside its scope. **Relevance:** inclusion is not correctness, completeness of observation, or
236agreement on one history.
237
238## V22 — A transparency implementation component
239
240[Tessera](https://github.com/transparency-dev/tessera) — transparency.dev contributors, living
241repository documentation.
242
243**Read:** README lifecycle sections on sequencing, integration, and checkpoint publication.
244**Contribution:** supplies a tile-based log library with distinct durability/publication stages and
245witness-policy support. **Limitation:** does not choose application acceptance or outage policy.
246**Relevance:** the-valley must specify which completed stage authorizes an action and how incomplete
247publication is recovered.
248
249## V23 — Evidence, appraisal, and freshness
250
251[RFC 9334: Remote ATtestation procedureS (RATS) Architecture](https://www.rfc-editor.org/rfc/rfc9334.html)
252— Henk Birkholz, Dave Thaler, Michael Richardson, Ned Smith, and Wei Pan, IETF Informational
253RFC, 2023.
254
255**Read:** role definitions, conceptual messages, trust relationships, and freshness passages.
256**Contribution:** separates evidence production from appraisal and reliance. **Limitation:**
257architecture rather than a universal hardware or protocol guarantee. **Relevance:** clarifies the
258additional boundary needed for measured execution and the policy nature of freshness.
259
260## V24 — Common-mode toolchain compromise
261
262[Reflections on Trusting Trust](https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_ReflectionsonTrustingTrust.pdf)
263— Ken Thompson, _Communications of the ACM_ 27(8), 1984; DOI 10.1145/358198.358210.
264
265**Read:** compiler-backdoor construction and concluding discussion. **Contribution:** demonstrates a
266compromise that reproduces through a compiler without remaining in inspected source. **Limitation:**
267a construction illustrating possibility, not a prevalence measurement. **Relevance:** independent
268witnesses sharing one compromised toolchain do not provide independence against that compromise.
269
270## V25 — The meaning of a passing test
271
272[The Oracle Problem in Software Testing: A Survey](https://discovery.ucl.ac.uk/id/eprint/1471263/1/06963470.pdf)
273— Earl T. Barr, Mark Harman, Phil McMinn, Muzammil Shahbaz, and Shin Yoo, _IEEE Transactions on
274Software Engineering_ 41(5), 2015.
275
276**Read:** abstract, introduction, and metamorphic-relations discussion. **Contribution:** organizes
277ways of deciding whether observed behavior is correct. **Limitation:** does not supply an automatic
278universal oracle. **Relevance:** reliable evidence of execution must be distinguished from adequate
279evidence of requirement satisfaction.
280
281## V26 — Nondeterministic tests
282
283[An Empirical Analysis of Flaky Tests](https://mir.cs.illinois.edu/marinov/publications/LuoETAL14FlakyTestsAnalysis.pdf)
284— Qingzhou Luo, Farah Hariri, Lamyaa Eloussi, and Darko Marinov, FSE, 2014.
285
286**Read:** abstract and introduction describing the study and failure implications. **Contribution:**
287examines 201 likely flaky-test-fixing commits across 51 projects. **Limitation:** historical sample;
288this report does not extrapolate its prevalence to the-valley. **Relevance:** repeated-run
289disagreement can expose unstable tests rather than dishonest signers, requiring diagnosis before
290reputation changes.
291
292## V27 — Safe selection is relative to an existing test suite
293
294[A Safe, Efficient Regression Test Selection Technique](https://www.cs.purdue.edu/homes/xyzhang/spring07/Papers/p173-rothermel.pdf)
295— Gregg Rothermel and Mary Jean Harrold, _ACM TOSEM_ 6(2), 1997; DOI 10.1145/248233.248262.
296
297**Read:** abstract and analytical evaluation of safety, precision, efficiency, and generality.
298**Contribution:** provides conditional safety guarantees for selecting regression tests.
299**Limitation:** controlled-regression assumptions and the original suite's coverage remain
300essential. **Relevance:** evidence reuse needs a no-missed-retest argument; it cannot inherit a
301no-missed-bug guarantee.
302
303## Local implementation evidence and unresolved work
304
305The chapter inspected [attestation execution](../../attest/run.go),
306[Nix invocation and dependency collection](../../attest/check.go),
307[digest construction](../../attest/digest.go), [signature verification](../../attest/verify.go),
308[evidence gathering](../../integrator/evidence.go),
309[policy composition](../../integrator/policy.go),
310[verdict rules](../../integrator/verdict/verdict.go), [ref publication](../../integrator/refs.go),
311[transfer statements](../../integrator/transfer.go), and the
312[attestation schema](../../schema/attestation.cue). The reading was static code analysis, not
313penetration testing or a formal verification of those programs.
314
315The implementation findings are deliberately narrower than a complete audit. Same-tree computation
316binding, effectful-command binding, future timestamps, and the landing/evidence crash boundary are
317proposed regression or fault-injection cases. No exploit success rate or deployment-wide exposure is
318claimed. The source set establishes strong precedents but does not establish novelty of the-valley's
319particular combination; that would require a more systematic survey of research prototypes and
320industrial integration systems.