AI BioResearch Workflow
A safety-first reference scaffold for agent-assisted computational biology.
The central design rule is:
The verifier is the architecture; the generator is replaceable.
Claude Science, Biomni, Claude Code, and Codex are treated as distinct stations in
one governed workflow, not as interchangeable chat assistants. Deterministic gates,
human approval, explicit failure states, and machine-readable provenance sit between
research stages.
Current status
This repository is an executable engineering reference implementation, not a
validated clinical system and not a turnkey production platform.
What is implemented and regression-tested:
- data-plane classification and fail-closed guards for controlled data, PHI-shaped
content, NIH grant/review paths, and MCP tool arguments;
- reproducibility guards for container digests, SRA Lite, iGenomes, random seeds,
environment locks, and execution evidence;
- a seven-stage
Q → H → D → I → E → V → R LangGraph with strict
JSON-over-stdio model adapters, deterministic gates, Ed25519-verified human
approval receipts, and an explicit DID_NOT_FINISH state;
- write-ahead KG staging (
pending → asserted → retracted) and an official-SDK,
read-only MCP facade that can expose only asserted;
- signed data/execution attestations, workflow-engine WRROC, and a clearly
non-evidentiary Agent Run RO-Crate audit proposal;
- a real FastQC → Salmon → conservation assertions → MultiQC pipeline with
synthetic positive-control
nf-test coverage;
- a three-process DSL2 example with eight machine-readable implementation
checks and a recorded successful L0
Q → H → D → I → E → V → R loop;
- Honest Demo (
make demo-honest): zero-credential tour with intentional
failure paths (DID_NOT_FINISH, blocked promotions, unsigned approvals);
- Fabrication Resistance Suite (
make frs / docs/FRS.md): public
attack cases that must fail closed;
- scientific inference narrow path (
make scientific-path): L0 known-answer
two-group contrast under production evidence rules
(pipelines/sci_contrast_l0);
- Z3 formal verification (
python -m graph.formal_verification / docs/formal_verification.md): SMT formal proofs for 11 safety & governance properties (P1~P11), AST code path analyzer, and proof audit reports;
- End-to-end integration tests (
tests/test_end_to_end_integration.py / docs/integration_testing.md): 7-stage research loop workflow tests, Red-Team interlocks, and fail-closed gate boundary tests;
- hash-locked Python/Conda runtimes and digest-locked containers;
- deterministic unit and MCP protocol tests plus executable GitHub Actions CI.
What is intentionally not claimed as complete:
- hosted model credentials and commands are deliberately not committed; copy
.lab/agent_commands.example.json to the ignored local configuration and provide
reviewed argv/model IDs;
bridge.tre_submit only prepares a code-only manual outbox package; it never
performs TRE transport or handles credentials;
- the bundled RNA-seq pipeline establishes technical quantification validity only;
- the scientific narrow path is a synthetic known-answer demonstration of
governed inference, not a biological discovery about real patients or tissues;
- Biomni remains optional and disabled until its image and compatibility are
independently pinned and reviewed;
- institutional DUA, IRB, TRE, BAA, credential, and publication-policy review remain
human responsibilities.
The loop therefore stops honestly when a required adapter, verified KG path, or
approved execution plane is unavailable.
Architecture
Governance and data classification
│
▼
Q ── G_Q ── H ── G_H ── D ── G_D ── I ── G_I
│
signed authenticated-human approval
│
demo L0 local fixture ◀────┤
production external worker/TRE ◀─────┘
│
E ── G_E ── V ── G_V ── signed human sign-off ── R
│ │
└──────────┴──► DID_NOT_FINISH when evidence or budget is missing