Skip to content

Integration Guide: Consuming COMPASS RICE

This guide is for prism-roadmap and any other runtime that wants to apply the COMPASS RICE framework to real opportunities. It fixes the contract described in PRD.md's "Framework boundaries" and TRD.md's four-stage pipeline: compass-rice defines the methodology; the consumer executes it.

Opportunity
    │
    ├── MoSCoW      Is it necessary?               ← consumer's necessity gate
    │
    ├── COMPASS     Why are we investing?           ← this guide, "Selecting a profile"
    │      │
    │      └── selects a compass-rice profile
    │
    ├── RICE        How should it rank?             ← compass-rice: Normalizer.Normalize()
    │
    ├── OKR         What outcome should it achieve? ← consumer
    ├── Kano        What customer expectation?      ← consumer
    ├── MIH         What investment horizon?        ← consumer
    └── Capability  What capability does it improve? ← consumer

What compass-rice owns vs. what you own

compass-rice owns The consumer owns
The six profiles, their evidence models, and normalization algorithms (profiles/) MoSCoW necessity gating — compass-rice never decides this
Canonical types and scoring (rice) Judge execution — spawning an LLM or human to fill in evidence
Profile rubric content (rubrics) Kano, MIH, OKR, capability classification
Deterministic Confidence policy from verified claims (provenance) Storage, portfolio ranking across opportunities, presentation
The judge output contract (judge) Claims verification execution (calling out to sources)
JSON Schemas (schema) for non-Go consumers Deciding when to run an assessment or re-run one

If you find yourself hardcoding a band threshold or an Impact rubric outside compass-rice, stop — that belongs in docs/normalization.md and a profiles/ package, versioned, not duplicated in the consumer.

Selecting a profile

Every opportunity needs a primary investment thesis before it can be scored (PRD D5): exactly one profile generates the canonical RICE score. Map the opportunity's "why are we funding this" answer to a profile:

If the answer is roughly... Profile Package
"Improve value for customers we already serve" Customer profiles/customer/b2b or profiles/customer/b2c
"Create reusable leverage across teams or partners" Platform profiles/platform/teams or profiles/platform/external
"Unlock a market we can't effectively serve today" Market Expansion profiles/market/b2b or profiles/market/b2c
"Remove economic inefficiency" Operational Efficiency profiles/operations
"Remove support/operational burden" Supportability profiles/supportability/b2b or profiles/supportability/b2c
"Reduce material risk" (security, privacy, compliance, reliability, business continuity, technology lifecycle) Risk profiles/risk

An opportunity can have secondary theses ("this is primarily Platform, but also has Customer and Risk value"). Record those as context on the opportunity — never run them through their own Normalizer to produce competing scores; that reopens exactly the score-shopping problem the primary-thesis rule exists to prevent (PRD D5). This is a known v1 limitation: multi-thesis initiatives may be undervalued until a future profile version accounts for secondary value.

If a category is genuinely ambiguous between B2B and B2C evidence (a PLG/B2B2C product), pick the evidence model with the stronger signal for that specific opportunity, or state an explicit organizational equivalence (docs/normalization.md, "Hybrid organizations") — don't silently default to one.

A seventh profile (Acquisition — growth/funnel efficiency) is documented as reserved but not built; see docs/methodology.md, "A reserved seventh profile." Don't route acquisition-flavored opportunities to a nonexistent profile — assign them to whichever of the six fits best today and record the tension as context, the same as any other secondary thesis.

Running the pipeline

The four stages from TRD.md, with the type each stage produces:

[1] Evidence acquisition     →  facts from your source systems (billing, telemetry, CRM)
[2] Evidence interpretation  →  judge.Output{Evidence, Categories, Claims}
[3] Normalization             →  rice.Normalized  (pure function — compass-rice's job)
[4] Scoring                   →  float64            (Normalized.Score())

1–2. Evidence acquisition and interpretation

Point your judge (an LLM, a human, or a deterministic importer) at the profile's rubric for guidance on what evidence to gather, and at the profile's Evidence struct for what to produce. The rubric is judge-facing documentation, not a scorer — see rubrics.Operations, rubrics.CustomerB2B, etc. Every rubrics.<Profile> value is a *structured-evaluation/rubric.RubricSet with a JudgeInstructions list; start there.

The judge's only output obligations, per TRD T1:

  1. Populate the profile's typed Evidence struct — never assign Reach/Impact/Confidence/Score directly.
  2. Cite a source for every claim, as []*claims.Claim (from github.com/plexusone/structured-evaluation/claims).
  3. For any judged field (rice.Judged[T] — e.g. Market Expansion's Barrier, Risk's Consequence), supply a Rationale alongside the value.

Bundle these into a judge.Output:

import (
    "github.com/ProductBuildersHQ/compass-rice/judge"
    operationspkg "github.com/ProductBuildersHQ/compass-rice/profiles/operations"
)

output := judge.Output{
    ProfileID:  operationspkg.ID, // "operations/v1"
    Evidence:   operationsEvidence,   // operationspkg.Evidence, filled in by the judge
    Categories: reachAndImpactResults, // []rubric.CategoryResult, the judge's reasoning
    Claims:     claimList,             // []*claims.Claim, verified against sources
}

if output.NeedsHumanReview() {
    // Route to a human before trusting this assessment — a category fell below
    // confidence threshold, or carries a reason code requiring human review.
    // output.RepairPrompts() lists what a repair pass should address first.
}

Derive the deterministic Confidence tier from verified claims — never from the judge's self-reported confidence:

import "github.com/ProductBuildersHQ/compass-rice/provenance"

confidence := provenance.Confidence(output.Claims) // rice.ConfidenceTier

3. Normalization

Look up the Normalizer for the resolved ProfileID and call Normalize. Consumers that need to resolve a ProfileID at runtime (from a stored assessment document, for instance) use the catalog package, which maps ProfileID to {Normalizer, unmarshal func} for all ten profiles:

import "github.com/ProductBuildersHQ/compass-rice/catalog"

entry, ok := catalog.Get(output.ProfileID)
if !ok {
    // unknown profile
}
normalized, err := entry.Normalizer.Normalize(output.Evidence)

// or, going straight from raw evidence JSON:
normalized, err := catalog.NormalizeJSON(output.ProfileID, evidenceJSON)

// or, from a full {"profileId": ..., "evidence": ...} document:
normalized, err := catalog.NormalizeDocument(documentJSON)

cmd/rice (this repo's own CLI) is a complete, tested example built on catalog.

If you already know the profile at compile time, skip the catalog and call the Normalizer directly:

normalized, err := (operationspkg.Normalizer{}).Normalize(evidence)

Normalize validates the evidence and returns an error for anything malformed — including a judged field missing its required rationale. Treat a validation error as "this assessment isn't ready," not as a score of zero.

4. Scoring and ranking

score, err := normalized.Score() // Reach × Impact × Confidence / Effort

Because every profile normalizes to the same rice.Normalized shape, opportunities from different profiles compare directly — sort by Score() across your whole portfolio. See examples/cross_profile_test.go for a worked, tested example ranking an Operational Efficiency, a Customer, and a Platform opportunity together, including the case where the highest-Reach opportunity does not win.

Presenting an assessment

Use render.Markdown(normalized) or render.Terminal(normalized, color) to show the full raw-evidence → band → score translation — never present the score alone (PRD D10). For dollar evidence, render.MarkdownEconomics(economics) renders a populated rice.Economics value. cmd/rice explain <file> is a working example of both.

Economics: supplemental, never scored

If an opportunity has dollar-denominated evidence, populate rice.Economics (savings, cost avoidance, payback, ROI, gross-margin contribution, cost of delay) and attach it to the opportunity alongside — but separate from — its Normalized assessment. Economics never contributes to Score(). Use Economics.TotalAnnualBenefit(), .ComputedPaybackMonths(), and .ComputedROIPct() rather than re-deriving these by hand, so the numbers stay internally consistent.

Calibration: closing the loop

After an initiative ships, record a rice.Outcome pairing the original prediction with the actual result:

outcome := rice.Outcome{
    ProfileID: operationspkg.ID,
    Predicted: predictedNormalized,
    Actual:    actualNormalized,
}
delta, err := outcome.ScoreDelta() // actual score − predicted score

Accumulate Outcomes per profile over time and use structured-evaluation's multijudge/irr packages to check whether Impact=High in one profile represents comparable organizational value to Impact=High in another (TRD T10). When a profile's band anchors or Impact rubric need revision based on that evidence, ship a new version (operations/v2, not a mutated operations/v1) — historical Outcomes stay reproducible under the version that scored them.

Non-Go consumers

Every evidence model and canonical type has a generated JSON Schema embedded in the schema package (schema.Read("operations-evidence"), etc. — see schema.Names for the full list). A spreadsheet, a different language's tooling, or an LLM evaluation pipeline that isn't Go can validate assessment documents against these without depending on this module. Regenerate with go run ./gen after any Go type change — never hand-edit a *.schema.json file.

Reproducibility

Every rice.Normalized carries the exact ProfileID (including version) that produced it. Re-running Normalize() on the same evidence under the same ProfileID always produces bit-identical output — rice.AssertDeterministic is the test helper every profile's own test suite uses to enforce this. Pin the ProfileID you scored with; don't assume "operations" always means the current operations/v1 behavior once an operations/v2 ships.