Skip to content

Research loop phase 1: the research agent (skill, checker, first session on MetaSoar) - #110

Merged
OpenReplicant merged 3 commits into
mainfrom
claude/research-agent
Nov 27, 2026
Merged

OpenReplicant merged 3 commits into
mainfrom
claude/research-agent

Conversation

@OpenReplicant

@OpenReplicant OpenReplicant commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Builds on #109 (claude/release-prep): merge #109 first. This branch is rebased onto it, so until #109 is merged GitHub shows #109's two commits in this diff; this PR's own change is the last commit. The base branch stays main.

Phase 1 of docs/research-loop.md: a research agent that finds recent papers for the map's roles and open questions, catalogs their gain-of-function claims with quotes checked against the paper, predicts transfer to our system, and ranks what to test next. It is steered by GitHub issues.

What runs end to end

  • skills/research-loop/SKILL.md: one session. The model does the triage, extraction and prediction. python -I -m morphogen.research handles steer, watch, triage, fetch, catalog, rank and check.
  • Checks: catalog writes a claim only if its quote occurs in the paper's text (NFKC, with quotes, dashes and whitespace made plain), its role is on the map, it validates against the schema, and it is not already held (same paper, same quote). The checker refuses everything else and gives a reason.
  • Papers are untrusted. They are cached outside the repo ($MORPHOGEN_RESEARCH_CACHE) and parsed by the stdlib HTML parser. Scripts, nav and the bibliography are dropped. Paper text is never executed and never committed. check --fetch re-fetches papers to re-check quotes.
  • First session (Claude Opus 5.5 in Claude Code), demos/research-loop:

Schema change (backward compatible)

schemas/evidence-claim.v1.json gains one optional field, assessments[].trial (plan, cost_hours, needs, code), which the ranking needs. Every claim that was valid before is still valid; a test checks every demo claim, including phase 0's and #109's.

For the claim site (#108)

  • Claim files: demos/research-loop/claims/arxiv-<id>/<name>.yaml. sources.claims stays as it is.
  • Please add demos/research-loop/catalog/found.yaml to sources.catalog; the options the agent finds go there.
  • research/index.json lists every claim and its file. queue.json, seen.jsonl, steering.jsonl and watch.yaml are described in demos/research-loop/README.md, "Files a website reads".
  • Steering follows the site's format. The body lines research-action: (prioritise, reject, dispute, question, propose-role, propose-option), research-claim: and claim-file: are read first. Labels and a [research:...] title prefix are the fallback. Only owners, members and collaborators are applied; every issue is recorded.

To turn it on (nothing is enabled here)

  1. Create the labels research:prioritise, research:reject and research:question.
  2. Add the secret CLAUDE_CODE_OAUTH_TOKEN (from claude setup-token).
  3. Copy skills/research-loop/research-session.yml to .github/workflows/, run it once by hand, and uncomment its schedule only afterwards. Alternatively, use a Claude Code /schedule task, as described in docs/research-loop.md, "Phase 1: running it".

Open questions

  • The predictions are the agent's draft (prediction.by says so) and want the owner's review before any trial lands.
  • The top of the queue, pd-program-beats-ppo, is ranked first because its test is E-18 itself, which is already running.
  • The phase-0 claims have no trial cost, so they have no score.
  • A PR opened with the workflow's own token does not start the judge's workflow.
  • morphogen/research.py sits in the core package. The judge never imports it, but it could move to its own package.

After the rebase: rank was re-run (index and queue now include #109's 5 claims, 40 in all); check.py --metasoar passes (46 quotes); check --fetch re-matched all 10 arXiv quotes; the full suite passes (324, 12 skipped); claude plugin validate passes with the warnings that were already there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh

OpenReplicant and others added 2 commits November 27, 2026 06:46
…17 to E-17d recorded

gates-likelihood-readout-27-31b-matches-jev now has two assessments for
system:default/metasoar: did-not-transfer for LFM3 1.7B (unchanged) and
replicated for Inkling 2 Mini, about 26B (E-04a falsifier not met: 0.810
against 0.843, paired -3.3 [-6.5, -0.3]). New own observations:
e04a-inkling-pooled-accuracy, and the handler ladder (a new role,
intent-handler, and option, handler-ladder) with one claim each for E-17,
E-17b, E-17c and E-17d. New quotes are from MetaSoar at 22feddc (its main);
check.py --metasoar passes (43 quotes). The seven predicted probabilities
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
…tated, stale links fixed

- pyproject (0.8.0) and the plugin (0.9.0) both to 0.10.0; uv.lock's own
  entry only (uv lock --check passes).
- CHANGELOG.md: a draft for 0.10.0, not tagged.
- README: on GitHub only the container keeps the held-out answers from the
  candidate (same runner, root inside, Docker's default capabilities); a
  Limits bullet says so. MCP tools 13, not 11; the schemas line current.
- BRIEF.md and CLAUDE.md: rebuild 6 is at the tag archive/rebuild-6 (the
  branch is gone). NOTICE: the first iteration is at commit cc3b77d (the
  branch first-iteration is gone).

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 15:01 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 15:02 — with GitHub Actions Active
OpenReplicant added a commit that referenced this pull request Nov 27, 2026
…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
…half, and a first session on MetaSoar

morphogen/research.py: watch arXiv per topic of research/watch.yaml (the API, one request every 3 s, a generic
User-Agent); fetch a paper's arXiv HTML into a cache outside the repository (Docling for the PDF only when there is
no HTML and it is installed) and turn it into text with element anchors; write EvidenceClaim files from a model's
draft only when the quote occurs in the paper's text, the role is on the map, the file validates and the claim is
not held already (same paper, same quote); keep catalog/found.yaml equal to the claims; read steering issues
(the claim site's research-action/research-claim lines first, then research:* labels or title prefix; applied only
from owners, members and collaborators); rank by bits of information in the outcome over the trial's hours.

skills/research-loop: one session, and a GitHub Actions template outside .github/workflows (nothing enabled).
schemas/evidence-claim.v1.json: one optional field, assessments[].trial (backward compatible).
demos/research-loop: three roles from MetaSoar's open questions, 46 papers seen, 4 read, 10 checked claims,
6 options, the queue and an index for the claim site. tests/test_research.py: quotes, HTML, feed, dedupe,
schema, steering, ranking, and the demo's own check.

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:35 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 16:35 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 16:36 — with GitHub Actions Active
@OpenReplicant
OpenReplicant deployed to morphogen-judge November 27, 2026 16:36 — with GitHub Actions Active
@OpenReplicant
OpenReplicant marked this pull request as ready for review November 27, 2026 18:06
@OpenReplicant
OpenReplicant merged commit 324b9ab into main Nov 27, 2026
7 of 9 checks passed

This branch was successfully deployed

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