RP Aggregate Pivots — 00 README First
00 — README First
Macro: REGISTRIES_PIVOT_AGGREGATE_PIVOTS_RATIFY_ADD_AND_DOT_DRILL_FIX
Date: 2026-06-03
Final status: ✅ PASS
Execution mode: EXECUTION_MODE (read query_pg RO; write ssh contabo → docker exec postgres psql -U workflow_admin, superuser ON, read_only OFF)
Live mutation: YES
One-paragraph result
Registries-Pivot's aggregate/count layer is now materially honest and useful for the old Registries-style UI. Two READY_TO_ADD aggregate pivots were committed (PIV-311 Information Units = 219, PIV-313 Open System Issues = 207,940), each born cleanly. The PIV-104 DOT drill gap was fixed — removing a stray status='published' filter so the DOT-by-category drill now sums to 309 and reconciles to parent PIV-007. The candidate aggregates (orphan/phantom/drift/KG) and the law-sensitive ones (unmanaged/grand-total) were classified with live evidence and surfaced through a new, additive, read-only candidate/law register view rather than faked into canon. A second additive view exposes drill reconciliation so the UI can show RECONCILES / WARNING_DRILL_MISMATCH honestly. RP is DONE_FOR_INFORMATION_WORK.
What changed in production (3 mutations, all in scope)
- INSERT PIV-311, PIV-313 into
pivot_definitions(one statement; 2 births). - UPDATE PIV-104
filter_spec→{"filters":[]}(drop published-only filter; no birth). - CREATE two additive read-only views:
v_rp_drill_reconciliation,v_rp_aggregate_candidate_register.
No RP cleanup, no dot-pivot-update, no birth/governance/pre-birth alteration, no fake pivots, no Nuxt math, no hardcoded depth.
Read order
01-live-state-before-aggregate-pivots.md— verified starting point + channels.02-piv-311-313-add-report.md— Workstream A (rehearsal + commit).03-candidate-pivots-301-302-303-312.md— Workstream B (classification).04-piv-304-unmanaged-and-piv-500-grand-total-definition.md— Workstream C (law status).05-piv-104-dot-drill-gap-fix.md— Workstream D (drill fix).06-count-integrity-equation-and-ui-status-model.md— Workstream E.07-done-enough-for-information-work.md— Workstream F.08-rollback-and-recovery-package.md— exact reversal.09-final-summary.md10-gpt-mcp-readable-checkpoint.md
Short SSOT checkpoint: knowledge/dev/reports/architecture/checkpoint-rp-aggregate-pivots-dot-drill-2026-06-03.md.