[Atlas] Create background gap-generation agent that runs continuously
Quest: Gap Factory
Priority: P3
Status: completed
Goal
Create background gap-generation agent that runs continuously
Context
This task is part of the Gap Factory quest (Atlas layer). It contributes to the broader goal of building out SciDEX's atlas capabilities.
Acceptance Criteria
☑ Implementation complete and tested
☑ All affected pages load (200 status)
☑ Work visible on the website frontend
☑ No broken links introduced
☑ Code follows existing patterns
Approach
Read relevant source files to understand current state
Plan implementation based on existing architecture
Implement changes
Test affected pages with curl
Commit with descriptive message and pushWork Log
2026-04-18 17:15 PT — Slot 66 (Audit Reopen)
- Audit flagged NO_COMMITS — verifying task was actually done
- Found: background gap generation infrastructure exists on main
- BUT: scidex-gap-scanner.service references old root paths for gap_scanner.py and gap_pipeline.py
- gap_scanner.py moved to scripts/deprecated/gap_scanner.py (Senate cleanup b4a034242)
- gap_pipeline.py moved to scidex/agora/gap_pipeline.py (Senate cleanup)
- Fixed service ExecStart paths and added backward-compat shim at root
- Evidence: git log --grep='1f699995' showed no commits on branch; HEAD == origin/main
- Commit: e5c00094e [Atlas] Fix gap scanner service paths to match new locations [task:1f699995ef18]
2026-04-10 12:35 PT — Slot 0
- Verified: debate_gap_extractor.py --all → 0 debates remaining (all processed)
- Verified: gap_scanner.py --review → finds 16 gaps from 10 recent papers
- Key pages verified: /gaps 200, /analyses/ 200, /graph 200, /exchange 200
- 736 active gaps / 738 total in database
- Gap scanner systemd timer (scidex-gap-scanner.timer) runs daily
- Status: Complete — background gap generation is operational