Overview
Migrate the kleptocracy timeline project (capturecascade.org) from its current ad-hoc script-based management into a Pyrite-managed knowledge base. The timeline contains 4,400+ events spanning 1142-2026, with ~1,235 unique actors, custom validation scripts, actor alias normalization, source quality frameworks, and a React + Hugo viewer deployed to GitHub Pages.
Current Architecture
Repo: github.com/markramm/CaptureCascadeTimeline (mono-repo)
Target Architecture
KB managed by Pyrite (Cascade plugin):
Viewer remains custom (same repo or separate):
Dependencies (Backlog Items)
1. Support string-or-ref actor fields in Cascade events — schema change to accept both formats 2. Actor alias suggestion and fuzzy matching tool — port alias detection from timeline project 3. Actor extraction and migration tool — create actor entries from event string references 4. Backlink indexing for string-based actor references — index string actors for backlinks/graph 5. Cascade timeline static export for viewer consumption — replace custom generate.py 6. Source URL liveness checking — verify source URLs return 200 7. Source content verification via LLM — verify sources support entry claims 8. AI hallucination detection — web search for independent corroboration
Migration Steps
1. Add `kb.yaml` to kleptocracy timeline repo pointing Pyrite at `timeline/data/events/` 2. Verify Pyrite indexes all 4,400+ events correctly 3. Extract actors into KB entries using migration tool 4. Replace `generate.py` with `pyrite cascade export` in CI/CD 5. Replace custom validation scripts with `pyrite qa validate` + `pyrite ci` 6. Update .claude/agents to use Pyrite MCP for event creation 7. Run source URL validation on existing events 8. Update pre-commit hooks to use Pyrite validation