How omdeepchakrabarty/revenant works
Xanadu Resurrection is a browser-based archive and AI-answer proofing prototype. A user imports or edits sources, asks a question, and receives a streamed answer whose claims are checked against version-pinned source spans; the proof and reader expose supported, ghost, and outdated claims. The browser owns the append-only archive and citation-drift tracking, while a stateless FastAPI service retrieves linked spans and verifies generated claims. The README documents the major capabilities; source excerpts confirm key calls, but some internal frontend behavior is unsampled.
Main entry points: App.tsx Workspace shell · xanadu.ts Append-only store · provenance.py Answer generation · ReaderAndProof.tsx Claim proof pane
Components 19
Browser workspace
- Workspace shell
frontend/src/App.tsx - Import controls
frontend/src/App.tsx - Link graph
frontend/src/GraphView.tsx
Archive and spans
- Append-only store
frontend/src/xanadu.ts - Document import
frontend/src/xanadu.ts - Span links
frontend/src/xanadu.ts - Graph model
frontend/src/xanadu.ts - Citation drift
frontend/src/xanadu.ts - SSE client
frontend/src/xanadu.ts
Answer service
- Ask API
backend/app.py - Span retrieval
backend/xanadu.py - Answer generation
backend/provenance.py - Claim verifier
backend/provenance.py
Reading and proof
- Version reader
frontend/src/ReaderAndProof.tsx - Claim proof pane
frontend/src/ReaderAndProof.tsx - Span bridges
frontend/src/ReaderAndProof.tsx
Other components
- Archive user
- Gemini API
- Browser localStorage
Connections 27
- Archive user → Workspace shell: uses
README.md - Workspace shell → Append-only store: loads and updates
frontend/src/App.tsx - Append-only store → Browser localStorage: persists archive
README.md - Workspace shell → Import controls: opens
frontend/src/App.tsx - Import controls → Document import: imports files
frontend/src/App.tsx - Document import → Span links: creates links
README.md - Workspace shell → Version reader: renders
frontend/src/App.tsx - Workspace shell → Claim proof pane: renders
frontend/src/App.tsx - Workspace shell → Graph model: builds graph
README.md - Workspace shell → Link graph: renders
README.md - Link graph → Graph model: visualizes
README.md - Workspace shell → Citation drift: refreshes staleness
frontend/src/App.tsx - Version reader → Append-only store: reads versions
frontend/src/ReaderAndProof.tsx - Claim proof pane → Append-only store: reads cited sources
frontend/src/ReaderAndProof.tsx - Claim proof pane → Span bridges: anchors claims
README.md - Archive user → Workspace shell: asks question
README.md - Workspace shell → SSE client: requests answer
frontend/src/App.tsx - SSE client → Ask API: streams request
README.md - Ask API → Answer generation: dispatches
backend/app.py - Answer generation → Span retrieval: retrieves spans
backend/provenance.py - Answer generation → Gemini API: requests answer
backend/provenance.py - Answer generation → Claim verifier: checks claims
README.md - Claim verifier → Span retrieval: validates cited spans
README.md - SSE client → Workspace shell: returns events
README.md - Workspace shell → Append-only store: saves answer
frontend/src/App.tsx - Workspace shell → Claim proof pane: shows verdict
README.md - Workspace shell → Link graph: passes hop events
README.md