Skip to content

Research site: the research agent's claims, predictions and roles, with steering by GitHub issue - #108

Merged
OpenReplicant merged 4 commits into
mainfrom
claude/claim-site
Nov 27, 2026
Merged

OpenReplicant merged 4 commits into
mainfrom
claude/claim-site

Conversation

@OpenReplicant

@OpenReplicant OpenReplicant commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

A static site for the research loop, built from files, for today's release. No server, no database, no tracking, nothing loaded from another host.

What it is

site/build.py (Python stdlib plus PyYAML, which is already pinned) reads the EvidenceClaim files and the map and options named in site/config.toml, validates every claim against schemas/evidence-claim.v1.json, and writes plain HTML into site/_build/:

  • Claims (index.html): the feed, newest first. Search, role, source and status filters run in the page and are kept in the address, so a filtered view can be shared. Without JavaScript the whole list shows. Our own observations (source.kind trial or probe) are hidden by default and one click away.
  • A page per claim: the verbatim quote and whether it was checked (or the secondary source's paraphrase, as in phase 0), the measure, baseline and effect, runs, cases and who reported it, the conditions and what the source left unstated, the transfer prediction with its reason and author, and the outcome with its trial, verdict and the observations it links to.
  • Predictions: predictions waiting for a trial, and a calibration chart (predicted probability against the share that held, with a Brier score) that fills in once a prediction written before an outcome has one. Phase 0 has none yet: its four outcomes had no prior prediction, and the page says so.
  • Roles: the roles in the map, the options catalogued for each with their claims by status, and this system's conditions.
  • How it works: watch → read → catalogue → predict → test behind the judge → score the prediction.

Steering. Buttons open GitHub's new-issue page, prefilled, for the person to edit and submit: test a claim sooner (research:prioritise), reject it (research:reject), dispute its prediction, or propose a question, role or option to watch (both research:question). GitHub applies labels from a link only for people who can triage the repository, so each body also carries research-action:, research-claim: and claim-file: lines. Text from papers never goes into an issue body. The labels live in site/config.toml.

Safety. Claim text comes from papers. Every string is HTML-escaped where it is written, a link from a file is written only if it is http(s), and each page sets a content security policy that allows only its own scripts and styles. The look follows openreplicant.com loosely (near-black with cyan and magenta, mono labels), with a light paper theme; it follows the system setting, and a button switches it.

Deploying. .github/workflows/site.yml tests, builds and deploys to Pages, but runs only when started by hand. Its push trigger is commented out, and Pages is not enabled. Actions are pinned by SHA, and dependencies install from requirements.lock with hashes.

Preview

uv run python site/build.py
python3 -m http.server 8000 -d site/_build   # open http://localhost:8000

Tests

tests/test_site.py, 10 cases:

  • the 25 phase-0 records render, each with a page and a feed entry;
  • statuses come from the assessments;
  • no outside resources and no inline script or style;
  • issue URLs round-trip through parse_qs, with title, body and labels;
  • a claim full of <script>, <img onerror> and a javascript: URL comes through as text only (checked by mutation: the test fails with escaping removed);
  • an invalid claim stops the build;
  • a scored prediction reaches the chart, with Brier 0.160.

Full suite: 317 tests OK (12 skipped). claude plugin validate . passes.

Aligned with the research agent (#110)

  • Config: found.yaml is now in sources.catalog. A catalog file that does not exist is skipped, so main still builds. sources.research points at demos/research-loop/research. Claims are found recursively, so claims/arxiv-ID/ works.
  • Next to test (queue.html): built from queue.json, best first. It shows each claim's plan, hours, information bits, score and any steering, with buttons to prioritise or reject.
  • Watching: a section on the roles page, built from watch.yaml (topics, questions, roles, terms) and seen.jsonl (papers seen, by status, and the ones catalogued).
  • Trial plan: a claim page shows assessments[].trial (plan, cost, needs, code) and the claim's place in the queue.
  • Index check: the build compares index.json with the claim files and warns about any disagreement. The real-data test requires them to agree.
  • Steering: buttons write research-action: dispute, propose-role and propose-option, which Research loop phase 1: the research agent (skill, checker, first session on MetaSoar) #110's parser reads first. An option proposal also carries a role: line. Labels stay the three planned ones.
  • Tested against Research loop phase 1: the research agent (skill, checker, first session on MetaSoar) #110's data: Research loop phase 1: the research agent (skill, checker, first session on MetaSoar) #110 was merged into a local scratch branch that was never pushed. The build gives 35 claims, 6 roles and 19 options. tests.test_site and tests.test_research pass (29 tests). The trial-plan test is skipped on main until the schema has assessments[].trial.

Merge order

#108 merges cleanly in any order with #109 and #110; it touches only site/, tests/test_site.py, the workflow and one line in CLAUDE.md, which auto-merges. #109 and #110 conflict with each other in demos/research-loop/catalog/map.yaml, in either order. The text conflict is two appended blocks, so keeping both resolves it. Then there are two more problems:

  1. Name clash: Release prep: 0.10.0, the catalog judge's first live run, isolation stated, research loop updated #109 adds an option named handler-ladder (in options.yaml, filling intent-handler, which its E-17 claims are about), while Research loop phase 1: the research agent (skill, checker, first session on MetaSoar) #110 adds a role named handler-ladder (in map.yaml). With both merged, demos/research-loop/check.py fails four E-17 claims, and so does tests/test_research.Demo.test_demo_check. One of the two needs renaming.
  2. Stale index: research/index.json and queue.json need python -m morphogen.research rank demos/research-loop re-run, so they list Release prep: 0.10.0, the catalog judge's first live run, isolation stated, research loop updated #109's 5 new claims. Until then this PR's index check fails, which is its job.

Cleanest: #110, then #109 rebased on it (keep both map blocks, rename one handler-ladder, rerun rank), then #108. #108 can also go first.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh

…steering by GitHub issue

site/build.py reads the EvidenceClaim files and the map and options (site/config.toml; phase 0's
demos/research-loop until the agent writes its own) and writes plain HTML: a feed filtered in the page by
search, role, source and status; a page per claim (quote and its check, measure and effect, conditions and
what is unstated, the transfer prediction and its reason, the outcome, trial and verdict); predictions against
outcomes with a calibration chart and Brier score once outcomes exist; the roles from the map; how the loop
works. Buttons open prefilled new-issue pages labelled research:prioritise, research:reject or
research:question. Text from papers is escaped, links from files must be http(s), each page has a CSP, and
nothing loads from another host. PyYAML only (already pinned); claims validated with jsonschema.

.github/workflows/site.yml tests, builds and deploys to Pages, started by hand only. tests/test_site.py: the
real input renders, issue URLs round-trip, hostile markup and javascript: links do not come through, an
invalid claim stops the build, a scored prediction reaches the chart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
OpenReplicant and others added 3 commits November 27, 2026 08:28
…ching, trial plans, its actions

found.yaml joins the catalog (a missing catalog file is skipped, so main still builds). From research/: queue.json
becomes queue.html (next to test, best first, with steering buttons), watch.yaml and seen.jsonl a Watching section
on the roles page, index.json a cross-check against the claim files. A claim page shows assessments[].trial (plan,
cost, needs, code) and its place in the queue. Buttons write research-action: dispute, propose-role and
propose-option, which the agent's parser reads first; the labels stay the three planned ones. --root builds
another checkout. Tests: every button's action is one the agent reads; queue, watch, seen and the trial plan render
and escape (skipped until the schema has assessments[].trial).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
… check index.json agrees

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 16:30 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 16:30 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 16:31 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 16:31 — with GitHub Actions Active
@OpenReplicant
OpenReplicant marked this pull request as ready for review November 27, 2026 18:06
@OpenReplicant
OpenReplicant merged commit 8b33726 into main Nov 27, 2026
7 of 9 checks passed

This branch was successfully deployed

1 active deployment
morphogen-judge — a583b707 Deployed Nov 27, 2026 by OpenReplicant via judge / score #40
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