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
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions BRIEF.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 4 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,10 +10,11 @@ docs/restart/LESSONS.md.
`otel`), `project.py` (the cell format: `spec.morphogen` on the catalog's entities, default deny),
`backstage.py` (the catalog: `catalog-info.yaml` and its Location targets, read into cells, interfaces and settings),
`status.py` (where a project stands and the next step),
`documents.py` (the project's settings, from the System's `spec.morphogen`, and the target spec a cell compiles to), `request.py` (one document in, one verdict out), `pullrequest.py` (`morphogen pr`: a pull request as the GitHub judge, `.github/workflows/judge.yml`, hands it to the judge as a request), `intake.py` (the judge held by another user: a candidate arrives as a git bundle), `cli.py`, `mcp_server.py`, `ui.py` and `ui.html` (the read-only web UI).
`documents.py` (the project's settings, from the System's `spec.morphogen`, and the target spec a cell compiles to), `request.py` (one document in, one verdict out), `pullrequest.py` (`morphogen pr`: a pull request as the GitHub judge, `.github/workflows/judge.yml`, hands it to the judge as a request), `intake.py` (the judge held by another user: a candidate arrives as a git bundle), `research.py` (the research loop's deterministic half: arXiv watch, paper text, quote checks, claim files, steering, the queue; never imported by the judge), `cli.py`, `mcp_server.py`, `ui.py` and `ui.html` (the read-only web UI).
- `.claude-plugin/`, `skills/`, `agents/`: the Claude Code plugin around the MCP server. Skills (the kit):
`morphogen` (improve a cell), `map` (take a system apart into Backstage entity files and draft cells),
`catalog` and `research` (options for a role, as `lifecycle: candidate` Components). `schemas/morphogen-spec.v1.json`
`catalog` and `research` (options for a role, as `lifecycle: candidate` Components), `research-loop` (one session of
the research agent: papers to checked EvidenceClaim files, docs/research-loop.md). `schemas/morphogen-spec.v1.json`
is the schema of the `spec.morphogen` fields the code loads (a test keeps them equal).
- `tests/`: the core's tests and red team; fixture projects in `tests/fixture*.py`, the timed
sample's files in `tests/fixtures`.
Expand Down
4 changes: 2 additions & 2 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -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.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Loading