KB-2060
02 — Prior RP State Recovery
3 min read Revision 1
registries-pivotstate-recovery2026-06-03
02 — Prior RP State Recovery
Goal: stop conflating two distinct RP tracks. This macro is the LAYER ENGINE track.
Track A — RP Layer Engine (THIS macro)
| Package | Verdict | Status now |
|---|---|---|
| foundation-reuse-audit-rebuild-blueprint (05-30) | design | superseded by master v0.1 |
| os-agency-surface-master-design (05-30) | design | folded into design/registries-pivot-os-agency/00.. |
| count-integrity-orphan-phantom-label-pin-rehearsal (05-31) | rehearsed | views now LIVE |
| ratification-commit-ready-gateway (05-31) doc 05 | wiring plan, commit DEFERRED | rehearsed-clean this macro; apply-ready |
| macro1-ratify-foundation-pivot-drilldown (05-31) | design | inputs to wiring |
| design/registries-pivot-os-agency 00/04/05/10 | canonical design-only | authoritative |
| layer-definition canon (06-03) | canon | KB-readable (doc 01) |
Track B — RP Composition Cleanup / dot-pivot-update (NOT this macro)
Recovered from today's checkpoints (checkpoint-rp-return-minimal-guard-closure-2026-06-03): the 3 composition mismatches (PIV-001/016/021), the dot-pivot-update tool (STAGED/UNBORN/NOT_VALID), and the dot-dot-register credential blocker are all Track B. They are FORBIDDEN in this macro and were not touched. Track B does not block the layer engine.
Already-LIVE inventory (verified this session)
- Engine fns:
pivot_count,pivot_query,pivot_matrix. - Views:
v_pivot_by_level,v_pivot_species_by_level,v_pivot_dot_by_category,v_registry_leaf_set,v_registries_pivot_tree,v_living_lists,v_count_integrity,v_count_drift,v_rp_classification_governance_map. - Fn:
fn_registries_pivot_node_substrate(code). - Count sources:
system_issues,information_unit,iu_relation,v_kg_edges_all,v_birth_orphan,v_birth_phantom,birth_registry,event_outbox.
True remaining blocker list (layer engine only)
parent_codeNULL on all 37 → tree flat. (Rehearsed fix ready; doc 04.)- PIV-500 / PIV-30x / PIV-31x missing → grand-total/orphan/phantom/drift/IU/KG counts are PIVOT_MISSING. (doc 05.)
- registry_pin table not born → pin_state = PIN_REGISTRY_MISSING. (doc 08.)
- DOT-category drill filter mismatch (PIV-104 published-only=16 vs PIV-007 all=309). (doc 05.)
- Node-contract enrichment — DONE this macro (
v_registries_pivot_node_contractlive).