Skip to content

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/ to rice/. SPECTR was the old letter-per-profile acronym (Serve-Platform-Expand-Cost-Toil-Risk). After INIT-COMPASSRICE-001 renamed 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. rice names 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. rice also 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 the compass name (which is reserved for the six-profile normalization layer, not the underlying formula engine) or the already-claimed substrate term (README uses "evaluation substrate" for the rubrics//provenance/judge integration specifically).
  • D2 — cmd/spectr becomes cmd/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/spectr wraps spectr/). 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/*, and docs/specs/initiatives/INIT-COMPASSRICE-001/* describe what was true when they were written — spectr/cmd/spectr were the real names at those points in time. They stay as accurate history, matching INIT-COMPASSRICE-001 D5'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/spectr becomes .../rice, and the CLI binary name changes. No known external consumers exist yet (same rationale as INIT-COMPASSRICE-001 D5'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-0NN trailers. RMI IDs are scoped by repository (COMPASSRICE, the registered slug for this repo), not by initiative, so this initiative continues the same numbering INIT-COMPASSRICE-001 used (-010 onward) 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-001 and INIT-SPECTRRICE-001's commits and RMI trailers stay as they are.