Repository navigation
Research site: the research agent's claims, predictions and roles, with steering by GitHub issue - #108
Merged
Conversation
…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
…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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 insite/config.toml, validates every claim againstschemas/evidence-claim.v1.json, and writes plain HTML intosite/_build/: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.kindtrial or probe) are hidden by default and one click away.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 (bothresearch:question). GitHub applies labels from a link only for people who can triage the repository, so each body also carriesresearch-action:,research-claim:andclaim-file:lines. Text from papers never goes into an issue body. The labels live insite/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.ymltests, builds and deploys to Pages, but runs only when started by hand. Itspushtrigger is commented out, and Pages is not enabled. Actions are pinned by SHA, and dependencies install fromrequirements.lockwith hashes.Preview
uv run python site/build.py python3 -m http.server 8000 -d site/_build # open http://localhost:8000Tests
tests/test_site.py, 10 cases:parse_qs, with title, body and labels;<script>,<img onerror>and ajavascript:URL comes through as text only (checked by mutation: the test fails with escaping removed);Full suite: 317 tests OK (12 skipped).
claude plugin validate .passes.Aligned with the research agent (#110)
found.yamlis now insources.catalog. A catalog file that does not exist is skipped, so main still builds.sources.researchpoints atdemos/research-loop/research. Claims are found recursively, soclaims/arxiv-ID/works.queue.html): built fromqueue.json, best first. It shows each claim's plan, hours, information bits, score and any steering, with buttons to prioritise or reject.watch.yaml(topics, questions, roles, terms) andseen.jsonl(papers seen, by status, and the ones catalogued).assessments[].trial(plan, cost, needs, code) and the claim's place in the queue.index.jsonwith the claim files and warns about any disagreement. The real-data test requires them to agree.research-action:dispute,propose-roleandpropose-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 arole:line. Labels stay the three planned ones.tests.test_siteandtests.test_researchpass (29 tests). The trial-plan test is skipped on main until the schema hasassessments[].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 inCLAUDE.md, which auto-merges. #109 and #110 conflict with each other indemos/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:handler-ladder(inoptions.yaml, fillingintent-handler, which its E-17 claims areabout), while Research loop phase 1: the research agent (skill, checker, first session on MetaSoar) #110 adds a role namedhandler-ladder(inmap.yaml). With both merged,demos/research-loop/check.pyfails four E-17 claims, and so doestests/test_research.Demo.test_demo_check. One of the two needs renaming.research/index.jsonandqueue.jsonneedpython -m morphogen.research rank demos/research-loopre-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, rerunrank), then #108. #108 can also go first.🤖 Generated with Claude Code
https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh