gunk-dev/the-valley

02-existing-systems.md

sourcefec8fb9dfaf0main's published tip history
23.4 KiB · Rendered
1# 2. Existing systems and the alternatives they make credible
2
3Most individual mechanisms proposed by the-valley have substantial prior art. These systems are
4candidates to adopt or configure. The selection question is whether they satisfy the requirements
5and preserve the chosen guarantees when combined. The relevant comparison concerns complete
6workflows, including the work needed to connect, operate, and replace their components.
7
8This chapter compares documented mechanisms. It does not report hands-on product benchmarks. System
9documentation was consulted on 2026-09-20; the [source register](sources-systems.md) records
10versions and reading depth. Evaluations of suitability are this report's judgments.
11
12## 2.1 A map of the alternatives
13
14| Family | Systems worth understanding | Problem substantially addressed | Question still belonging to the-valley |
15| --------------------------- | ------------------------------------------------ | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
16| Self-operated forge | Forgejo, SourceHut | Hosting control and established collaboration | Does replacing the collaboration model provide enough benefit to repay integration work? |
17| Distributed collaboration | Radicle, Fossil, Tangled | Keeping collaboration independent of a single conventional forge | Which state and authority must travel with a project? |
18| Change-oriented review | Gerrit; email with b4 | Separating a proposed change from an ordinary branch | What is the stable identity of a change and its evidence? |
19| Concurrent gating | Zuul, GitHub merge queues, GitLab merge trains | Testing combined changes while maintaining merge order | Can evidence transfer reduce repeated work without weakening admission? |
20| Portable execution | Nix, Bazel, Dagger | Sharing execution definitions and reusing results | Who is authorized to assert that a particular result occurred? |
21| Version-control experiments | Jujutsu, Pijul | Recording operations and treating changes more explicitly | Which ideas can improve authoring without replacing the durable protocol? |
22| Durable reactions | Kubernetes controllers, Temporal | Reconciliation and recovery of long-running work | What remains the system of record for effects and decisions? |
23| Project memory and agents | git-bug, Beads, memory systems, agent frameworks | Persistent coordination and context | Which knowledge is authoritative, and how does it improve attained outcomes? |
24
25The last two rows receive detailed treatment in chapters [4](04-events-trust-and-durability.md) and
26[5](05-knowledge-agents-and-outcomes.md). Nix's foundations and evidence systems receive detailed
27treatment in [chapter 3](03-verification-and-integration.md).
28
29## 2.2 Sovereignty has several implementations
30
31**Forgejo is the practical baseline for operating an ordinary forge.** Its documented administration
32includes exporting files and databases and restoring repository units such as issues, pull requests,
33comments, and releases. This shows that owning the hosting and recovering collaboration data need
34not require a new source-management architecture. It also shows why a Git clone alone is a narrower
35recovery artifact than the complete service.
36[S05: Forgejo CLI](https://forgejo.org/docs/v15.0/admin/command-line/)
37
38The implication is a burden of proof for the-valley. If the immediate problem is control of hosting,
39an established forge plus tested backups deserves an actual place in the decision set. A new
40substrate becomes compelling when portability of decisions or changes to authoring and integration
41matter enough to justify its additional responsibilities.
42
43**SourceHut demonstrates that unbundling can retain familiar collaboration.** Its project hub was
44designed to organize independently composed repositories, lists, and trackers, with no fixed
45one-repository-to-one-tracker relationship. That is direct prior art for separating concerns while
46still offering a coherent project surface.
47[S06: SourceHut project hub](https://sourcehut.org/blog/2020-04-30-the-sourcehut-hub-is-live/)
48
49The lesson is architectural rather than aesthetic. A common interface does not require one
50authoritative object model, and separate components do not require an incoherent experience.
51the-valley's derived views could follow this principle. Their replacement cost should be low even
52when the daily interface is cohesive.
53
54**Fossil provides the strongest compact alternative to the assumption that minimalism means
55unbundling.** It combines version control with project facilities in a self-contained executable.
56Its own comparison describes cloning the project's public history and associated material together.
57This is a project-authored comparison, so its favorable usability judgments are not independent
58measurements. [S04: Fossil versus Git](https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki)
59
60For the-valley, Fossil asks an uncomfortable but productive question: is the unit to minimize a
61component's code, the number of deployment units, or the operator's total burden? Those objectives
62can conflict. A distributed set of small tools may need more backup procedures and upgrade
63coordination than an integrated program. The report recommends measuring operating burden instead of
64treating composition itself as evidence of simplicity.
65
66**Radicle is the closest prior art for portable, authenticated collaboration over Git.** Its
67protocol stores issues, patches, and identity changes as collaborative objects. Peers replicate
68signed data, and repository delegates determine canonical state. Its object graphs also represent
69concurrent operations. [S03: Radicle protocol](https://radicle.dev/guides/protocol)
70
71The important distinction is that replication and acceptance are separate. A valley could receive a
72proposal through such a transport while retaining its own evidence policy. Adopting a transport need
73not entail adopting every review convention. Conversely, designing another Git namespace for social
74objects deserves justification against this existing model. Peer availability, retention, and the
75meaning of canonical state still need operational evaluation; the protocol description is not a
76restore test.
77
78**Tangled is a particularly relevant adjacent design.** Its documentation separates Git hosting
79servers, called knots, from a network view, using AT Protocol for the wider collaboration system.
80[S08: Tangled overview](https://docs.tangled.org/) Its spindle component adds workflow execution
81with Nixery and microVM engines, while retaining a YAML pipeline format.
82[S09: Tangled spindles](https://docs.tangled.org/spindles)
83
84This combination makes Tangled useful for comparison even though its current workflow choices differ
85from the-valley's. Decentralized hosting, derived views, and Nix-related execution can coexist
86without requiring local evidence to authorize integration. The comparison isolates the-valley's
87additional bet: whether an evidence protocol is a better boundary than a service reporting pipeline
88status. No interoperability between these systems has been tested in this study.
89
90## 2.3 A pull request is one possible interface to a change
91
92**Gerrit already distinguishes a change from the commits that revise it.** Within a repository and
93target branch, a stable Change-Id groups patch sets across revisions. The review record can
94therefore follow a logical proposal through amended commits. Gerrit also distinguishes the author,
95uploader, reviewers, and submit strategy.
96[S10: Gerrit changes](https://gerrit-review.googlesource.com/Documentation/concept-changes.html)
97
98This matters because the-valley's tree identity and a user's concept of "this change" have different
99jobs. A tree digest identifies content. A proposal identity preserves a conversation across content
100changes. An integration attempt identifies a decision about particular content under particular
101policy. Eliminating the PR object does not eliminate these three relationships.
102
103**Gerrit's submit requirements are direct precedent for policy stored with a project.** Requirements
104are expressed in project configuration and can apply to changes to that configuration. The docs
105explicitly discuss locking out future policy changes through misconfiguration and the recovery paths
106available to administrators.
107[S11: Submit requirements](https://gerrit-review.googlesource.com/Documentation/config-submit-requirements.html)
108
109The research implication is that recursive governance is a familiar systems problem with practical
110failure modes. the-valley adds stronger ambitions for signed decisions and portable history, but it
111should learn from systems that already have to recover from rules that prevent their own amendment.
112
113**Email-based contribution separates submission from repository write permission.** b4 retrieves
114patch series by message identity, checks attestations, and assembles patches and review trailers for
115maintainers. This is a working precedent for proposals arriving through a transport the maintainer
116does not equate with authority to update the accepted branch.
117[S07: b4 patch retrieval](https://b4.docs.kernel.org/en/latest/maintainer/am-shazam.html)
118
119The relevant lesson is not that email should be the new interface. It is that transport
120independence, attribution, review history, and a maintainer's final decision have long been
121separable. A valley can borrow that separation while providing a more structured machine interface.
122
123The difficult design work moves to continuity. After a proposal is rewritten, which feedback remains
124relevant? Which approvals must be renewed? Can a reader distinguish approval of an intent from
125approval of one exact patch? A derived review page still needs explicit answers in the underlying
126records. These are semantic requirements, regardless of whether the interface resembles a PR.
127
128## 2.4 Concurrent integration is an established field
129
130The simple model "remote CI runs serially before every merge" is an inadequate baseline.
131
132**Zuul tests speculative combined states concurrently.** If changes A, B, and C are queued, it can
133test A, A+B, and A+B+C in parallel. Failure invalidates affected speculative successors. It also
134supports dependencies and shared queues across projects.
135[S12: Zuul gating](https://zuul-ci.org/docs/zuul/latest/gating.html)
136
137the-valley instead asks when a check result obtained on one state can apply to another without
138re-execution. These approaches are compatible: speculation chooses future states to examine, while
139evidence transfer decides which computation is already valid for a chosen state. A comparison should
140measure both strategies on independent edits, shared dependencies, frequent failures, and highly
141contended files. A simple serialized gate is still useful as a baseline, but it is not the strongest
142existing alternative.
143
144**GitHub's merge queue verifies temporary combined states and exposes build concurrency.** Its
145documentation explains how merge-group events drive checks and how queue reordering can trigger new
146builds.
147[S13: GitHub merge queues](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue)
148**GitLab's merge trains likewise run pipelines for queued combinations and remove failed changes
149from the train.** [S14: GitLab merge trains](https://docs.gitlab.com/ci/pipelines/merge_trains/)
150
151Those mechanisms are existing solutions to concurrent checking with ordered integration. The next
152question is whether an available configuration meets the project's evidence-reuse and portability
153requirements. A custom transfer rule needs a demonstrated gap in those solutions. A second executor
154and integrator agreeing on the same record would test the portability requirement, regardless of
155which project supplied the rule.
156
157There is also earlier research on detecting conflicts before submission. Brun, Holmes, Ernst, and
158Notkin's Crystal work distinguishes textual conflicts from build and test conflicts. It explores
159speculative version-control operations to warn collaborators early.
160[S20: Proactive Detection of Collaboration Conflicts](https://people.cs.umass.edu/~brun/pubs/pubs/Brun11fse.pdf)
161
162The implication for agents is to investigate coordination before the integration boundary as well as
163at it. A warning that another worker is changing the same abstraction can prevent wasted work even
164when a merge queue would eventually catch an interaction covered by its required checks. Conversely,
165a warning based only on common file paths can be noisy. The useful signal is a predicted interaction
166with consequences for the ongoing task.
167
168## 2.5 Portable execution does not settle evidence authority
169
170**Dagger addresses the local/CI runtime split directly.** Its documented model uses code and a
171portable execution DAG with caching, usable before or after pushing a change.
172[S15: Dagger introduction](https://docs.dagger.io/getting-started/introduction/)
173
174This makes it a meaningful baseline for the complaint about a separate verification platform. Its
175execution model alone does not settle whether a different party should accept a result as sufficient
176evidence for integration. That authorization question remains available for a portable protocol,
177regardless of the executor.
178
179**Bazel makes two useful structures explicit: an action cache and a store addressed by output
180content.** The action cache associates an action identity with result metadata; the content store
181holds the bytes. [S16: Bazel remote caching](https://bazel.build/remote/caching) Its hermeticity
182guidance also identifies host tools, timestamps, source-tree mutation, and other ways an ostensibly
183repeatable build can depend on undeclared conditions.
184[S17: Bazel hermeticity](https://bazel.build/basics/hermeticity)
185
186For the-valley, an evidence store needs more than artifact identity. It needs the claim, the
187computation or observation supporting it, and the policy that accepts the claimant. A useful cache
188hit and an authorized integration decision can share hashes without being the same fact. Chapter 3
189examines how far Nix's dependency model can support that distinction.
190
191A backend portability experiment should therefore implement one meaningful check with two executors.
192The point is not to compare their syntax. It is to discover whether the supposed common contract
193contains assumptions that only one backend can satisfy. Identical filenames in two schemas are weak
194evidence of portability; independently accepted conformance records are stronger evidence.
195
196The place where a result becomes available also differs from the place where it was executed. A
197local Nix invocation may obtain an output from a configured binary cache. The evidence needs to
198distinguish executing, importing, observing, and endorsing a result.
199[Chapter 3](03-verification-and-integration.md) examines these trust assumptions and the
200independence required for a witness rebuild.
201
202## 2.6 Changes, operations, and content are different identities
203
204**Jujutsu records repository operations separately from source history.** An operation records a
205view of refs, heads, and workspaces, with parent operations. Its documented recovery commands can
206inspect or restore earlier repository views, including situations involving concurrent operations.
207[S18: Jujutsu operation log](https://docs.jj-vcs.dev/latest/operation-log/)
208
209That is valuable conceptual precedent for the-valley's distinction between current refs and the
210history of what happened to them. An authoring tool's operation log does not automatically become an
211authoritative shared audit log. Retention, replication, signatures, and acceptance of events still
212need to be specified. It does show that source commits need not carry every kind of history.
213
214**Pijul explores version control in terms of changes and their dependencies.** Its manual describes
215commutation of independent changes and a graph representation that retains conflict information.
216[S19: Pijul theory](https://pijul.org/manual/theory)
217
218The narrow lesson is to keep change identity conceptually separate from a particular base and
219snapshot. The stronger lesson must be resisted: algebraic properties of text changes do not
220establish that their combined program satisfies a requirement. Two textually independent changes can
221alter a shared behavioral assumption. the-valley still needs semantic checks and a policy for their
222reuse.
223
224These tools are worth studying without making replacement of Git a prerequisite. The current project
225deliberately preserves native Git workflows. A better authoring client can remain optional while the
226evidence protocol defines the acceptance boundary.
227
228## 2.7 Human review does more than discover defects
229
230The empirical case for review is broader than a pass/fail gate. Bacchelli and Bird's study of modern
231code review describes knowledge transfer, awareness, alternative solutions, and understanding of
232changes alongside defect finding. It is evidence about the studied development setting, not a proof
233that all projects need the same review practice.
234[S22: Expectations, Outcomes, and Challenges of Modern Code Review](https://www.microsoft.com/en-us/research/publication/expectations-outcomes-and-challenges-of-modern-code-review/)
235
236The implication is that removing routine human review creates obligations beyond replacing its
237correctness checks. A system must explain how important design changes become shared understanding.
238For one operator and many short-lived agents, the knowledge graph may perform part of that function.
239For a small team, selected discussions and summaries may still matter even when no human signature
240is required before integration.
241
242The report's recommendation is to distinguish approval, learning, and attention. Approval authorizes
243an action. Learning updates project understanding. Attention directs a limited human resource. A
244single review interaction can serve all three, but evaluating only approval latency would hide
245losses in the other two.
246
247## 2.8 Recent work that narrows the agent-specific questions
248
249Two recent preprints are particularly close to the-valley's problem. They merit attention, with less
250evidentiary weight than mature mechanisms or replicated empirical findings.
251
252**BulkPR-Bench** studies selection and ordering of interacting proposed changes. It distinguishes
253partial delivery scores from safe completion of a whole queue. Its constructed candidate pools and
254fixed harness limit generalization to naturally occurring work. This report treats it as a 2026
255preprint; a future conference label in its manuscript is not evidence of an already completed
256peer-reviewed publication. [S21: Xiong et al., version 1](https://arxiv.org/html/2608.02685v1)
257
258**AI Agent Pull Requests on GitHub** studies temporal overlap and replayed textual merges in an
259agent PR dataset. Its limitations explicitly distinguish textual conflict from semantic conflict and
260observed conflicts from unmeasured costs such as maintainer time. Its observation period predates
261the publication and should not be read as a measurement of every current agent workflow.
262[S23: Xu, Subramanian, and Karthik, version 2](https://arxiv.org/html/2607.04697v2)
263
264Together they suggest a useful experimental split. One experiment should measure contention and
265evidence invalidation given known changes. Another should measure whether agents discover the
266relationships that make those changes safe to combine. Better scheduling cannot compensate for
267missing relationships, while a perfect relationship graph cannot by itself implement safe admission.
268
269## 2.9 What modularity should mean here
270
271Parnas's argument for information hiding concerns the decisions a module keeps from other modules.
272It does not equate modularity with dividing a process into many sequential steps.
273[S01: On the Criteria To Be Used in Decomposing Systems into Modules](https://www.cs.lafayette.edu/~gexia/cs301/resources/parnas.html)
274
275Applied to the-valley, a useful boundary lets the system change its build executor, bus, or review
276interface without changing what a historical acceptance record means. A poor boundary merely moves
277the same shared assumptions into several processes. This is the report's application of Parnas's
278criterion, not a claim that the paper evaluated developer platforms.
279
280Saltzer, Reed, and Clark's end-to-end argument supplies a second discipline. A lower layer's success
281cannot necessarily establish the application's desired outcome. Their examples include delivery and
282duplicate suppression.
283[S02: End-to-End Arguments in System Design](https://web.mit.edu/saltzer/www/publications/endtoend/endtoend.pdf)
284
285For this project, the inference is straightforward. Delivery to the event bus does not establish
286that a deployment occurred. A verified signature does not establish that a requested capability
287works. The layer that can observe the required result must contribute to the evidence. Lower-level
288guarantees remain useful, but their scope needs to remain visible.
289
290## 2.10 Credible architectural choices
291
292The following are comparison configurations, not recommendations to migrate immediately.
293
294| Configuration | Why it is credible | Principal sacrifice | What an experiment should compare |
295| ---------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------- |
296| Conventional forge, Nix checks, tested backups | Addresses hosting and execution with few new semantics | Accepted decisions remain tied to forge records unless exported | Operator time, recovery completeness, contribution latency |
297| Gerrit or ordinary review plus Zuul | Strong comparison for policy and concurrent integration | More infrastructure and established review conventions | Throughput, retesting cost, failures under contention |
298| Portable collaboration plus valley evidence | Reuses transport and social records while testing the evidence boundary | Interoperability and dual-model complexity | Can another host independently reconstruct an acceptance? |
299| Git plus the current narrow valley components | Preserves present workflow and concentrates new code on evidence | Valley must own recovery and evidence semantics | Equal-trust comparison with the first two configurations |
300| Outcome engine layered over any of the above | Separates knowledge and planning research from hosting choices | Requires a stable boundary between proposals and authorized actions | Verified outcomes, revision cost, understanding, human attention |
301
302The report favors the fourth configuration as the immediate experiment, with the first two as
303serious baselines. The fifth should be evaluated as an additional layer. That position preserves the
304unusual parts of the-valley's ambition while giving each of them a chance to fail independently.