feat(api): add review day handling and dynamic campaign length

This commit is contained in:
Prad Nukala committed 2026-09-30 17:33:32 -04:00
1 parent 7e9ea8d7c2
commit 239c7013f8
9 files changed
+176 -32

No files matched your search

+6 -3
View File
@@ -17,9 +17,12 @@ Live at `https://srs-api.prdlk.workers.dev`.
- **The repo owns the plan** — `data/schedule.json`, human-edited,
bundled at deploy. Git history is its audit log. Each date is a
`ScheduledDay`: `topics` (one or more topic issues), `problems` (a set day,
fixed numbers), `gate` (Saturday's blind set, verbatim), or `sweep` (redo
every miss, nothing new). Numbers a `gate` or `problems` entry names are
`RESERVED`: the drill and gate samplers never draw them.
fixed numbers), `review` (a `Review <N> — <Phase>` issue with its problems
in solve order; Mon/Tue/Thu/Fri only), `gate` (Saturday's blind set,
verbatim; `[]` skips that week's checkpoint), or `sweep` (redo every miss,
nothing new). Numbers a `gate`, `problems` or `review` entry names are
`RESERVED`: the drill and gate samplers never draw them. The catalog
reconcile reports any drift between a `review` entry and its issue.
- The GitHub Project mirror writes `Target Date` and nothing else: it is
best-effort, so failures log warnings and never block a D1 write, and topic
rows are never written. SRS stage and first-attempt result stay in D1 only —