How chengyue-lu/research-agent-workbench works
RWB is a human-governed research collaboration workbench: it captures bounded research intent in versioned file contracts, resolves methods and capabilities, supports replaceable execution, and preserves artifacts and traces for deterministic review. The documented principal workflow runs from task definition through method resolution and bounded execution to artifact validation and a human decision, with revision or continuation returning to task definition. The graph also includes capability management, handoff, and evaluation. Source excerpts and the README support the main relationships; unsampled subsystems are represented at directory level where their exact implementation path is not established.
Main entry points: execution Bounded execution · artifacts Research artifacts · models.py Task contracts · documents.py Document validation
Components 21
Research contracts
- Task contracts
src/research_workbench/tasks/models.py - Method and authority
src/research_workbench/protocol/authority.py - Handoff transfer
src/research_workbench/context/handoff_transfer.py
Planning and capabilities
- Capability catalog
src/research_workbench/capability/catalog.py - Task resolver
src/research_workbench/capability/resolver.py - Capability supply
src/research_workbench/capability/supply.py
Execution and evidence
- Bounded execution
src/research_workbench/execution - Model session
src/research_workbench/adapters/models/session.py - Codex adapter
src/research_workbench/adapters/codex.py - Execution trace
src/research_workbench/observability/trace.py - Research artifacts
src/research_workbench/artifacts - Reference integrity
src/research_workbench/artifacts/integrity.py
Validation and review
- Document validation
src/research_workbench/validation/documents.py - Schema catalog
src/research_workbench/validation/schemas.py - Validation runner
src/research_workbench/artifacts/validation_host.py - Artifact promotion
src/research_workbench/artifacts/promotion.py - Research state gate
src/research_workbench/research_state/gate.py - Skill evaluation
src/research_workbench/evaluation/skill_evaluation.py
Other components
- Researcher
- Workbench commands
src/research_workbench/cli.py - Project files
Connections 26
- Researcher → Task contracts: defines scope
- Task contracts → Method and authority: resolves method
- Task contracts → Task resolver: selects capabilities
src/research_workbench/capability/resolver.py - Capability catalog → Task resolver: supplies catalog
src/research_workbench/capability/resolver.py - Task resolver → Capability supply: checks supply
src/research_workbench/capability/supply.py - Method and authority → Bounded execution: bounds execution
- Bounded execution → Model session: uses session
- Bounded execution → Codex adapter: adapts runtime
src/research_workbench/adapters/codex.py - Bounded execution → Execution trace: records events
- Bounded execution → Research artifacts: produces artifacts
src/research_workbench/execution/runtime_bundle.py - Research artifacts → Reference integrity: checks references
src/research_workbench/artifacts/integrity.py - Research artifacts → Document validation: validates structure
src/research_workbench/validation/documents.py - Document validation → Schema catalog: checks schemas
src/research_workbench/validation/schemas.py - Validation runner → Schema catalog: checks report
src/research_workbench/artifacts/validation_host.py - Validation runner → Artifact promotion: enables promotion
src/research_workbench/artifacts/promotion.py - Research artifacts → Validation runner: submits evidence
src/research_workbench/artifacts/promotion.py - Document validation → Research state gate: informs review
src/research_workbench/research_state/gate.py - Researcher → Research state gate: reviews findings
- Research state gate → Task contracts: revises task
- Researcher → Handoff transfer: records handoff
- Skill evaluation → Capability catalog: evaluates skills
src/research_workbench/evaluation/skill_evaluation.py - Workbench commands → Task contracts: loads contracts
src/research_workbench/cli.py - Workbench commands → Document validation: runs checks
src/research_workbench/cli.py - Workbench commands → Project files: reads and writes
- Execution trace → Project files: persists trace
- Research artifacts → Project files: stores evidence