AGENT_PEPM ↔ OWNER_ROLLUP Exclusivity Fix — Production Proof
Purpose: Validate that AGENT_PEPM save correctly closes active OWNER_ROLLUP policies. Commit SHA: [fill after deploy]Cloud Run Revision: [fill after deploy]
Date: [fill]
Step A — Before Save
Run in BigQuery:effective_end_date IS NULL, is_active=TRUE.
Actual:
Step B — Save AGENT_PEPM
- Method: Ingestion wizard or onboarding page
- Business ID: [fill]
- Period: [fill]
Step C — After Save
Run the same query from Step A. Expected:- Previously open OWNER_ROLLUP row now has:
effective_end_date=effective_start_date - 1 day(e.g.2025-11-30for effective_start_date2025-12-01)is_active=FALSE
Step D — Readiness
Call readiness for same batch/period:- No
"OWNER_ROLLUP policy requires confirmation"reason for the business - Business becomes Ready if PEPM coverage complete
Sign-off
- Step A completed
- Step B returned 200
- Step C confirmed policy closed
- Step D confirmed readiness updated