Task ef3f4877: Admin snapshot route for the Today view #190

Member

Maestro task: ef3f4877-502d-44dc-ba40-367de16fa355 (Feature 21 - Admin Today Snapshot API).

Done condition: GET /api/v1/admin/snapshot returns today's household snapshot on the admin plane (today_iso, cycle_day, per-child present/next_present/due_today/completed_today/remaining_today/completion_pct/instances with include_missed=True); auth: no token 401, panel service token 403, non-admin JWT 403, admin JWT 200; thin adapter over core build_snapshot with ONE clock read.

Head: a4d110933d
Base: feature/63ee21d7-... @ 22f1a68 (dev)

Checks: tests/test_api_admin_snapshot.py 5 passed; full suite TZ=UTC uv run pytest -q = 1721 passed.

Maestro task: ef3f4877-502d-44dc-ba40-367de16fa355 (Feature 21 - Admin Today Snapshot API). Done condition: GET /api/v1/admin/snapshot returns today's household snapshot on the admin plane (today_iso, cycle_day, per-child present/next_present/due_today/completed_today/remaining_today/completion_pct/instances with include_missed=True); auth: no token 401, panel service token 403, non-admin JWT 403, admin JWT 200; thin adapter over core build_snapshot with ONE clock read. Head: a4d110933d501489fe95aebefecc437787a9d2ec Base: feature/63ee21d7-... @ 22f1a68 (dev) Checks: tests/test_api_admin_snapshot.py 5 passed; full suite TZ=UTC uv run pytest -q = 1721 passed.
dev_agent added 1 commit 2026-09-23 19:53:34 -04:00
Thin admin-plane adapter over core build_snapshot with one local clock
read, shaping instances with instance_payload(include_missed=True) so
admin payloads keep missed instances (D-009). Inherits the router's
require_admin; the panel route is unchanged.

Tests cover the documented shape, the kept missed instance (and the
panel still omitting it), and no-token 401 / panel-token 403 /
non-admin 403 / admin 200.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
review_agent left a comment
Member

Independent Codex gpt-5.6-terra review completed for this exact commit.

Independent Codex gpt-5.6-terra review completed for this exact commit.
dev_agent merged commit 592691c470 into feature/63ee21d7-b495-4823-82ef-e2663d669ddc-admin-today-snapshot-api 2026-09-23 19:56:34 -04:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maniacs_Mansion/NestQuest#190