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/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"source": {
"source": "github",
"repo": "OpenReplicant/Morphogen",
"ref": "9769a0b5781d3f576ede95a90e1f7599caf05c24"
"ref": "63648cad9ad35968e96128ec3d98f29560651fac"
}
}
},
Expand Down
51 changes: 0 additions & 51 deletions .claude/skills/catalog/SKILL.md

This file was deleted.

72 changes: 0 additions & 72 deletions .claude/skills/map/SKILL.md

This file was deleted.

42 changes: 0 additions & 42 deletions .claude/skills/research/SKILL.md

This file was deleted.

2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependency is a contract, never another project's code. Name parts by their role
pin exact versions; prefer releases at least two weeks old; record what you pinned and where you read it, in
`DECISIONS.md` when it is a default.
2. **Core first, open always.** Add a part, code or a view when a plan step's check needs it, and say which.
3. **Choose from catalogs, not memory**: the `research` skill, for any component, library, service or model.
3. **Choose from catalogs, not memory**: Morphogen's `research` skill (`morphogen:research`, from its plugin; S-216), for any component, library, service or model.
4. **Secrets live in `.env`** (gitignored, mode 600), read through `env_value` and the `sec_*` verbs
(`scripts/lib.sh`). Never print one into a committed file, a log, a commit message or chat. `.env.example`
lists every setting, empty; `deploy/secrets.txt` says how each secret is made.
Expand Down
1 change: 1 addition & 0 deletions DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,4 @@ Status: **decided** (owner agreed), **adopted** (recommended and taken; confirm
| S-213 | **A part is a kernel module only when it needs the kernel; the desktop is built here, for use cases** (2026-11-24; the owner: "we're not thinking everything in substrate is going to be packaged as a knowledge kernel module it might be a skill or an mCP server or some default collection of external services"; "now we can build the desktop separately and for use cases rather than just the hypothetical that we would leave in Colonel and once it's solidified it could be made perfect for the core distribution of Colonel and only the substrate specific parts or other system parts layered on top"; "it might wind up being its own product too ... probably not where the money is"). Amends S-212 (b). (a) **The rule:** a part of Substrate is a kernel module only when it needs the kernel (its own role, its data in the kernel's database, the review lane); otherwise it is the standard type it already is: an Agent Skill, an MCP server, a compose service, or an external service in the default collection. So the environment and its gates are a kernel module; the channel and the router are MCP servers (the router a compose service whose registry is in the environment module); the gateway and local models are external services. (b) **The desktop** (a modular web UI that hosts anything, and that agents can drive) is built in this repository against real use cases, not left in the kernel as a hypothetical; once it settles it may go into the kernel's core distribution, leaving only Substrate's own parts layered on it here, or become a product of its own. It is not where the money is (S-210), so it is built only as far as the use cases need. | direction set |
| S-214 | **The desktop stays in the kernel; Substrate's own parts are installed onto its kernel instance** (2026-11-24; the owner: "maybe we should leave the 'desktop ui' where it is if its under the kernel repo, and we'll add substrate-specific parts in substrate's repo to be installed on its kernel instance. simpler, right?"). Supersedes S-213 (b); S-213 (a), the rule for what is a kernel module, stands. The desktop (the window manager, the launcher, framed apps) is the kernel's shell (`modules/ui`, the kernel's D-127) and stays in the kernel's repository; it grows there, by the kernel's pull requests, as use cases need. Substrate's own parts (the assistant's conversation view, the environment module, the channel and router as MCP servers) stay in this repository and are installed onto the kernel instance the default distribution runs, the way any module is. | direction set |
| S-215 | **The documentation follows the re-cut: a new `docs/framework.md`, the old one archived; the README, `CLAUDE.md`, `docs/repos.md` and the plan's intro rewritten** (2026-11-24; the owner: "Update all readmes and strategy documentation"). The shape S-209 to S-214 decided is now what the docs say: two products (Morphogen, the kit; the kernel) and the default distribution (Substrate), with MetaSoar the research. The S-185 framework (objects and traits, the orchestrator, slots, OpenEnv adopted fully) is kept whole as `docs/archive/framework-s185.md`; earlier rows that cite `docs/framework.md` sections mean that file. The other repositories' READMEs and strategy documents follow by their own pull requests (Morphogen #102, MetaSoar #11, a kernel docs PR). | done |
| S-216 | **Substrate on the kit: its rules in the catalog, Morphogen's plugin repinned, its own `map`, `catalog` and `research` skills removed** (2026-11-25; after Morphogen #102 and #103 merged; the owner: "what's next?"; plan "The re-cut" steps 1 and 2). (a) `morphogen.yaml` is gone (Morphogen #103 reads every rule from the catalog): a root `catalog-info.yaml` is a Location naming `catalog/catalog-info.yaml`, and the settings it held (`sandbox: podman`, the sandbox image) are on the System entity under `spec.morphogen`. Morphogen at `63648ca` reads all of Substrate's catalog with no errors (`structure check`: 17 interfaces untested, 6 unused, warnings only), and its `status` says the next step is this catalog on `main`. (b) **The plugin is pinned to `63648ca`** (`.claude/settings.json`, and `repos.yaml`'s `checked`), Morphogen's `main` after #103. (c) **Substrate uses Morphogen's skills like any user:** `.claude/skills/{map,catalog,research}` are removed; rule 3 names `morphogen:research`. Picks are still recorded in `DECISIONS.md` (rule 1). `setup` and `upstream` stay. (d) The operator's `morphogen.local.yaml` still names the retired cell `voice-route`; it is uncommitted and the operator's to tidy. | done |
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Podman compose, published on 127.0.0.1 only.
| The channel | `environment/channel.py` | Pushes an environment's signals into a live Claude Code session; a signal not acknowledged comes back |
| The gateway | `gateway` (Bifrost), `scripts/gateway.py` | Every model call goes through it under its caller's key and is logged there, not by the caller. Keys decide which providers a caller may reach; a meter counts a judged run's calls (S-193) |
| The local models | services `llm` and `llm-fast` (llama.cpp) | Two of your own GGUFs (S-169): a slow capable one on the CPU (`slow`; Inkling 2 Mini here) and a small fast one on the GPU (`fast`; LFM3 1.7B here) |
| The optimiser | Morphogen's Claude Code plugin, `morphogen.yaml` | Cells from Substrate's catalog (`catalog/`); a change is judged on cases it cannot read, its model calls counted at the gateway (S-193) |
| The optimiser | Morphogen's Claude Code plugin; its rules in the catalog (`catalog-info.yaml` at the root, S-216) | Cells from Substrate's catalog (`catalog/`); a change is judged on cases it cannot read, its model calls counted at the gateway (S-193) |
| The UI | `ui/`, service `ui`, http://127.0.0.1:8100 | The store's pages and maps as diagrams, read-only |

Who may do what is enforced by Postgres logins, not by convention: a process that runs a model can publish and
Expand Down
10 changes: 10 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# The project's catalog root for Morphogen and Backstage (S-216): Morphogen reads its rules from catalog-info.yaml at
# the repository root (Morphogen #103); this Location points at the catalog in catalog/, whose own root names every
# entity file. Morphogen's settings for this project are on the System entity (catalog/system-substrate.yaml).
apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
name: substrate
spec:
targets:
- ./catalog/catalog-info.yaml
2 changes: 1 addition & 1 deletion catalog/catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The catalog's root (S-193): a Backstage Location naming every entity file, so a reader such as Backstage or Morphogen
# (morphogen.yaml's backstage:) finds them all; scripts/catalog.py check fails when a file is missing from it.
# (through the root catalog-info.yaml, S-216) finds them all; scripts/catalog.py check fails when a file is missing from it.
apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
Expand Down
4 changes: 4 additions & 0 deletions catalog/system-substrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ metadata:
description: 'Substrate: an environment put on a system, run, watched and changed; its own parts as catalog entries (S-174).'
spec:
owner: owner
# Morphogen's settings for judged runs here (S-193, moved from morphogen.yaml by S-216): runs in Podman, in this image.
morphogen:
sandbox: podman
sandbox_image: docker.io/library/python:3.13.17-slim-bookworm
Loading