How ivory-26/research-graph works
ResearchGraph is a research workspace that converts paper claims into evidence-linked graph relationships and auditable experiments. The principal flow is source ingestion, claim/edge extraction, experiment planning, human approval, isolated execution, deterministic evaluation, and streamed results in the workspace UI. The graph also preserves cross-source retrieval, strategy controls, authentication, and persistent pipeline state. README documents these capabilities; source excerpts are partial, so some internal stage-to-stage links are documented relationships rather than verified call chains.
Main entry points: index.tsx Workspace UI · client.ts Neon Postgres · pipeline.ts Experiment Pipeline · graph.ts Graph API
Components 23
Research Workspace
- Workspace UI
src/routes/index.tsx - Research Canvas
src/components/canvas/ResearchCanvas.tsx - Research Panels
src/components/panels - Graph Client
src/utils/graphClient.ts - Pipeline Client
src/utils/pipelineClient.ts - Demo Workspace
src/data/demoWorkspace.ts
Evidence and Graph
- Source Ingestion
src/server/ingest - Claim and Edge Extraction
src/server/extract/pipeline.ts - Cross-source Retrieval
src/server/retrieval.ts - Graph API
src/routes/api/graph.ts - Evidence Projection
src/server/graph-evidence.ts
Experiment Pipeline
- Experiment Pipeline
src/server/pipeline.ts - Experiment Planner
src/server/planner.ts - Approval Gates
src/db/pipeline-approval.ts - Sandbox Runner
src/server/runner.ts - Deterministic Evaluation
src/server/evaluate.ts - Pipeline Delivery
src/server/pipeline-delivery/handlers.ts
Identity and Persistence
- Authentication and Workspace Guard
src/server/auth.server.ts - Pipeline State
src/db/pipeline.ts - Neon Postgres
src/db/client.ts - Workspace Schema
src/db/schema.ts - Pipeline Event Contracts
src/shared/events.ts
Other components
- Researcher
Connections 29
- Researcher → Workspace UI: uses workspace
README.md - Workspace UI → Graph Client: loads graph
src/routes/index.tsx - Workspace UI → Pipeline Client: streams pipeline
src/routes/index.tsx - Workspace UI → Demo Workspace: falls back to
README.md - Workspace UI → Research Canvas: renders canvas
src/routes/index.tsx - Workspace UI → Research Panels: renders panels
src/routes/index.tsx - Graph Client → Graph API: requests graph
README.md - Graph API → Authentication and Workspace Guard: checks membership
src/routes/api/graph.ts - Graph API → Evidence Projection: projects evidence
src/routes/api/graph.ts - Graph API → Neon Postgres: reads graph data
src/routes/api/graph.ts - Researcher → Source Ingestion: submits sources
README.md - Source Ingestion → Claim and Edge Extraction: provides source chunks
src/server/extract/pipeline.ts - Claim and Edge Extraction → Cross-source Retrieval: retrieves candidates
src/server/extract/pipeline.ts - Source Ingestion → Neon Postgres: stores chunks
src/server/ingest/store.ts - Claim and Edge Extraction → Neon Postgres: persists graph
src/server/extract/pipeline.ts - Researcher → Experiment Pipeline: starts experiment
README.md - Experiment Pipeline → Experiment Planner: plans reproduction
README.md - Experiment Pipeline → Approval Gates: opens approval gate
README.md - Researcher → Approval Gates: approves plan
README.md - Experiment Pipeline → Sandbox Runner: executes approved plan
README.md - Sandbox Runner → Deterministic Evaluation: returns run result
README.md - Experiment Pipeline → Pipeline Delivery: streams pipeline events
README.md - Pipeline Delivery → Pipeline Event Contracts: emits typed events
src/server/pipeline-delivery/handlers.ts - Pipeline Client → Pipeline Delivery: subscribes to stream
README.md - Pipeline Client → Approval Gates: submits decision
README.md - Pipeline State → Neon Postgres: persists pipeline state
src/db/pipeline.ts - Neon Postgres → Workspace Schema: uses schema
src/db/client.ts - Approval Gates → Pipeline State: records gate state
src/db/pipeline-approval.ts - Authentication and Workspace Guard → Neon Postgres: verifies workspace access
README.md