Story Index: notifications (NOTIF) — sub-version v0.0.2¶
Module: notifications
Sub-version: v0.0.2
Total stories: 1
Decomposed from: PRD V0 Envelope (docs/prd/notifications-prd.md row v0.0.2) + v0.0.0 architecture pre-provisioned agency_id hooks (§2.1, §4.3)
Status of architecture: ⚠️ [ARCH-PENDING] — v0.0.0-only architecture. Story is PRÉLIMINAIRE; reconcile with an ARCHITECT v0.0.2 pass before dev-start.
Date: 28/05/2026
Scope of v0.0.2¶
Per-agency send-queue partitioning. The agency enters the TENANT model at v0.0.2; NOTIF makes agency_id mandatory and partitions dispatch by (tenant_id, agency_id) for intra-tenant fairness. No rate-limit / quota yet — queue isolation only.
Story List¶
| # | Story ID | Title | Side | Depends On | Complexity | Status |
|---|---|---|---|---|---|---|
| 1 | NOTIF-007 | Per-agency dispatch queue partitioning (agency_id) |
[BACKEND] | NOTIF-001a/b, TENANT v0.0.2 agency model | M | Draft (ARCH-PENDING) |
Implementation Order¶
- NOTIF-007 — after TENANT v0.0.2 agency migration is merged (provides agency rows +
tenant.default_agency_idfor backfill).
Cross-module dependencies¶
| Direction | Counterpart | Contract | Story | Status |
|---|---|---|---|---|
| Inbound | TENANT | Agency model + default_agency_id for backfill |
NOTIF-007 | TENANT v0.0.2 |
Compliance / BLOQUANTs¶
- No new compliance obligation. Tenant-isolation critical rule extended with the
agency_idintra-tenant sub-scope (agency is a sub-unit, not a tenant — CLAUDE.md LOCKED).