Reports Domain
Current technical overview of staff and manager report workflows
Overview
The reports domain records service-day staff reports and manager closeout reports. This page is an audience-facing overview; the staff report contract, manager report contract, accepted ADRs, and executable package schemas own the detailed behavior.
Current model
- A staff member submits one report per service day and location. The report's primary daypart and combined goals are derived from the staff member's published Daily Line-Up assignments.
- A manager report is also service-day scoped and is finalized through the manager publish workflow.
form_draftsis the canonical recovery store for in-progress report forms. Legacyserver_reports.status = 'draft'rows are migration fallback data, not the current draft contract.- Staff compliance obligations are seeded and reconciled from published Daily Line-Up assignments, not from a report-local scheduler.
- Final submission/publish commands, audit events, rate limits, and notification delivery are server-owned.
Ownership and references
- ADR-0070 — Staff Service Day Accountability owns staff report grain and lineup-publish seeding.
- ADR-0077 — Manager Report Service-Day Accountability owns manager report grain and closeout.
packages/reportsowns report domain commands and shared schemas.- The current app surfaces are
/reports/new,/reports/[id],/reports/manager, and/inbox; verify routes against the app tree before adding links.