UCS Master List & versioning
ADMINISTRATOR The Master List is the deterministic, code-perfect source of truth for every component code in the fleet. Owned by the administrator. Lives inucs_master_list, indexed by (version_id, code).Foundation versions
ucs_foundation_versions(id, label, is_active, created_at) — exactly one row has is_active=1. Inactive versions remain readable for code_history audit.
Imported files
ucs_foundation_files stores chunked base64 of the imported source files, keyed by (version_id, kind):
| Kind | What |
|---|---|
master_full | Full Master XLSX |
master_slim | Trimmed Master |
manifest | UCS Manifest |
l4 | L4 family file |
source | Original source XLSX |
hierarchy_atlas | L1/L2/L3 atlas (v2.31.0.23 task — adds as the sixth file kind) |
Single bridge resolver
src/cl-skeleton/active-master-resolver.js (resolveActiveMaster, listActiveMasters) is the single bridge. It prefers ucs_foundation_versions(is_active=1) and falls back to legacy master_lists. Every consumer (CL Skeleton, status endpoints, master validator) reads through this resolver.
Activating a new version
- Admin → Foundation → Import new version
- Upload the Master XLSX, Manifest, L4, Hierarchy Atlas
- The system stores the files (chunked base64 in
ucs_foundation_files) and writes the leaves toucs_master_listat the newversion_id - Do not activate yet — first run a cascade preview
- After preview clean, activate. The system flips
is_active=1and runscascade-apply - Post-activation: KB orphan heal + RAG mandatory-class backfill + provenance backfill
Proposals
Code proposals (e.g. PR #3 added 6 new codes for FAM-CERT-INS "INSURANCE & LIABILITY CERTIFICATES"):
- Admin → Foundation → Proposals → New proposal
- Fill
(code, component_name, dept, family, parent_code) - Save as draft
- Promote to a new version, or apply directly to the active version (administrator only, audit-logged)
Recent proposals from PR #3 (master_rev 2.7 → 2.13):
1.0.3.004MLC INSURANCE — REPATRIATION (MSI)1.0.3.005MLC INSURANCE — CONTRACTUAL CLAIMS (MSI)1.0.5.001BUNKER CIVIL LIABILITY BCLC (TSI)1.0.5.002WRECK REMOVAL WRC (TSI)1.0.5.003P&I CLUB ENTRY (MSI)1.1.3.021FOAM CONCENTRATE ANALYSIS (MSI)