Chapter 11 of 17

Consequences Nobody Wrote Down

Concepts

Chapter 11 β€” Consequences Nobody Wrote Down

Source: 11-chapter.md

What this chapter is really about

Underneath the corpus_import traps, this chapter is about inference as a liability. Every earlier chapter adds machinery that, when wrong, merely errs; derived-loop inference, when wrong, invents obligations β€” manufacturing work, false provenance, and destructive actions (delete the contracted facade). Its deepest question: under what conditions may a memory system conclude something nobody said? The (current, expected, difference) triple is really a licence format for inference: a derived claim is admissible only with all three legs cited. The chapter treats its capability as guilty until proven innocent β€” the correct stance for any mechanism whose errors act rather than merely misinform.

Current thesis

Explicit claims (now measured in ch11-20260920T171039Z-derived-loops)

  • Explicit vs derived loops: given obligations vs concluded debts; the triple (current state + expected state + difference) is the honesty criterion and trace format.
  • corpus_import traps: contracted facade (false consequence), preserved tests (intentional staleness), scoped deferral (explicit-not-derived), partial migration (fractional discharge).
  • Precision dominates listing risk: unconstrained listing macro precision 0.458 (micro 0.476) with harmful listings on 4/8 tasks; staged gate macro/micro 1.0/1.0 with zero harmful listings, recall held at 1.0, oracle matched. Zero-positive trap tasks score null, never zero.
  • Staged gate, not scalar threshold, ships in v1: S0–S4 reason-coded; the loosening backtest (drop cancelling leg) scored βˆ’0.354 and was rejected on harmful/abstention gates.
  • Type-A verdict with demotion clauses: crisp fixtures, ledger adjudication, no reader, synthetic, deterministic. Staged equalling oracle flatters crisp traps.

Implied claims

  • The past sets expectations the present is checked against β€” memory as reasoning over maintained state. This is the first layer in the current sequence whose inference creates a new candidate obligation rather than merely retrieving, relating, resolving, or selecting remembered information (accumulation point for Ch 7+8).
  • Abstention is scoreable as a first-class outcome (silence beats invention on trap fixtures).
  • The staged gate ships as a versioned policy β€” i.e., staged-triple-gate-v1 generalises across scopes in fixture evidence. No scalar threshold ships; a scalar earns itself only if it adds something a stage did not decide.

Not yet established

  • That the triple’s legs are obtainable: expected state needs maintained beliefs/decisions/contracts (Ch 7+8 output quality), current state needs fresh snapshots (the snapshot contract, still undesigned).
  • That one gate version operates sensibly across heterogeneous scopes (migration debts vs facade contracts vs test preservation) β€” or gate versions fragment per domain, multiplying policy surface.
  • That abstention scoring doesn’t reward strategic silence (the vagueness-gaming problem from 08-concepts, now for whole outputs).

What the chapter already gives us

  • The triple as inference licence. (current, expected, difference) with per-leg provenance is the most transferable honesty device in the book: any inferred item (loops, consolidations, procedures, compressions) can be required to show its legs.
  • The trap taxonomy. False consequence, intentional staleness, scoped deferral, fractional discharge β€” four distinct ways “looks unfinished” misleads, each a fixture class. The contracted facade is the book’s best single trap: acting on it breaks a commitment in the other direction.
  • Precision-first with abstention scoring. Inverts the usual recall-friendly bias of task-tracking evaluation; silence as a scored success is genuinely novel harness design.
  • Gate-as-policy. The staged gate made explicit and shippable as an immutable version rather than buried in defaults β€” connects to Chapter 13’s policy ladder (gate versions are policy parameters) and to the Chapter 10 backtest discipline.
  • The accumulation argument. Why this chapter sits after 7+8: provenance keeps per-leg grounds, intervals keep resolution, superseded evidence stays out of the expected-state leg. Placement earned, not asserted.

Where the current treatment stops

  • Expected-state sourcing is hand-waved: “current architecture (PostgreSQL β€” Ch 8 belief) + historical decision + current artifact state.” But Ch 8 belief may be uncertain, multi-standpoint (08-concepts), or itself derived. The triple’s expected leg inherits all upstream uncertainty without a propagation rule β€” confidence-labelled legs with no combination calculus.
  • The current-state leg needs snapshot infrastructure whose staleness semantics mirror the summary-staleness problem: a pre-fix snapshot reports resolved loops as open (the derived-world twin of stale tasks, noted but not designed against).
  • Trap ambition vs trap realism: the four traps are exquisite but possibly unrepresentative. Real rot is more often ambiguous (is the facade really still contracted? did the partner silently migrate?) than crisp. Crisp traps may overstate discriminator performance β€” the fixture-realism worry from Chapter 2 applied to the book’s own showcase.
  • Action asymmetry unexamined: listing a phantom todo wastes attention, but acting on a phantom loop (deleting the facade) destroys. The chapter scores listing precision; the destructive-action risk suggests loops need action-gating (suggest vs execute thresholds) the chapter never mentions.
  • Partial migration (fractional discharge) is listed as a trap/complication in one line, but fractional state is really the fulfilment-semantics problem from 10-concepts arriving without its machinery.

The deeper territory

  • Inference licences generally. The triple is one instance of a general pattern: derived memory admissible only with cited grounds per inferential leg. Consolidation (episodes+scope+confidence), procedures (episodes+preconditions+checks), compressions (source+preserved-distinctions), attributions (outcome+level) all need licence formats. The chapter invents the pattern; the book should generalise it into a standing requirement: no derived memory without a licence.
  • Stale legs and leg maintenance. Each triple leg rots on its own schedule: snapshots stale fastest, contracts slowest, beliefs on revision. A derived loop is only as fresh as its stalest leg β€” so loops need re-derivation triggers (the re-verification problem from 09-concepts, now for inferences). Without leg maintenance, derived loops become internally-generated stale summaries β€” Chapter 8’s enemy manufactured at home.
  • The action gate. Suggesting vs executing inferred obligations are different risk classes needing different thresholds. A two-tier operating point (suggest at confidence c1, act at c2 with human confirmation between?) connects to authority machinery (Applied AI territory: capability vs authority) the book hasn’t built. The facade-deletion catastrophe is really an authority failure wearing inference clothing.
  • Trap realism and ambiguity. Crisp traps test discriminators; ambiguous rot tests calibration. The harder fixture class: partner commitment probably still holds (last confirmed 18 months ago), tests probably intentional (no annotation found). Resolving these needs evidence-weighing, not just leg-citation β€” pushing derived loops toward probabilistic reasoning the book’s machinery doesn’t contain.

Concepts worth developing

Inference licences as a standing requirement

Idea. Every derived memory type carries a licence: the cited grounds per inferential leg, each leg scored, abstention when legs are missing. Triple for loops; support+scope+confidence for consolidations; episodes+preconditions+checks for procedures; outcome+attribution-level for updates.

Why it matters. It unifies the book’s honesty machinery into one enforceable rule and gives every future derived layer its admission format in advance.

Connection to the current chapter. Generalises the triple from loops to all inference.

Broader implication. The harness gains a generic “licence completeness” check applicable to any layer; unlicensed derivations fail structurally, not just empirically.

What remains unresolved. Licence formats per layer (design work); whether licences compose (a procedure derived from a consolidated claim carries both licences?); storage cost.

Leg maintenance and re-derivation triggers

Idea. Derived loops subscribe to their legs: snapshot refresh, belief revision, contract change each trigger re-derivation or confidence decay. Loops carry leg-timestamps; stale-legged loops are marked, not silently served.

Why it matters. Without it, the system manufactures exactly the stale summaries Chapter 8 fights β€” internally generated, licence-washed, trusted because structured.

Connection to the current chapter. Answers the staleness twin noted but not designed against; extends 09-concepts re-verification from status to inferences.

Broader implication. All derived memory becomes subscriptions over maintained state β€” a unified maintenance architecture (with view-maintenance semantics from 08-concepts).

What remains unresolved. Trigger granularity (every snapshot refresh re-derives everything?); cost; interaction with forgetting (do subscriptions survive suppression?).

The action gate: suggest vs execute

Idea. Inferred obligations carry two operating points: suggest (list with licence) and execute (act autonomously), with the execute bar far higher and possibly requiring confirmation. Destructive actions on inferred grounds need authority machinery, not just a sharper gate. (v1 ships neither operating point as a scalar; both are future policy, subject to the same backtest discipline.)

Why it matters. The facade catastrophe is an action failure, not a listing failure. Scoring listing precision while the system can act on listings misses the actual risk.

Connection to the current chapter. Extends gate-as-policy from listing to acting; connects memory to authority (capability vs permission).

Broader implication. Memory systems that act need the full Applied-AI boundary (intent, authority, verification) β€” positioning this book as the memory layer inside that larger architecture.

What remains unresolved. Where confirmation lives (human? policy?); whether the book builds authority machinery or references it as external.

Important distinctions

  • Explicit vs derived (given vs concluded).
  • Listing risk (wasted attention) vs action risk (destruction).
  • Crisp traps (discriminator tests) vs ambiguous rot (calibration tests).
  • Leg staleness (snapshot) vs belief staleness (revision) vs contract change (slowest leg).
  • Suggest bar vs execute bar.
  • False consequence vs intentional staleness vs scoped deferral vs fractional discharge (four different trap logics).

What mechanism would make this work?

Difference-check over maintained state with triple evidence: propose (current, expected, difference) candidates, attach per-leg provenance, admit by staged gate, abstain on traps. Ablations removing each leg. Measurement: inferred-consequence precision/recall separate from explicit-task metrics, null on undefined denominators, abstention scoring, triple-evidence correctness. Missing: leg-maintenance triggers, action gating, ambiguous-rot fixtures, gate-generality evidence.

Connections to the rest of the book

  • Consumes Chapters 7 (provenance per leg), 8 (expected-state beliefs with intervals), 9 (explicit-task baseline) and 10 (selection and ranking of produced consequences β€” Chapter 10 can select a derived consequence after Chapter 11 has produced it, but cannot originate one absent from the memory representation).
  • Exposes the bottleneck assembly problem (Ch 14): complete loop knowledge forces prioritisation under budget β€” and the behaviour-proof problem (Ch 12). Question 6 opened at Chapter 10, behind this chapter, not ahead of it.
  • Triple format prefigures consolidation licences (Ch 15), procedure envelopes (Ch 19), compression fidelity (Ch 16).
  • Facade trap is the restraint case the capstone reuses (detect-relevant-constraint family).

Beyond the current book

  • Truth maintenance systems: Doyle (see below) β€” dependency-directed revision is the classical mechanism for exactly “expectations checked against present state,” with retraction built in.
  • Planning and plan recognition: inferring unstated consequences and open conditions from goals plus world state.
  • Verification and model checking: expected-vs-actual differencing as a formal discipline.
  • Doyle, “A Truth Maintenance System” (Artificial Intelligence, 1979) β€” records reasons for beliefs, revises belief sets when assumptions change, and uses dependency-directed backtracking to find what to retract. This is the classical precedent for the triple’s expected-state leg and for leg maintenance: a TMS is maintained expectations checked against changing grounds, with retraction as a primitive rather than an afterthought. Directly informs leg-maintenance design and the correction-propagation needs of Chapter 8. Status: peer-reviewed. Verified via DOI 10.1016/0004-3702(79)90008-0 (AI 12(3):231–272).

Possible future claims

Already supportable

  • Unconstrained obligation-listing manufactures phantom work with borrowed authority (argued from the trap taxonomy).
  • Any inferred loop needs per-leg grounds or it is a guess in uniform (the licence principle, argued).

Plausible but needs development

  • Triple-structured inference beats unconstrained listing on traps while holding recall (now measured: macro/micro 1.0/1.0 vs 0.458/1.0 macro, 0.476/1.0 micro).
  • A shippable gate version generalises across scopes (fixture evidence; domain fragmentation untested).

Speculative

  • Ambiguous rot is resolvable with leg-citation alone (may need probabilistic weighing).
  • Abstention scoring resists strategic-silence gaming.

Claims worth attacking

  • “Precision dominates.” Counter: in safety-critical maintenance (the Strategy-X guard, the reversibility rule), a missed genuine loop can be catastrophic while phantom todos are cheap attention. The precision-first stance may be scope-relative: for destructive-action loops precision dominates; for safety-constraint loops recall may dominate. The chapter states a universal where a conditional belongs.
  • The gate-as-shipped-policy assumes gate versions transfer. Counter: gates tuned on crisp fixtures may fail on ambiguous rot β€” the shipped gate could be precisely wrong where it matters.

Tensions and counterarguments

  • Crisp-trap optimism vs ambiguous-rot reality: the showcase fixtures may flatter discriminators.
  • Listing metrics vs action risk: the harness scores what it can (lists) while the catastrophe lives where it doesn’t look (actions).
  • Inference ambition vs licence cost: full triple-plus-maintenance per loop may cost more than the rot it prevents for low-stakes debts β€” when is derivation worth it?

Examples and thought experiments

  • The silently-migrated partner: facade contracted “until end of Q1 2025”; it is now 2026, partner integrations rewritten without notice. Expected-state leg (contract) says protected; reality says dead code. Which leg wins, and what evidence would flip it?
  • The self-healing loop: fixture drift fixed as a side effect of an unrelated change; snapshot refreshes show conformance. Does the loop close automatically, and what prevents premature closure on a stale snapshot?
  • The ambiguous test file: old tests with no annotation, no owner, passing silently. Intentional preservation or forgotten cruft? Walk through what evidence could ever decide, and at what cost.

Potential demonstrations or experiments

Add: (1) ambiguous-rot fixtures (graded evidence, no crisp answer) scored on calibration rather than precision; (2) leg-staleness injection (age each leg separately, map which staleness breaks which verdicts); (3) action-gated conditions (suggest-only vs suggest+execute with destruction costs). Proposed; none run.

Research questions this chapter creates

  • What TMS/ATMS machinery transfers to expectation-vs-state differencing with retraction?
  • How do plan-recognition systems infer unstated consequences, and what precision/recall do they achieve?
  • What confirmation/authority protocols govern acting on inferred obligations in deployed systems?

Architectural implications

  • Inference licences should be required of all derived memory (book-wide invariant).
  • Leg subscriptions with re-derivation triggers unify loop maintenance with view maintenance (08-concepts).
  • Action gating needs authority machinery β€” either built here or explicitly imported from outside the book’s scope.

How would we know this works?

The chapter works if triple-structured inference holds recall on hidden consequences while beating unconstrained listing on traps and abstaining correctly on trap-only fixtures, with per-leg evidence scoring. It fails usefully by demoting derived loops to candidates-with-licences if no gate separates genuine loops from traps.

The chapter at its highest level

The ideal version would teach: inference as liability with licence formats; the four trap logics with ambiguous-rot extensions; leg maintenance with re-derivation triggers; suggest-vs-execute gating with authority; gate versions with transfer evidence; the accumulation argument (why state must precede inference). The current version invents the triple and the traps; the ideal version would also make inference maintainable and actionable safely.

Discussion

Start here

  • The contracted facade is protected by a contract leg. What happens when the contract leg itself goes stale (partner silently migrated) β€” which leg wins, and what evidence flips it?
  • Listing a phantom todo wastes attention; deleting the facade destroys. Should inferred loops carry separate suggest and execute bars β€” and whose authority gates execution?
  • Is the triple enough for ambiguous rot (probably-intentional tests, uncertain contracts), or does that need evidence-weighing machinery the book doesn’t contain?

Push the idea further

  • If every derived memory needs an inference licence, what are the licence formats for consolidation, procedures, compression, and attribution β€” and do licences compose when derivations stack?
  • Loops rot as legs stale. What subscribes derived loops to their legs, and what re-derives them β€” or does the system manufacture stale summaries at home?
  • After five years, is the loop store dominated by re-derivation traffic β€” and does inference maintenance cost more than the rot it prevents for low-stakes debts?

Decisions we need to make

  • Whether inference licences become a book-wide invariant for all derived memory.
  • Whether action gating (suggest vs execute) enters scope or stays external (authority as someone else’s layer).
  • Whether precision-first holds universally or only for destructive-action loops (safety loops may need recall-first).

Claims worth attacking

  • “Precision dominates.” Counter: for safety-constraint loops, one missed guard dwarfs fifty phantom todos. The stance needs scoping, not asserting.
  • “The gate ships as policy.” Counter: gates tuned on crisp traps may transfer worst where ambiguity reigns. What evidence would show transfer?

New ideas worth exploring

  • TMS-style dependency-directed revision as the classical engine for expectation-vs-state memory.
  • Leg subscriptions: derived memory as maintained views over legs (unifying with 08-concepts view maintenance).
  • The memory/authority boundary: inferred conclusions that act need permission theory, not just confidence.

Explain this chapter with AI

Copy this prompt into ChatGPT, Claude, Gemini, a local model, or another AI.

Apply this chapter with AI

Copy this prompt into ChatGPT, Claude, Gemini, a local model, or another AI.

Chapter 9 handles work the history states: promises, assignments, follow-ups with an established expectation behind them. This chapter pushes Question 5 past conventional task tracking, to consequences nobody wrote down. The migration broke assumptions encoded in fixtures, documentation, and configuration that no session mentions. A memory that tracks only stated intentions will report the open list as empty while the project quietly rots. Whether anything can be done about that β€” reliably, without inventing obligations β€” is treated here as a difficult hypothesis, not a capability.

Explicit versus derived

The distinction organises the whole chapter.

Explicit open loop

The history directly says it:

Update the migration docs.

Commitment evidence exists, and the transition logic from Chapter 9 decides its standing. Hard problems remain β€” silent completion, supersession β€” but the obligation itself is given.

Derived open loop

The system concludes it:

The database changed, but the backup configuration still references the old database.

No utterance promised this. The conclusion combines three things the system already maintains:

current architecture       (PostgreSQL is the store β€” Ch 8 belief)
+
historical decision        (the July migration β€” Ch 4/5 events)
+
current artifact state     (backup config still names SQLite β€” present fact)

That combination is much stronger than retrieval. It resembles reasoning over remembered state: the past supplies what the world should look like, the present supplies what it does look like, and the difference is the debt. Every inferred loop should ideally be traceable to exactly that triple:

current state
+
expected state
+
difference

The triple is also the honesty criterion. An inferred obligation without an expected-state source is a guess wearing a uniform. An inferred obligation whose current-state evidence is stale β€” a configuration snapshot from before the fix landed β€” is a resolved loop reported as open, the derived-world twin of Chapter 9’s stale tasks.

The corpus_import case

A second running example carries the cases the migration cannot. The team removes a legacy domain:

Decision (adr-013, 13 January 2025):
Remove the legacy corpus_import domain.

Consequences, only two stated:
- migrate CLI callers (issue-088, completed 22 January)
- migrate web callers (issue-089, completed 29 January)

Unstated:
- update docs (docs still describe corpus_import flags)
- delete compatibility facade (facade kept "temporarily")
- remove old tests (old tests still run, still pass)

Five genuine consequences, two with commitment evidence. Now add the traps a serious fixture set needs. The facade was kept deliberately: partner-note-004 records that one external partner still imports through it “until the end of Q1 2025”, so “delete the facade” is a false apparent consequence β€” acting on it breaks a commitment in the other direction. The old tests are intentionally preserved (tests-compat-122) as regression coverage for the migration itself; removing them destroys evidence the team chose to keep. A deferred-cleanup note (docs-note-012) explicitly parks the docs update until after release, which makes it an explicit intention with a scope condition, not a derived loop at all. A partial migration β€” half the CLI callers moved, half not β€” would leave the loop neither open nor closed but fractionally discharged.

A system that lists all five unstated items as obligations scores well on recall and fails the project: it deletes a facade under contract, removes tests under purpose, and duplicates a scoped intention. A system that lists none misses real rot. The operating point between them is the chapter’s entire subject, and it is why the metric must punish plausible-but-invented obligations.

Why precision dominates

A memory that produces fifty speculative todos is not better than one that misses one genuine loop. The asymmetry is practical: each invented obligation costs attention, and attention spent verifying phantom debts is attention taken from real ones. Worse, invented obligations with fluent justifications acquire false provenance β€” Chapter 7’s machinery manufacturing authority for claims the history never supported. The spec’s open-loop precision therefore leads, with recall reported alongside it rather than aggregated away, and the harness scores a third property the earlier questions never needed: abstention quality. On fixtures where the ledger records no derivable loop β€” the facade under contract, the intentionally preserved tests β€” the correct output is silence, and silence must score above confident invention.

Stages and evidence carry this. A derived loop arrives with the triple that produced it and a reason-coded verdict the scorer can audit: admitted only when all three legs are present, traceable, stated rather than inferred, fresh as of the standpoint, and uncancelled. The representation stays minimal, illustratively:

def infer_open_loops(state, now):
    # Illustrative: compare remembered expectations against
    # present artifact state; every candidate carries its
    # (current, expected, difference) triple and a gate decision.
    candidates = propose_differences(state, now)
    return [c for c in candidates if gate_admits(c, now)]

No scalar confidence threshold ships in v1. A staged, reason-coded pipeline attributes failures where a weighted score cannot, and this chapter’s errors must be debuggable before they are trusted. A scalar may earn itself later only if it adds something a stage did not already decide; the backtest harness below is the instrument that would promote it, with gates, if the evidence said so.

The experiment

Fixtures contain explicit tasks, hidden consequences, false apparent consequences (the contracted facade), intentionally preserved stale references (the regression tests), deferred cleanups with scope conditions, and partial migrations. Queries ask what remains unfinished in a scope; the ledger records which loops are derivable, which are explicitly stated, and which apparent loops are traps. Measurement extends the Question 5 family with inferred-consequence precision and recall scored separately from explicit-task metrics, plus abstention scoring on trap-only fixtures and evidence correctness on the reported triple.

The frozen run is experiments/benchmark/runs/ch11-20260920T171039Z-derived-loops/, from solution/derived_loops/ (staged-triple-gate-v1, standpoint 2025-02-07, eight scope tasks, zero model calls). Conditions hold corpus, standpoint, and candidate proposal fixed and change only the derivation mechanism: unconstrained obligation listing, the staged S0–S4 triple gate, three ablations removing one leg each, the ledger oracle ceiling, and a trivial always-abstain control. Zero-positive trap tasks score null, never zero; the macro averages defined values only, with micro totals and the separate abstention metric alongside (see planning/chapter-11-metric-audit.md).

Mean over the eight tasks (macro over defined values; micro in parentheses):

condition      inferred-precision  inferred-recall  harmful-tasks  abstention
unconstrained  0.458 (0.476)       1.000 (1.000)    4/8            0.000
staged         1.000 (1.000)       1.000 (1.000)    0/8            1.000
no-current     0.929 (0.909)       1.000 (1.000)    0/8            1.000
no-expected    0.857 (0.833)       1.000 (1.000)    0/8            1.000
no-cancel      0.646 (0.556)       1.000 (1.000)    4/8            0.000
oracle         1.000 (1.000)       1.000 (1.000)    0/8            1.000
abstain        null (null)         0.000 (0.000)    0/8            1.000

Recall is 1.0 for every listing condition including the oracle: no genuine positive is missed anywhere, and the contest is fought entirely in precision and harm. The unconstrained baseline lists everything proposed, including the facade under live contract, and pays for it: precision 0.458 with harmful listings on four of eight tasks. The staged gate matches the oracle exactly (macro and micro 1.0/1.0) with zero harmful listings. Each leg earns its place in the ablations: removing the freshness leg admits the pre-fix backup snapshot and drops macro precision to 0.929; removing the stated-expectation leg admits the inferred guess and drops it to 0.857; removing the cancelling-evidence leg re-admits the facade, the preserved tests, and the scoped deferral, returning precision to 0.646 with harmful listings on four tasks.

The full-scope task shows the mechanism working. Six candidates are proposed; three are genuine (docs flags, half-migrated CLI callers, unmigrated web callers) and three are traps. The staged gate admits exactly the three genuine loops and rejects each trap with its stage: the facade at S4 (contract partner-note-004), the preserved tests at S4 (intentional preservation tests-compat-122), the scoped deferral at S4 (docs-note-012). The stale-leg control rejects the pre-fix backup snapshot at S3, and the guess control rejects the inferred expectation at S2. Every rejection carries the stage and the cited legs; no candidate is explained after the fact.

The always-abstain control sits where it should: perfect abstention with zero recall and zero precision, the floor against which the abstention metric can be believed. The trap-only task (facade plus preserved tests, silence correct) is abstained on correctly by the staged gate and failed by every condition that drops the cancelling leg.

Policy learning follows the Chapter 10 discipline. The tempting loosening β€” drop the cancelling-evidence leg to recover the deferred-docs candidate β€” is proposed as an immutable gate version, replayed over all eight tasks, and rejected: primary gain βˆ’0.354 with breaches on harmful-task rate (0.0 to 0.5) and abstention rate (1.0 to 0.0). A locally correct repair that is globally harmful stays out, for the same reason Chapter 10 kept its own.

Book result. The triple structure buys precision on traps and stale-reference fixtures while recall holds on hidden-consequence cases (staged macro/micro 1.0/1.0 against unconstrained 0.458/1.0 macro, 0.476/1.0 micro; harmful tasks 0 vs 4; oracle matched). Derived-loop inference is earned as a guarded capability with an explicit gate version. Demotion clauses apply: crisp fixtures with ledger adjudication, no reader, synthetic corpus, deterministic links. The staged gate equalling the oracle here flatters crisp traps; ambiguous rot with graded evidence remains untested and is recorded as the next failure class.

What this chapter earns, and the problem it exposes

The run reaches something genuinely beyond retrieval: memory as reasoning over maintained state, where the past sets expectations the present is checked against. The capability accumulates rather than resets β€” intentions keep their provenance, intervals keep their temporal resolution, superseded evidence stays out of the expected-state leg β€” which is why the chapter sits after Chapters 7 and 8 rather than beside them.

But success creates the next failure, and it is immediate. Suppose the system knows every unresolved item: the backup migration, the docs update, the fixture revision, the CLI and web caller migrations, the deferred cleanup with its scope condition. It cannot put all of them into every context. A migration task needs the fixture warning and the prior failure; a documentation task needs the scope condition; a release task needs the backup debt. The open list is too large to be the answer, and the question changes from what is unfinished? to which of it matters for what I am doing now? β€” a question Chapter 10 answers for obligations the history recorded, and cannot answer for these.

What remains unsolved. Even complete knowledge of every unresolved consequence creates a selection problem. Remembering everything unfinished is not the same as bringing the right unfinished thing to the present task. Chapter 10 has already built the machinery for that selection and shown it working on stated obligations β€” the same question about unfinished work draws different evidence under a release objective and a prose objective. Chapter 10 can select and rank a derived consequence after this chapter has produced it; what it cannot do is originate a consequence absent from the memory representation, which is why this chapter sits behind it rather than in front of it.

What experiential-agent research adds

ExpeL extracts reusable knowledge from agent trajectories. Reflexion carries verbal feedback between attempts. Voyager accumulates skills through interaction, and SWE-bench grounds software-agent evaluation in real issues and repositories.

These works support the premise that useful state may be derived from relations among observations, actions, and outcomes rather than copied from an explicit task sentence. They also reveal the danger: fluent retrospective lessons can sound causal when a trajectory does not establish causality. An inferred loop is a hypothesis, not an extracted fact.

The closest classical precedent is older than any of them. Doyle’s truth maintenance system maintains each belief together with the reasons that support it and revises the belief set by dependency-directed backtracking when an assumption changes. That is the conceptual engine this chapter needs in miniature: a derived loop is a maintained expectation checked against present state, and when a leg changes β€” the snapshot refreshes, the contract lapses, the belief revises β€” the loop must be reconsidered or retracted rather than served stale. The system does not implement a general TMS; it borrows the discipline of recorded justifications with retraction as a primitive.

The (current, expected, difference) triple therefore needs provenance and falsification for every leg. Current state supports what exists; a decision or contract supports what should exist; the mismatch supports the candidate loop. Trap fixturesβ€”contracted facades, intentional stale references, scoped deferralsβ€”supply evidence that cancels apparent mismatches. The decisive metric is inferred-consequence precision at matched recall with abstention rewarded. Unrestricted production of plausible debts is not memory.

Research foundations

Work on agents learning from trajectories shows why unresolved consequences may be distributed across actions, observations, and later outcomes rather than written as explicit tasks. ExpeL extracts reusable knowledge from experience; Reflexion stores linguistic feedback across trials; Voyager accumulates skills from interaction; SWE-bench grounds software-agent evaluation in real issues and repositories. These papers motivate cross-artifact reasoning, but they do not remove the chapter’s central requirement: inferred loops must outperform correct abstention on trap cases.

References