| 1 | # Knowledge, agents, and outcomes |
| 2 | |
| 3 | The most consequential question for the-valley is whether a project can preserve enough |
| 4 | understanding to let a succession of unfamiliar contributors change it well. An agent that can |
| 5 | retrieve a decision is useful. An agent that understands when the decision applies, notices when its |
| 6 | premises fail, and produces a change consistent with the project's purpose is substantially more |
| 7 | useful. The knowledge graph and outcome engine should be judged against that second standard. |
| 8 | |
| 9 | This chapter examines that ambition through design rationale, belief revision, planning, agent |
| 10 | memory, human automation, and evaluation. The central conclusion is an inference from those fields: |
| 11 | the graph can be a strong common substrate, but it does not eliminate the distinct problems of |
| 12 | deciding what is true, deciding what to attempt, deciding what counts as success, or deciding when a |
| 13 | human needs to intervene. Those distinctions should survive even if one interface presents them |
| 14 | together. |
| 15 | |
| 16 | Research was checked on 2026-09-20. Source identifiers A01–A28 refer to the |
| 17 | [annotated source register](sources-agents.md). Literature findings are attributed below. Statements |
| 18 | marked **assessment**, **recommendation**, or **hypothesis** are this report's judgments, rather |
| 19 | than results established by the cited work. Proposed experiments have not been run. |
| 20 | |
| 21 | ## 1. The actual starting point |
| 22 | |
| 23 | The repository already has a useful, modest implementation. Its |
| 24 | [knowledge convention](../../.the-valley/README.md) defines Markdown files with typed frontmatter. |
| 25 | [The schema](../../schema/node.cue) and [lint](../../nix/knowledge-lint.py) check structure, |
| 26 | identifiers, links, supersession, and graduation. The convention explicitly describes itself as a |
| 27 | directory convention. This is materially different from an implemented autonomous planner. |
| 28 | |
| 29 | The [outcome-DAG sketch](../../.the-valley/ideas/ida-eac723e-outcome-dag.md) proposes priority |
| 30 | propagation and dispatch against unblocked outcomes. The |
| 31 | [demand-pressure experiment](../../.the-valley/ideas/ida-3145b7a-demand-pressure.md) adds continuous |
| 32 | reconciliation, leases, and escalation. The later |
| 33 | [production-and-events node](../../.the-valley/ideas/ida-b48bded-production-dags-and-events.md) |
| 34 | describes events as reasons to re-examine state, with a reconciler deciding what work remains. These |
| 35 | are design proposals with different maturity levels. The roadmap places agent dispatch and |
| 36 | observable knowledge changes in later phases. |
| 37 | |
| 38 | Three existing bug nodes already identify important limits: |
| 39 | [runaway dispatch](../../.the-valley/bugs/bd-5cb2034-unbounded-loops-under-demand-pressure.md), |
| 40 | [integration starvation](../../.the-valley/bugs/bd-c324184-occ-starvation-under-contention.md), and |
| 41 | [task-state churn](../../.the-valley/bugs/bd-c4d069b-git-churn-from-task-state.md). Their mechanisms |
| 42 | deserve tests. Their strongest claims about inevitable severity should not be treated as |
| 43 | measurements. Small text objects in Git do not, by themselves, establish unacceptable clone cost; |
| 44 | that depends on update frequency, packing, retention, and repository size. |
| 45 | |
| 46 | One concrete semantic problem appears before any performance question. The current convention and |
| 47 | `blocker_cleared` predicate treat an abandoned outcome as a cleared blocker. That can reasonably |
| 48 | mean “the parent may now be reconsidered.” It cannot mean “the abandoned requirement has been |
| 49 | fulfilled.” The demand-pressure node itself recognizes abandonment as a possible stale dependency. |
| 50 | An automated engine will need an explicit answer to this difference. |
| 51 | |
| 52 | **Assessment:** the small file convention is a good experimental platform. Its main missing feature |
| 53 | is not a vector database. It is a tested account of how a change in knowledge changes the validity |
| 54 | of plans and completion claims. |
| 55 | |
| 56 | ## 2. Knowledge preservation is a theory-reconstruction problem |
| 57 | |
| 58 | ### Naur supplies the challenge, not a guarantee |
| 59 | |
| 60 | Peter Naur's _Programming as Theory Building_ treats programming as the formation of understanding |
| 61 | about how a program addresses the world. His account makes the continued presence of people holding |
| 62 | that understanding central to a program's life. Familiarity with the program text and documentation |
| 63 | alone is insufficient; exact revival after the theory holders disappear is impossible in his |
| 64 | account. This is a conceptual argument developed through programming experience, not an experiment |
| 65 | on modern language models. [A01: Naur, 1985](https://gwern.net/doc/cs/algorithm/1985-naur.pdf) |
| 66 | |
| 67 | The repository's |
| 68 | [theory-revival node](../../.the-valley/ideas/ida-f83d7ba-theory-revival-accelerator.md) recognizes |
| 69 | that challenge and makes a wager against its strongest conclusion. Cheap capture and strong readers |
| 70 | might preserve enough of the important structure to make repeated reconstruction effective. The |
| 71 | [evaluation node](../../.the-valley/ideas/ida-99b87d9-theory-rebuild-as-evaluation.md) proposes |
| 72 | why-questions, defended modifications, and detection of plausible violations as probes. |
| 73 | |
| 74 | **Recommendation:** test a narrower, operational claim: access to curated project knowledge improves |
| 75 | the quality of previously unseen modifications at an acceptable reconstruction cost. Success would |
| 76 | be valuable without establishing that text contains the whole original theory. Nor should agreement |
| 77 | with the current theory holder be the only criterion. A contributor may understand a design and find |
| 78 | a valid reason to revise it. |
| 79 | |
| 80 | For example, a contributor asked to speed integration might suggest running all missing checks on |
| 81 | the host. Repeating “the host does not run checks” shows recall. Explaining how that choice changes |
| 82 | the trust and execution boundary shows understanding. Recognizing a case that requires a separately |
| 83 | authorized verification service shows the ability to extend the design. These are different levels |
| 84 | of competence, and the evaluation should score them separately. |
| 85 | |
| 86 | ### Design rationale has a substantial history |
| 87 | |
| 88 | Issue-Based Information Systems, associated with Kunz and Rittel's 1970 work, precede contemporary |
| 89 | agent memory by decades. Conklin and Begeman's gIBIS implemented collaborative, typed hypertext for |
| 90 | capturing early design deliberation. The paper's abstract describes a database-backed tool and |
| 91 | reports encouraging but incomplete early experience. It establishes prior art for structured |
| 92 | deliberation, not proof that graph-shaped documentation improves engineering outcomes at scale. |
| 93 | [A02: Conklin and Begeman, 1988](https://doi.org/10.1145/62266.62278) |
| 94 | |
| 95 | **Assessment:** the-valley's insistence on a clean statement of current design addresses a real |
| 96 | retrieval problem: a reader should not have to reconstruct the conclusion from a discussion. |
| 97 | However, clean current prose and recoverable justification serve different questions. “What should |
| 98 | the system do?” needs a current answer. “Under which changed conditions should this decision be |
| 99 | reopened?” needs premises and limiting conditions. Git history preserves previous bytes, but those |
| 100 | conditions remain difficult to find if they were never stated clearly. |
| 101 | |
| 102 | A useful decision record could therefore say: “This design assumes one integrator per protected ref. |
| 103 | Reconsider the design if integration must remain available during loss of that integrator.” That |
| 104 | sentence is current rationale, not an account of participants or discarded drafts. A report or |
| 105 | research appendix can retain the wider alternatives without turning the normative graph into a |
| 106 | transcript archive. |
| 107 | |
| 108 | Formal argumentation addresses a related but different problem. Dung models arguments and attacks |
| 109 | between them, then defines conditions under which sets of arguments are acceptable. Different |
| 110 | acceptance semantics can yield different conclusions. The framework deliberately abstracts away from |
| 111 | the internal content of arguments; it does not determine whether a natural-language argument is |
| 112 | sound. |
| 113 | [A28: Dung, 1995](https://cse-robotics.engr.tamu.edu/dshell/cs631/papers/dung95acceptability.pdf) |
| 114 | |
| 115 | **Inference:** disagreement belongs in the research surface even when the normative graph states one |
| 116 | current policy. Two incompatible proposals can each deserve investigation. Recording the objection |
| 117 | to a proposal is useful without granting it blocking authority over all project work. Moreover, |
| 118 | counterarguments can form cycles even when execution prerequisites must remain acyclic. The whole |
| 119 | knowledge graph should not inherit the outcome scheduler's topological restrictions. A typed graph |
| 120 | earns its complexity by giving those relations different meanings. |
| 121 | |
| 122 | ### Belief dependencies differ from work dependencies |
| 123 | |
| 124 | Doyle's truth maintenance system records reasons for beliefs and revises accepted beliefs when their |
| 125 | supporting assumptions change. Its important contribution here is the explicit relationship between |
| 126 | a conclusion and the conditions that justify it. The paper addresses symbolic problem solvers; it |
| 127 | does not solve the problem of extracting reliable justifications from arbitrary prose. |
| 128 | [A03: Doyle, 1979](https://dspace.mit.edu/entities/publication/5377b306-4ecc-4687-b1f5-78cbb4a0543a) |
| 129 | |
| 130 | **Inference:** a single untyped notion of “depends on” would obscure three relationships in |
| 131 | the-valley. A deployment can wait for a build. A design decision can rely on an assumption about |
| 132 | threat models. An incident conclusion can be supported by an observed log. Finishing the build |
| 133 | releases work; invalidating the assumption calls for reconsideration; withdrawing the log weakens an |
| 134 | explanation. The appropriate response is different in each case. |
| 135 | |
| 136 | W3C PROV distinguishes entities, activities, derivation, and responsibility. That vocabulary helps |
| 137 | represent evidence relationships; it does not establish their truth. |
| 138 | [A04: W3C PROV-DM, 2013](https://www.w3.org/TR/prov-dm/) |
| 139 | |
| 140 | **Recommendation:** keep authoritative status, supporting evidence, and observed provenance |
| 141 | separately queryable. Initially this can be prose with a small number of explicit links. Add machine |
| 142 | semantics only when a concrete question requires them. A useful first question is: “Which active |
| 143 | conclusions need review because evidence X was invalidated?” A general-purpose ontology is |
| 144 | unnecessary to ask it. When promoting a conclusion into durable knowledge, retain enough evidence to |
| 145 | reassess it after raw logs expire. If that support becomes unavailable, record the loss explicitly |
| 146 | rather than presenting the conclusion as equally supported. |
| 147 | |
| 148 | ## 3. Existing tools clarify the storage choices |
| 149 | |
| 150 | git-bug embeds a distributed issue tracker in Git without adding ordinary project files. Its |
| 151 | official documentation describes offline operation, synchronization through Git remotes, several |
| 152 | interfaces, and bridges to hosted trackers. It is direct evidence that repository-associated project |
| 153 | knowledge does not require Markdown in the checked-out source tree. Its documented behavior is not |
| 154 | an independent performance evaluation. |
| 155 | [A05: git-bug documentation](https://github.com/git-bug/git-bug) |
| 156 | |
| 157 | Beads is closer to the proposed dispatch surface. Its current README describes a dependency-aware |
| 158 | issue graph, a ready-work query, atomic task claiming, persistent memory, and Dolt-backed storage. |
| 159 | Embedded mode is described as single-writer; server mode supports concurrent writers. JSONL is an |
| 160 | export rather than the authoritative database. These are claims about the documented implementation |
| 161 | at the access date. They should not be generalized to every historical Beads version. |
| 162 | [A06: Beads documentation](https://github.com/gastownhall/beads) |
| 163 | |
| 164 | The [local Beads comparison](../../.the-valley/ideas/ida-aea57f0-prior-art-beads.md) identifies the |
| 165 | important requirement: knowledge changes should pass through the same governed integration boundary |
| 166 | as other durable project changes. **Assessment:** the phrase “one history” needs a precise |
| 167 | definition before it becomes a storage constraint. A repository can contain many Git refs with |
| 168 | different histories. A system with several stores can present one causally linked audit record. |
| 169 | Neither fact alone establishes atomic publication of code and knowledge. |
| 170 | |
| 171 | Consider the specific failure to prevent. A change fixes a parser, but its outcome is marked done |
| 172 | before the protected ref advances. A later integration rejection leaves the outcome falsely closed. |
| 173 | Storing both records in one directory does not prevent this if they land separately. Conversely, two |
| 174 | stores can enforce a publish protocol that never exposes completion before the relevant integration |
| 175 | receipt. That protocol may be too complex for v1, but the decisive property is the transition rule. |
| 176 | |
| 177 | Three designs are worth comparing experimentally: |
| 178 | |
| 179 | | Design | Main advantage | Question that determines suitability | |
| 180 | | ------------------------------------------------------------- | --------------------------------------------------- | ----------------------------------------------------------------------- | |
| 181 | | Markdown nodes in the code tree | Simple inspection and atomic code-plus-node commits | How much concurrent editing and status traffic remains comfortable? | |
| 182 | | Git object records outside the code tree | Independent collaboration without worktree noise | Which fetch, backup, and authorization rules cover the additional refs? | |
| 183 | | Transactional graph store with immutable publication receipts | Efficient claims, queries, and concurrent updates | How are graph publication and code integration coupled and recovered? | |
| 184 | |
| 185 | **Recommendation:** keep the current durable files until measured workloads justify another backend. |
| 186 | Build derived indexes over commit-pinned snapshots. Give transient leases their own operational |
| 187 | contract; do not silently turn a heartbeat into authoritative project knowledge. The existing |
| 188 | [signal contracts](../../.the-valley/decisions/dcr-62ecc36-signal-contracts.md) already distinguish |
| 189 | durable events, lossy metrics, and retained logs. That distinction is a better starting point than |
| 190 | choosing one storage engine for everything. |
| 191 | |
| 192 | ## 4. Agent memory is several different systems |
| 193 | |
| 194 | ### Retrieval improves access, not authority |
| 195 | |
| 196 | Retrieval-augmented generation couples generation with retrieval from external documents. Lewis and |
| 197 | colleagues demonstrated this approach on knowledge-intensive language tasks using a learned |
| 198 | retriever and sequence generator. It provides a foundation for bringing external material into |
| 199 | generation; it does not establish which project document is authoritative when several disagree. |
| 200 | [A17: Lewis et al., 2020](https://arxiv.org/abs/2005.11401) |
| 201 | |
| 202 | MemGPT makes memory management part of agent behavior. It gives the model operations for moving |
| 203 | information between limited working context and external storage, and evaluates conversational |
| 204 | memory and document analysis. Its experiments also expose dependence on tool-use capability and |
| 205 | retrieval behavior. The operating-system analogy is a design aid, not a guarantee that information |
| 206 | will be loaded when needed. [A11: Packer et al., 2023/2024](https://arxiv.org/html/2310.08560v2) |
| 207 | |
| 208 | Generative Agents combines remembered experiences, retrieval, reflection, and planning in a |
| 209 | simulated community. Its evaluations emphasize believable behavior and emergent coordination. The |
| 210 | work is useful for understanding how these components interact, but social believability in a small |
| 211 | simulation is not a test of reliable software maintenance. |
| 212 | [A12: Park et al., 2023](https://arxiv.org/html/2304.03442v2) |
| 213 | |
| 214 | Reflexion stores verbal feedback from attempts and uses it in later trials without updating model |
| 215 | weights. It supplies a concrete model for learning from execution feedback across attempts. Its |
| 216 | reported benchmark gains depend on the evaluator, feedback, task distribution, and retry setup. They |
| 217 | do not imply that an agent's written explanation of its failure is itself reliable evidence. |
| 218 | [A13: Shinn et al., 2023](https://arxiv.org/html/2303.11366v4) |
| 219 | |
| 220 | **Assessment:** these mechanisms are compatible with the-valley's |
| 221 | [single-home-for-project-knowledge principle](../../.the-valley/ideas/ida-f172c8e-project-knowledge-not-agent-instructions.md). |
| 222 | The durable graph can remain authoritative while each run uses a temporary summary, search index, or |
| 223 | working-memory view. The important boundary is promotion. A remembered observation should not become |
| 224 | project policy simply because a model summarized it confidently. |
| 225 | |
| 226 | A useful distinction is: |
| 227 | |
| 228 | | Material | Example | Appropriate treatment | |
| 229 | | --------------------- | ------------------------------------------------------ | ------------------------------------------ | |
| 230 | | Project commitment | Integration reads policy from the target branch | Governed durable knowledge | |
| 231 | | Observation | A command failed against a named tree and tool version | Evidence with execution context | |
| 232 | | Tentative explanation | The failure may come from an environment mismatch | Hypothesis, open to correction | |
| 233 | | Run working state | Files still to inspect during this attempt | Disposable or checkpointed execution state | |
| 234 | |
| 235 | These categories can share an interface. They should retain different authority and retention rules. |
| 236 | For example, an index may retrieve a hypothesis as relevant context, but the briefing should not |
| 237 | render it as a decided invariant. |
| 238 | |
| 239 | ### A large context window is not a memory evaluation |
| 240 | |
| 241 | _Lost in the Middle_ found that the tested models often used relevant information less successfully |
| 242 | when it appeared in the middle of long contexts. Its contribution is an experimental method: |
| 243 | manipulate position while holding the information constant. The measured degradation belongs to the |
| 244 | tested models and tasks; its magnitude should not be assumed for current models. |
| 245 | [A14: Liu et al., 2023/2024](https://arxiv.org/html/2307.03172v3) |
| 246 | |
| 247 | LongMemEval broadens memory testing to extraction, cross-session reasoning, temporal reasoning, |
| 248 | updates, and abstention. It uses curated questions within constructed conversation histories. These |
| 249 | dimensions matter more to the-valley than a single retrieval score, although conversational memory |
| 250 | is not project design understanding. |
| 251 | [A15: Wu et al., 2024/2025](https://arxiv.org/html/2410.10813v1) |
| 252 | |
| 253 | The 2026 LongMemEval-V2 preprint moves toward environment-specific experience: state changes, |
| 254 | procedures, recurring pitfalls, and questions whose premises may be false. Its evaluation asks |
| 255 | memory systems to return bounded evidence for a fixed reader. That separation helps distinguish |
| 256 | retrieval quality from answering ability. Its website environments and question-answering |
| 257 | formulation still leave long-term engineering quality unmeasured. |
| 258 | [A16: Wu et al., 2026](https://arxiv.org/html/2605.12493v1) |
| 259 | |
| 260 | **Recommendation:** evaluate retrieval over actual project histories containing deliberate changes |
| 261 | of mind. Ask which decision is current, what was true at a past commit, whether an old assumption |
| 262 | still holds, and whether the graph contains enough evidence to answer. “Unknown” should be correct |
| 263 | when the record is insufficient. A system that answers every question fluently is a poor project |
| 264 | memory. |
| 265 | |
| 266 | The retrieval result should identify its source commit and preserve access to the full passage. Rank |
| 267 | current authoritative material separately from historical material. Test lexical search before |
| 268 | adding embeddings, and compare both with graph expansion from explicit references. The winning |
| 269 | method may differ for exact identifiers, conceptual questions, and questions about change over time. |
| 270 | |
| 271 | SWE-agent provides another relevant result: changing the agent's tools and feedback changes its |
| 272 | ability to work in a repository. Its study evaluates specialized navigation, editing, and execution |
| 273 | interfaces, including ablations against a shell-based baseline. It supports treating interface |
| 274 | design as part of the experimental system, rather than attributing every success or failure to the |
| 275 | model. [A18: Yang et al., 2024](https://arxiv.org/html/2405.15793v3) |
| 276 | |
| 277 | **Hypothesis:** small project-specific verbs such as “show current decision,” “explain blockers,” |
| 278 | and “show evidence for completion” will provide more reliable value initially than an elaborate |
| 279 | autonomous memory manager. Test that hypothesis under equal tool-call and context budgets. |
| 280 | |
| 281 | ## 5. An outcome graph is a plan representation, not a complete planner |
| 282 | |
| 283 | ### Refinement needs a meaning |
| 284 | |
| 285 | Goal-oriented requirements engineering separates desired properties from operations that might |
| 286 | achieve them. Van Lamsweerde's account distinguishes AND refinements, alternative OR refinements, |
| 287 | conflicting goals, responsibility, and assumptions about the environment. It also distinguishes |
| 288 | achieving a condition from maintaining one over time. This is directly relevant to a system that |
| 289 | wants to represent both shipping an artifact and keeping a service healthy. |
| 290 | [A07: van Lamsweerde, 2001](https://webperso.info.ucl.ac.be/~avl/files/RE01.pdf) |
| 291 | |
| 292 | **Inference:** the current `blocked_by` relation is sufficient for an initial worklist, but too weak |
| 293 | to carry all the meanings implied by an outcome engine. “Release is waiting for a security review” |
| 294 | is a precedence constraint. “A valid release consists of a tested artifact and a compatible |
| 295 | migration” is a claim about sufficient conditions. “Restore service by rollback or by repair” |
| 296 | presents alternatives. Representing every edge as a mandatory blocker would launch unnecessary work |
| 297 | in the last example. |
| 298 | |
| 299 | Hierarchical task network planning studies how compound tasks can be reduced through methods into |
| 300 | more concrete tasks. Erol, Hendler, and Nau show that expressivity and complexity depend strongly on |
| 301 | the allowed task-network structure and restrictions. Their results concern formal planning models; |
| 302 | they do not say that the-valley's current small graph is intractable. They do show why unrestricted |
| 303 | recursive decomposition deserves its own design rather than being treated as free scheduling. |
| 304 | [A08: Erol et al., 1994](https://cdn.aaai.org/AAAI/1994/AAAI94-173.pdf) |
| 305 | |
| 306 | **Recommendation:** initially let agents propose decompositions while a deterministic scheduler |
| 307 | executes an accepted graph. Each proposed decomposition should state its parent condition, its |
| 308 | assumptions, why the children are sufficient, and what would invalidate the plan. A new child should |
| 309 | consume a share of the parent's budget; adding an edge should never mint new spending authority. |
| 310 | This is a recommendation for bounded automation, not a demand for approval of every low-impact task. |
| 311 | Pin the accepted objective and acceptance procedure, including which authority may revise them. An |
| 312 | agent's proposed amendment must remain distinguishable from the rule currently deciding success. |
| 313 | |
| 314 | ### Readiness, priority, and criticality are different |
| 315 | |
| 316 | A graph can identify nodes without open predecessors. Priority propagation can identify which root |
| 317 | caused demand. Neither calculation identifies the longest remaining path without an estimate of |
| 318 | duration. Resource limits, actor capabilities, communication, and uncertain work lengths further |
| 319 | change which assignment produces the earliest completion. |
| 320 | |
| 321 | HEFT is useful prior art because it explicitly schedules a known task graph on heterogeneous |
| 322 | processors using estimated computation and communication costs. It ranks tasks and assigns them to |
| 323 | processors using a heuristic. Its setting differs from agents discovering new tasks during |
| 324 | execution, but it makes the missing quantities visible. |
| 325 | [A09: Topcuoglu, Hariri, and Wu, 2002](https://disco.ethz.ch/courses/fs14/seminar/paper/Jochen/4.pdf) |
| 326 | |
| 327 | Suppose a release needs a two-hour verification run and a five-minute policy clarification. Starting |
| 328 | the expensive run immediately may be best if the clarification cannot change its inputs. Resolving |
| 329 | the clarification first may be better if it could invalidate the run. The second choice is about |
| 330 | reducing uncertainty, not simply following the longest visible path. A scheduler needs to recognize |
| 331 | that information-gathering work can prevent wasted production. |
| 332 | |
| 333 | **Recommendation:** begin with eligibility, explicit root priority, age, estimated cost, and actor |
| 334 | availability. Record the estimates and actual outcomes. Add a critical-path heuristic only when |
| 335 | measurements support useful estimates. Preserve a bounded share of capacity for older or lower |
| 336 | priority work if starvation is unacceptable. A stream of high-priority roots otherwise gives |
| 337 | ordinary work no completion guarantee. |
| 338 | |
| 339 | Queueing theory offers a basic diagnostic. Little's relation connects average work in progress, |
| 340 | arrival rate, and average time in the system under the theorem's conditions. It is not a universal |
| 341 | causal promise that reducing any visible queue improves throughput. |
| 342 | [A10: Little, 1961](https://pubsonline.informs.org/doi/10.1287/opre.9.3.383) |
| 343 | |
| 344 | **Inference:** dispatching more agents can increase work awaiting integration or human clarification |
| 345 | without increasing completed outcomes. Measure each queue separately: ready work, running work, |
| 346 | changes awaiting integration, and requests awaiting human decisions. The bottleneck may move when |
| 347 | one stage improves. |
| 348 | |
| 349 | ### Stopping is part of the outcome contract |
| 350 | |
| 351 | Consider an outcome “users can export all their data.” Its children implement an endpoint and update |
| 352 | the documentation. Both changes land and pass their checks. The parent remains false if the endpoint |
| 353 | omits archived records. A completion receipt demonstrates the checks that ran; it does not repair an |
| 354 | incomplete definition of the outcome. |
| 355 | |
| 356 | **Recommendation:** distinguish at least these conditions in the engine's internal model: |
| 357 | |
| 358 | 1. A prerequisite has reached a terminal administrative state. |
| 359 | 2. Work is eligible to attempt. |
| 360 | 3. An attempt produced evidence satisfying its declared acceptance procedure. |
| 361 | 4. The desired condition is accepted as attained in a stated environment and scope. |
| 362 | 5. The condition remains valid under current observations. |
| 363 | |
| 364 | This need not mean five new frontmatter statuses. It means the scheduler and closure procedure must |
| 365 | not substitute one statement for another. In particular, an abandoned prerequisite should cause |
| 366 | parent reassessment, replacement of the plan, or abandonment of the parent. It should not count as |
| 367 | evidence that a required condition holds. |
| 368 | |
| 369 | The [production sketch](../../.the-valley/ideas/ida-b48bded-production-dags-and-events.md) already |
| 370 | recognizes that service obligations do not terminate. Its claim that versioning turns feedback |
| 371 | cycles into acyclic artifact histories is useful, but acyclicity does not guarantee progress. An |
| 372 | infinite sequence of distinct revisions can remain stuck. Retries need stable logical identity |
| 373 | across runs, otherwise renaming a task erases its failure count. |
| 374 | |
| 375 | **Recommendation:** measure progress toward acceptance, not graph growth or number of closed child |
| 376 | nodes. Bound total spend, attempt count, elapsed time, and decomposition. Cancellation should |
| 377 | withdraw the cancelled root's demand through the descendant graph. A shared prerequisite can remain |
| 378 | required by another live root. Lease expiry must not grant two workers simultaneous authority to |
| 379 | perform the same external effect; that requires enforcement at the effect boundary. Log enough of |
| 380 | each failed attempt to distinguish a transient environment failure from repeated misunderstanding. |
| 381 | Budget reservations must account atomically for concurrent descendants, retries, and restarted |
| 382 | controllers. Independent workers checking the same remaining balance can otherwise each authorize |
| 383 | spending that exceeds the shared limit. |
| 384 | |
| 385 | ## 6. Human attention is a resource with special constraints |
| 386 | |
| 387 | The demand-pressure proposal treats a human-blocked node as work dispatched through notification. |
| 388 | That is useful for representing responsibility. It is insufficient as a model of attention. A human |
| 389 | cannot be cloned, paused, or restarted like a process. An interruption has costs beyond the seconds |
| 390 | spent reading it, and multiple notifications can concern the same underlying decision. |
| 391 | |
| 392 | Bainbridge's _Ironies of Automation_ explains a central difficulty of supervision: automation may |
| 393 | leave humans responsible for exceptional intervention while depriving them of the practice and |
| 394 | ongoing involvement needed to intervene well. It is a conceptual analysis of industrial automation, |
| 395 | not a quantified study of coding-agent review. Its relevance is the failure mode it makes visible. |
| 396 | [A25: Bainbridge, 1983](https://gwern.net/doc/sociology/technology/1983-bainbridge.pdf) |
| 397 | |
| 398 | Parasuraman, Sheridan, and Wickens distinguish automation of information acquisition, analysis, |
| 399 | decision selection, and action implementation. These functions can have different automation levels. |
| 400 | Their framework discourages treating autonomy as one switch that controls the whole system. |
| 401 | [A26: Parasuraman et al., 2000](https://doi.org/10.1109/3468.844354) |
| 402 | |
| 403 | **Inference:** the-valley can automate evidence collection and execution while retaining human |
| 404 | judgment over the meaning of a release criterion. It can automatically summarize incidents while |
| 405 | requiring a separate act to revise the project's threat model. These boundaries may vary by outcome |
| 406 | class. “Human in the loop” is too vague to describe them. |
| 407 | |
| 408 | Horvitz's mixed-initiative work explicitly considers uncertainty about user goals, the timing of |
| 409 | interruptions, expected costs and benefits, clarification, and easy invocation or termination of |
| 410 | automation. It offers a foundation for deciding when assistance should act or ask, illustrated with |
| 411 | a scheduling interface rather than software production. |
| 412 | [A27: Horvitz, 1999](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/11/chi99horvitz.pdf) |
| 413 | |
| 414 | **Recommendation:** route a decision request with the exact choice, relevant evidence, consequence |
| 415 | of waiting, and action that follows each answer. Combine requests that depend on the same decision. |
| 416 | Separate urgent intervention from a digest of completed work. Measure whether the recipient can make |
| 417 | the decision from the supplied context, not merely whether a notification was delivered. |
| 418 | |
| 419 | For example, five agents blocked on a signing-policy change should generate one coherent policy |
| 420 | decision with five affected outcomes. Five independent urgent messages would turn graph structure |
| 421 | into interruption amplification. Likewise, an agent's third failed integration should appear as one |
| 422 | recurring failure with its history, not another apparently new proposal. |
| 423 | |
| 424 | The [architecture's review-as-feedback bet](../../design/architecture.md) becomes defensible when |
| 425 | paired with evidence about detection delay and consequence. A formatting change and a modification |
| 426 | to the authority boundary need different review timing. The useful comparison is between concrete |
| 427 | policies: pre-integration review, sampled post-integration review, targeted review of uncertain |
| 428 | changes, and automatic acceptance with later incident analysis. The report does not assume one |
| 429 | policy wins for every change class. |
| 430 | |
| 431 | **Hypothesis:** a small, calibrated stream of decision requests and sampled completed changes will |
| 432 | preserve understanding better than either reviewing everything superficially or seeing only |
| 433 | failures. A trial should measure missed defects, review time, interruption count, and the operator's |
| 434 | ability to explain current system behavior after several weeks. |
| 435 | |
| 436 | ## 7. Evaluation should measure useful work and preserved understanding |
| 437 | |
| 438 | ### What existing benchmarks establish |
| 439 | |
| 440 | SWE-bench turns historical repository issues into executable patching tasks. It evaluates whether |
| 441 | candidate changes satisfy tests associated with issue resolution while preserving specified existing |
| 442 | behavior. This is substantially closer to repository work than isolated function generation. It |
| 443 | still does not measure all of specification discovery, architectural coherence, deployment, or |
| 444 | maintenance over successive changes. |
| 445 | [A19: Jimenez et al., 2023/2024](https://arxiv.org/html/2310.06770v3) |
| 446 | |
| 447 | SWE-bench-Live develops an updatable collection of issue-resolution tasks and automated environment |
| 448 | construction. Fresh tasks and broader repositories help address staleness and some leakage risks. |
| 449 | Recency does not establish absence of training exposure, nor does it make test-based acceptance |
| 450 | equivalent to complete issue resolution. |
| 451 | [A20: Zhang et al., 2025](https://arxiv.org/html/2505.23419v1) |
| 452 | |
| 453 | Oren and colleagues demonstrate a statistical contamination test based on the likelihood of |
| 454 | canonical versus shuffled benchmark orderings. Its assumptions and access requirements matter. |
| 455 | Evidence from a particular detector cannot be generalized into proof that every undetected benchmark |
| 456 | is clean. [A21: Oren et al., 2023](https://arxiv.org/html/2310.17623v1) |
| 457 | |
| 458 | _AI Agents That Matter_ argues for jointly evaluating cost and accuracy, adequate holdouts, simple |
| 459 | baselines, and reproducible evaluation procedures. Its empirical examples show that apparent gains |
| 460 | from elaborate agent designs can be misleading when spending and retries are not controlled. That |
| 461 | critique is especially relevant to a scheduler whose normal response to unfinished work is another |
| 462 | attempt. [A22: Kapoor et al., 2024](https://arxiv.org/html/2407.01502v1) |
| 463 | |
| 464 | The practical productivity evidence is also conditional. METR's early-2025 randomized study found a |
| 465 | 19% increase in completion time when 16 experienced maintainers could use the studied AI tools |
| 466 | across 246 tasks. That result describes those tools, maintainers, and tasks; it is not a general |
| 467 | estimate of present agent productivity. |
| 468 | [A23: Becker et al., 2025](https://metr.org/Early_2025_AI_Experienced_OS_Devs_Study-paper.pdf) |
| 469 | |
| 470 | METR's February 2026 update reports that selection into its later experiment and measurement of time |
| 471 | under concurrent agent use made the later estimates unreliable. The organization argues that the |
| 472 | study design needs revision. Reporting the earlier slowdown without this update would invite a |
| 473 | misleading current conclusion. |
| 474 | [A24: Becker et al., 2026](https://metr.org/blog/2026-02-24-uplift-update/) |
| 475 | |
| 476 | **Assessment:** the-valley should learn experimental discipline from these sources without choosing |
| 477 | one headline score as its objective. The system exists to produce outcomes while preserving control |
| 478 | and understanding. Patch success, operator time, latency, expenditure, and later rework are separate |
| 479 | measurements. |
| 480 | |
| 481 | ### A theory-reconstruction experiment |
| 482 | |
| 483 | The strongest near-term experiment uses a fixed repository snapshot and tasks that require applying |
| 484 | its design to new situations. The task set should include valid modifications, plausible changes |
| 485 | that violate a principle, and questions the existing record cannot answer. Avoid tasks copied from |
| 486 | documents that already contain their solutions. |
| 487 | |
| 488 | Compare four knowledge conditions while holding the model, harness, tools, and budget constant: |
| 489 | |
| 490 | | Condition | What the contributor receives | What the comparison tests | |
| 491 | | ------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------- | |
| 492 | | Code and ordinary documentation | The repository without the knowledge graph | Value added by curated project knowledge | |
| 493 | | Current graph | Code, documents, and the current typed nodes | Benefit of the existing convention | |
| 494 | | Graph with justification and evidence | The same material plus explicit premises and source links | Whether additional structure improves application rather than recall | |
| 495 | | Retrieved briefing | A bounded briefing derived from the same snapshot, with source access | Whether context selection preserves understanding cheaply | |
| 496 | |
| 497 | Add a matched-information comparison that presents identical facts and rationale as ordinary prose |
| 498 | and as typed nodes. This separates the value of the information from the value of graph structure. |
| 499 | Keep held-out tasks independent of wording and examples unique to the graph. |
| 500 | |
| 501 | Score at least factual recall, validity of proposed modifications, identification of missing |
| 502 | assumptions, justified abstention, and ability to explain tradeoffs. Ask blinded human reviewers to |
| 503 | judge a sample using a rubric established before seeing outputs. A model judge can extend coverage |
| 504 | after calibration, but agreement with one favored model is not a definition of design quality. |
| 505 | |
| 506 | Measure tokens and time until a satisfactory solution, including retrieval and unsuccessful |
| 507 | attempts. Count later corrections. Give multiple independent runs each task and report uncertainty |
| 508 | around differences. Publish representative failure cases, not just a mean score. A knowledge |
| 509 | condition that raises recall but produces more overconfident invalid changes should not win. |
| 510 | |
| 511 | Then reverse the experiment: hold the model fixed and compare graph versions. Use held-out tasks so |
| 512 | that editing the graph to fix observed failures does not simply teach it the test answers. Separate |
| 513 | improvements in the graph from changes in prompts, tools, and model versions. This makes the |
| 514 | repository's two-sided evaluation proposal concrete. |
| 515 | |
| 516 | ### Completion claims need adversarial tests |
| 517 | |
| 518 | A second evaluation should attack the outcome engine's semantics. Construct small graphs where a |
| 519 | blocker is abandoned, evidence expires, an OR alternative succeeds, a parent is cancelled during a |
| 520 | child run, or a worker loses its lease before returning. Include mutually dependent outcomes and |
| 521 | repeated revisions that never make substantive progress. |
| 522 | |
| 523 | The expected behavior should be stated independently of the implementation. For example, abandoned |
| 524 | work must not count as fulfilled evidence; cancellation must stop work justified only by the |
| 525 | cancelled root while preserving shared prerequisites still demanded elsewhere; stale workers must |
| 526 | not duplicate external effects; and a cycle must produce a diagnostic rather than silent inactivity. |
| 527 | Compare the proposed automatic engine with a simple manual ready-work query. The engine must add |
| 528 | useful progress, not merely activity. |
| 529 | |
| 530 | For scheduling policies, replay representative arrivals and measured task durations in simulation |
| 531 | before spending model calls. Compare priority-only dispatch, priority with aging, estimated |
| 532 | critical-path dispatch, and a policy that resolves high-impact uncertainty first. Report root |
| 533 | completion time, worst waiting time, total spend, discarded work, and human decision load. The best |
| 534 | policy will depend on workload; finding those boundaries is a useful result. |
| 535 | |
| 536 | ### Reproducibility has limits that should be explicit |
| 537 | |
| 538 | The current |
| 539 | [agent-provenance proposal](../../.the-valley/ideas/ida-45178f6-agent-identity-is-provenance.md) |
| 540 | already notes that a hosted model is an impure service boundary. The useful experiment record |
| 541 | includes the repository tree, graph snapshot, prompt and retrieved context, tool versions, tool |
| 542 | results, model identifier, budgets, and acceptance procedure. A digest of withheld material proves a |
| 543 | commitment to bytes; it does not make those bytes available for independent replay. |
| 544 | |
| 545 | **Recommendation:** distinguish rerunning a workflow, reproducing its environment, and reproducing |
| 546 | its exact output. Even known model weights do not by themselves fix sampling, numerical execution, |
| 547 | or changing external observations. Record what is controlled and what is merely identified. |
| 548 | |
| 549 | An observed tool transcript is evidence of externally visible actions. An agent's explanatory prose |
| 550 | is a claim about its process. Neither is direct access to all internal reasoning. Evaluation should |
| 551 | prefer interventions: remove a premise, change a tool response, or vary the available evidence and |
| 552 | observe the resulting behavior. This can test dependence on information without pretending to read |
| 553 | the model's mind. |
| 554 | |
| 555 | Finally, maintain a prospective task set whose solutions do not exist at task creation. Record when |
| 556 | tasks become public and whether providers may receive them. Reserve some tasks and judging criteria |
| 557 | from normal graph maintenance. Public task freshness, controlled access, and documented exposure |
| 558 | reduce different forms of leakage; none should be described as perfect decontamination. |
| 559 | |
| 560 | ## 8. The most promising research direction |
| 561 | |
| 562 | **Assessment:** the-valley's distinctive opportunity is to connect governed project knowledge with |
| 563 | evidence about completed work. Repo-local notes, agent memory, task graphs, workflow execution, and |
| 564 | provenance each have substantial prior art. The interesting question is whether their combination |
| 565 | can make project understanding cheaper to reconstruct while making delegated work easier to inspect |
| 566 | and correct. |
| 567 | |
| 568 | The strongest claim to pursue is therefore conditional and measurable: a fresh contributor using the |
| 569 | project's current record can make an unfamiliar change with fewer conceptual mistakes, at lower |
| 570 | total recovery cost, while preserving an inspectable chain from intent to accepted result. That |
| 571 | claim would justify the substrate even if a fully general outcome-production engine remains distant. |
| 572 | |
| 573 | Four investigations can discriminate among the plausible designs: |
| 574 | |
| 575 | 1. **Knowledge ablation:** determine whether the present graph improves unseen modifications over |
| 576 | ordinary repository documentation. If it does not, investigate content and retrieval before |
| 577 | adding more node types. |
| 578 | 2. **Completion semantics:** implement an executable model of readiness, acceptance, invalidation, |
| 579 | abandonment, and cancellation. Use counterexamples to determine which distinctions the public |
| 580 | schema actually needs. |
| 581 | 3. **Operational load:** measure realistic graph mutation and dispatch workloads. Compare files, |
| 582 | derived indexes, and a transactional backend on conflict rate, recovery, and operator effort. |
| 583 | 4. **Attention trial:** run bounded automation for several weeks and measure the work needed to |
| 584 | maintain understanding. Compare review and notification policies by defects caught and human |
| 585 | time, not volume of generated summaries. |
| 586 | |
| 587 | **Recommendation:** prioritize the first two before a rich autonomous scheduler. Better scheduling |
| 588 | cannot rescue an engine that mistakes an administrative transition for an attained outcome. More |
| 589 | memory cannot rescue an authoritative record that omits the assumptions needed to interpret it. The |
| 590 | research should reward useful negative results: a simpler query, a shorter briefing, or a human |
| 591 | decision at the right boundary may outperform a more elaborate agent loop. |