PLAN — Rename spectr Package to rice¶
Initiative: INIT-RICECORE-001
Repository: github.com/ProductBuildersHQ/compass-rice
Predecessor: INIT-COMPASSRICE-001 (delivery_complete) — renamed the module and all six
profiles to COMPASS terminology but left the spectr package and cmd/spectr binary
untouched; this initiative closes that gap.
Decisions¶
- D1 — Rename
spectr/torice/. SPECTR was the old letter-per-profile acronym (Serve-Platform-Expand-Cost-Toil-Risk). AfterINIT-COMPASSRICE-001renamed the profiles to Customer/Platform/Market Expansion/Operational Efficiency/Supportability/Risk, the acronym no longer maps to any current profile name — it's a vestige, not a description.ricenames the package for what it actually is: the canonical R×I×C/E substrate (Normalized,Profile,Registry,ImpactLevel,ConfidenceTier, economics/provenance-adjacent types) that COMPASS's six profiles normalize evidence into.ricealso reads naturally at call sites (rice.Normalized,rice.ImpactLevel) and sets up a future reference implementation of classic Intercom RICE (rice.RawScore(...)) alongside the profile-gated path, without overloading thecompassname (which is reserved for the six-profile normalization layer, not the underlying formula engine) or the already-claimedsubstrateterm (README uses "evaluation substrate" for therubrics//provenance/judgeintegration specifically). - D2 —
cmd/spectrbecomescmd/rice. The binary's own doc comment already says "Command spectr is a thin CLI adapter over the compass-rice library" — its name should track the package it wraps, exactly as it does today (cmd/spectrwrapsspectr/). No new product surface is being introduced; this is the same tracking relationship carried forward under the new name. - D3 — Historical documents are not rewritten.
docs/releases/v0.1.0.md,docs/releases/v0.2.0.md,docs/specs/initiatives/INIT-SPECTRRICE-001/*, anddocs/specs/initiatives/INIT-COMPASSRICE-001/*describe what was true when they were written —spectr/cmd/spectrwere the real names at those points in time. They stay as accurate history, matchingINIT-COMPASSRICE-001D5's precedent. Only this initiative's own forward docs (README, methodology, integration, normalization, calibration, mkdocs nav) get the rename. - D4 — This is a breaking change, versioned forward. The import path
github.com/ProductBuildersHQ/compass-rice/spectrbecomes.../rice, and the CLI binary name changes. No known external consumers exist yet (same rationale asINIT-COMPASSRICE-001D5's "no migration path" call), so this ships as a CHANGELOG entry and release, not a deprecation shim.
Approach¶
Package rename and import-site propagation must land in one RMI — renaming spectr/ to rice/
without simultaneously updating every import path and spectr. symbol reference would leave the
tree non-compiling between commits, which the working agreement below forbids. That RMI is the
single largest one (spans profiles/*, provenance/, render/, rubrics/, schema/,
judge/, examples/, gen/, and cmd/spectr — 45 files import the package today). CLI binary
rename follows as its own RMI once the package it wraps has its final name. Documentation and a
versioned release land last, once every Go identifier is settled, so the docs describe the final
state rather than an intermediate one — same ordering discipline as INIT-COMPASSRICE-001.
Working agreements¶
- Conventional commits; each RMI's commits carry
Refs: RMI-COMPASSRICE-0NNtrailers. RMI IDs are scoped by repository (COMPASSRICE, the registered slug for this repo), not by initiative, so this initiative continues the same numberingINIT-COMPASSRICE-001used (-010onward) even though it has its own initiative ID,INIT-RICECORE-001. - Build, vet, test, and lint after every RMI — the rename must never leave the tree broken at any commit boundary.
- No git history rewriting:
INIT-COMPASSRICE-001andINIT-SPECTRRICE-001's commits and RMI trailers stay as they are.