| 1 | # 6. Synthesis and a research agenda |
| 2 | |
| 3 | the-valley's aim is a useful end-to-end system assembled around clear requirements and deliberate |
| 4 | constraints. Existing solutions should satisfy individual requirements wherever they fit. The |
| 5 | central hypothesis is that consistent rules across those solutions can make the complete workflow |
| 6 | more capable and easier to operate. No individual subsystem needs to be an innovation. |
| 7 | |
| 8 | The next step is a small reference workflow that makes those rules observable. Tests of portable |
| 9 | evidence, project understanding, and recovery should explain its behavior. Their purpose is to |
| 10 | locate the work needed to make the whole system succeed. |
| 11 | |
| 12 | This chapter states the report's judgments. Its proposals are research recommendations, not adopted |
| 13 | project requirements. The empirical experiments below have not been run. Their purpose is to make |
| 14 | the most interesting claims falsifiable and to identify useful results even when a proposed approach |
| 15 | fails. |
| 16 | |
| 17 | ## 6.1 What the review supports |
| 18 | |
| 19 | Five conclusions survive comparison with the literature and existing systems. |
| 20 | |
| 21 | **Portable evidence is a sound organizing idea.** Build systems already provide a basis for reusing |
| 22 | computation under explicit dependency assumptions. Supply-chain systems already separate artifacts, |
| 23 | claims, signers, and policy. the-valley can combine those ideas into a record explaining why one |
| 24 | particular state was accepted. The opportunity is the precision and usefulness of that record, |
| 25 | rather than the mere existence of another signature format. The evidence and limits are in |
| 26 | [chapter 3](03-verification-and-integration.md). |
| 27 | |
| 28 | **The knowledge graph has a stronger purpose than agent memory.** Its most interesting purpose is to |
| 29 | help a fresh contributor apply the project's design to an unfamiliar change. That is a measurable |
| 30 | claim about understanding. It can fail even when retrieval is excellent and every fact is recalled. |
| 31 | Conversely, a relatively small graph may succeed if it preserves the right explanations and |
| 32 | constraints. [Chapter 5](05-knowledge-agents-and-outcomes.md) develops this distinction from Naur, |
| 33 | design rationale, planning, and agent evaluation. |
| 34 | |
| 35 | **Durable state plus reconciliation is a good starting point.** It gives the system a way to |
| 36 | discover unfinished work after a notification is lost. However, accepted decisions and external |
| 37 | effects need their own recovery semantics. The relevant contrast is between recoverable obligations |
| 38 | and transient messages. [Chapter 4](04-events-trust-and-durability.md) explains why current ref |
| 39 | replay is insufficient for complete historical recovery. |
| 40 | |
| 41 | **Ordinary systems are strong candidates for adoption.** Concurrent merge validation, portable |
| 42 | execution, distributed collaboration records, and policy stored in a repository all have working |
| 43 | precedents. The first question is which configurations meet the requirements. Their guarantees and |
| 44 | operating costs determine where adaptation or custom work is justified. Those same configurations |
| 45 | also supply credible baselines for evaluating the complete workflow. |
| 46 | [Chapter 2](02-existing-systems.md) supplies those baselines. |
| 47 | |
| 48 | **Autonomy needs separate boundaries for proposing, accepting, and acting.** An agent can propose |
| 49 | work without authority to integrate it. Integration can accept a source change without authorizing |
| 50 | every external effect. A system can automate evidence gathering while preserving human judgment over |
| 51 | what an outcome means. Treating these as distinct decisions creates more useful choices than one |
| 52 | global autonomy level. |
| 53 | |
| 54 | ## 6.2 Claims that should be narrowed before relying on them |
| 55 | |
| 56 | The table identifies research findings about the snapshot. It does not silently amend the project's |
| 57 | design documents. Implementation concerns remain static findings until reproduced or ruled out by an |
| 58 | executable experiment. |
| 59 | |
| 60 | | Claim or assumption in the local material | More defensible statement | Evidence and next check | |
| 61 | | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------- | |
| 62 | | A malicious local attester must reveal a modified tool hash | A signer can claim an approved hash without executing that tool | Protocol counterexample in chapter 3; test a directly fabricated signed statement | |
| 63 | | Pure re-verification leaves no residual attack | Independent execution checks agreement under shared assumptions; an inadequate check can agree everywhere | Chapter 3; use a passing no-op replacement and separate definition authorization from execution | |
| 64 | | Witness sampling guarantees detection within a bounded window | Random sampling provides a probability under stated assumptions; an isolated unsampled false claim may remain undetected | Chapter 3's sampling analysis; explicitly model witness capacity and correlated failures | |
| 65 | | The described stack is roughly SLSA Build L3 | No level follows without satisfying the specified builder and provenance requirements | Chapter 3 and its SLSA source; map one real deployment requirement by requirement | |
| 66 | | Replaying Git reconstructs the lived event history | Current-ref enumeration reconstructs a view of surviving refs | Chapter 4; create, rewrite, and delete a ref before losing the bus | |
| 67 | | A landing and its evidence are one durable result | The inspected sequence has multiple writes around the commit point | Chapter 4; interrupt the process between each durable write | |
| 68 | | Every declared expiry is an enforced deadline | Raw compiled keys remain subject to successful policy convergence and recovery paths | Chapter 4; let a key expire while compilation repeatedly fails | |
| 69 | | A dependency DAG provides a critical-path scheduler | Topology supplies precedence; useful criticality also needs duration and resource information | Chapter 5; compare priority-only and estimated-duration policies | |
| 70 | | Terminal blockers imply an outcome can be considered achieved | Administrative termination, readiness, and accepted attainment are different facts | Chapter 5; abandon a required child while retaining the parent's acceptance condition | |
| 71 | | Recording agent inputs explains exactly who did everything | A trusted observer can record a run and its external actions; the record has collection and coverage limits | Chapters 4 and 5; distinguish run occurrence, delegated principal, signer, and observed actions | |
| 72 | |
| 73 | Several of these limits are already recognized in the knowledge graph or open questions. The report |
| 74 | does not claim to have discovered every issue first. Its contribution is to connect them to broader |
| 75 | literature and explain which claims would remain unjustified even after an obvious implementation |
| 76 | bug was fixed. |
| 77 | |
| 78 | ## 6.3 A useful boundary for the minimal core |
| 79 | |
| 80 | The following is a proposed division of responsibility. It is not a protocol specification. |
| 81 | |
| 82 | ```mermaid |
| 83 | flowchart LR |
| 84 | intent["Requested outcome and acceptance conditions"] --> proposal["Candidate change"] |
| 85 | knowledge["Current design and rationale"] --> proposal |
| 86 | proposal --> execution["Checks and observations"] |
| 87 | execution --> evidence["Evidence about a precise subject"] |
| 88 | authority["Policy and current authority"] --> admission["Integration decision"] |
| 89 | evidence --> admission |
| 90 | proposal --> admission |
| 91 | admission --> record["Durable accepted state and decision record"] |
| 92 | record --> view["Indexes, review views, and notifications"] |
| 93 | record --> effect["Separately authorized external action"] |
| 94 | effect --> observation["Observed result or unresolved outcome"] |
| 95 | observation --> knowledge |
| 96 | observation --> intent |
| 97 | ``` |
| 98 | |
| 99 | The key property is that each arrow names information the receiver needs. A check executor does not |
| 100 | decide the project's authority policy. An index does not become the only record of an approval. An |
| 101 | agent's proposed explanation does not become accepted knowledge merely because it is fluent. An |
| 102 | actuator does not infer unlimited authority from an integration event. |
| 103 | |
| 104 | The minimal core could define identities, immutable records, policy evaluation inputs, and the |
| 105 | conditions under which a transition becomes accepted. Execution backends, scheduling heuristics, |
| 106 | retrieval systems, and user interfaces could remain replaceable. This is an architectural |
| 107 | preference, not evidence that the resulting implementation will be small. A second independent |
| 108 | consumer of the records is the practical test. |
| 109 | |
| 110 | Existing contracts and components may supply these responsibilities. The proposed division does not |
| 111 | require a new core implementation. |
| 112 | |
| 113 | The report also recommends separating the following graphs, even if they share storage: |
| 114 | |
| 115 | | Graph | What an edge means | Mistake caused by treating it as another graph | |
| 116 | | ------------------------ | --------------------------------------------------------------------- | ----------------------------------------------------------------------- | |
| 117 | | Source history | A commit names parent commits | Assuming ancestry records every ref movement or operational event | |
| 118 | | Computation dependencies | A result depends on an identified input or action | Treating common file paths as a complete dependency model | |
| 119 | | Outcome dependencies | A requested condition requires, or is supported by, another condition | Treating closed child tasks as proof of the parent | |
| 120 | | Provenance | An activity used or produced an entity under stated attribution | Treating a recorded relationship as a causal explanation of an incident | |
| 121 | | Authority delegation | A principal grants bounded rights to another actor | Treating declared responsibility as enforced permission | |
| 122 | |
| 123 | An undifferentiated graph with an edge named `depends_on` would be easier to implement initially and |
| 124 | harder to reason about later. The recommendation is semantic separation, not a demand for five |
| 125 | databases or an elaborate ontology. |
| 126 | |
| 127 | ## 6.4 The most promising solution spaces |
| 128 | |
| 129 | ### Evidence transfer as a conservative optimization |
| 130 | |
| 131 | Start from a clearly authorized check over a clearly identified subject. Accept reuse only when the |
| 132 | system can establish that the relevant computation and inputs remain the same. Fall back to new |
| 133 | evidence when the dependency model is incomplete. This gives a soundness target independent of |
| 134 | whether the check itself is a good test. |
| 135 | |
| 136 | There are several implementation choices: whole-tree identities, filtered source sets, declared |
| 137 | dependency closures, dynamic traces, or combinations. None is best in every project. Whole-tree |
| 138 | identities are conservative but can waste computation. Finer declarations can save work while adding |
| 139 | maintenance and omission risk. The research question is where the additional precision pays for |
| 140 | itself on the pilot's real workload. |
| 141 | |
| 142 | Trust should be explicit alongside this optimization. A personal host, an isolated builder, and an |
| 143 | independent witness support different claims. A source change can be admitted under one policy while |
| 144 | a higher-impact deployment requires additional evidence. This preserves a useful fast path without |
| 145 | pretending that later revocation undoes every consequence. |
| 146 | |
| 147 | ### Immutable decisions with disposable views |
| 148 | |
| 149 | Store a narrow decision record that identifies what was accepted, under which policy, and using |
| 150 | which evidence. Derive review pages, queues, indexes, and bus publications from retained facts. Keep |
| 151 | effect attempts and unresolved external outcomes durable where they cannot be reconstructed. |
| 152 | |
| 153 | Possible storage choices include Git objects and refs, an append-only journal, or a transactional |
| 154 | store with exports. A single history should mean a coherent account of accepted project state and |
| 155 | its interpretation. It need not mean forcing every high-frequency telemetry event into the main |
| 156 | source branch. |
| 157 | |
| 158 | The design should name its required atomic boundaries before selecting storage. If two records must |
| 159 | be accepted together, that is a constraint on the transaction or recovery protocol. If one is merely |
| 160 | a cache, it should be safely reconstructible. Describing both as files in the same repository does |
| 161 | not settle the distinction. |
| 162 | |
| 163 | ### Project knowledge as tested explanatory material |
| 164 | |
| 165 | Preserve the current design in plain language, with enough premises and evidence to explain why it |
| 166 | takes its present form. Evaluate it using new changes and plausible design violations. Improve |
| 167 | retrieval only after establishing that the source material contains the necessary understanding. |
| 168 | |
| 169 | This path permits multiple derived views: a short briefing for an agent, a design review for a |
| 170 | human, or a query over unresolved decisions. Each should point back to an accepted snapshot. |
| 171 | Generated summaries can be useful while remaining fallible views over the record. |
| 172 | |
| 173 | The key risk is making the graph increasingly complete and increasingly expensive to maintain. Its |
| 174 | value should be measured net of that maintenance. If a concise design document performs as well as a |
| 175 | large typed graph, that is a useful result for a project committed to minimalism. |
| 176 | |
| 177 | ### Bounded production with explicit acceptance |
| 178 | |
| 179 | Begin outcome automation with a ready-work query, a bounded attempt, and a separately evaluated |
| 180 | completion claim. Record why work is blocked, what evidence would clear the block, and when further |
| 181 | attempts should stop. Add scheduling intelligence as measured contention justifies it. |
| 182 | |
| 183 | The important distinction is between a plan the system currently believes and an obligation the |
| 184 | project has accepted. Agents can revise plans as they learn. They should not silently weaken the |
| 185 | obligation to make the plan look successful. A revision to acceptance criteria is itself a decision |
| 186 | with authority and rationale. |
| 187 | |
| 188 | This solution space remains useful even if the scheduler stays simple. A faithful record of |
| 189 | failures, assumptions, and incomplete evidence could improve human-directed work before autonomous |
| 190 | planning becomes dependable. |
| 191 | |
| 192 | ## 6.5 Experiments that would change the design |
| 193 | |
| 194 | E9 is the overall test of the system. Start it with the smallest complete workflow supported by the |
| 195 | current scenario rung, and extend it as later rungs become relevant. E1–E8 investigate particular |
| 196 | risks and explain results from that workflow. Their numbering does not require eight successful |
| 197 | subsystem experiments before an end-to-end trial. Each experiment should preserve its inputs, |
| 198 | evaluator, failures, and raw measurements. Agree proposed thresholds before inspecting results. |
| 199 | |
| 200 | ### E1. Can a second implementation explain an accepted change? |
| 201 | |
| 202 | Use an existing independent verifier where it supports the contract. Build a small read-only |
| 203 | verifier only for missing behavior, independently from the integrator's decision implementation. |
| 204 | Give it the accepted state, evidence records, relevant policy snapshots, and trust roots. Remove |
| 205 | access to the original controller and bus. Ask it to reproduce the reason for acceptance or report |
| 206 | the exact missing fact. |
| 207 | |
| 208 | Evaluate historical authorization separately from present acceptability. Supply the historical |
| 209 | registry or checkpoint needed to establish what was authorized at decision time. A later revocation |
| 210 | may change what can be accepted now without erasing the reason the earlier decision was made. |
| 211 | |
| 212 | Include ordinary changes, policy amendments, stale evidence, revoked keys, and a re-parented |
| 213 | landing. Test unknown predicate versions and unavailable artifacts. A verifier should distinguish an |
| 214 | invalid record from a record it lacks enough information to evaluate. |
| 215 | |
| 216 | The key result is agreement on well-defined cases and explicit disagreement where the contract is |
| 217 | underspecified. If independent verification requires undocumented controller behavior, the protocol |
| 218 | boundary is incomplete. This experiment should precede claims of backend independence. |
| 219 | |
| 220 | ### E2. Is evidence reuse sound for the admitted computation model? |
| 221 | |
| 222 | Create a corpus of changes with independently specified expected invalidations. Include source |
| 223 | edits, check-definition edits, compiler changes, generated inputs, directory additions, policy |
| 224 | changes, and changes to external observations. Include two independently authored edits that combine |
| 225 | badly despite a clean textual merge. |
| 226 | |
| 227 | For deterministic checks, compare reuse decisions against execution of the approved check on the |
| 228 | candidate landing. Instrument the executor so that identical success markers from two different |
| 229 | commands do not count as identical computations. Repeat with whole-tree and finer dependency models. |
| 230 | |
| 231 | Any reused result that disagrees with the specified deterministic computation is a failure of that |
| 232 | reuse rule. A zero-failure run is useful evidence for the tested cases, not proof for all programs. |
| 233 | Report conservatism as well: how much safe reuse was missed, and what declaration effort would |
| 234 | recover it? For effectful checks, specify acceptable observation age and scope instead of pretending |
| 235 | a rerun sees the identical world. |
| 236 | |
| 237 | ### E3. Where does the latency advantage come from? |
| 238 | |
| 239 | Compare four configurations: a serialized check-and-merge loop; a speculative queue; the current |
| 240 | valley transfer approach; and a hybrid using speculation plus reuse. Run the same checks with the |
| 241 | same hardware budget and acceptance policy. Hold cache warmth constant within comparisons, then |
| 242 | repeat with cold caches. |
| 243 | |
| 244 | Vary arrival rate, check duration, dependency overlap, failure rate, and the fraction of effectful |
| 245 | checks. Record time from completed authorship to acceptance, time spent waiting for required |
| 246 | evidence, serialized decision time, total compute, invalidations, and starvation. Report |
| 247 | distributions and worst waits, not only an average. |
| 248 | |
| 249 | Use a common starting point before verification begins and include author-side execution. Also |
| 250 | report the narrower submission-to-acceptance interval. Moving computation before submission can |
| 251 | improve that interval without reducing total completion time; the measurements should reveal both |
| 252 | effects. |
| 253 | |
| 254 | The result should identify operating regions. The transfer design is especially attractive if it |
| 255 | saves computation and waiting on real independent edits. If gains disappear once trust and caching |
| 256 | are equalized, speed alone does not justify the additional protocol. Policy evaluation and Nix |
| 257 | evaluation costs must appear in the measurement even if no test is intentionally run at commit time. |
| 258 | |
| 259 | ### E4. What survives interruption at each boundary? |
| 260 | |
| 261 | Use a disposable repository and effect target. Interrupt the integrator between preparation, target |
| 262 | update, evidence publication, request deletion, and notification. Interrupt an actuator before and |
| 263 | after the remote system accepts an operation. Restart from retained state. |
| 264 | |
| 265 | The test oracle should require an unambiguous accepted source state and a recoverable explanation. |
| 266 | For effects, it should require either one known logical result or an explicit unresolved result with |
| 267 | a recovery procedure. Merely exiting successfully on restart is insufficient. |
| 268 | |
| 269 | Then remove the bus, delete a ref, lose a cache object, and restore an old registry snapshot. Record |
| 270 | which guarantees survive each loss. This creates a failure model based on demonstrations and reveals |
| 271 | which storage changes are necessary before later automation depends on the record. |
| 272 | |
| 273 | ### E5. Does the graph improve unfamiliar work? |
| 274 | |
| 275 | Use the four knowledge conditions from chapter 5: ordinary docs; current graph; graph with |
| 276 | additional justifications; and a bounded derived briefing. Hold model, harness, tools, and budget |
| 277 | constant. Use tasks requiring changes the source material does not already solve. |
| 278 | |
| 279 | Add a matched-information comparison: present the same facts and rationale as ordinary prose and as |
| 280 | typed nodes. This separates improvements in content from improvements in representation. Task |
| 281 | authors and evaluators should avoid wording held-out tasks around cues unique to the graph. |
| 282 | |
| 283 | Blind a sample of human evaluations to the knowledge condition. Score conceptual errors, justified |
| 284 | abstention, working results, and later corrections. Include the cost of creating and maintaining |
| 285 | knowledge. Evaluate several independent runs per task and keep a held-out task set while improving |
| 286 | the graph. |
| 287 | |
| 288 | This is the strongest test of the graph's distinctive purpose. If it improves recall but not |
| 289 | changes, investigate missing explanations and misleading authority cues. If ordinary docs perform |
| 290 | equally well, prefer the simpler representation for that class of work. |
| 291 | |
| 292 | ### E6. Can outcome automation avoid claiming false success? |
| 293 | |
| 294 | Specify a small executable model before building a sophisticated scheduler. Include AND |
| 295 | requirements, OR alternatives, abandoned prerequisites, cancelled roots, expired evidence, and |
| 296 | recurring obligations. Give an agent permission to propose decompositions but a separate evaluator |
| 297 | authority to accept attainment. |
| 298 | |
| 299 | Construct cases where every child is closed while the parent remains false. Include repeated |
| 300 | revisions that create new identifiers without making progress. Verify that cancellation withdraws |
| 301 | the cancelled root's demand from descendants and that late results from an expired attempt cannot |
| 302 | authorize an effect. Include a prerequisite shared by two live roots: cancelling one root must |
| 303 | preserve work and authority still justified by the other. |
| 304 | |
| 305 | The failure criterion is an unsupported completion claim or an effect outside current authority. |
| 306 | Efficiency comes later. Compare against a manual ready-work query to establish what the automation |
| 307 | actually adds. |
| 308 | |
| 309 | ### E7. Does witness sampling buy the intended assurance? |
| 310 | |
| 311 | Start with simulation using chapter 3's explicit probability model. Vary audit probability, |
| 312 | detection probability, witness backlog, error clustering, and compromised shared dependencies. |
| 313 | Separate random mistakes from a signer that waits until it has earned a favorable score before |
| 314 | making one false claim. |
| 315 | |
| 316 | Then run controlled checks through independently configured witnesses. Measure detection delay and |
| 317 | the number and consequence of accepted actions before detection. Expiry of authority and |
| 318 | invalidation of historical evidence should be separate outputs. |
| 319 | |
| 320 | The result should be an assurance statement for a workload and trust model, not a universal trust |
| 321 | score. If high-impact failures cannot tolerate the residual exposure, require stronger evidence |
| 322 | before those effects. A later successful revocation is not a successful prevention experiment. |
| 323 | |
| 324 | ### E8. Can the operator remain informed without reviewing everything? |
| 325 | |
| 326 | Run a bounded trial across several weeks of representative work. Compare pre-integration review, |
| 327 | targeted review, sampled completed-change review, and scheduled digests. Group notifications by the |
| 328 | underlying decision rather than by each blocked agent. |
| 329 | |
| 330 | Randomize comparable changes where appropriate or counterbalance trial periods to limit confounding |
| 331 | by workload changes and operator learning. A trial lasting several weeks can estimate routine |
| 332 | burden; it cannot by itself establish an assurance level for rare severe defects. |
| 333 | |
| 334 | Measure interruptions, time spent reconstructing context, defects found, detection delay, and the |
| 335 | operator's ability to explain current system behavior. Sample uneventful changes as well as |
| 336 | failures; otherwise the trial cannot discover what unattended work silently changed. |
| 337 | |
| 338 | The useful result is a policy that reduces review burden while preserving understanding and an |
| 339 | acceptable consequence profile. If nobody can explain the system after a quiet week of successful |
| 340 | automation, notification volume was the wrong success metric. |
| 341 | |
| 342 | ### E9. Does the complete workflow justify the composition? |
| 343 | |
| 344 | Define a representative piece of work at the active scenario rung. For S2/S3, start with an intended |
| 345 | change and project context, give the work to a fresh author, establish the required evidence, and |
| 346 | integrate the result. Check both the resulting behavior and the retained explanation for acceptance. |
| 347 | As S4/S6 become relevant, extend the same workflow through an authorized effect, an observed |
| 348 | problem, recovery, and an update to project knowledge. A general scheduler is unnecessary for the |
| 349 | first trial. |
| 350 | |
| 351 | Run this workflow on the valley configuration and the strongest practical existing configuration. |
| 352 | Match the intended result, trust assumptions, and resource budget. Where feasible, also compare the |
| 353 | same components with and without the proposed shared constraints. That comparison helps identify the |
| 354 | value of the integration decisions separately from the quality of the selected tools. |
| 355 | |
| 356 | Measure successful outcomes, total elapsed time, operator intervention, reconstruction of missing |
| 357 | context, escaped defects, and recovery after interruption. Subsystem speed matters when it improves |
| 358 | these results. Count the work of maintaining adapters and reconciling records as part of the cost. |
| 359 | |
| 360 | Then perform the same operating tasks: add a project, rotate a key, introduce a check, recover a |
| 361 | lost host, diagnose a failed integration, and change an executor. Count operator steps, required |
| 362 | credentials, separate upgrade procedures, and time spent locating authoritative state. |
| 363 | |
| 364 | Record integration code and incident handling, not just component sizes. Repeat selected tasks after |
| 365 | a period without operating the system, because comprehensibility after absence is part of ownership. |
| 366 | If the composition is worse on routine work, identify whether the capabilities required by the |
| 367 | project compensate for that cost. A positive result may come entirely from configuration and clear |
| 368 | contracts between existing components. There should be a concrete reason to retain every custom |
| 369 | component. |
| 370 | |
| 371 | ## 6.6 Measurement discipline |
| 372 | |
| 373 | The report recommends a prospective experiment register containing a question, hypothesis, baseline, |
| 374 | dataset or workload, fixed evaluator, primary measurements, and decision rule. Version the register |
| 375 | before collecting results. Exploratory observations can remain useful, but should be labeled as |
| 376 | exploratory rather than used to retroactively redefine success. |
| 377 | |
| 378 | Separate the following quantities: |
| 379 | |
| 380 | | Quantity | Why it needs its own measurement | |
| 381 | | ------------------------------------------ | -------------------------------------------------------------- | |
| 382 | | Source accepted per unit time | Measures the integrator; can rise while useful work stagnates | |
| 383 | | Outcomes accepted under unchanged criteria | Measures delivered intent; still depends on evaluator adequacy | |
| 384 | | Time to recover project understanding | Measures the knowledge record's practical value | |
| 385 | | Human time and interruptions | Captures supervision shifted out of the apparent fast path | |
| 386 | | Compute and repeated attempts | Prevents a retry-heavy system from appearing free | |
| 387 | | Later rework and escaped defects | Captures costs deferred beyond initial acceptance | |
| 388 | | Lost or unresolved historical facts | Measures whether the transparency promise survives failure | |
| 389 | |
| 390 | Use multiple projects when practical, including the-valley itself and a less tailored consumer. |
| 391 | Self-hosting is a valuable integration test but a biased effectiveness test: the project's own |
| 392 | conventions and authors are unusually adapted to the system. Negative results on another repository |
| 393 | may reveal a portability assumption that successful self-development conceals. |
| 394 | |
| 395 | ## 6.7 An opinionated end-to-end system |
| 396 | |
| 397 | The project's success criterion is that a useful workflow meets clear requirements at an acceptable |
| 398 | cost. Individual tools can be familiar, and a suitable existing configuration can supply most of the |
| 399 | system. The work particular to the-valley may be selecting the constraints, connecting the tools, |
| 400 | and making the combined behavior dependable. That is sufficient reason to build it. |
| 401 | |
| 402 | "More than the sum of its parts" should have an observable meaning. Each tool may work correctly in |
| 403 | isolation while the operator still has to reconstruct intent, translate identities, reconcile |
| 404 | policies, or discover lost obligations between them. A successful composition removes some of that |
| 405 | work without losing the guarantees it supplied. The important gain occurs at the handoffs. |
| 406 | |
| 407 | ### Constraints that could create the joint value |
| 408 | |
| 409 | The following are proposed constraints on the complete system. They develop the requirements in |
| 410 | [chapter 1](01-project-and-problem-map.md#12-requirements-as-research-questions); they are not new |
| 411 | project decisions. They supplement the adopted premise constraints, which a component selection must |
| 412 | not implicitly waive. Each constrains the behavior of several components while leaving their |
| 413 | implementation open. |
| 414 | |
| 415 | **A requested result keeps its meaning throughout the work.** A proposal, check, accepted change, |
| 416 | external action, and completion claim can identify the request they serve. The acceptance conditions |
| 417 | that applied remain available, together with any authorized amendments. An existing work tracker, |
| 418 | repository, executor, and evaluator can provide the parts. Their shared obligation is to prevent a |
| 419 | sequence of successful tasks from silently replacing the result that was requested. |
| 420 | |
| 421 | **Verification has an identified definition and an explicit reuse rule.** Local and integration |
| 422 | checks agree on what is being tested. A consumer can decide whether supplied evidence applies to its |
| 423 | candidate state under the required trust policy. Uncertainty triggers new evidence or a recorded |
| 424 | block. Build systems, caches, and attestation tools can supply the mechanisms. Their shared contract |
| 425 | prevents a familiar check name or green status from acquiring different meanings at each boundary. |
| 426 | |
| 427 | **Accepted changes and their reasons survive together.** After a supported failure, recovery retains |
| 428 | the facts needed to explain the accepted state. Indexes and notifications may be disposable when |
| 429 | those facts can reconstruct them. This constraint does not require one physical database or log. It |
| 430 | does require an explicit acknowledgment and recovery contract across the stores involved. The |
| 431 | tradeoff is that stronger durability may add coordination or delay. |
| 432 | |
| 433 | **Authority is checked where the action occurs.** Permission to propose, integrate, deploy, and |
| 434 | amend an acceptance criterion remains distinguishable. Delayed or replayed work does not gain |
| 435 | authority merely by having been queued. An external action has a retained obligation and an observed |
| 436 | result, or an explicit unresolved outcome. Existing identity and workflow systems can enforce these |
| 437 | rules; the composition must align their scopes, revocation behavior, and recovery paths. |
| 438 | |
| 439 | **Project understanding belongs to the project.** Accepted design explanations, important reasons, |
| 440 | open questions, and relevant outcomes remain readable and recoverable with the project. An agent |
| 441 | briefing or interface view identifies the source state it summarizes. Generated text becomes |
| 442 | authoritative only through the project's acceptance process. Documents, repositories, search, and |
| 443 | knowledge tools can supply the parts. The joint benefit is continuity when the author, interface, or |
| 444 | host changes, with an ongoing cost for keeping explanations useful. |
| 445 | |
| 446 | **Replacement and recovery are ordinary operations.** A supported backup or export restores a usable |
| 447 | project, including the evidence and outstanding work needed to continue it. Replacing a component |
| 448 | preserves the agreed behavior at its boundaries. This requires maintained contracts and recovery |
| 449 | procedures; merely owning the bytes is insufficient. The benefit must be weighed against the work of |
| 450 | maintaining adapters and testing replacements. |
| 451 | |
| 452 | These constraints deliberately restrict the available combinations. A tool may be excellent at its |
| 453 | local task and still require an expensive adapter to preserve project authority or durable reasons. |
| 454 | Another tool with fewer local features may make the complete workflow simpler. Choosing between them |
| 455 | requires a concrete fit assessment, not a preference for novelty, small executables, or a particular |
| 456 | shape of user interface. |
| 457 | |
| 458 | ### Adopt, configure, adapt, then build the missing part |
| 459 | |
| 460 | For each responsibility, record the required behavior and its acceptance check. Identify which |
| 461 | existing components or configurations could supply it. Evaluate those candidates against the shared |
| 462 | constraints, including failure, recovery, and ongoing operator work. An existing solution that meets |
| 463 | the requirement is the default choice. |
| 464 | |
| 465 | If configuration is insufficient, identify the smallest missing behavior. An adapter, upstream |
| 466 | change, or narrow custom component may supply it. The justification should name the requirement, the |
| 467 | candidate examined, the demonstrated gap, and the cost of closing it. A claim that a tool is |
| 468 | "platform-shaped" is not a sufficient rejection. A larger existing component may reduce the total |
| 469 | system's operating burden. |
| 470 | |
| 471 | Adapters deserve the same scrutiny as other custom code. A short bridge that translates authority or |
| 472 | acceptance decisions can carry the system's most consequential rules. Its size does not make those |
| 473 | rules trivial. Conversely, a simple export transformation need not become a new universal protocol. |
| 474 | |
| 475 | When a constraint excludes every practical solution, revisit its purpose. The choice may be to |
| 476 | accept the cost, narrow the supported workflow, or revise the constraint. Record that decision |
| 477 | explicitly. A constraint earns its place through the end-to-end property it protects. |
| 478 | |
| 479 | ### A complete journey is the decisive test |
| 480 | |
| 481 | An agent receives an outcome and reconstructs the relevant design. It changes the project and |
| 482 | supplies the required evidence. The system accepts the change under explicit authority and performs |
| 483 | an authorized consequence. The primary host then fails. A replacement host restores the project and |
| 484 | resolves unfinished work. A fresh author can explain what happened and safely make the next change. |
| 485 | |
| 486 | That journey combines familiar capabilities into a demanding whole. Evaluate it incrementally |
| 487 | through the scenario ladder, using E9 as the main test and E1–E8 to investigate its failure modes. |
| 488 | Compare with the strongest practical existing configuration under the same trust and resource |
| 489 | assumptions. A gain in completed work, recovery, understanding, or operator effort can justify the |
| 490 | composition. No component has to outperform every alternative in isolation. |
| 491 | |
| 492 | The report therefore recommends clarifying the active requirements, choosing a small set of shared |
| 493 | constraints, and assembling the smallest complete workflow from established solutions. Build custom |
| 494 | mechanisms when a demonstrated gap calls for them. Expand scheduling and federation when a later |
| 495 | scenario requires them. Novelty may emerge from this work; it is not an acceptance criterion. |