chrysopedia/frontend/src/pages
jlightner f0d0b8ac1a feat: add pipeline iteration tooling — offline test harness, stage re-runs, chunking inspector
Drops prompt iteration cycles from 20-30 min to under 5 min by enabling
stage-isolated re-runs and offline prompt testing against exported fixtures.

Phase 1: Offline prompt test harness
- export_fixture.py: export stage 5 inputs from DB to reusable JSON fixtures
- test_harness.py: run synthesis offline with any prompt, no Docker needed
- promote subcommand: deploy winning prompts with backup and optional git commit

Phase 2: Classification data persistence
- Dual-write classification to PostgreSQL + Redis (fixes 24hr TTL data loss)
- Clean retrigger now clears Redis cache keys (fixes stale data bug)
- Alembic migration 011: classification_data JSONB column + stage_rerun enum

Phase 3: Stage-isolated re-run
- run_single_stage Celery task with prerequisite validation and prompt overrides
- _load_prompt supports per-video Redis overrides for testing custom prompts
- POST /admin/pipeline/rerun-stage/{video_id}/{stage_name} endpoint
- Frontend: Re-run Stage modal with stage selector and prompt override textarea

Phase 4: Chunking inspector
- GET /admin/pipeline/chunking/{video_id} returns topic boundaries,
  classifications, and synthesis group breakdowns
- Frontend: collapsible Chunking Inspector panel per video

Phase 5: Prompt deployment & stale data cleanup
- GET /admin/pipeline/stale-pages detects pages from older prompts
- POST /admin/pipeline/bulk-resynthesize re-runs a stage on all completed videos
- Frontend: stale pages indicator badge with one-click bulk re-synth

Phase 6: Automated iteration foundation
- Quality CLI --video-id flag auto-exports fixture from DB
- POST /admin/pipeline/optimize-prompt/{stage} dispatches optimization as Celery task

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 15:47:46 +00:00
..
About.tsx feat: Created useDocumentTitle hook and wired descriptive, route-specif… 2026-03-31 08:56:16 +00:00
AdminPipeline.tsx feat: add pipeline iteration tooling — offline test harness, stage re-runs, chunking inspector 2026-04-02 15:47:46 +00:00
AdminReports.tsx feat: Created useDocumentTitle hook and wired descriptive, route-specif… 2026-03-31 08:56:16 +00:00
CreatorDetail.tsx feat: Created SortDropdown component and useSortPreference hook, integr… 2026-04-01 06:41:52 +00:00
CreatorsBrowse.tsx feat: Created useDocumentTitle hook and wired descriptive, route-specif… 2026-03-31 08:56:16 +00:00
Home.tsx feat: Created useDocumentTitle hook and wired descriptive, route-specif… 2026-03-31 08:56:16 +00:00
SearchResults.tsx fix: Parallel search with match_context, deterministic Qdrant IDs, raised embedding timeout 2026-04-01 06:54:34 +00:00
SubTopicPage.tsx feat: Created SortDropdown component and useSortPreference hook, integr… 2026-04-01 06:41:52 +00:00
TechniquePage.tsx feat: Created useDocumentTitle hook and wired descriptive, route-specif… 2026-03-31 08:56:16 +00:00
TopicsBrowse.tsx feat: Created useDocumentTitle hook and wired descriptive, route-specif… 2026-03-31 08:56:16 +00:00