cambium ▸ docs/reality-check/02-remediation-plan.md
updated 2026-03-22

Cambium Remediation Plan

Date: 2026-03-22

Purpose

This document translates the reality check into concrete work.

The goal is not to add aspirational scope. The goal is to make Cambium’s existing claims literally true, close the highest-risk gaps, and give the project a credible path from demo-ready to production-ready.

Guiding Principle

Prioritize truth over surface area.

That means:

Remediation Goals

  1. Restore clean repo verification.
  2. Complete the durable-state story for critical subsystem data.
  3. Eliminate hardcoded or implicit workspace scoping in API handlers.
  4. Add tooling that enforces architectural claims.
  5. Establish a clear production-readiness baseline for Loom and the platform.

Priority Framework

P0

The project is currently making a strong claim that is false or unverifiable.

P1

The system works, but a restart, deployment, or operational incident would expose a structural weakness.

P2

The system is usable, but confidence is limited by missing enforcement, coverage, or operational ergonomics.

P3

Valuable follow-up hardening after the major truth gaps are closed.

Workstreams

Workstream 1: Restore Verification Integrity

Priority: P0

Problem

The repo fails pnpm turbo typecheck, so the project cannot currently claim clean repo-wide TypeScript verification.

Required changes

Acceptance criteria

Likely implementation steps

Workstream 2: Finish Critical Persistence

Priority: P0

Problem

Cambium states that important state should not be memory-only and that PostgreSQL backs durable state. This is not yet true across several important stores.

Required changes

Acceptance criteria

Specific deliverables

2.1 Quorum policies

Relevant files:

2.2 Budgets

Relevant file:

2.3 Audit

Relevant file:

2.4 Cortex intents

Relevant file:

2.5 Lifecycle durability

Relevant file:

Workstream 3: Fix Auth Context and Workspace Scoping

Priority: P0

Problem

The app has API authentication, but workspace context is not consistently derived from authenticated request context. Some routes still hardcode workspace values.

Required changes

Acceptance criteria

Relevant file

Workstream 4: Enforce Architectural Claims in Tooling

Priority: P1

Problem

Several project rules are currently conventions rather than enforceable guarantees.

Required changes

Acceptance criteria

Candidate tools

Workstream 5: Establish E2E Confidence for Loom

Priority: P1

Problem

Loom builds and has a middleware unit test, but there is no visible browser-level end-to-end coverage.

Required changes

Acceptance criteria

Workstream 6: Harden Production Mode

Priority: P1

Problem

The app can build and run, but production-mode operational assumptions are still loose.

Required changes

Acceptance criteria

Workstream 7: Rationalize OAuth and Auth Operations

Priority: P2

Problem

OAuth support exists, but the operational path is still easy to misconfigure and still coexists with a stub implementation.

Required changes

Acceptance criteria

Workstream 8: Clarify V1 Scope Boundaries

Priority: P2

Problem

Some subsystems are intentionally V1-limited, but the current docs and code can blur the line between “not yet built” and “deliberately deferred.”

Required changes

Current examples

Acceptance criteria

Phase 1: Make the repo truthful

  1. Fix Loom typecheck and CI verification.
  2. Add Quorum policy persistence.
  3. Add budget persistence.
  4. Add audit persistence.

Phase 2: Make the runtime durable

  1. Add Cortex intent persistence.
  2. Add lifecycle persistence.
  3. Remove process-memory reliance for critical production state.

Phase 3: Make the app operationally coherent

  1. Thread workspace/auth context through API routes.
  2. Add production-mode configuration guards.
  3. Harden OAuth operations.

Phase 4: Make the claims enforceable

  1. Add boundary and dependency tooling.
  2. Add Loom E2E coverage.
  3. Update docs to match reality.

Definition of “Production-Ready Enough”

Cambium should be considered ready for a serious production pilot when all of the following are true:

What Not To Do Yet

Until the P0 and core P1 work is done, avoid prioritizing:

The maturity bottleneck is not ideation. It is truth, durability, and enforcement.

Suggested Immediate Next Tasks

The next concrete execution plan should start with these items, in order:

  1. Fix @cambium/loom typecheck so the monorepo verifies cleanly.
  2. Implement persistent Quorum policies.
  3. Implement persistent budgets.
  4. Implement persistent audit storage.
  5. Remove hardcoded workspace assumptions from API routes.

If these are complete, the project’s public claims become materially more trustworthy without changing its product direction.