Skip to content

Research site for any system: config file, morphogen site init/build, --base, Pages template (stacked on #112) - #114

Merged
OpenReplicant merged 1 commit into
mainfrom
claude/site-kit
Nov 27, 2026
Merged

OpenReplicant merged 1 commit into
mainfrom
claude/site-kit

Conversation

@OpenReplicant

Copy link
Copy Markdown
Owner

Stacked on #112 (claude/site-ssg, itself stacked on #111). Base is claude/site-ssg; retarget when #112 merges, before that branch is deleted.

The owner: "it feels like something anyone spinning up an instance of morphogen should have for themselves, to research and test things for their own system". This makes the research site a kit: the templates in site/ name no system, repository or demo path, and everything comes from a config file.

The contract

  • morphogen site build --config PATH --out DIR [--base /prefix] [--install], the same as npm run build in site/ with MORPHOGEN_SITE_CONFIG, MORPHOGEN_SITE_OUT and MORPHOGEN_SITE_BASE.
    • Without a base, links stay relative, so the site works under any path.
    • With a base, every link and asset starts with it (/research/claims/x.html).
    • --install runs npm ci --ignore-scripts in site/ the first time.
  • morphogen site init [ROOT] [--repo OWNER/NAME] [--system system:default/NAME] [--title] [--owner] [--force] writes ROOT/site.toml and ROOT/site/about.md.
    • The repo defaults to the origin remote and the system to catalog-info.yaml's System.
    • It never overwrites without --force.
  • The config is TOML, and its paths are relative to the file:
    • [site]: title, description, owner, repo (required), branch, system (required), and an optional repo_dir (by default found from .git) for claim-file links.
    • [sources]: claims, catalog (files or folders), research, content, and an optional schema.
    • [labels]: one per steering action.
    • [theme]: css and logo, served as assets/user/. The CSS loads after style.css.
    • [nav] pages: any of claims, queue, predictions, roles, map, notes, search, or {page, text} to rename one. Pages left out are still built.
  • Morphogen's own demo builds from site/config.toml, rewritten in the new format.
  • Removed: the old SITE_CONFIG, SITE_ROOT, SITE_CONTENT and SITE_OUT.

Deploying your own

skills/research-loop/research-site.yml is a workflow template for the user's repository. It checks out Morphogen's site/ at a pinned MORPHOGEN_REF, then runs npm ci and the build with the three variables, and deploys to Pages. The research-loop skill has a new section, "Set up your research site", with the steps.

Tests

  • A made-up second system (orchard, repo Growers/grove, labels grove:boost/grove:drop, a theme and logo, a three-page header), built through site.init and python -m morphogen site build --base /lab. It checks:
    • no demo name or path appears;
    • steering links go to that repo, with its labels and system: line;
    • every href/src resolves to a built file under /lab/;
    • the theme and the navigation.
  • init: it refuses to overwrite, needs a system, and validates the repo.
  • Existing checks still pass: escaping, steering lines, an invalid claim failing the build, a missing ref failing it, and the multi-assessment Mixed status.
  • The full suite passes (347, 12 skipped), and claude plugin validate passes. npm run dev serves pages.

Not done / for the owner

  • The Python wheel does not carry site/, so morphogen site build needs a clone or the plugin install. It says so, and MORPHOGEN_SITE_SRC can point elsewhere.
  • Markdown pages keep their authors' relative links. These work under any base.
  • No settings, labels or Pages were changed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh

…build, --base, a Pages workflow template

Everything one system's site needs (sources, title, description, owner, repo, system, labels, theme, navigation)
now comes from a TOML config whose paths are relative to it; the templates name no system, repository or demo
path. `morphogen site build --config PATH --out DIR [--base /prefix]` is `npm run build` in site/ with
MORPHOGEN_SITE_CONFIG, MORPHOGEN_SITE_OUT and MORPHOGEN_SITE_BASE; with a base every link and asset starts with it.
`morphogen site init` writes a starter site.toml and content folder into a research project, and
skills/research-loop/research-site.yml deploys a user's site to GitHub Pages. Morphogen's demo still builds from
site/config.toml. Tests: a second made-up system built through init and the CLI under /lab (its repo, labels,
theme and header; every link resolves under the base), plus the existing escaping, steering, invalid-claim and
multi-assessment checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
@OpenReplicant
OpenReplicant changed the base branch from claude/site-ssg to main November 27, 2026 22:56
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 22:56 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 22:57 — with GitHub Actions Active
@OpenReplicant
OpenReplicant marked this pull request as ready for review November 27, 2026 23:24
@OpenReplicant
OpenReplicant merged commit 580f88d into main Nov 27, 2026
4 of 5 checks passed

This branch was successfully deployed

1 active deployment
morphogen-judge — 026be85c Deployed Nov 27, 2026 by OpenReplicant via judge / score #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant