12 — Next Prompts
12 — Next Prompts
Sequenced follow-on macros. Each stays reuse-first; mutation only after explicit human Đ32 where noted. Read-only macros marked [RO].
P1 — [RO] OFFICIAL_LISTS_PIVOT_COVERAGE_RECONCILE
"Read-only: enumerate every official list (doc 07) against pivot_definitions. For each list lacking a pivot (law/normative_registry, IU/edges, users/roles, event_type_registry), draft the exact pivot_definitions INSERT (filter/group/metric jsonb) WITHOUT applying. Re-run test_counting_contract() read-only. Reconcile CAT-006 vs CAT-DOT and the 7 cross_check LỆCH CATs; propose the single canonical CAT per table. Produce a count-integrity remediation packet (re-enable trg_auto_sync_registry_counts, fix dot-pivot-health cron PATH) for human apply."
P2 — [RO] DOT_REGISTRY_QUALITY_RETROFIT_PACKET
"Reuse dot-metadata-fill DOT (don't rebuild). Produce a governed packet to fill dot_tools.operation (50/309), coverage_status (103 null), tier (19 null); fix PIV-104 filter; and stage Đ35 §11 paired-test retrofit for the 178 unpaired DOTs. BEGIN..ROLLBACK dress-rehearsal only; no commit."
P3 — UI_PREVIEW_MASTER_TO_PG_BACKED_LIVING_LIST (Đ28, Đ32-gated)
"Design (no mutation) the EXTEND that turns the static manifest into a render of a PG query: reconcile ui_pages (37 shipped) with manifest (61 designed) surfaces; choose EXTEND-ui_pages vs birth ui_surface collection; define the surface→page mapping; draft the surface-list pivot. Dress-rehearse additive schema BEGIN..ROLLBACK. KB-only fix now: correct stale review-log.md (19/4→61/16)."
P4 — MOWD_WORKFLOW_DESIGN_IU_BINDING_EXTEND (Đ7/Đ37, Đ32-gated)
"Reuse the prior MOWD packs. Dress-rehearse additive EXTEND of workflows/workflow_steps with iu_ref/owner_gov_code/design columns; reuse workflow_change_requests + approval spine; draft NEW workflow_trigger_design (separate from physical trigger_registry). No commit until Đ32."
P5 — NORMATIVE_REGISTRY_LAW_RECONCILE (Đ38, Đ32-gated)
"Register enacted laws Đ23 and Đ45 into normative_registry (currently absent); realign or deprecate stale law_catalog vs normative_registry; add a count pivot for normative_registry. Produce the Đ38 enactment/approval packet; no self-approval; no commit until human cross-sign ≥2."
P6 — CANDIDATE_REGISTRY_FIELD_FORM_TIER_HUMAN_ACTIVATION (Đ32, human only)
"Reuse the dress-rehearsed g1-candidate-registry pack. Present the human-decision packet to commit field_registry/input_form_registry/tier_registry. Enforce RECONCILE: field_registry = governance overlay over live directus_fields (1,482), NOT a copy. Tier owner = GOV-COUNCIL (no Mother owns tier)."
P7 — [RO] EVENT_ROUTE_ACTIVATION_READINESS (Đ45)
"Read-only: audit iu_outbound_route (15, all dry_run); populate-plan retry/idempotency policies; define per-route approval + fail-closed checks required before any dry_run=false via fn_iu_route_deliver. Propose event_outbox retention/archival pivot for the 165k system/issue_opened firehose."
P8 — [RO] LIST_IU_KG_SEMANTIC_ENRICHMENT (Đ39)
"Read-only: design universal_edges enrichment connecting list items (DOT→law, surface→registry, workflow→IU) using enrich-in-place + v_kg_edges_all projection; no 2nd graph SoT; vector stays OFF. Defer surface-as-IU until Đ44 enacted."
Recommended order
P1 → P2 (counting + DOT quality, mostly RO/rehearsal) → P3 (UI living list) → P5 (law reconcile) → P4 (MOWD) → P6 (candidate commit, human) → P7/P8 (event + KG, parallel). P1 first because correct counting underpins every other list.