# Theory refinement as an interface

> **Status:** Working document, 2026-09-09. Operator direction: write this down
> and work it out here before anything leaves the workshop. The framing came
> from the operator's conversation with Codex; the mapping onto the KB's
> definitions and the placements below are this workshop's.

## The claim

Theory refinement specifies an interface. A theory together with its
machinery implements it; the theory file alone does not. The interface has
five operations:

| Operation | Question it answers |
|---|---|
| **Derive** | What does the theory imply for this case? |
| **Compare** | Where does that consequence disagree with the evidence? |
| **Locate** | Which assumptions, rules, or scope conditions are candidate sources of the disagreement? |
| **Revise** | Change the selected parts. |
| **Evaluate** | Does the revision correct the errors while preserving useful behaviour on the tested cases? |

Horn clauses with proof, named operators, and training-set accuracy are one
implementation. Equations, programs, and structured prose with an interpreter
are others. What the KB gains from saying it this way: to use the classical
theory-refinement results, we do not need Horn clauses. We need to define our
theory machinery so that it implements the interface for our representation,
and then say which results carry over and under what conditions.

## The same contract from the theory's side

The [addressable-theory](../../theory/definitions/addressable-theory.md)
definition supplies the structural properties this investigation compares
with the classical repair interface: parts are available as candidate repair
locations and can be revised separately, while assigned consequences determine
whether a contradiction can be mechanically checked. Derive and compare need
consequences; locate needs addressable parts; revise and evaluate need an
editable representation and machinery that can test the result. The working
hypothesis is that these are two views of one classical repair contract. A note
that eventually leaves this workshop should test and state that relation. These
properties do not define membership in a
[theory builder](../../theory/definitions/theory-builder.md).

## Who implements what

The role table in the original theory-builder proposal, retired from this
workshop in the cleanup commit and recoverable from git history, grouped the
interface into three rows. Ungrouped, per implementation:

| Operation | EITHER / FORTE | Universal theory manipulator | General interpreter | Commonplace today |
|---|---|---|---|---|
| Derive | proof over Horn clauses | execution or proof; mechanical | model reads the theory and the case; interpreted | model reads notes and the artifact under review; validators derive for codified parts |
| Compare | proof succeeds or fails against a label; mechanical | mechanical only when the observation is itself a theorem; otherwise not performed | model judges disagreement; interpreted | gates and critique: mechanical for validator-backed criteria, interpreted for LLM assays |
| Locate | proof trace names candidate clauses and antecedents | not performed against evidence | model nominates parts; interpreted; perturbation and withholding as the check | premise defeat in the full improvement pass; interpreted |
| Revise | retract, generalize, specialize, add | rewrite of expressions, but only by proof from the current axioms | model edits prose parts; interpreted | agent edits; codification of settled parts into schemas and validators |
| Evaluate | consistency with supplied cases; hill-climb on training accuracy | not performed against evidence | model re-reads revised theory against cases; interpreted | gates re-run; reach-assessment; operator verification |

Three placements follow.

- **The universal theory manipulator is derive-only.** (The earlier formal
  limit case, retired from this workshop; the
  [Gödel-machine comparison](../../theory/goedel-machines-are-a-proof-governed-case-of-self-modification.md) now carries the
  proof-governed contrast.) It answers what follows from the theory. Compare is available
  only when observations enter as theorems, and even then a disagreement with
  an axiom is an inconsistency, not a located fault. Locate, revise against
  evidence, and evaluate against evidence are absent. This is why the
  manipulator draft says the limit manipulates theories without refining them.
- **The general interpreter implements all five by interpretation.** Every
  operation is available for any representation the model can read, and none
  carries the classical guarantee. This is the first step of the proposal's
  machinery departure.
- **Codifying back moves one operation for one part from interpreted to
  mechanical.** A validator makes compare mechanical for the claims it
  checks. A schema makes locate mechanical for the fields it names. This is
  what "constructing family-specific machinery" means operationally:
  implementing some operations of the interface mechanically for a family.

## A scale for addressability

The definition says addressability comes in degrees and gives no measure.
The interface supplies one. For a theory in a given machinery, record for each
operation whether it is mechanical, interpreted, or unavailable. FORTE's
theories are mechanical on all five. A prose note read by a model is
interpreted on all five. A Commonplace note with a validator behind one of
its claims is mechanical on compare for that claim and interpreted elsewhere.
The git-history test in the proposal can record each codification as a move
on this scale, which makes "the builder constructed addressability for a new
family" a checkable statement.

## What the builder needs beyond the interface

The definition excludes applying a theory: application uses the theory
without revising it. The builder must apply, because its theories guide the
actions that produce its cases. So the builder's contract is the refinement
interface plus **apply**, and loop closure is the requirement that apply and
compare share a case: the consequence compared is the consequence of the
action the theory guided. The evidence standards for that shared case are the
existing ones, the evidence ladder and the co-indexed witnesses.

## Which classical results carry over

Implementing the interface lets the classical results be stated in our terms.
It does not make them true of our implementation. Two kinds must be kept
apart.

**Task-level results transfer.** These follow from the interface, not from
Horn clauses, so any implementation inherits them.

- A failed comparison does not identify a unique fault. Locate yields
  candidates. FORTE's traces and EITHER's abduction narrow the candidates; an
  interpreter's nomination narrows them less reliably. This is the
  underdetermination problem in the definition.
- Revision is not guaranteed minimal, and evaluate can stop at a local
  maximum. FORTE states both for its own hill-climbing
  ([ingest](../../sources/automated-refinement-first-order-horn-clause-domain-theories.ingest.md)).
  An interpreted implementation has no reason to do better and several to do
  worse.
- Acceptance is fit with the tested cases. This is the floor, not the
  ordering. The definition adds reach as the ordering among revisions that
  fit; the classical systems did not have it and did not need it, because
  their cases were supplied and their theories were external.
- The update space is fixed by the operators and representation. FORTE cannot
  invent predicates; EITHER can only express acyclic propositional mappings.
  An interpreter's update space is open, which removes this limit and removes
  the guarantee that came with it: a revision stays inside a space the
  evaluator can check.

**Empirical results transfer as hypotheses only.** They were measured on the
Horn-clause implementations in two or three small domains.

- Revision beats induction from scratch when the initial theory is
  approximately right. FORTE's family experiments support this and also bound
  it: with 100 training examples and eight introduced errors, induction did
  better. EITHER outperformed ID3 on two classification tasks and sometimes
  reached a given accuracy with fewer examples, without isolating what did the
  work ([ingest](../../sources/theory-refinement-analytical-empirical-methods.ingest.md)).
- Relational path finding was needed to escape plateaus that defeat
  single-step search. Whether an interpreter's proposals have an analogous
  plateau problem is unknown.

For our implementation each of these is a test to run, and the FORTE tasks
are the natural baseline: a known corrupted theory, stated in prose,
repaired through the interpreter, scored on the same cases. That is the
discriminating test for the form departure the proposal names and the KB
does not yet have.

## Commonplace as the interpreted implementation

Read from the pass and review instructions on 2026-09-09
(`kb/instructions/run-full-improvement-pass-on-note.md`,
`kb/instructions/premise-decomposition-gate.md`, the gate catalog under
`kb/instructions/review-gates/`, `kb/reference/README-REVIEW-SYSTEM.md`). For
each operation: what performs it, what record shows it ran, where it is
already mechanical, and which classical result then applies. The interpreted
implementation has an obligation the classical one did not: each operation
can run and be wrong, so the record has to show not only that it ran but
that it was right, and the last column says how far that is met.

### Derive

- **Performed by.** A model reading the note against a criterion, a case, or
  a neighbouring note: every review pair, every connect run, every
  improvement pass begins here. For codified parts, `commonplace-validate`
  and quote verification derive mechanically: this field must have that
  form, this span must occur in that ingest, this note may cite at most five
  sources without a paired quote.
- **Record.** The review store pairs a pinned note snapshot with a pinned
  criterion, so the fact that a derivation was requested against exactly this
  text is recorded. What was derived survives only as the report's prose.
  Outside review, the citation at the decision point is the record that a
  theory entered a derivation at all.
- **Classical result that applies.** None directly; derive is where the
  guarantee is lost rather than where a result transfers.
- **Was it right?** Not checked as a rule. Withholding or perturbation, the
  test the mediation-trace note names, is not part of any routine flow.

### Compare

- **Performed by.** Gates, the closed-ended verdict criteria that return pass,
  warn, or fail, and critique, the open-ended report criterion. The premise
  decomposition gate compares premise by premise, returning holds, doubtful,
  or defeated with the counterexample stated. Mechanical compare is the
  validator's fail and warn.
- **Record.** The pair result with its outcome, snapshot-anchored; the
  freshness baseline pins which note text and which criterion text the
  outcome is about.
- **Classical result that applies.** Acceptance is fit with the tested cases,
  and here the tested cases are the criteria. This is the largest departure
  from the classical setting and it is easy to miss: most of what Commonplace
  compares a theory against is reviewer judgment under a quality criterion,
  not an observation of the world. Empirical compare, against a source or an
  operating consequence, happens through ingests, evidence notes, and log
  entries, and none of those runs through the gate pipeline.
- **Was it right?** Model partition and rerun give a stability check, and a
  criterion is itself a text that can be reviewed. There is no held-out
  comparison.

### Locate

- **Performed by.** The premise decomposition gate names the premise and
  routes the failure local or global; the pass synthesis then answers the
  decision table: fit fails, rehome; a claim change is required, revise;
  otherwise keep with body edits. Validators locate mechanically by line for
  links, quotes, and schema.
- **Record.** The gate's report and the packet's routed attention; the
  decision table answer is written into the packet.
- **Classical result that applies.** No unique fault. FORTE's trace and the
  premise list do the same job: they narrow to candidates. The bite rule from
  the sixth Popperian episode, that a defeated premise bites only if its
  counterexample meets the note's antecedent under the note's own
  definitions, is a locate correction the classical systems did not need,
  because a proof cannot equivocate on a term.
- **Was it right?** Only through the bite rule and the closing cycle. No
  routine test that the located part was load-bearing.

### Revise

- **Performed by.** Body edits in a keep pass, restricted to remove,
  compress, add, and keep, with title and thesis untouchable; anything larger
  is handed back to an author. Codification is the other revise path: a
  settled claim moves into a validator, a schema field, or a type contract.
- **Record.** The packet's body-edit list, the version guard that refuses to
  edit if any input changed since the packet was written, and the commit.
- **Classical result that applies.** The operator set maps loosely: remove
  and compress are retractions, add is an added antecedent, rescoping is
  specialization. The update space is open where FORTE's was fixed, so
  nothing guarantees the revision stays where the evaluator can check it.
- **Was it right?** Deferred to evaluate.

### Evaluate

- **Performed by.** The closing cycle: every bundle and critique rerun on the
  final capture, then one question, whether the selected update was
  strengthened, preserved, weakened, changed, or made undetermined, and one
  status, ready, repair-needed once, or hand-back. Beyond the pass:
  reach-assessment, the user-verified attestation, and system use, which the
  KB treats as evidence of fit and not as independent warrant.
- **Record.** The closing reports and the closing status in the packet.
- **Classical result that applies.** Hill-climbing on the tested cases can stop
  at a local maximum, and Commonplace has already exhibited it. The log's
  entry for the pass that narrowed a defeated universal title into an
  analytic one, which then passed every closing gate, is a local maximum of
  the gate set in the classical sense, and the refuter and citer guards that
  came out of it are the response. Fit with the tested cases is the floor;
  reach is the ordering; no held-out case is run as a rule.
- **Was it right?** The refuter guard (after narrowing, name a case that would
  still refute the claim) and the citer guard (a repair that drops what
  inbound citers import has repaired the wrong thing) are the checks, and
  they were applied by hand, not wired.

### Apply

- **Performed by.** Skills and instructions that consume notes, ADRs that
  implement them, workshops that cite them, commits that name the ADR.
- **Record.** The citation at the decision point, including the commit
  trailer that names the decision.
- **Shared case.** Rarely closed. The evidence note on a revision that used
  theory-guided computational search is one witness that a retained theory
  entered a change; the disconnected-witnesses standard says what more a
  full path needs, and no routine flow produces it.

### The profile

| Operation | Mechanical | Interpreted | Record that it ran | Record that it was right |
|---|---|---|---|---|
| Derive | validators, quote verification | every model read | pinned pair; citation | none routine |
| Compare | validator fail/warn | gates, critique, premise gate | outcome in the store | partition rerun only |
| Locate | line-level for links, quotes, schema | premise gate, decision table | packet | bite rule; closing cycle |
| Revise | codification into validators and types | body edits; author hand-back | edit list, guard, commit | deferred |
| Evaluate | validators on the final capture | closing cycle; reach-assessment; user verification | closing reports, status | refuter and citer guards, by hand |
| Apply | none | consumers of notes | citation trailer | disconnected-witnesses standard, not routine |

Two things stand out. Most cases are criteria, not observations, so the
loop as run is a quality loop over the theory's expression more than an
empirical loop over its content; the empirical compare exists but bypasses
the machinery. And the one classical failure mode Commonplace has documented
in itself is the one the interface predicts for any evaluate over a fixed
case set, which is some evidence that the placement is right.

## Open questions to work out here

1. **Is compare a separate operation?** The definition folds it into the
   first property. FORTE performs it inside derive (a proof succeeds or
   fails). For an interpreter it is a separate judgment with its own error.
   Keeping it separate seems right for the interpreted case; the definition
   would need a sentence.
2. **What does locate require of an interpreted theory?** FORTE has a trace.
   The interpreted analogue is nomination plus a perturbation or withholding
   test. Whether that is an implementation of locate or a weaker substitute
   decides whether the task-level results about locate apply.
3. **What does evaluate need?** Held-out cases, at minimum. The KB's warrant
   notion (system use is not independent warrant; oracle domain) enters here
   and has no classical counterpart. Where in the interface does reach sit:
   inside evaluate, or as a sixth operation that orders survivors?
4. **How is "implements the interface for a family" certified?** The
   test-shaped answer is fault injection: corrupt a known-good theory of the
   family, run the loop, check the repair. That is the FORTE baseline again,
   and it would double as the acceptance test for any constructed machinery.
5. **Apply and the shared case.** Whether apply belongs in the interface or
   beside it, and how loop closure is stated as a constraint on which case
   compare receives.
6. **Where the interface is written.** As a section of the addressable-theory
   definition, stating the two views of one classical repair contract, or as
   its own note with the definition linking it. Either placement must keep the
   interface separate from theory-builder membership.
7. **Which classical results we actually want.** The list above is what
   transfers. Which of it the program needs, and for which claim, is not yet
   decided. Listing results we will not use is the storage-without-consumption
   pattern the KB warns against.
8. **Cases that are criteria.** The compare operation mostly runs against
   quality criteria, not observations. Whether that is a second, legitimate
   case type for the interface or a sign that the empirical loop is missing
   from the machinery decides how much of the classical work applies to
   Commonplace as it runs today.
