Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ is a component that stands alone, or a larger system built from them.
| [catalog](catalog/BRIEF.md) | take in entities: resolve, classify under adopted schemes, attach claims with trust | entity-resolution |
| [cognitive-model](cognitive-model/BRIEF.md) | the Common Model of Cognition on Claude Code | catalog, and the rest of its spec |
| [fernhill](fernhill/README.md) | an engagement on a made-up kitchen firm: mapped from its documents and an interview, one opportunity judged, options for one role, a report of implementation projects | the kit alone (no code to build) |
| [research-loop](research-loop/README.md) | the research loop's phase 0: one session's papers as options and evidence claims with their conditions, and a trial's outcome against them ([docs/research-loop.md](../docs/research-loop.md)) | the kit alone (records, no code to build) |

Build the first three in that order: each one's cells become available to the next. `fernhill` stands alone.
Build the first three in that order: each one's cells become available to the next. `fernhill` and `research-loop` stand alone.

## Rules

Expand Down
80 changes: 80 additions & 0 deletions demos/research-loop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# The research loop, phase 0: one session recorded as data

Phase 0 of [docs/research-loop.md](../../docs/research-loop.md): the loop run once by hand, then written down in the
form the later phases will read. The session is MetaSoar's of 2026-11-25. It read five papers on decision models and
on when to think (MetaSoar's
[`docs/decision-backends.md`](https://github.com/OpenReplicant/MetaSoar/blob/92105f815c6c2691288c162a40f376be4dd564bb/docs/decision-backends.md)).
It then ran the cheapest informative trial, E-04a: MetaSoar's own models read as decision models on JevBench,
against Jev's own predictions
([`trials/decision-readout`](https://github.com/OpenReplicant/MetaSoar/tree/facbe842bcc0778afc2fbe2a9801cd9895d46fab/trials/decision-readout)).
Nothing here runs a model. These are records, and a check that they hold together.

## Layout

| Path | What it holds |
| --- | --- |
| `catalog-info.yaml` | the `metasoar` System, and a `Location` naming the two files below |
| `catalog/map.yaml` | our side: three roles (`decision-backend`, its `readout-calibration`, `think-router`) and this system's conditions as `Resource`s (LFM3 1.7B Q6_K, Inkling 2 Mini Q4_K, llama.cpp b12627, the GTX 1070 with 8 GB, JevBench at `ed50fe0`) |
| `catalog/options.yaml` | 13 options, one `Component` with `spec.lifecycle: candidate` per method the papers measured; each lists its claim files in `spec.morphogen.evaluation.evidence` |
| `claims/arxiv-*/` | 18 claims from the five papers, one file each ([schemas/evidence-claim.v1.json](../../schemas/evidence-claim.v1.json)), with their conditions and their status for `system:default/metasoar` |
| `claims/e04a/`, `claims/probe/` | 7 of our own observations: six from E-04a's LFM3 run, one from the probe the note records. Each is a claim with `source.kind: trial` (or `probe`) and `reporting: ours`, which a paper claim's outcome links to |
| `check.py` | validates every claim and every option, and the links between them |

The claims are not `Location` targets, so the judge never reads them (docs/research-loop.md, "Where evidence claims
live").

## What was recorded

| Claim (paper) | Option | Status here | p (transfer) |
| --- | --- | --- | --- |
| `gates-likelihood-readout-27-31b-matches-jev` (2610.00346) | likelihood-readout | **did-not-transfer** (E-04a; falsifier met) | none written before |
| `gates-temperature-fixes-calibration` (2610.00346) | temperature-scaling | **replicated** on our setup | none written before |
| `gates-order-effects-untrained` (2610.00346) | likelihood-readout | **replicated** on our setup (a different swap) | none written before |
| `jeval-first-token-readout` (2610.03935) | likelihood-readout | **replicated**, in the qualitative sense only | none written before |
| `gates-embedding-logreg-labelled` (2610.00346) | embedding-logreg | predicted | 0.6 |
| `gates-temperature-option-count` (2610.00346) | temperature-scaling | predicted | 0.7 |
| `jeval-distillation-reasoning-heavy` (2610.03935) | self-distilled-readout | predicted | 0.7 |
| `dart-draft-agreement` (2606.23181) | dart-draft-agreement | predicted | 0.55 |
| `dart-mc-binary-collapses` (2606.23181) | ask-to-think | predicted | 0.7 |
| `zsconf-answer-logprob-auroc` (2605.02241) | answer-logprob-confidence | predicted | 0.6 |
| `zsconf-embedding-router-ood` (2605.02241) | embedding-logreg | predicted | 0.65 |
| `gates-finetuned-classifier-clinc150`, `gates-stated-probabilities-unparseable`, `gates-thresholds-per-model-task`, `gates-cascade-needs-labels`, `jeval-qwen35-4b-thinking`, `jeval-self-distillation-27b`, `lwt-grpo-think-mode` | | untested, each with its reason | |

**The one outcome that bears most:** the gates paper found that two untuned models of 27B and 31B, read by the
likelihood of each option key, matched Jev. Read the same way, LFM3 1.7B untuned reached a pooled accuracy of 0.528
[0.508, 0.547], against Jev 1.13's 0.842 [0.828, 0.857], on the same 3,412 JevBench cases. Its coverage at 5% risk
was 0.09, against Jev's 0.67. After one temperature per slice, its calibration error matched Jev's (0.026 against
0.024), so the claim about temperature scaling did hold here. The gap is accuracy, not calibration.

## How to read it

- **The papers' numbers come through the note.** None of the five papers was quoted, so each paper claim has an
empty `source.quote` with `quote_status: none`, and carries the note's own sentence in `source.via.quote`. The
conditions are only what the note states. Anything that matters but is not stated is listed in
`conditions.unstated`. Phase 1 takes the quotes from the papers themselves.
- **Our own numbers are quoted from MetaSoar at a commit,** and `check.py --metasoar` matches every such quote
against that file. There are 36 quotes in all, from the claims and from the map's evidence annotations.
- **The predictions are a draft.** The seven probabilities were written by the agent that recorded this session. It
mapped the note's qualitative status column ("supported", "weak", "brittle out of distribution") onto numbers, and
each one says so in `prediction.by`. The owner should revise them before any outcome arrives. Each has
`before_outcome: true`, so it will count towards calibration (the Brier score in docs/research-loop.md). The three
replicated claims and the one that did not transfer have no prediction. Nobody wrote a probability before E-04a ran,
so they do not count.
- **"Replicated" here means "held on our setup"** (`comparison: our-setup`). It is a transfer test of the method,
not a reproduction of the paper. A did-not-transfer is not a refutation either: the model, its precision, the
engine and the cases all differ.
- **Verdicts.** E-04a is a measurement against a falsifier registered before its outcome (MetaSoar
`docs/experiments.md`). It is not a candidate the judge decided. So the outcome that did not transfer carries
`verdict.by: falsifier`, and the others carry `by: none`. Once the readout is tuned as a cell, `by: morphogen` will
name the judge's verdict.
- **Inkling 2 Mini** is in the map but in no observation, because its E-04a run was still going.

## Run the check

```sh
uv run --with jsonschema==4.26.0 --with pyyaml python -I demos/research-loop/check.py --metasoar /path/to/MetaSoar
```

Without `--metasoar`, the quotes are not checked and everything else is. The catalog also loads with Morphogen's own
reader (`morphogen.backstage`). Its only cell is the `metasoar` System, as structure: options and roles are never
cells.
24 changes: 24 additions & 0 deletions demos/research-loop/catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# The research loop, phase 0: MetaSoar's decision-backends session of 2026-11-25 recorded as data. The map's side
# (catalog/map.yaml): the System, the two roles the papers bear on, and this system's own conditions (models,
# engine, hardware, cases). The options (catalog/options.yaml): one Component with spec.lifecycle: candidate per
# method the papers measured. The claims (claims/) are files of their own, not Location targets: see README.md.
apiVersion: backstage.io/v1alpha1
kind: System
metadata:
name: metasoar
description: >-
MetaSoar's System 1 on modest hardware: typed decisions (M-22) and when the slow model thinks (E-04), on local
models served by llama.cpp. Only the parts the session's evidence bears on are mapped here.
links:
- url: https://github.com/OpenReplicant/MetaSoar
title: MetaSoar
spec:
owner: group:default/metasoar
lifecycle: experimental
---
apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
name: research-loop-map
spec:
targets: [./catalog/map.yaml, ./catalog/options.yaml]
97 changes: 97 additions & 0 deletions demos/research-loop/catalog/map.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Our side: the roles the session's papers bear on, and the conditions a claim is compared with. Evidence lines cite
# MetaSoar at a commit (repository@commit:path); demos/research-loop/check.py --metasoar checks each quote.
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: decision-backend
description: >-
The role: answer a typed question (a choice among options, or yes or no) with a probability for each option, for
MetaSoar's typed-question interface (M-22). Not filled yet: the backend is to be chosen per task after E-04.
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "The typed-question interface (M-22) is well supported. The backend is not decided by the evidence,"
spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar}
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: readout-calibration
description: >-
The role: turn a decision backend's raw scores into probabilities and thresholds fit to act on (debiasing over
option orders, a temperature per task, a threshold at a chosen risk).
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "What the papers do say holds at any size: an untuned readout needs work before its probabilities can be trusted."
spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar, subcomponentOf: decision-backend}
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: think-router
description: >-
The role: decide, per question, whether the slow model thinks before it answers (E-04's observers). Not filled
yet.
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "E-04 with the observers reordered by evidence:"
spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar}
---
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: lfm3-1.7b-q6-k
description: >-
LFM3 1.7B, Q6_K, wholly on the GPU; MetaSoar's fast model. The owner notes it beats 12B and 14B models on general
benchmarks (no benchmark is cited in the note).
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "`fast` is LFM3 1.7B Q6_K, wholly on the GPU, with thinking off by `enable_thinking: false`."
stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "The owner notes that LFM3 1.7B beats 12B and 14B models on general"
spec: {type: model, owner: group:default/metasoar, system: metasoar}
---
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: inkling-2-mini-q4-k
description: >-
Inkling 2 Mini, Q4_K, the experts of loop layers 6-12 on the GPU; MetaSoar's slow model. The owner notes it is
strong for its size. Its E-04a run was still going on 2026-11-25, so no claim here holds its numbers.
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "`slow` is Inkling 2 Mini Q4_K, with the experts of loop layers 6–12 on the GPU, with thinking off by"
stated | OpenReplicant/MetaSoar@92105f815c6c2691288c162a40f376be4dd564bb:docs/decision-backends.md | "and that Inkling 2 Mini is likewise strong for its size;"
spec: {type: model, owner: group:default/metasoar, system: metasoar}
---
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: llama-cpp-b12627
description: llama.cpp's server, Substrate's pinned CUDA 12 image at build b12627, on localhost only.
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "Substrate's pinned llama.cpp image `server-cuda12-b12627` and model files (Substrate S-169),"
spec: {type: engine, owner: group:default/metasoar, system: metasoar}
---
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: gtx-1070
description: One NVIDIA GTX 1070 with 8 GB; one model on the GPU at a time.
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "108 ms per read (median) on the GTX 1070."
stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "`run.sh` runs both in turn, one on the GPU at a time."
stated | operator, 2026-11-25 | "GTX 1070 8 GB"
spec: {type: hardware, owner: group:default/metasoar, system: metasoar}
---
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: jevbench-ed50fe0
description: >-
The Leanmcp JevBench release at revision ed50fe0: cases with a typed question, a gold answer, and Jev 1.13's,
djev 0.1's and Laya's probabilities. Ten slices used (SST-5 and BANKING77 left out).
annotations:
morphogen.dev/evidence: |
stated | OpenReplicant/MetaSoar@facbe842bcc0778afc2fbe2a9801cd9895d46fab:trials/decision-readout/README.md | "the Leanmcp JevBench release, pinned at revision `ed50fe0`."
spec: {type: dataset, owner: group:default/metasoar, system: metasoar}
Loading
Loading