From f83f32d110cab201f6853c1bd28fa9765903d1d7 Mon Sep 17 00:00:00 2001 From: OpenReplicant <122761100+OpenReplicant@users.noreply.github.com> Date: Fri, 27 Nov 2026 06:46:07 -0800 Subject: [PATCH 1/2] Research loop: Inkling 2 Mini replicates the 27-31B readout claim; E-17 to E-17d recorded gates-likelihood-readout-27-31b-matches-jev now has two assessments for system:default/metasoar: did-not-transfer for LFM3 1.7B (unchanged) and replicated for Inkling 2 Mini, about 26B (E-04a falsifier not met: 0.810 against 0.843, paired -3.3 [-6.5, -0.3]). New own observations: e04a-inkling-pooled-accuracy, and the handler ladder (a new role, intent-handler, and option, handler-ladder) with one claim each for E-17, E-17b, E-17c and E-17d. New quotes are from MetaSoar at 22feddc (its main); check.py --metasoar passes (43 quotes). The seven predicted probabilities are unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh --- demos/research-loop/README.md | 27 +++++-- demos/research-loop/catalog/map.yaml | 27 ++++++- demos/research-loop/catalog/options.yaml | 42 ++++++++-- ...likelihood-readout-27-31b-matches-jev.yaml | 37 ++++++++- .../e04a/e04a-inkling-pooled-accuracy.yaml | 79 ++++++++++++++++++ .../claims/e17/e17-ladder-last-150.yaml | 76 ++++++++++++++++++ .../claims/e17/e17b-ladder-fresh-cases.yaml | 76 ++++++++++++++++++ .../claims/e17/e17c-ladder-perturbed.yaml | 77 ++++++++++++++++++ .../e17/e17d-ladder-strict-promotion.yaml | 80 +++++++++++++++++++ 9 files changed, 505 insertions(+), 16 deletions(-) create mode 100644 demos/research-loop/claims/e04a/e04a-inkling-pooled-accuracy.yaml create mode 100644 demos/research-loop/claims/e17/e17-ladder-last-150.yaml create mode 100644 demos/research-loop/claims/e17/e17b-ladder-fresh-cases.yaml create mode 100644 demos/research-loop/claims/e17/e17c-ladder-perturbed.yaml create mode 100644 demos/research-loop/claims/e17/e17d-ladder-strict-promotion.yaml diff --git a/demos/research-loop/README.md b/demos/research-loop/README.md index 5a136e6..4fa39df 100644 --- a/demos/research-loop/README.md +++ b/demos/research-loop/README.md @@ -14,10 +14,10 @@ Nothing here runs a model. These are records, and a check that they hold togethe | 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` | +| `catalog/map.yaml` | our side: four roles (`decision-backend`, its `readout-calibration`, `think-router`, and `intent-handler` for E-17) 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`, TabMWP at `5a1a522`) | +| `catalog/options.yaml` | 14 options, one `Component` with `spec.lifecycle: candidate` per method: 13 the papers measured, and MetaSoar's own `handler-ladder`; 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 | +| `claims/e04a/`, `claims/e17/`, `claims/probe/` | 12 of our own observations: six from E-04a's LFM3 run and one from its Inkling 2 Mini run, four from the handler ladder (E-17, E-17b, E-17c, E-17d), 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 @@ -27,7 +27,7 @@ live"). | 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-likelihood-readout-27-31b-matches-jev` (2610.00346) | likelihood-readout | **did-not-transfer** for LFM3 1.7B (E-04a; falsifier met); **replicated** for Inkling 2 Mini, about 26B (E-04a; falsifier not 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 | @@ -44,7 +44,17 @@ live"). 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. +0.024), so the claim about temperature scaling did hold here. The gap is accuracy, not calibration. Inkling 2 Mini, +a mixture of experts of about 26B, close to the paper's sizes, reached 0.810 [0.775, 0.843] against Jev's 0.843 on a +sample of 779 cases: 3.3 points below (paired interval [-6.5, -0.3]), with coverage at 5% risk 0.51 against 0.64. +So the claim transferred at the paper's size and not at 1.7B. On those 779 cases d1-2B reached 0.633 and LFM3 0.561. +The claim has one assessment per model, both for `system:default/metasoar`. + +**The handler ladder** (MetaSoar E-17 to E-17d, `claims/e17/`) is MetaSoar's own method, with no paper behind it. On +its own 300-case TabMWP stream, templates and handlers answered 58.7% of the last 150 cases at -1.3 points [-3.3, +0.0] against the large model alone. On 150 fresh cases they answered 74.0% but lost 5.3 points [-9.3, -2.0] (E-17b). +Perturbations that keep the answer changed nothing (E-17c). Stricter promotion, a shape gate and a stronger check +removed every error and nearly every cheap answer (8.7%, E-17d). ## How to read it @@ -53,12 +63,12 @@ was 0.09, against Jev's 0.67. After one temperature per slice, its calibration e 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. + against that file. There are 43 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, + replicated claims, and the one that did not transfer for LFM3 and was replicated for Inkling, 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 @@ -67,7 +77,8 @@ was 0.09, against Jev's 0.67. After one temperature per slice, its calibration e `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. +- **Quotes from 2026-11-26** (the Inkling run and E-17) are from MetaSoar at `22feddc` (its main on 2026-11-27); + the earlier ones stay at `facbe84` and `92105f8`. ## Run the check diff --git a/demos/research-loop/catalog/map.yaml b/demos/research-loop/catalog/map.yaml index 5034633..2f2a880 100644 --- a/demos/research-loop/catalog/map.yaml +++ b/demos/research-loop/catalog/map.yaml @@ -37,6 +37,18 @@ metadata: spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar} --- apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: intent-handler + description: >- + The role: answer a recurring intent without the large model (a plan template the small model follows, or a + written handler), falling back to the large model when it does not hold. MetaSoar's handler ladder (M-26). + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@22feddc6fa29682e94c2f62fe25da93b559980ab:docs/experiments.md | "**The handler ladder (M-26) cuts model calls on a stream of recurring intents with no loss of accuracy.**" +spec: {type: role, lifecycle: experimental, owner: group:default/metasoar, system: metasoar} +--- +apiVersion: backstage.io/v1alpha1 kind: Resource metadata: name: lfm3-1.7b-q6-k @@ -55,7 +67,8 @@ 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. + strong for its size. Its E-04a numbers are in claims/e04a/e04a-inkling-pooled-accuracy.yaml; it is also E-17's + large model. 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" @@ -95,3 +108,15 @@ metadata: 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} +--- +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: tabmwp-5a1a522 + description: >- + TabMWP (Lu et al., ICLR 2023), tables and math word problems generated from templates, at revision 5a1a522; + `test1k` in one fixed random order is E-17's stream. CC BY-NC-SA 4.0, fetched, not committed. + annotations: + morphogen.dev/evidence: | + stated | OpenReplicant/MetaSoar@22feddc6fa29682e94c2f62fe25da93b559980ab:docs/experiments.md | "TabMWP at `5a1a522` (data CC BY-NC-SA 4.0, fetched, not committed; `dev1k` for prompts, `test1k` for the stream)" +spec: {type: dataset, owner: group:default/metasoar, system: metasoar} diff --git a/demos/research-loop/catalog/options.yaml b/demos/research-loop/catalog/options.yaml index 9206b6d..bf7fa68 100644 --- a/demos/research-loop/catalog/options.yaml +++ b/demos/research-loop/catalog/options.yaml @@ -1,7 +1,8 @@ -# The options: one Component with spec.lifecycle: candidate per method the session's papers measured, for the -# role it could fill. Each lists its claim files (claims/, schemas/evidence-claim.v1.json) in -# spec.morphogen.evaluation.evidence; check.py keeps that list equal to the claims whose `about` names the option. -# Where the method came from is the claims' business; the evidence annotation only says where it is described. +# The options: one Component with spec.lifecycle: candidate per method the session's papers measured (and one of +# MetaSoar's own, handler-ladder), for the role it could fill. Each lists its claim files (claims/, +# schemas/evidence-claim.v1.json) in spec.morphogen.evaluation.evidence; check.py keeps that list equal to the claims whose `about` +# names the option. Where the method came from is the claims' business; the evidence annotation only says where it is +# described. apiVersion: backstage.io/v1alpha1 kind: Component metadata: @@ -20,11 +21,14 @@ spec: E-04a's falsifier, inverted: after debiasing and one temperature per slice, pooled accuracy within 10 points of Jev's and coverage at 5% risk at least half of Jev's, on the JevBench cases. method: E-04a, MetaSoar trials/decision-readout at facbe84 (readout.py, serve.sh, score.py) - result: LFM3 1.7B untuned does not meet it (0.528 against 0.842; coverage 0.09 against 0.67). Inkling pending. + result: >- + LFM3 1.7B untuned does not meet it (0.528 against 0.842; coverage 0.09 against 0.67). Inkling 2 Mini untuned + does (0.810 against 0.843 on its 779-case sample, 3.3 points below; coverage 0.51 against 0.64). evidence: - claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml - claims/arxiv-2610.00346/gates-order-effects-untrained.yaml - claims/arxiv-2610.03935/jeval-first-token-readout.yaml + - claims/e04a/e04a-inkling-pooled-accuracy.yaml - claims/e04a/e04a-lfm3-pooled-accuracy.yaml - claims/e04a/e04a-lfm3-coverage.yaml - claims/e04a/e04a-lfm3-order-flip.yaml @@ -215,3 +219,31 @@ spec: fills: component:default/think-router evaluation: evidence: [claims/arxiv-2608.20256/lwt-grpo-think-mode.yaml] +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: handler-ladder + description: >- + MetaSoar's own method, not a paper's: name each case's intent, send it to the cheapest rung that holds for that + intent (a written handler, a plan template, the large model), and promote a handler or template only on agreement + with the large model's own answers, never gold labels. +spec: + type: method + lifecycle: candidate + owner: group:default/metasoar + morphogen: + fills: component:default/intent-handler + evaluation: + need: >- + E-17's falsifier, inverted: templates and handlers answer at least 30% of a stream's later cases, with + accuracy there not more than 2 points below the large model alone (paired, 95% interval). + method: E-17 to E-17d, MetaSoar trials/handler-ladder at 22feddc (stream.py, stream_v2.py, perturb.py) + result: >- + Met on E-17's own stream (58.7%, -1.3 points). On fresh cases it lost accuracy (E-17b, -5.3 points); the + stricter rules that removed the loss also removed nearly all cheap answers (E-17d, 8.7%). + evidence: + - claims/e17/e17-ladder-last-150.yaml + - claims/e17/e17b-ladder-fresh-cases.yaml + - claims/e17/e17c-ladder-perturbed.yaml + - claims/e17/e17d-ladder-strict-promotion.yaml diff --git a/demos/research-loop/claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml b/demos/research-loop/claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml index c6daf0e..1002841 100644 --- a/demos/research-loop/claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml +++ b/demos/research-loop/claims/arxiv-2610.00346/gates-likelihood-readout-27-31b-matches-jev.yaml @@ -82,7 +82,40 @@ spec: reason: >- No probability was written before the trial: the note's table had "LFM3 1.7B read that way is good enough" as open, so this outcome does not count towards calibration. A transfer test, not a replication: a 1.7B - model untuned, on llama.cpp at Q6_K, on JevBench rather than the paper's tasks. Inkling 2 Mini is still to - come, and tuning the readout (prompt, then self-distillation) is the cell's next step. + model untuned, on llama.cpp at Q6_K, on JevBench rather than the paper's tasks. A 1.7B model is below the + paper's smallest (14B), so this does not test the 27B and 31B finding itself; Inkling 2 Mini (the next + assessment) does. Tuning the readout (prompt, then self-distillation) is the cell's next step. see_also: [e04a-lfm3-slices, probe-lfm3-first-token] date: 2026-11-25 + - system: system:default/metasoar + against: [resource:default/inkling-2-mini-q4-k, resource:default/llama-cpp-b12627, resource:default/gtx-1070, resource:default/jevbench-ed50fe0] + status: replicated + outcome: + trial: + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/22feddc6fa29682e94c2f62fe25da93b559980ab/trials/decision-readout/README.md + repository: OpenReplicant/MetaSoar + commit: 22feddc6fa29682e94c2f62fe25da93b559980ab + path: trials/decision-readout/README.md + observed: [e04a-inkling-pooled-accuracy] + summary: >- + Inkling 2 Mini Q4_K (a mixture of experts of about 26B in all), read the same way, untuned, debiased and + scaled: pooled accuracy 0.810 [0.775, 0.843] against Jev 1.13's 0.843 [0.813, 0.873] on the same 779 + JevBench cases, 3.3 points below (paired, [-6.5, -0.3]), and coverage at 5% risk 0.51 against 0.64. On the + same 779 cases d1-2B reached 0.633 and LFM3 0.561. Near Jev, not equal to it: the paired interval excludes + zero, so "matches" holds here in the sense E-04a registered (within 10 points, coverage above half of Jev's). + comparison: our-setup + verdict: + by: falsifier + decision: not met + ref: OpenReplicant/MetaSoar@22feddc6fa29682e94c2f62fe25da93b559980ab:docs/experiments.md (E-04a) + note: >- + The same falsifier as for LFM3, registered before the outcome: pooled accuracy more than 10 points below + Jev's, or coverage at 5% risk under half of Jev's. Neither limb is met (3.3 points; 0.51 against 0.64). + date: 2026-11-26 + reason: >- + No probability was written before the trial, so this outcome does not count towards calibration. A transfer + test at about the paper's size (26B in all against 27B and 31B), on a mixture of experts at Q4_K, on + llama.cpp and JevBench, on a sample of 100 families per slice. The trial reads it the same way: Inkling is at + "the size at which the decision-gate study found likelihood readouts matching Jev". + date: 2026-11-26 diff --git a/demos/research-loop/claims/e04a/e04a-inkling-pooled-accuracy.yaml b/demos/research-loop/claims/e04a/e04a-inkling-pooled-accuracy.yaml new file mode 100644 index 0000000..9d7cab2 --- /dev/null +++ b/demos/research-loop/claims/e04a/e04a-inkling-pooled-accuracy.yaml @@ -0,0 +1,79 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e04a-inkling-pooled-accuracy + description: >- + Inkling 2 Mini read untuned, debiased and scaled: pooled accuracy 0.810 against Jev 1.13's 0.843 on the same 779 + JevBench cases, 3.3 points below (paired interval [-6.5, -0.3]); E-04a's falsifier not met. +spec: + about: component:default/likelihood-readout + role: component:default/decision-backend + source: + kind: trial + title: "E-04a: local models read as decision models, against Jev" + id: E-04a + url: https://github.com/OpenReplicant/MetaSoar/blob/22feddc6fa29682e94c2f62fe25da93b559980ab/trials/decision-readout/README.md + version: 22feddc6fa29682e94c2f62fe25da93b559980ab + repository: OpenReplicant/MetaSoar + commit: 22feddc6fa29682e94c2f62fe25da93b559980ab + path: trials/decision-readout/README.md + location: Results so far, the Inkling 2 Mini table and the bullets after it + read: in full + quote: >- + **E-04a's falsifier is not met for Inkling.** It is 3.3 points below Jev (paired, families resampled: 95% interval + [-6.5, -0.3] points), so the gap is real but small. Its coverage at 5% risk is 0.51 against Jev's 0.64. + quote_location: Results so far, the first bullet after the Inkling 2 Mini table + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + Inkling 2 Mini (a mixture of experts of about 26B parameters), read by its first token, debiased over both option + orders and scaled with one temperature per slice, is 3.3 points below Jev 1.13 in pooled accuracy on the same + cases: a real gap, but within E-04a's registered 10 points. Its coverage at 5% risk is 0.51 against Jev's 0.64, + above half of Jev's. + metric: accuracy + better: higher + value: 0.810 + interval: {low: 0.775, high: 0.843, level: 0.95, method: resampling families} + where: all ten slices pooled, 100 families per slice, the eval half + baseline: {name: Jev 1.13, value: 0.843, interval: {low: 0.813, high: 0.873, level: 0.95, method: resampling families}} + finding: worse + effect_size: {value: -3.3, kind: absolute, note: "percentage points, paired, families resampled; 95% interval [-6.5, -0.3]"} + significance: "the gap is real but small (the trial's words)" + runs: 1 + cases: 779 + reporting: ours + also: + - {metric: accuracy, better: higher, value: 0.787, interval: {low: 0.752, high: 0.820, level: 0.95, method: resampling families}, where: Inkling raw (the case's order)} + - {metric: coverage at 5% risk, better: higher, value: 0.51, where: Inkling debiased and scaled, baseline: {name: Jev 1.13, value: 0.64}} + - {metric: calibration error, better: lower, value: 0.051, where: Inkling debiased and scaled, baseline: {name: Jev 1.13, value: 0.032}} + - {metric: accuracy, better: higher, value: 0.633, where: "d1-2B debiased, on the same 779 cases"} + - {metric: accuracy, better: higher, value: 0.561, where: "LFM3 1.7B debiased, on the same 779 cases"} + note: >- + From the same README: the table row "| Inkling, debiased and scaled | 0.810 [0.775, 0.843] | 0.283 | 0.051 | 0.51 + (0.043) |", and the table "On the same 779 held-out cases as Inkling's sample" (d1-2B 0.633, LFM3 0.561, Jev + 0.843). The order-flip rate is 0.15 against LFM3's 0.33; a read takes 2.3 s (median) against LFM3's 0.11 s. + The sample is 100 families per slice, half of them held out. + conditions: + models: + - name: Inkling 2 Mini + ref: resource:default/inkling-2-mini-q4-k + size: about 26B in all (a mixture of experts) + precision: Q4_K + tuned: untuned + capability: the owner notes it is strong for its size + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: JevBench (Leanmcp) + version: ed50fe0 + split: the eval half of families, by a hash; each temperature and 5%-risk threshold chosen on the fit half + size: 1,400 cases (100 families per slice), 779 of them in the eval half; ten slices + ref: resource:default/jevbench-ed50fe0 + method: >- + As for LFM3 (e04a-lfm3-pooled-accuracy): the options labelled A, B, C..., `Answer:` prefilled, one token and its + top 50 log-probabilities, the option letters renormalised, two reads per case (options in order and reversed); + debiased is the mean of both orders, scaled adds one temperature per slice. + thinking: off (reasoning_effort none) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + reference: Jev 1.13, djev 0.1 and Laya 421M, their own probabilities as shipped with the cases + runs_note: one read per case and order; the intervals are 95% from resampling families diff --git a/demos/research-loop/claims/e17/e17-ladder-last-150.yaml b/demos/research-loop/claims/e17/e17-ladder-last-150.yaml new file mode 100644 index 0000000..f160c5a --- /dev/null +++ b/demos/research-loop/claims/e17/e17-ladder-last-150.yaml @@ -0,0 +1,76 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e17-ladder-last-150 + description: >- + Over the last 150 of a 300-case TabMWP stream, templates and handlers answered 58.7% of cases; accuracy 98.0% against Inkling alone's 99.3%, -1.3 points [-3.3, +0.0]. +spec: + about: component:default/handler-ladder + role: component:default/intent-handler + source: + kind: trial + title: "E-17: the handler ladder on TabMWP" + id: E-17 + url: https://github.com/OpenReplicant/MetaSoar/blob/22feddc6fa29682e94c2f62fe25da93b559980ab/docs/experiments.md + version: 22feddc6fa29682e94c2f62fe25da93b559980ab + repository: OpenReplicant/MetaSoar + commit: 22feddc6fa29682e94c2f62fe25da93b559980ab + path: docs/experiments.md + location: docs/experiments.md, row E-17 + read: the row in full, and trials/handler-ladder/README.md + quote: >- + over the last 150, templates and handlers answered 58.7% (chunks: 24%, 45%, 64%); accuracy 98.0% against Inkling alone's 99.3%, -1.3 points [-3.3, +0.0], so a loss over 2 points is not excluded + quote_location: docs/experiments.md, row E-17, the outcome + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + On the last 150 cases of a 300-case TabMWP stream, the handler ladder answered 58.7% of cases with templates and + handlers, at 98.0% accuracy against the large model alone's 99.3% on the same cases: -1.3 points, with a 95% + interval of [-3.3, +0.0], so a loss over 2 points is not excluded. E-17's falsifier is not met. + metric: accuracy + better: higher + unit: percent + value: 98.0 + where: the last 150 cases of the stream + baseline: {name: Inkling alone on the same cases, value: 99.3} + finding: matches + effect_size: {value: -1.3, kind: absolute, note: "percentage points, paired; 95% interval [-3.3, +0.0]"} + significance: a loss over 2 points is not excluded (the row's words) + runs: 1 + cases: 150 + reporting: ours + also: + - {metric: share of cases answered by templates and handlers, better: higher, unit: percent, value: 58.7, where: "the last 150; chunks of 100: 24%, 45%, 64%"} + - {metric: Inkling calls a case, better: lower, value: 0.50, where: chunk 3} + - {metric: wall seconds a case, better: lower, value: 21.9, baseline: {name: Inkling alone, value: 22.4}} + note: >- + Model calls fell but wall time did not (handler writes, shadow labels and LFM3 on every case). The two errors + were promoted handlers, each on 3 agreements of 3. Design details were tuned on stream cases, so E-17b tests + fresh ones. + conditions: + models: + - name: Inkling 2 Mini + ref: resource:default/inkling-2-mini-q4-k + size: about 26B in all (a mixture of experts) + precision: Q4_K + tuned: untuned + capability: the large model; it solves what no cheaper rung holds, and its answers are the only labels + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the small model; names intents (E-17 to E-17c) and follows plan templates + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: TabMWP + version: 5a1a522 + split: test1k, the first 300 of a fixed random order, in chunks of 100; measured on the last 150 + ref: resource:default/tabmwp-5a1a522 + method: >- + An intent elaborator names each case's intent (an exact key); each case goes to the cheapest rung that holds for its intent (a Python handler over the table, a plan template the small model follows, the large model); after enough of one intent's cases the large model writes a template and a handler, each promoted only on agreement with the large model's earlier answers on that intent, and falling back to the large model when it raises or its answer fails a check. Promotion at 95% agreement or more (3 of 3 at the least). + thinking: off (Inkling reasoning_effort none; LFM3 enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + labels: none; promotion is on agreement with the large model's own answers, and only the summary reads gold + unstated: [TabMWP is generated from templates, so intents recur by construction; the result is for the mechanism, not real work] diff --git a/demos/research-loop/claims/e17/e17b-ladder-fresh-cases.yaml b/demos/research-loop/claims/e17/e17b-ladder-fresh-cases.yaml new file mode 100644 index 0000000..d36b23d --- /dev/null +++ b/demos/research-loop/claims/e17/e17b-ladder-fresh-cases.yaml @@ -0,0 +1,76 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e17b-ladder-fresh-cases + description: >- + On 150 fresh TabMWP cases (301 to 450), E-17's ladder answered 74.0% cheaply but accuracy fell to 94.0% against Inkling alone's 99.3%, -5.3 points [-9.3, -2.0]. +spec: + about: component:default/handler-ladder + role: component:default/intent-handler + source: + kind: trial + title: "E-17b: what E-17's runner learned, on cases it has never seen" + id: E-17b + url: https://github.com/OpenReplicant/MetaSoar/blob/22feddc6fa29682e94c2f62fe25da93b559980ab/docs/experiments.md + version: 22feddc6fa29682e94c2f62fe25da93b559980ab + repository: OpenReplicant/MetaSoar + commit: 22feddc6fa29682e94c2f62fe25da93b559980ab + path: docs/experiments.md + location: docs/experiments.md, row E-17b + read: the row in full, and trials/handler-ladder/README.md + quote: >- + templates and handlers answered 74.0% of cases 301 to 450 (chunks of 50: 68%, 70%, 84%), Inkling calls 0.28 a case in the last chunk and Inkling seconds 6.7 a case (17.6 in E-17's last chunk); but accuracy fell to 94.0% against Inkling alone's 99.3%, -5.3 points [-9.3, -2.0]. + quote_location: docs/experiments.md, row E-17b, the outcome + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + Frozen at the end of E-17 and run on the stream's next 150 cases, never seen while it was tuned, the ladder + answered 74.0% of them with templates and handlers, but at 94.0% accuracy against the large model alone's + 99.3%: -5.3 points [-9.3, -2.0]. The interval's upper end is -2.0 exactly, so by the registered rule the + falsifier is not met; the loss is real by every other reading. + metric: accuracy + better: higher + unit: percent + value: 94.0 + where: cases 301 to 450 of the stream + baseline: {name: Inkling alone on the same cases, value: 99.3} + finding: worse + effect_size: {value: -5.3, kind: absolute, note: "percentage points, paired; 95% interval [-9.3, -2.0]"} + significance: the interval's upper end is -2.0 exactly, not below it (the row's words) + runs: 1 + cases: 150 + reporting: ours + also: + - {metric: share of cases answered by templates and handlers, better: higher, unit: percent, value: 74.0, where: "chunks of 50: 68%, 70%, 84%"} + - {metric: Inkling calls a case, better: lower, value: 0.28, where: the last chunk} + note: >- + Of 9 errors, 8 were promoted handlers and 1 a template: a handler promoted on 3 of 3 examples met table shapes + no example showed (stem-and-leaf), and the answer check let non-answers through ("None", a prompt placeholder). + Thin promotion evidence and a weak check, by the row's reading. + conditions: + models: + - name: Inkling 2 Mini + ref: resource:default/inkling-2-mini-q4-k + size: about 26B in all (a mixture of experts) + precision: Q4_K + tuned: untuned + capability: the large model; it solves what no cheaper rung holds, and its answers are the only labels + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the small model; names intents (E-17 to E-17c) and follows plan templates + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: TabMWP + version: 5a1a522 + split: test1k, positions 301 to 450 of the same fixed order, in chunks of 50; never seen while the runner was tuned + ref: resource:default/tabmwp-5a1a522 + method: >- + An intent elaborator names each case's intent (an exact key); each case goes to the cheapest rung that holds for its intent (a Python handler over the table, a plan template the small model follows, the large model); after enough of one intent's cases the large model writes a template and a handler, each promoted only on agreement with the large model's earlier answers on that intent, and falling back to the large model when it raises or its answer fails a check. The runner frozen at MetaSoar commit 98eee4e, continuing from E-17's state and still learning online. + thinking: off (Inkling reasoning_effort none; LFM3 enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + labels: none; promotion is on agreement with the large model's own answers, and only the summary reads gold + unstated: [TabMWP is generated from templates, so intents recur by construction; the result is for the mechanism, not real work] diff --git a/demos/research-loop/claims/e17/e17c-ladder-perturbed.yaml b/demos/research-loop/claims/e17/e17c-ladder-perturbed.yaml new file mode 100644 index 0000000..7bfae21 --- /dev/null +++ b/demos/research-loop/claims/e17/e17c-ladder-perturbed.yaml @@ -0,0 +1,77 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e17c-ladder-perturbed + description: >- + On E-17b's cheaply answered cases, shuffling rows, permuting labels or rewording the question did not change the ladder's accuracy (+0.0 points each). +spec: + about: component:default/handler-ladder + role: component:default/intent-handler + source: + kind: trial + title: "E-17c: the ladder's cheap answers under changes that keep the answer" + id: E-17c + url: https://github.com/OpenReplicant/MetaSoar/blob/22feddc6fa29682e94c2f62fe25da93b559980ab/docs/experiments.md + version: 22feddc6fa29682e94c2f62fe25da93b559980ab + repository: OpenReplicant/MetaSoar + commit: 22feddc6fa29682e94c2f62fe25da93b559980ab + path: docs/experiments.md + location: docs/experiments.md, row E-17c + read: the row in full, and trials/handler-ladder/README.md + quote: >- + Rows shuffled: 111 variants, 91.9% against 91.9% on the originals, +0.0 [-3.6, +3.6], the intent unchanged on 96%, still a template or handler on 96%; labels permuted: 37 variants, +0.0 [+0.0, +0.0], intent unchanged on 97%; reworded: 72 variants, +0.0 [+0.0, +0.0], intent unchanged on 89%, still cheap on 93%. + quote_location: docs/experiments.md, row E-17c, the outcome + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + Read-only (nothing learned), the ladder as it stood after E-17b kept its accuracy on variants of the cases a + template or handler had answered: rows shuffled, 91.9% against 91.9% on the originals, +0.0 points [-3.6, + +3.6]; labels permuted and the question reworded, +0.0 [+0.0, +0.0] each. The handlers did not learn their + examples' surface; E-17b's errors came from shapes and non-answers a perturbation of seen shapes cannot find. + metric: accuracy + better: higher + unit: percent + value: 91.9 + where: the rows-shuffled variants + baseline: {name: the same cases unperturbed, value: 91.9} + finding: matches + effect_size: {value: 0.0, kind: absolute, note: "percentage points, paired; 95% bootstrap interval [-3.6, +3.6]"} + runs: 1 + cases: 111 + reporting: ours + also: + - {metric: accuracy change, unit: percentage points, value: 0.0, where: "labels permuted, 37 variants; interval [+0.0, +0.0]"} + - {metric: accuracy change, unit: percentage points, value: 0.0, where: "question reworded by LFM3, 72 variants; interval [+0.0, +0.0]"} + - {metric: intent unchanged, unit: percent, value: 96, where: rows shuffled} + - {metric: intent unchanged, unit: percent, value: 89, where: reworded} + note: >- + The label perturbation was fixed after its first run and run again: the first run (-8.6 [-15.7, -1.4] on 70 + variants) had 8 errors, all the perturbation's own (it changed what the question meant). The rerun's 37 + variants are the result; the first run is kept in MetaSoar's results-e17b/perturb-v1.jsonl. + conditions: + models: + - name: Inkling 2 Mini + ref: resource:default/inkling-2-mini-q4-k + size: about 26B in all (a mixture of experts) + precision: Q4_K + tuned: untuned + capability: the large model; it solves what no cheaper rung holds, and its answers are the only labels + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the small model; names intents (E-17 to E-17c) and follows plan templates + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: TabMWP + version: 5a1a522 + split: the cases among E-17b's 150 that a template or handler answered, three variants each + ref: resource:default/tabmwp-5a1a522 + method: >- + An intent elaborator names each case's intent (an exact key); each case goes to the cheapest rung that holds for its intent (a Python handler over the table, a plan template the small model follows, the large model); after enough of one intent's cases the large model writes a template and a handler, each promoted only on agreement with the large model's earlier answers on that intent, and falling back to the large model when it raises or its answer fails a check. Here read-only, from E-17b's final state (trials/handler-ladder/perturb.py). + thinking: off (Inkling reasoning_effort none; LFM3 enable_thinking false) + hardware: {name: NVIDIA GTX 1070, memory: 8 GB, ref: resource:default/gtx-1070} + labels: none; promotion is on agreement with the large model's own answers, and only the summary reads gold + unstated: [TabMWP is generated from templates, so intents recur by construction; the result is for the mechanism, not real work] diff --git a/demos/research-loop/claims/e17/e17d-ladder-strict-promotion.yaml b/demos/research-loop/claims/e17/e17d-ladder-strict-promotion.yaml new file mode 100644 index 0000000..592771c --- /dev/null +++ b/demos/research-loop/claims/e17/e17d-ladder-strict-promotion.yaml @@ -0,0 +1,80 @@ +apiVersion: morphogen.dev/v1alpha1 +kind: EvidenceClaim +metadata: + name: e17d-ladder-strict-promotion + description: >- + With stricter promotion, a shape gate and a stronger check, the ladder made no errors on cases 451 to 600 but answered only 8.7% cheaply, all by templates; E-17d's falsifier met on coverage. +spec: + about: component:default/handler-ladder + role: component:default/intent-handler + source: + kind: trial + title: "E-17d: E-17b's three fixes, on fresh cases" + id: E-17d + url: https://github.com/OpenReplicant/MetaSoar/blob/22feddc6fa29682e94c2f62fe25da93b559980ab/docs/experiments.md + version: 22feddc6fa29682e94c2f62fe25da93b559980ab + repository: OpenReplicant/MetaSoar + commit: 22feddc6fa29682e94c2f62fe25da93b559980ab + path: docs/experiments.md + location: docs/experiments.md, row E-17d + read: the row in full, and trials/handler-ladder/README.md + quote: >- + templates and handlers answered 8.7% of cases 451 to 600 (chunks of 50: 6%, 10%, 10%), all templates; no handler answered a case. Accuracy was 100.0% against Inkling alone's 100.0% (0 errors; E-17b had 9), so the fixes removed the errors and with them nearly all the cheap answers. + quote_location: docs/experiments.md, row E-17d, the outcome + quote_status: checked + quote_note: Matched against the file at the commit by check.py --metasoar (whitespace collapsed). + claim: + statement: >- + With promotion at a 95% Wilson lower bound of 0.70 (9 of 9 at the least), a promoted candidate answering only + table shapes it has agreed on, a check that refuses non-answers, and intents matched by d1-2B among the nearest + known ones, the ladder made no errors on cases 451 to 600 (100.0% against the large model alone's 100.0%), but + templates and handlers answered only 8.7% of them, all templates. The fixes removed the errors and nearly all + the cheap answers; E-17d's falsifier is met on coverage. + metric: share of cases answered by templates and handlers + better: higher + unit: percent + value: 8.7 + where: "cases 451 to 600; chunks of 50: 6%, 10%, 10%" + baseline: {name: "the falsifier's floor", value: 30} + finding: worse + runs: 1 + cases: 150 + reporting: ours + also: + - {metric: accuracy, better: higher, unit: percent, value: 100.0, baseline: {name: Inkling alone on the same cases, value: 100.0}} + - {metric: Inkling calls a case, better: lower, value: 1.08, where: "more than Inkling alone"} + note: >- + Why, by the row: re-judging set every handler back to shadow, and 9 of 9 is slow to reach when 150 cases spread + over 86 intents; and intents fragmented (58 of the 150 cases fell in newly split intents, each starting with no + labels). Next in MetaSoar: keep the check and the shape gate, promote sooner or pool labels over coarse intents + (E-18), merge rather than split on disagreement. + conditions: + models: + - name: Inkling 2 Mini + ref: resource:default/inkling-2-mini-q4-k + size: about 26B in all (a mixture of experts) + precision: Q4_K + tuned: untuned + capability: the large model; it solves what no cheaper rung holds, and its answers are the only labels + - name: LFM3 1.7B + ref: resource:default/lfm3-1.7b-q6-k + size: 1.7B + precision: Q6_K + tuned: untuned + capability: the small model; names intents (E-17 to E-17c) and follows plan templates + - name: d1-2B + size: 2B + tuned: Liquid's decision model, as shipped + capability: chooses among the 6 nearest known intents (by Qwen3-Embedding-0.6B), on the CPU + engine: {name: llama.cpp server, version: "b12627 (Substrate image server-cuda12-b12627)", ref: resource:default/llama-cpp-b12627} + dataset: + name: TabMWP + version: 5a1a522 + split: test1k, positions 451 to 600 of the same fixed order, in chunks of 50; never seen + ref: resource:default/tabmwp-5a1a522 + method: >- + An intent elaborator names each case's intent (an exact key); each case goes to the cheapest rung that holds for its intent (a Python handler over the table, a plan template the small model follows, the large model); after enough of one intent's cases the large model writes a template and a handler, each promoted only on agreement with the large model's earlier answers on that intent, and falling back to the large model when it raises or its answer fails a check. With trials/handler-ladder/stream_v2.py's rules, continuing from E-17b's state, re-judged at the start. + thinking: off (Inkling reasoning_effort none; LFM3 enable_thinking false) + hardware: {name: NVIDIA GTX 1070 (d1-2B and the embedder on the CPU), memory: 8 GB, ref: resource:default/gtx-1070} + labels: none; promotion is on agreement with the large model's own answers, and only the summary reads gold + unstated: [TabMWP is generated from templates, so intents recur by construction; the result is for the mechanism, not real work] From 614418eb50d0efe95536bc903ab2b4074f1b5cc6 Mon Sep 17 00:00:00 2001 From: OpenReplicant <122761100+OpenReplicant@users.noreply.github.com> Date: Fri, 27 Nov 2026 06:51:36 -0800 Subject: [PATCH 2/2] Release prep: versions 0.10.0, CHANGELOG draft, isolation on GitHub stated, stale links fixed - pyproject (0.8.0) and the plugin (0.9.0) both to 0.10.0; uv.lock's own entry only (uv lock --check passes). - CHANGELOG.md: a draft for 0.10.0, not tagged. - README: on GitHub only the container keeps the held-out answers from the candidate (same runner, root inside, Docker's default capabilities); a Limits bullet says so. MCP tools 13, not 11; the schemas line current. - BRIEF.md and CLAUDE.md: rebuild 6 is at the tag archive/rebuild-6 (the branch is gone). NOTICE: the first iteration is at commit cc3b77d (the branch first-iteration is gone). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- BRIEF.md | 6 +++--- CHANGELOG.md | 36 +++++++++++++++++++++++++++++++++ CLAUDE.md | 2 +- NOTICE | 4 ++-- README.md | 18 ++++++++++++++--- pyproject.toml | 2 +- uv.lock | 2 +- 9 files changed, 61 insertions(+), 13 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index babd6fd..9ec0560 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -11,7 +11,7 @@ "name": "morphogen", "source": "./", "description": "Improve a system at any scope, from one cell to the whole, behind a judge the agent cannot edit.", - "version": "0.9.0" + "version": "0.10.0" } ] } diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 71b960d..5edb2b7 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://anthropic.com/claude-code/plugin.schema.json", "name": "morphogen", - "version": "0.9.0", + "version": "0.10.0", "description": "Improve a system at any scope, from one cell to the whole, behind a judge the agent cannot edit: structure, judge, evidence and optimizers over MCP.", "author": { "name": "OpenReplicant" diff --git a/BRIEF.md b/BRIEF.md index abbf1d2..75c2da4 100644 --- a/BRIEF.md +++ b/BRIEF.md @@ -1,9 +1,9 @@ # Morphogen: the design The design behind rebuild 7: what Morphogen is, why, and what it rests on. What is built, and how -to use it, is in [README.md](README.md). The previous build is on the -[`rebuild-6`](https://github.com/OpenReplicant/Morphogen/tree/rebuild-6) branch, with -[LESSONS.md](https://github.com/OpenReplicant/Morphogen/blob/rebuild-6/docs/restart/LESSONS.md), +to use it, is in [README.md](README.md). The previous build is at the tag +[`archive/rebuild-6`](https://github.com/OpenReplicant/Morphogen/tree/archive/rebuild-6), with +[LESSONS.md](https://github.com/OpenReplicant/Morphogen/blob/archive/rebuild-6/docs/restart/LESSONS.md), what it taught. Issue numbers (#43, #45) refer to this repository's history. ## Morphogen in one page diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..97fa488 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,36 @@ +# Changelog + +## 0.10.0 (draft, not tagged) + +The first public release of rebuild 7: the judge, the kit around it, and the GitHub judge that reads the catalog. + +**The judge.** Scores a candidate commit against a base by the base's rules: measurement outside the candidate, +paired rounds with a sign test (A/A: identical code passed 0 of 12), held-out answers given only to the base's +scorer, default deny on what a cell may change, neighbours' interface tests and the system guard. Every verdict goes +into a hash-chained evidence log. The red team holds 61 known cheats, and each must keep failing. + +**Ways in.** +- `morphogen judge`, `change`, `measure`, `tune`, `status` on the command line, and an MCP server with 13 tools. +- `morphogen request`: one document in, one verdict out (#78), for a system outside this repository. +- `morphogen intake`: the judge held by another Unix user, so the author cannot read the answers (#83). +- `morphogen pr` and `.github/workflows/judge.yml`: a pull request judged on GitHub Actions by the catalog on main + (#106). It ran live for the first time on 2026-11-27, in a throwaway pull request on a fixture catalog: an honest + change passed and a widened `change` was refused (#107). + +**The kit.** The map and the catalog are Backstage entity files (`catalog-info.yaml` and its Location targets), with +`spec.morphogen` on the entities (#102, #103; schema `schemas/morphogen-spec.v1.json`). Skills: `map`, `catalog`, +`research`, `morphogen`; agents `worker` and `reviewer`. Optimizers: grid, random, hill-climb with restarts, +annealing, Optuna and GEPA (optional extras), and the selector. + +**Systems where they run.** Env values from a file outside the commits, services from a fixed image on an internal +network, and model calls counted at a gateway by the operator's meter (#79, #80). + +**Demos.** `fernhill` (an engagement on a made-up firm with the kit alone, #104) and `research-loop` (evidence claims +from papers and from MetaSoar's own trials, as data, #105). + +**Known limits.** See README, "Limits". In particular: on GitHub the held-out answers share the runner with +candidate code, and only the container keeps them apart. The dogfood caller (`.github/workflows/morphogen.yml`) +still pins the rebuild-8 judge (`b921c9b`). + +**Versions.** The Python package and the Claude Code plugin are both 0.10.0. The package was 0.8.0 and the plugin +0.9.0 before. diff --git a/CLAUDE.md b/CLAUDE.md index ffb1ce4..d745e6b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,6 +1,6 @@ # Morphogen (rebuild 7) -Read BRIEF.md first; it is the design. The previous build is on the `rebuild-6` branch, with +Read BRIEF.md first; it is the design. The previous build is at the tag `archive/rebuild-6`, with docs/restart/LESSONS.md. ## Layout diff --git a/NOTICE b/NOTICE index 47ebd09..7c1ccbd 100644 --- a/NOTICE +++ b/NOTICE @@ -3,5 +3,5 @@ Copyright 2026 OpenReplicant Licensed under the Apache License, Version 2.0. -The first iteration (Morphogen and the Knowledge Kernel) is preserved on the -branch first-iteration, with its own NOTICE. +The first iteration (Morphogen and the Knowledge Kernel) is in this repository's +history at commit cc3b77d, with its own NOTICE. diff --git a/README.md b/README.md index 23fd70d..57378a8 100644 --- a/README.md +++ b/README.md @@ -361,9 +361,9 @@ directory, so it can only answer. The cell's `description` is its objective. | Evidence | `evidence.py` | an append-only, hash-chained log of measured and stated claims, in git's own directory | | Observers | `observers.py` | `command` (a command after each run) and `otel` (an OpenTelemetry receiver in the judge that adds up each run's telemetry, such as Claude Code's cost, tokens and tool results) | | Optimizers | `optimize.py` | a catalog behind one contract: grid, random, hill-climb (with `restarts`) and simulated annealing (`anneal`), built in; Optuna and GEPA adapters (optional extras); and the `selector`, whose bandit policy (primed by earlier verdicts, with a stagnation signal) chooses which proposes next. A model-based policy is planned; packages add more through the `morphogen.optimizers` entry point. `tune` checks, writes and probes each proposal and judges the best | -| Interfaces | `cli.py`, `mcp_server.py`, `ui.py` | the command line, an MCP server with 11 tools, and a local read-only web UI | +| Interfaces | `cli.py`, `mcp_server.py`, `ui.py` | the command line, an MCP server with 13 tools, and a local read-only web UI | | Plugin | `.claude-plugin/`, `skills/`, `agents/` | the Claude Code plugin around the MCP server; the skills (`map`, `catalog`, `research`, `morphogen`) are plain Agent Skills any harness can load | -| Schemas | `schemas/` | the evidence record (v1); the `spec.morphogen` fields of the catalog entities (draft, phase 1; not read yet) | +| Schemas | `schemas/` | the evidence record (v1); the `spec.morphogen` fields of the catalog entities the code loads (v1; a test keeps them equal); the research loop's evidence claim (v1, draft) | ### The system guard @@ -471,6 +471,14 @@ description; without one, the change is judged as one that claims no improvement job signs the verdict (Sigstore, keyless by default), posts `morphogen/verdict` on the head commit and keeps the verdict and the run's evidence records as artifacts; a judge that fails is posted as a stop, never a pass. +**On GitHub, only the container keeps the answers from the candidate.** The `judge` job clones the private material +into the runner's temporary directory, on the same virtual machine where the candidate's commands run. A candidate +cannot read it because its container mounts only the candidate's tree, read-only, with no network. Nothing else +stands between them: the containers run as the image's user (root, for `python:3.12-slim`) under the runner's Docker +daemon, with Docker's default capabilities, so a container escape would reach the answers and anything else on the +runner. The rebuild-8 judge that the dogfood caller still pins (`b921c9b`) ran candidates in a job that never had +the answers on disk. The trade-off is open (see "Limits"). + ## What the judge guarantees - **The rules are the base's.** The catalog files and everything a cell's `change` does not name come @@ -543,6 +551,10 @@ Details are from each project's own docs or source, read on 2026-11-04 and 2026- insist with `requires: [network_isolated, private_paths_hidden, ...]`. Containers use `sandbox_image` (default `python:3.12-slim`), so a cell's dependencies must be in that image. - **The scorer runs without a container**: it is the judge's code from the base commit. +- **On GitHub, the held-out answers share the runner with candidate code.** Container isolation (no network, only + the candidate's tree mounted) is the only thing between them; the containers are not hardened further (no + `--cap-drop`, no `no-new-privileges`, root inside). Keep cases the candidate must never see on a judge it cannot + reach ("A judge the author cannot reach"), or accept that a container escape on the runner would expose them. - **Settings are read statically.** Code that changes a setting at run time is the reviewer's to catch. TOML keys can be read but not yet written by `tune`. - **Default deny is as narrow as `change`.** `change: "**"` would open everything but the project @@ -566,6 +578,6 @@ Details are from each project's own docs or source, read on 2026-11-04 and 2026- tests/ its tests and red team; fixture projects in tests/fixture*.py .claude-plugin/ the plugin and marketplace manifests skills/, agents/ the skills (Agent Skills format) and Claude Code agents - schemas/ published JSON Schemas (evidence record; spec.morphogen, a draft) + schemas/ published JSON Schemas (evidence record, spec.morphogen, evidence claim) demos/ projects Morphogen can build and drive (the core never imports from them) BRIEF.md the design; PLAN.md the way there diff --git a/pyproject.toml b/pyproject.toml index 03f85aa..a0b6760 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "morphogen" -version = "0.8.0" +version = "0.10.0" description = "The local morphological drive: improve a system at any scope, behind a judge the improver cannot edit." license = "Apache-2.0" requires-python = ">=3.11" diff --git a/uv.lock b/uv.lock index fd8c1ef..97decba 100644 --- a/uv.lock +++ b/uv.lock @@ -617,7 +617,7 @@ wheels = [ [[package]] name = "morphogen" -version = "0.8.0" +version = "0.10.0" source = { editable = "." } dependencies = [ { name = "mcp" },