compass-rice

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: MIT

README

COMPASS RICE

Go CI Go Lint Go SAST Docs Docs License

COMPASS RICE extends RICE with normalized investment profiles for Customer, Platform, Market Expansion, Operational Efficiency, Supportability, and Risk, enabling unlike product and engineering investments to be compared on a common prioritization scale.

Standard RICE works well when opportunities are homogeneous ("Feature A reaches 5,000 users, Feature B reaches 10,000"). It breaks down when you need to compare a feature affecting 2,000 customers against a $3M cloud-cost optimization, a shared platform used by 12 teams, or a material security risk — the raw Reach and Impact measurements are dimensionally incompatible.

COMPASS solves this with profiles: six investment theses, each an adapter that deterministically normalizes its native evidence into canonical R × I × C / E.

Customer                 existing customers          accounts, ARR, users, SAM/SOM
Platform                 internal + external leverage teams, developers, partners, integrations
Market Expansion         new markets                 prospects, segments, pipeline, TAM
Operational Efficiency   economic efficiency         addressable COGS, unit costs
Supportability           support/operational burden  tickets, escalations, support hours
Risk                     material risk reduction     exposure, blast radius, expected loss

COMPASS describes why the organization is investing; RICE determines relative priority. MoSCoW still gates necessity before RICE ranks within a class — a Must never has to win a score competition. COMPASS is the framework's name, not a strict letter-per-profile acronym at six profiles — see docs/methodology.md for why, and for the reserved seventh-profile candidate (Acquisition).

Status

All six profiles (profiles/), the evaluation substrate integration (rubrics/, provenance/, judge/), Economics/calibration types, generated JSON Schemas (schema/), Markdown/terminal renderers (render/), and a CLI (cmd/rice) are implemented and tested. Originally shipped as spectr-rice v0.1.0; renamed to compass-rice for clearer terminology (Serve → Customer, Cost → Operational Efficiency, Expand → Market Expansion, Toil → Supportability). See docs/specs/initiatives/INIT-COMPASSRICE-001/ for the rename rationale and docs/specs/initiatives/INIT-SPECTRRICE-001/ for the original build.

Documentation

CLI

go run ./cmd/rice validate assessment.json
go run ./cmd/rice score assessment.json
go run ./cmd/rice explain assessment.json --markdown

An assessment document is a profileId (e.g. "operations/v1") plus that profile's raw evidence as JSON — see docs/integration.md for the full shape and catalog/catalog_test.go for a working example. The catalog package (catalog.Get, catalog.NormalizeJSON, catalog.NormalizeDocument) is the exported ProfileID→Normalizer registry cmd/rice itself is built on — use it directly rather than hand-copying the profile map.

Design principles

  • Raw evidence never disappears. Every normalized assessment echoes its raw inputs, method, and profile version — a CFO can inspect the dollars, Engineering can inspect the person-days, everyone shares the normalized ranking.
  • Normalization is a pure function. An LLM judge only ever populates a typed evidence struct; the evidence-to-score path is deterministic, versioned Go code, not model judgment.
  • Profiles are adapters, not silos. One canonical RICE formula; each profile defines how its evidence maps onto the same Reach/Impact/Confidence/Effort scales.
  • A profile requires a fundamentally different evidence and normalization model to exist — not merely a distinguishing characteristic of the initiative. Six profiles today; a seventh (Acquisition) is reserved and built only when real roadmap items demonstrably fail to fit.

Relationship to other frameworks

compass-rice owns the normalization methodology only. It does not own MoSCoW, Kano, MIH, OKRs, or capability models — those are applied by consumers such as prism-roadmap. Rubric authoring and judge output use plexusone/structured-evaluation as the evaluation substrate; COMPASS authors the rubric content, not the evaluation machinery.

License

MIT — see LICENSE.

Directories

Path Synopsis
Package catalog maps every canonical rice.ProfileID to the Normalizer and evidence-unmarshal function that implements it — the "which Go type do I decode this evidence into" wiring that TRD's architecture deliberately keeps out of the profile packages themselves (profiles don't know about each other).
Package catalog maps every canonical rice.ProfileID to the Normalizer and evidence-unmarshal function that implements it — the "which Go type do I decode this evidence into" wiring that TRD's architecture deliberately keeps out of the profile packages themselves (profiles don't know about each other).
cmd
rice command
Command rice is a thin CLI adapter over the compass-rice library: it reads an assessment document (a ProfileID plus that profile's raw evidence, as JSON — see catalog.go), runs it through the matching Normalizer, and reports the result.
Command rice is a thin CLI adapter over the compass-rice library: it reads an assessment document (a ProfileID plus that profile's raw evidence, as JSON — see catalog.go), runs it through the matching Normalizer, and reports the result.
Command gen regenerates the JSON Schemas under schema/ from the Go types that are their source of truth (TRD T8: Go-first schema generation).
Command gen regenerates the JSON Schemas under schema/ from the Go types that are their source of truth (TRD T8: Go-first schema generation).
Package judge defines the contract between a judge (an LLM or human filling in a profile's rubric) and a Normalizer (rice.Normalizer): what a judge must produce, and how a runtime decides whether that output is trustworthy enough to score without a human in the loop.
Package judge defines the contract between a judge (an LLM or human filling in a profile's rubric) and a Normalizer (rice.Normalizer): what a judge must produce, and how a runtime decides whether that output is trustworthy enough to score without a human in the loop.
profiles
customer
Package customer holds COMPASS RICE's Customer profile logic shared across its evidence models.
Package customer holds COMPASS RICE's Customer profile logic shared across its evidence models.
customer/b2b
Package b2b implements the "customer/b2b" evidence model: the Customer profile's account/ARR-denominated vocabulary for B2B businesses (docs/normalization.md, "Profile: Customer" > "Evidence model customer/b2b").
Package b2b implements the "customer/b2b" evidence model: the Customer profile's account/ARR-denominated vocabulary for B2B businesses (docs/normalization.md, "Profile: Customer" > "Evidence model customer/b2b").
customer/b2c
Package b2c implements the "customer/b2c" evidence model: the Customer profile's user/MAU-denominated vocabulary for B2C businesses (docs/normalization.md, "Profile: Customer" > "Evidence model customer/b2c").
Package b2c implements the "customer/b2c" evidence model: the Customer profile's user/MAU-denominated vocabulary for B2C businesses (docs/normalization.md, "Profile: Customer" > "Evidence model customer/b2c").
market
Package market holds COMPASS RICE's Market Expansion profile logic shared across its evidence models.
Package market holds COMPASS RICE's Market Expansion profile logic shared across its evidence models.
market/b2b
Package b2b implements the "market/b2b" evidence model: the Market Expansion profile's TAM/prospect-denominated vocabulary for B2B market entry (docs/normalization.md, "Profile: Market Expansion" > "Evidence model market/b2b").
Package b2b implements the "market/b2b" evidence model: the Market Expansion profile's TAM/prospect-denominated vocabulary for B2B market entry (docs/normalization.md, "Profile: Market Expansion" > "Evidence model market/b2b").
market/b2c
Package b2c implements the "market/b2c" evidence model: the Market Expansion profile's TAM-denominated vocabulary for B2C market entry (docs/normalization.md, "Profile: Market Expansion" > "Evidence model market/b2c").
Package b2c implements the "market/b2c" evidence model: the Market Expansion profile's TAM-denominated vocabulary for B2C market entry (docs/normalization.md, "Profile: Market Expansion" > "Evidence model market/b2c").
operations
Package operations implements the Operational Efficiency profile: how much economic inefficiency an initiative removes.
Package operations implements the Operational Efficiency profile: how much economic inefficiency an initiative removes.
platform
Package platform holds COMPASS RICE's Platform profile logic shared across its evidence models.
Package platform holds COMPASS RICE's Platform profile logic shared across its evidence models.
platform/external
Package external implements the "platform/external" evidence model: the Platform profile's developer/partner/ecosystem vocabulary for external platform leverage (docs/normalization.md, "Profile: Platform" > "Evidence model platform/external").
Package external implements the "platform/external" evidence model: the Platform profile's developer/partner/ecosystem vocabulary for external platform leverage (docs/normalization.md, "Profile: Platform" > "Evidence model platform/external").
platform/teams
Package teams implements the "platform/internal" evidence model: the Platform profile's consuming-team vocabulary for internal platform leverage (docs/normalization.md, "Profile: Platform" > "Evidence model platform/internal").
Package teams implements the "platform/internal" evidence model: the Platform profile's consuming-team vocabulary for internal platform leverage (docs/normalization.md, "Profile: Platform" > "Evidence model platform/internal").
risk
Package risk implements COMPASS RICE's Risk profile: how much material risk an initiative reduces.
Package risk implements COMPASS RICE's Risk profile: how much material risk an initiative reduces.
supportability
Package supportability holds COMPASS RICE's Supportability profile logic shared across its evidence models.
Package supportability holds COMPASS RICE's Supportability profile logic shared across its evidence models.
supportability/b2b
Package b2b implements the "supportability/b2b" evidence model: the Supportability profile's account/team-denominated vocabulary for B2B support and operational burden (docs/normalization.md, "Profile: Supportability" > "Evidence model supportability/b2b").
Package b2b implements the "supportability/b2b" evidence model: the Supportability profile's account/team-denominated vocabulary for B2B support and operational burden (docs/normalization.md, "Profile: Supportability" > "Evidence model supportability/b2b").
supportability/b2c
Package b2c implements the "supportability/b2c" evidence model: the Supportability profile's support-contact-volume vocabulary for B2C support and operational burden (docs/normalization.md, "Profile: Supportability" > "Evidence model supportability/b2c").
Package b2c implements the "supportability/b2c" evidence model: the Supportability profile's support-contact-volume vocabulary for B2C support and operational burden (docs/normalization.md, "Profile: Supportability" > "Evidence model supportability/b2c").
Package provenance derives the deterministic Confidence input (docs/normalization.md "Confidence policy", TRD T6) from verified structured-evaluation claims, rather than trusting a judge's raw source counts by fiat.
Package provenance derives the deterministic Confidence input (docs/normalization.md "Confidence policy", TRD T6) from verified structured-evaluation claims, rather than trusting a judge's raw source counts by fiat.
Package render turns a rice.Normalized assessment into human-readable Markdown or terminal output showing the full raw-evidence -> band -> score translation (PRD D10, TRD T7): nobody should have to trust a normalized score blindly — a CFO can inspect the dollars, Engineering the person-days, Product the ARR, all before agreeing on the Score column.
Package render turns a rice.Normalized assessment into human-readable Markdown or terminal output showing the full raw-evidence -> band -> score translation (PRD D10, TRD T7): nobody should have to trust a normalized score blindly — a CFO can inspect the dollars, Engineering the person-days, Product the ARR, all before agreeing on the Score column.
Package rice defines the canonical COMPASS RICE types: the six investment profiles, the normalized Reach/Impact/Confidence/Effort scales, and the deterministic scoring function.
Package rice defines the canonical COMPASS RICE types: the six investment profiles, the normalized Reach/Impact/Confidence/Effort scales, and the deterministic scoring function.
Package rubrics packages the docs/normalization.md band and Impact-ladder anchor tables into versioned structured-evaluation RubricSets — one per (profile, evidence model), keyed by the same rice.ProfileID its normalizer implements.
Package rubrics packages the docs/normalization.md band and Impact-ladder anchor tables into versioned structured-evaluation RubricSets — one per (profile, evidence model), keyed by the same rice.ProfileID its normalizer implements.
Package schema embeds the generated JSON Schemas for compass-rice's evidence and canonical types, so non-Go consumers (a spreadsheet, an LLM evaluation pipeline, another language's tooling) can validate assessment documents without depending on this Go module.
Package schema embeds the generated JSON Schemas for compass-rice's evidence and canonical types, so non-Go consumers (a spreadsheet, an LLM evaluation pipeline, another language's tooling) can validate assessment documents without depending on this Go module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL