KB-4158
00 — Registries/Pivot OS Agency Surface Master Design — Index
4 min read Revision 1
architectureregistriespivotos-agencymaster-designno-hardcodepg-firstrender-shelldieu26dieu28drilldown2026-05-30read-only
title: 00 — Package Index — Registries/Pivot OS Agency Surface Master Design date: 2026-05-30 status: PASS (master design + dress-rehearsal plan, READ-ONLY, zero mutation) route_target: /knowledge/registries-pivot
Registries/Pivot OS Agency Surface — Master Design & Dress Rehearsal
Mission: REGISTRIES_PIVOT_OS_AGENCY_SURFACE_MASTER_DESIGN_AND_DRESS_REHEARSAL
Class: master design + no-hardcode audit + PG-first pivot data contract + dress-rehearsal plan.
Host: contabo VPS · DB: Docker postgres → database directus · PG role: context_pack_readonly (READ ONLY tx).
Mutation this session: NONE (no PG/Directus/Qdrant write, no Nuxt prod change, no schema).
Documents
01-overview-control.md— overview, control, Gate 0 evidence02-law-source-compliance.md— law/source compliance map03-registries-page-audit.md—/knowledge/registriesaudit + UX-idea classification04-pivot-page-audit.md—/knowledge/pivotaudit05-pg-substrate-mapping.md— live PG substrate mapping + reuse verdicts06-no-hardcode-doctrine-and-audit.md— banned patterns + audit findings07-data-contract.md— PG-first recursive drill-down node/tree contract08-pivot-only-count-design.md— every number → pivot source / PIVOT_MISSING09-route-ui-structure-recommendation.md— route strategy + recursive UI structure10-dress-rehearsal-plan.md— backend/API/Nuxt rehearsal (design only)11-test-acceptance-harness.md— no-hardcode/parity/pivot-only/drill/leaf tests12-implementation-prompts.md— gated implementation prompts13-self-review.md— self-review + acceptance verdict + integrity erratum
Headline verdicts
- Foundation already exists — pivot engine (37
pivot_definitions,pivot_count(),pivot_results126), registry/species/birth substrate all live. The new surface is a convergence/render-shell, not new infrastructure. - Route: build
/knowledge/registries-pivotas the convergence target (OS Agency canonical surface) that supersedes/knowledge/registriesand absorbs/knowledge/pivot's clean counting; legacy routes redirect after parity. Net counting surfaces do not increase (reconciles mission's "new canonical route" with prior council's "no third drift surface"). - No-hardcode verdict:
/knowledge/registriesVIOLATES Điều 28 (phantom hardcoded rows + Nuxt-side gap math + readsmeta_catalog.record_count)./knowledge/pivotis mostly compliant render-shell but mixes 2 stalemeta_catalog-sourced rows (DOT 307, Collections 168) into an otherwise pivot table. - Pivot-only count verdict: achievable. Composition/species/DOT/collection/birth/page/workflow/task counts already have a pivot (
PIV-001..021,PIV-101..106,PIV-201..207,MTX-*). PIVOT_MISSING: grand-total objects, Information Units (219), KG edges, drift-count, stale-count, total-active-pivots, orphan-totals, coverage (missing-birth/iu/dot/pivot) — proposed as newpivot_definitionsrows / read-only views (Điều 26 + Điều 32 gated, doc 08). - Drill-down (user addendum): the surface is a recursive registry drill-down, not a flat dashboard — count>1 ⇒ backend generates an inner layer; depth is variable; leaf = the object's own DB/relationship substrate (doc 07).
- Implementation readiness: design-complete; blocked only on count-integrity reconcile + GPT/User ratification. No implementation/mutation performed.
- Integrity note: initial drafts of docs 02/05/07/08 (written before the delayed MCP result-batch flushed) contained fabricated pivot codes/owners/tables; all corrected against live data before any KB upload (doc 13 erratum).