Skip to content
Merged
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
94 changes: 57 additions & 37 deletions docs/handoff-2026-11-23.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,64 @@
# Handoff, 2026-11-23
# Handoff, 2026-11-23 (late)

Read this first in a new session, then `docs/plan.md` ("Next, in order") and `docs/framework.md`. History before
this is in `DECISIONS.md` (S-178 to S-186 are this stretch's) and `docs/handoff-2026-11-22.md` (superseded).
Read this first in a new session, then `docs/plan.md` ("Next, in order") and `docs/framework.md`. Check `git log`
and the last rows of `DECISIONS.md` (S-192 to S-196 are this session's) before trusting anything here.

## Where it stands

- **Branch `claude/m17-gate`**, not pushed, not merged. It carries S-178 to S-186: the ladder's design and its
decider trial, `env.experience` (migrated on this machine's database; `EXPERIENCE_KEY` is in `.env`: keep a
copy), and the new shape in the docs. `scripts/check.sh` and all eleven test suites pass.
- **The shape is settled (S-185):** the Kernel (Postgres made into a kernel), Substrate (the orchestrator kit:
skills `map`, `catalog`, `research`, `orchestrate`, `optimize`; hooks; adapters; the reference stack), Morphogen
(the optimiser, its Claude Code plugin), distributions (folders in `distributions/` here, not new repositories),
MetaSoar (research). Every dependency is a contract. Environments are OpenEnv environments (S-184). The ladder
(System 1 at the model endpoint) is an assistant-distribution component on OpenEnv (S-186).
- **The research behind it:** `docs/research/Object environments prior art.md` (and its notes): nothing found
combines the pieces; copy Foundry's ideas, A&A's vocabulary, WoT; plug in PostgREST, pgmq, RLS, MCP; first paid
offer a five-day "map and one gated automation" pilot. The owner wants Substrate solid before outreach.

## Next

Plan step 1, **the OpenEnv spike**: `openenv` 0.12.0 (2026-11-05, BSD-3; not `openenv-core`), one Postgres-backed
environment, seven points to prove (listed in the plan and S-184), plus whether MCP's `input_required` (revision
2026-07-28) is final. Results in `.state/trials/openenv/`, a row in `DECISIONS.md`. Then step 2, Morphogen. Once the shape settles (S-187):
everything runs on top of it (step 6), the bootstrap instance with a snapshot map and catalogs (step 7), a second
docs pass (step 8).
- **`main` has everything** (Substrate PRs #22 and #23 merged). No open branches; old ones are tags `archive/*`.
- **The kernel:** D-125 (compose codec) and D-126 (one database) are on `claude/compose-codec`, **not on the
kernel's `main`**: #134 and #135 merged into stacked branches, not `main`. **Kernel PR #136** re-lands them; the
owner merges it.
- **The stack is down** (`scripts/down.sh`). `scripts/up.sh` brings it back (core: db, gateway, ollama, kernel, ui;
`COMPOSE_PROFILES=llm` adds both local models). The last full `check.sh` and `test.sh` (five suites) passed with
the stack up, before S-196's doc-only changes.
- **The old assistant is gone** (S-194, S-195): companion, voice head, worker, blocks, components judge, the
ladder's code, their services, images, gateway callers, logins, catalog entries, UI pages and settings. Its data
is in `.state/backups/substrate-env-pgmq-20261123-125241.sql`. **The assistant starts again from scratch** when
the owner says what it should do; the ladder's design (S-178 to S-183) is an input, not a commitment.
- **envkit is retired** (S-196): OpenEnv is the environment standard.

## Done this session

- **OpenEnv spike** (S-192, `scripts/trials/openenv/`, results `.state/trials/openenv/`): all seven points pass.
Gates stay a `propose` tool: MCP 2026-07-28's `input_required` is final, but fastmcp 3.4.11 (under openenv
0.12.0) pins `mcp<2`. openenv's production `/mcp` is not standard MCP (no `initialize`). Harbor and AgentEnv
noted for MetaSoar and later.
- **Morphogen** (S-193): `~/Projects/Morphogen` at GitHub's main (`9769a0b`); its plugin installed at project scope,
pinned to that commit (`.claude/settings.json`), so its MCP tools load in this new session. `morphogen.yaml` reads
`catalog/catalog-info.yaml` (a Location naming every entity file; `scripts/catalog.py check` enforces it). A meter
(`scripts/gateway.py meter-open|meter-close`, caller `morphogen:judge`, local models only) counts a run's calls
from Bifrost's log. The operator's files are in `~/.local/share/substrate-judge/` and the uncommitted
`morphogen.local.yaml`. The first cell (the voice router's prompt) was judged end to end and went with the voice
head; **Morphogen has no cell of its own now**.
- **Rule 6:** uv is allowed on the host (Claude Code plugins run their MCP servers with it).
- **Machine:** images 40 GB to 12.75 GB; volume `companion-home` deleted; `.env` cleaned (backup in `.state/backups/`).
- **Side trial:** `maya-inkling-mini` (a faster Inkling engine) needs an sm_80+ 24 GB GPU; the GTX 1070 is sm_61, 8 GB.
Not adopted (`.state/trials/maya-inkling/summary.md`).

## Loose ends, in the order I would take them

1. **Merge kernel PR #136**, then point `repos.yaml`'s kernel `checked` at the new main.
2. **`repos.yaml`'s Morphogen** pins `b57fbbb` (2026-11-16) and names `repos/morphogen`, which does not exist; the
checkout used is `~/Projects/Morphogen` at `9769a0b`. Settle one location and pin.
3. **The dropped `store` schema still has readers:** the trials `scripts/trials/embedding-model` and `map-diagram`,
the fixture `scripts/tests/oldschema/`, and `test_ui`, which builds its kernel through the old export path;
seed the kernel directly and remove the rest.
4. **The plan:** steps 6 and 9 still name the old assistant's parts; step 3 is now small (the repository in shape
without it); step 4 (the `env` schema into the kernel's database, then drop database `substrate`) is next in line.
5. **Morphogen:** a first cell on a part that stays (the gateway's config, or a skill); tests for the 11 interfaces
(`morphogen.dev/tests`); cells' owner and lifecycle; the verdict did not keep the meter's counts as
`outcome.recorded` (check, and upstream by pull request if it is Morphogen's).
6. **The kernel's MCP tools** (`mcp__kernel__*`) are still not wired into these sessions (`scripts/kernel.sh login NAME`).
7. **Small:** LFM3's licence (S-188) still unread; the volumes `voice-models`, `worker-workspace`, `search-cache` and
about 55 anonymous ones are still on the machine (the owner named only `companion-home`); the OpenEnv trial's
rebuilt image has not been re-run (`scripts/trials/openenv/run.sh`, stack up).

## Things to know

- **Git identity:** this machine has none configured; commits use `git -c user.name=Claude -c
user.email=noreply@anthropic.com`, as the earlier commits do, with the session's attribution lines.
- **Morphogen's checkout** at `~/Projects/Morphogen` is rebuild 5 (2026-10-26); GitHub's main is rebuild 7
(2026-11-21, a Claude Code plugin v0.8.0 with an MCP server). Update it before use; never edit it from here (rule 9
as rewritten: changes by pull request there).
- **The kernel's MCP tools** (`mcp__kernel__*`) were not loaded in these sessions, so the research rows (S-179) have
their evidence in trial files, not in the store.
- **Settled 2026-11-23 (S-188):** the MCP installer's registries and trust; LFM3 recommended (downloads may be
recommended whatever their licence); business work in its own session as soon as plan steps 6 to 8 are done.
Later the same day (S-189 to S-191): the motto is "Map, design and orchestrate software, agents and
organisations. Optimise all the things!"; one database, the kernel's (the `env` schema moves in, plan step 4);
the retired `store` schema was dropped (dump in `.state/backups/`); agent-facing documentation and an `rtfm` skill
are planned (steps 5 and 7).
**Open for the owner:** merging `claude/m17-gate`; pushing the kernel's branch `claude/one-database` (D-126,
superseding D-94 (c); stacked on `claude/compose-codec`, PR #134) and opening its pull request.
- **Git identity:** none configured here; commits use `git -c user.name=Claude -c user.email=noreply@anthropic.com`
with the session's attribution lines.
- **Morphogen's CLI** outside its MCP tools: `uv run --project ~/.claude/plugins/cache/morphogen/morphogen/0.8.0 morphogen ...`.
It rests verdicts only on a map that is on `main`.
- **Never print `ps` arguments or `.env` values**; pass secrets to containers by name (`-e NAME`).
- **Next with the owner:** what the new assistant should do (two or three uses first), or the loose ends above.