gunk-dev/the-valley

05-knowledge-agents-and-outcomes.md

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