How anjanei/clarity works
CLARITY is a regulatory-intelligence workstation that turns a trial selection into a cited, phase-aware risk review. The principal path is trial discovery, evidence retrieval, domain synthesis, rubric scoring, and presentation of findings with provenance. Separate workstation capabilities include historical benchmark calibration, construct inspection, protein folding, and claim grounding. The README documents these capabilities; some route-to-evaluation and browser-to-API wiring is not visible in the excerpts, so those links are marked unverified rather than asserted.
Main entry points: evaluate.js Risk evaluation · app.js Interactive workstation · server.js HTTP server · lab.js Lab API
Components 32
Workstation
- HTTP server
src/server.js - Trial discovery
src/routes/trials.js - Review API
src/routes/evaluate.js - Lab API
src/routes/lab.js - GPU and proof API
src/routes/modal.js - Interactive workstation
public/app.js - Citation drawer
public/citations.js - 3D evidence graph
public/lab/graph3d.js - Canvas engine
public/lab/engine3d.js - Construct viewer
public/lab/genome3d.js - Gene model
public/lab/genome.js
Review
- Trial catalog
src/catalog/store.js - Risk evaluation
src/evaluate/evaluate.js - Evidence domains
src/evidence/domains.js - Evidence dossier
src/evidence/dossier.js - Scoring rubric
src/evaluate/rubric.js - Review audits
src/evaluate/audits.js - Benchmark calibration
src/evaluate/benchmarks.js - Review records
src/evaluate/store.js - Run provenance
src/evaluate/trace.js
Evidence
- Evidence retrieval
src/paperclip/queries.js - Retrieval tools
src/paperclip/tools.js
Integrations
- Paperclip client
src/paperclip/client.js - Language model
src/anthropic.js - Benchling client
src/benchling/client.js - Construct mapping
src/benchling/model.js - GPU and grounding tasks
src/modal/tasks.js - Modal client
src/modal/client.js
Other components
- Reviewer
- Modal service
- Benchling service
- Paperclip service
Connections 41
- Reviewer → HTTP server: uses workstation
README.md - HTTP server → Trial discovery: routes requests
src/server.js - HTTP server → Review API: routes requests
src/server.js - HTTP server → Lab API: routes requests
src/server.js - HTTP server → GPU and proof API: routes requests
src/server.js - HTTP server → Interactive workstation: serves frontend
src/server.js - Interactive workstation → Trial discovery: requests trials
- Interactive workstation → Review API: requests reviews
- Trial discovery → Trial catalog: reads trials
src/routes/trials.js - Review API → Trial catalog: loads trial
src/routes/evaluate.js - Review API → Risk evaluation: starts review
- Risk evaluation → Evidence retrieval: retrieves evidence
src/evaluate/evaluate.js - Risk evaluation → Evidence dossier: synthesizes findings
src/evaluate/evaluate.js - Risk evaluation → Evidence domains: selects domains
src/evaluate/evaluate.js - Risk evaluation → Scoring rubric: scores findings
src/evaluate/evaluate.js - Risk evaluation → Language model: requests synthesis
src/evaluate/evaluate.js - Evidence retrieval → Retrieval tools: uses tools
src/paperclip/queries.js - Retrieval tools → Paperclip client: calls transport
src/paperclip/tools.js - Paperclip client → Paperclip service: retrieves sources
- Risk evaluation → Review records: persists review
src/evaluate/store.js - Risk evaluation → Run provenance: records run
src/evaluate/evaluate.js - Review API → Review audits: serves audit data
src/routes/evaluate.js - Interactive workstation → Citation drawer: resolves citations
public/app.js - Interactive workstation → 3D evidence graph: renders evidence graph
public/app.js - 3D evidence graph → Canvas engine: renders with
public/lab/graph3d.js - Interactive workstation → Construct viewer: creates viewer
public/app.js - Interactive workstation → Gene model: renders gene model
public/app.js - Construct viewer → Canvas engine: renders with
public/lab/genome3d.js - Lab API → Trial catalog: reads trial
src/routes/lab.js - Lab API → Review records: loads review
src/routes/lab.js - Lab API → Benchmark calibration: loads benchmarks
src/routes/lab.js - Lab API → Benchling client: fetches construct
src/routes/lab.js - Lab API → Construct mapping: maps construct
src/routes/lab.js - Benchling client → Benchling service: fetches sequences
- GPU and proof API → Trial catalog: loads trial
src/routes/modal.js - GPU and proof API → Review records: loads review
src/routes/modal.js - GPU and proof API → Benchling client: finds construct
src/routes/modal.js - GPU and proof API → Construct mapping: maps construct
src/routes/modal.js - GPU and proof API → GPU and grounding tasks: grounds claim
src/routes/modal.js - GPU and grounding tasks → Modal client: dispatches task
src/modal/tasks.js - Modal client → Modal service: runs GPU task