| 1 | # 2. Existing systems and the alternatives they make credible |
| 2 | |
| 3 | Most individual mechanisms proposed by the-valley have substantial prior art. These systems are |
| 4 | candidates to adopt or configure. The selection question is whether they satisfy the requirements |
| 5 | and preserve the chosen guarantees when combined. The relevant comparison concerns complete |
| 6 | workflows, including the work needed to connect, operate, and replace their components. |
| 7 | |
| 8 | This chapter compares documented mechanisms. It does not report hands-on product benchmarks. System |
| 9 | documentation was consulted on 2026-09-20; the [source register](sources-systems.md) records |
| 10 | versions 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 | |
| 25 | The 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 |
| 27 | treatment 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 |
| 32 | includes exporting files and databases and restoring repository units such as issues, pull requests, |
| 33 | comments, and releases. This shows that owning the hosting and recovering collaboration data need |
| 34 | not require a new source-management architecture. It also shows why a Git clone alone is a narrower |
| 35 | recovery artifact than the complete service. |
| 36 | [S05: Forgejo CLI](https://forgejo.org/docs/v15.0/admin/command-line/) |
| 37 | |
| 38 | The implication is a burden of proof for the-valley. If the immediate problem is control of hosting, |
| 39 | an established forge plus tested backups deserves an actual place in the decision set. A new |
| 40 | substrate becomes compelling when portability of decisions or changes to authoring and integration |
| 41 | matter enough to justify its additional responsibilities. |
| 42 | |
| 43 | **SourceHut demonstrates that unbundling can retain familiar collaboration.** Its project hub was |
| 44 | designed to organize independently composed repositories, lists, and trackers, with no fixed |
| 45 | one-repository-to-one-tracker relationship. That is direct prior art for separating concerns while |
| 46 | still offering a coherent project surface. |
| 47 | [S06: SourceHut project hub](https://sourcehut.org/blog/2020-04-30-the-sourcehut-hub-is-live/) |
| 48 | |
| 49 | The lesson is architectural rather than aesthetic. A common interface does not require one |
| 50 | authoritative object model, and separate components do not require an incoherent experience. |
| 51 | the-valley's derived views could follow this principle. Their replacement cost should be low even |
| 52 | when the daily interface is cohesive. |
| 53 | |
| 54 | **Fossil provides the strongest compact alternative to the assumption that minimalism means |
| 55 | unbundling.** It combines version control with project facilities in a self-contained executable. |
| 56 | Its own comparison describes cloning the project's public history and associated material together. |
| 57 | This is a project-authored comparison, so its favorable usability judgments are not independent |
| 58 | measurements. [S04: Fossil versus Git](https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki) |
| 59 | |
| 60 | For the-valley, Fossil asks an uncomfortable but productive question: is the unit to minimize a |
| 61 | component's code, the number of deployment units, or the operator's total burden? Those objectives |
| 62 | can conflict. A distributed set of small tools may need more backup procedures and upgrade |
| 63 | coordination than an integrated program. The report recommends measuring operating burden instead of |
| 64 | treating composition itself as evidence of simplicity. |
| 65 | |
| 66 | **Radicle is the closest prior art for portable, authenticated collaboration over Git.** Its |
| 67 | protocol stores issues, patches, and identity changes as collaborative objects. Peers replicate |
| 68 | signed data, and repository delegates determine canonical state. Its object graphs also represent |
| 69 | concurrent operations. [S03: Radicle protocol](https://radicle.dev/guides/protocol) |
| 70 | |
| 71 | The important distinction is that replication and acceptance are separate. A valley could receive a |
| 72 | proposal through such a transport while retaining its own evidence policy. Adopting a transport need |
| 73 | not entail adopting every review convention. Conversely, designing another Git namespace for social |
| 74 | objects deserves justification against this existing model. Peer availability, retention, and the |
| 75 | meaning of canonical state still need operational evaluation; the protocol description is not a |
| 76 | restore test. |
| 77 | |
| 78 | **Tangled is a particularly relevant adjacent design.** Its documentation separates Git hosting |
| 79 | servers, 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 |
| 81 | with Nixery and microVM engines, while retaining a YAML pipeline format. |
| 82 | [S09: Tangled spindles](https://docs.tangled.org/spindles) |
| 83 | |
| 84 | This combination makes Tangled useful for comparison even though its current workflow choices differ |
| 85 | from the-valley's. Decentralized hosting, derived views, and Nix-related execution can coexist |
| 86 | without requiring local evidence to authorize integration. The comparison isolates the-valley's |
| 87 | additional bet: whether an evidence protocol is a better boundary than a service reporting pipeline |
| 88 | status. 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 |
| 93 | target branch, a stable Change-Id groups patch sets across revisions. The review record can |
| 94 | therefore follow a logical proposal through amended commits. Gerrit also distinguishes the author, |
| 95 | uploader, reviewers, and submit strategy. |
| 96 | [S10: Gerrit changes](https://gerrit-review.googlesource.com/Documentation/concept-changes.html) |
| 97 | |
| 98 | This matters because the-valley's tree identity and a user's concept of "this change" have different |
| 99 | jobs. A tree digest identifies content. A proposal identity preserves a conversation across content |
| 100 | changes. An integration attempt identifies a decision about particular content under particular |
| 101 | policy. 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 |
| 104 | are expressed in project configuration and can apply to changes to that configuration. The docs |
| 105 | explicitly discuss locking out future policy changes through misconfiguration and the recovery paths |
| 106 | available to administrators. |
| 107 | [S11: Submit requirements](https://gerrit-review.googlesource.com/Documentation/config-submit-requirements.html) |
| 108 | |
| 109 | The research implication is that recursive governance is a familiar systems problem with practical |
| 110 | failure modes. the-valley adds stronger ambitions for signed decisions and portable history, but it |
| 111 | should 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 |
| 114 | patch series by message identity, checks attestations, and assembles patches and review trailers for |
| 115 | maintainers. This is a working precedent for proposals arriving through a transport the maintainer |
| 116 | does 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 | |
| 119 | The relevant lesson is not that email should be the new interface. It is that transport |
| 120 | independence, attribution, review history, and a maintainer's final decision have long been |
| 121 | separable. A valley can borrow that separation while providing a more structured machine interface. |
| 122 | |
| 123 | The difficult design work moves to continuity. After a proposal is rewritten, which feedback remains |
| 124 | relevant? Which approvals must be renewed? Can a reader distinguish approval of an intent from |
| 125 | approval of one exact patch? A derived review page still needs explicit answers in the underlying |
| 126 | records. These are semantic requirements, regardless of whether the interface resembles a PR. |
| 127 | |
| 128 | ## 2.4 Concurrent integration is an established field |
| 129 | |
| 130 | The 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 |
| 133 | test A, A+B, and A+B+C in parallel. Failure invalidates affected speculative successors. It also |
| 134 | supports dependencies and shared queues across projects. |
| 135 | [S12: Zuul gating](https://zuul-ci.org/docs/zuul/latest/gating.html) |
| 136 | |
| 137 | the-valley instead asks when a check result obtained on one state can apply to another without |
| 138 | re-execution. These approaches are compatible: speculation chooses future states to examine, while |
| 139 | evidence transfer decides which computation is already valid for a chosen state. A comparison should |
| 140 | measure both strategies on independent edits, shared dependencies, frequent failures, and highly |
| 141 | contended files. A simple serialized gate is still useful as a baseline, but it is not the strongest |
| 142 | existing alternative. |
| 143 | |
| 144 | **GitHub's merge queue verifies temporary combined states and exposes build concurrency.** Its |
| 145 | documentation explains how merge-group events drive checks and how queue reordering can trigger new |
| 146 | builds. |
| 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 |
| 149 | from the train.** [S14: GitLab merge trains](https://docs.gitlab.com/ci/pipelines/merge_trains/) |
| 150 | |
| 151 | Those mechanisms are existing solutions to concurrent checking with ordered integration. The next |
| 152 | question is whether an available configuration meets the project's evidence-reuse and portability |
| 153 | requirements. A custom transfer rule needs a demonstrated gap in those solutions. A second executor |
| 154 | and integrator agreeing on the same record would test the portability requirement, regardless of |
| 155 | which project supplied the rule. |
| 156 | |
| 157 | There is also earlier research on detecting conflicts before submission. Brun, Holmes, Ernst, and |
| 158 | Notkin's Crystal work distinguishes textual conflicts from build and test conflicts. It explores |
| 159 | speculative 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 | |
| 162 | The implication for agents is to investigate coordination before the integration boundary as well as |
| 163 | at it. A warning that another worker is changing the same abstraction can prevent wasted work even |
| 164 | when a merge queue would eventually catch an interaction covered by its required checks. Conversely, |
| 165 | a warning based only on common file paths can be noisy. The useful signal is a predicted interaction |
| 166 | with 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 |
| 171 | portable execution DAG with caching, usable before or after pushing a change. |
| 172 | [S15: Dagger introduction](https://docs.dagger.io/getting-started/introduction/) |
| 173 | |
| 174 | This makes it a meaningful baseline for the complaint about a separate verification platform. Its |
| 175 | execution model alone does not settle whether a different party should accept a result as sufficient |
| 176 | evidence for integration. That authorization question remains available for a portable protocol, |
| 177 | regardless of the executor. |
| 178 | |
| 179 | **Bazel makes two useful structures explicit: an action cache and a store addressed by output |
| 180 | content.** The action cache associates an action identity with result metadata; the content store |
| 181 | holds the bytes. [S16: Bazel remote caching](https://bazel.build/remote/caching) Its hermeticity |
| 182 | guidance also identifies host tools, timestamps, source-tree mutation, and other ways an ostensibly |
| 183 | repeatable build can depend on undeclared conditions. |
| 184 | [S17: Bazel hermeticity](https://bazel.build/basics/hermeticity) |
| 185 | |
| 186 | For the-valley, an evidence store needs more than artifact identity. It needs the claim, the |
| 187 | computation or observation supporting it, and the policy that accepts the claimant. A useful cache |
| 188 | hit and an authorized integration decision can share hashes without being the same fact. Chapter 3 |
| 189 | examines how far Nix's dependency model can support that distinction. |
| 190 | |
| 191 | A backend portability experiment should therefore implement one meaningful check with two executors. |
| 192 | The point is not to compare their syntax. It is to discover whether the supposed common contract |
| 193 | contains assumptions that only one backend can satisfy. Identical filenames in two schemas are weak |
| 194 | evidence of portability; independently accepted conformance records are stronger evidence. |
| 195 | |
| 196 | The place where a result becomes available also differs from the place where it was executed. A |
| 197 | local Nix invocation may obtain an output from a configured binary cache. The evidence needs to |
| 198 | distinguish executing, importing, observing, and endorsing a result. |
| 199 | [Chapter 3](03-verification-and-integration.md) examines these trust assumptions and the |
| 200 | independence 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 |
| 205 | view of refs, heads, and workspaces, with parent operations. Its documented recovery commands can |
| 206 | inspect or restore earlier repository views, including situations involving concurrent operations. |
| 207 | [S18: Jujutsu operation log](https://docs.jj-vcs.dev/latest/operation-log/) |
| 208 | |
| 209 | That is valuable conceptual precedent for the-valley's distinction between current refs and the |
| 210 | history of what happened to them. An authoring tool's operation log does not automatically become an |
| 211 | authoritative shared audit log. Retention, replication, signatures, and acceptance of events still |
| 212 | need 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 |
| 215 | commutation of independent changes and a graph representation that retains conflict information. |
| 216 | [S19: Pijul theory](https://pijul.org/manual/theory) |
| 217 | |
| 218 | The narrow lesson is to keep change identity conceptually separate from a particular base and |
| 219 | snapshot. The stronger lesson must be resisted: algebraic properties of text changes do not |
| 220 | establish that their combined program satisfies a requirement. Two textually independent changes can |
| 221 | alter a shared behavioral assumption. the-valley still needs semantic checks and a policy for their |
| 222 | reuse. |
| 223 | |
| 224 | These tools are worth studying without making replacement of Git a prerequisite. The current project |
| 225 | deliberately preserves native Git workflows. A better authoring client can remain optional while the |
| 226 | evidence protocol defines the acceptance boundary. |
| 227 | |
| 228 | ## 2.7 Human review does more than discover defects |
| 229 | |
| 230 | The empirical case for review is broader than a pass/fail gate. Bacchelli and Bird's study of modern |
| 231 | code review describes knowledge transfer, awareness, alternative solutions, and understanding of |
| 232 | changes alongside defect finding. It is evidence about the studied development setting, not a proof |
| 233 | that 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 | |
| 236 | The implication is that removing routine human review creates obligations beyond replacing its |
| 237 | correctness checks. A system must explain how important design changes become shared understanding. |
| 238 | For one operator and many short-lived agents, the knowledge graph may perform part of that function. |
| 239 | For a small team, selected discussions and summaries may still matter even when no human signature |
| 240 | is required before integration. |
| 241 | |
| 242 | The report's recommendation is to distinguish approval, learning, and attention. Approval authorizes |
| 243 | an action. Learning updates project understanding. Attention directs a limited human resource. A |
| 244 | single review interaction can serve all three, but evaluating only approval latency would hide |
| 245 | losses in the other two. |
| 246 | |
| 247 | ## 2.8 Recent work that narrows the agent-specific questions |
| 248 | |
| 249 | Two recent preprints are particularly close to the-valley's problem. They merit attention, with less |
| 250 | evidentiary weight than mature mechanisms or replicated empirical findings. |
| 251 | |
| 252 | **BulkPR-Bench** studies selection and ordering of interacting proposed changes. It distinguishes |
| 253 | partial delivery scores from safe completion of a whole queue. Its constructed candidate pools and |
| 254 | fixed harness limit generalization to naturally occurring work. This report treats it as a 2026 |
| 255 | preprint; a future conference label in its manuscript is not evidence of an already completed |
| 256 | peer-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 |
| 259 | agent PR dataset. Its limitations explicitly distinguish textual conflict from semantic conflict and |
| 260 | observed conflicts from unmeasured costs such as maintainer time. Its observation period predates |
| 261 | the 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 | |
| 264 | Together they suggest a useful experimental split. One experiment should measure contention and |
| 265 | evidence invalidation given known changes. Another should measure whether agents discover the |
| 266 | relationships that make those changes safe to combine. Better scheduling cannot compensate for |
| 267 | missing relationships, while a perfect relationship graph cannot by itself implement safe admission. |
| 268 | |
| 269 | ## 2.9 What modularity should mean here |
| 270 | |
| 271 | Parnas's argument for information hiding concerns the decisions a module keeps from other modules. |
| 272 | It 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 | |
| 275 | Applied to the-valley, a useful boundary lets the system change its build executor, bus, or review |
| 276 | interface without changing what a historical acceptance record means. A poor boundary merely moves |
| 277 | the same shared assumptions into several processes. This is the report's application of Parnas's |
| 278 | criterion, not a claim that the paper evaluated developer platforms. |
| 279 | |
| 280 | Saltzer, Reed, and Clark's end-to-end argument supplies a second discipline. A lower layer's success |
| 281 | cannot necessarily establish the application's desired outcome. Their examples include delivery and |
| 282 | duplicate suppression. |
| 283 | [S02: End-to-End Arguments in System Design](https://web.mit.edu/saltzer/www/publications/endtoend/endtoend.pdf) |
| 284 | |
| 285 | For this project, the inference is straightforward. Delivery to the event bus does not establish |
| 286 | that a deployment occurred. A verified signature does not establish that a requested capability |
| 287 | works. The layer that can observe the required result must contribute to the evidence. Lower-level |
| 288 | guarantees remain useful, but their scope needs to remain visible. |
| 289 | |
| 290 | ## 2.10 Credible architectural choices |
| 291 | |
| 292 | The 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 | |
| 302 | The report favors the fourth configuration as the immediate experiment, with the first two as |
| 303 | serious baselines. The fifth should be evaluated as an additional layer. That position preserves the |
| 304 | unusual parts of the-valley's ambition while giving each of them a chance to fail independently. |