core/docs/workbench
Shay 7ead395eeb feat(workbench): Lived Life surface — the always-on heartbeat made felt (read-only, persist-first)
The L10 heartbeat (chat/always_on, #747) holds CORE alive over uptime but had no
surface. This adds the read-only Lived Life route that renders the continuous-life
evidence: the heartbeat over uptime + the resume-as-same-life verdict — both halves
of "one continuous life" on one surface.

Persist-first, never recompute engine-owned values:
- chat/always_on: serialize_report + write_lived_life persist a run deterministically
  (sorted keys) to engine_state/lived_life.json; run_continuous gains an opt-in
  report_path so a real continuous-life run leaves its evidence where the workbench
  reads it. closure_ceiling is persisted so the artifact is self-describing.
- workbench/lived_life.py: projection + a fail-closed validate() gate — the wrong=0
  analogue for the continuity surface: closure_held/closure_observed/totals/converged
  are each re-checked against the per-beat measurements, and resume_status is re-checked
  against identity-vs-current-substrate, so a tampered artifact RAISES rather than
  rendering a false claim (a beat lying about a breached ceiling, an inflated closure,
  a miscounted total, a falsely-claimed resume).
- workbench/readers.lived_life(): reads the artifact, computes the resume verdict from
  the persisted identity vs the canonical engine_identity_for_config (fail-soft ->
  "unknown", like IdentityContinuity). Honest absence when no run has been persisted.
- GET /lived-life + LivedLife/LivedLifeHeartbeat schemas (snapshot regenerated; the
  schema-drift gate proves every field is mirrored in src/types/api.ts).

The resume verdict made felt: would_resume / substrate_changed / unknown IS the L11
reboot guarantee (a reboot recomputes identity and refuses if it differs) — so the
surface shows this life wakes up as ITSELF, not a copy. The per-reboot lineage chain
stays owned by Runs > Identity (honest cross-link).

Frontend: /lived-life route (Evidence section, route count 15 -> 16). Renders the
headline (heartbeats, closure-held-by-construction, learned-while-idle, at-rest, resume
pill), the summary, the heartbeat timeline (closure flat below the ceiling — read, never
repaired), and the resume verdict. Honest absence + ADR-0162 route conformance
(loading/error/empty), fail-closed like Vault/Calibration.

Tests (non-vacuous): 12 backend (every tamper case raises; resume tracks identity vs
substrate; run_continuous(report_path) round-trips a readable+valid artifact) + 4
frontend render tests (recorded life renders; a breached beat shows the warning, never a
false "held"; a changed substrate shows would-refuse, never a false resume; absent shows
honest absence). All workbench Python (167) + affected vitest (167) + tsc + vite build
green; architectural invariants green.

engine_state/lived_life.json is runtime state (gitignored, ADR-0146 pattern).
2026-06-14 16:45:03 -07:00
..
acceptance-gates.md docs(workbench): reconcile mutation doctrine with admitted corridors 2026-06-12 06:50:26 -07:00
api-contract-v1.md feat(workbench): Wave M Phase C legibility — pipeline record, contemplation, identity continuity 2026-06-13 15:44:31 -07:00
b4-leeway-feasibility-gate.md feat(b4): engine-side leeway producer — populate LeewayEvidence (Wave M B4) 2026-06-13 20:22:39 -07:00
b4-leeway-producer-scope-2026-06-13.md docs(workbench): scope B4 leeway producer — engine-side seam + honest mapping 2026-06-13 20:02:03 -07:00
core-logos-studio-plan.md docs: add read-only core-logos studio dispatch brief 2026-06-14 10:47:57 -07:00
core-workbench-v1-blueprint.md docs(workbench): CORE Workbench v1 planning architecture (ADR-0160) 2026-05-26 08:22:38 -07:00
data-shapes-v1.md feat(workbench): Wave M D1+D2 — guided determinism tour (provider-agnostic) 2026-06-13 19:39:41 -07:00
design-system.md feat(workbench-ui): design system v1 scaffold (ADR-0162 Branch 1) (#295) 2026-05-26 11:33:27 -07:00
EVALUATOR.md docs(workbench): evaluator quickstart + README route-count fix (CORE-Logos) 2026-06-14 13:45:24 -07:00
implementation-plan.md docs(workbench): reconcile mutation doctrine with admitted corridors 2026-06-12 06:50:26 -07:00
phase-a-residue-ledger.md feat(b4): engine-side leeway producer — populate LeewayEvidence (Wave M B4) 2026-06-13 20:22:39 -07:00
proposal-artifact-substrate-v1.md docs(workbench): define proposal artifact substrate v1 2026-06-13 03:38:06 -07:00
README.md docs(workbench): refresh READMEs to shipped reality (index + surfaces) 2026-06-13 20:37:29 -07:00
ui-component-map.md docs(workbench): CORE Workbench v1 planning architecture (ADR-0160) 2026-05-26 08:22:38 -07:00
UI-UX-GUIDE.md feat(workbench): Lived Life surface — the always-on heartbeat made felt (read-only, persist-first) 2026-06-14 16:45:03 -07:00
wave-1-evidence-spine.md docs(workbench): Wave R mastery revamp plan + R0/R1 dispatch brief pack 2026-06-12 10:02:46 -07:00
wave-m-consolidation-b3.5.md docs(workbench): strengthen B3.5 D2 to runner-reproducibility; record C1-a persistence-first constraint 2026-06-13 07:20:23 -07:00
wave-M-worthiness.md feat(workbench): Wave M D1+D2 — guided determinism tour (provider-agnostic) 2026-06-13 19:39:41 -07:00
wave-R-mastery-revamp.md docs(workbench): R0a CI path filter includes the workflow file itself 2026-06-12 10:29:29 -07:00

CORE Workbench v1

CORE Workbench is the first dedicated operator/auditor UI for CORE.

It is intentionally designed as:

  • a cognition observatory,
  • replay debugger,
  • proposal review workstation,
  • deterministic eval console,
  • and audit surface.

It is NOT intended to be a generic chatbot shell.


Document Index

Doctrine

  • ../decisions/ADR-0160-core-workbench-v1.md

Defines:

  • product doctrine
  • trust boundaries
  • architecture direction
  • module scope
  • acceptance criteria

UX Blueprint

  • core-workbench-v1-blueprint.md

Defines:

  • visual philosophy
  • interaction model
  • module behavior
  • navigation
  • replay/proposal/eval UX

Implementation Plan

  • implementation-plan.md

Defines:

  • W-026 through W-031
  • phase sequencing
  • backend/frontend constraints
  • release criteria

API Contract

  • api-contract-v1.md

Defines:

  • read-only endpoint surface
  • request/response envelopes
  • mutation boundaries
  • runtime/trace/proposal/eval/replay routes

Data Shapes

  • data-shapes-v1.md

Defines:

  • typed UI-facing shapes
  • proposal structures
  • replay structures
  • artifact references
  • trust badges

Proposal Artifact Substrate

  • proposal-artifact-substrate-v1.md

Defines:

  • the universal proposal artifact envelope
  • subject-specific proposal adapters
  • proposal-only vs ratification-enabled capability levels
  • safety, validation, affected-artifact, and checksum-impact report shapes
  • the migration path for math, cognition, CORE-Logos, packs, and future modalities

Wave M Consolidation / B3.5

  • wave-m-consolidation-b3.5.md

Defines:

  • the route-registry unification plan
  • calibration as a first-class evidence subject
  • the B4 leeway-feasibility gate
  • the UI/UX guide requirement
  • the Phase A residue ledger before further complexity

Supporting B3.5 deliverables:

  • UI-UX-GUIDE.md — operator/evaluator route map, evidence grammar, route proofs, boundaries, and absences.
  • b4-leeway-feasibility-gate.md — B4 source-tuple audit and B4a nullable read model (gate CLEARED 2026-06-13; the producer now exists).
  • b4-leeway-producer-scope-2026-06-13.md — the engine-side leeway producer scope: the serving-path seam, the LicenseDecisionLeewayEvidence mapping, and the two honest layers (STRICT / earned-APPROXIMATE).
  • phase-a-residue-ledger.md — implemented/deferred/blocked residue.

Mastery & Worthiness Waves (1 / R / M)

The plans that took the surface from read-only spine to "worthy of the deterministic engine":

  • wave-1-evidence-spine.md — the evidence-address model (URL = subject), Evidence Chain Rail, and RightInspector.
  • wave-R-mastery-revamp.md — the 11 real routes, the Replay Moment, trace integrity, and the DAG/Demo/wrong=0 surfaces.
  • wave-M-worthiness.md — the governing plan for the worthiness arc: Phase B (calibrated-learning / serving discipline), Phase C (cognition legibility), Phase D (guided tour + shareable evidence bundles), Phase E (robustness). Per-deliverable implementation notes live inline.

Design System

  • design-system.md — semantic token roles, density, primitives, and the motion / calm-honesty discipline.

CORE-Logos Studio

  • core-logos-studio-plan.md

Defines:

  • the /logos Studio route concept
  • pack identity, lexicon, glosses, morphology, alignment, holonomy, safety, and patch-forge tabs
  • CORE-Logos evidence subjects
  • read-only readers and proposal-only draft endpoint direction
  • the handler-family admission sequence for future ratification

UI Component Map

  • ui-component-map.md

Defines:

  • page layout
  • navigation structure
  • shared components
  • trace drawer structure
  • proposal/eval/replay modules

Acceptance Gates

  • acceptance-gates.md

Defines:

  • implementation gates
  • red flags
  • release conditions
  • mutation restrictions

Core Principles

Replay before persuasion

The UI should make replay evidence more important than aesthetic persuasion.

Calm by default

The interface should remain quiet and precise.

Progressive disclosure

The system should become more transparent the deeper an operator inspects.

Proposal is not ratification

The UI must preserve ADR-0057 review doctrine.

Read-only first

The first workbench phases prioritize visibility and auditability before any mutation capability.


Current Status (2026-06-13)

The Workbench is shipped and well past the W-026…W-031 planning era. The read-only local API + React UI are real; W-026 (read-only API) through W-031 (replay theater) all landed, followed by the Wave 1 evidence spine, the Wave R mastery revamp (11 routes + the Replay Moment), and the Wave M worthiness arc.

Wave M is complete — Phase B (calibrated-learning surfaces), Phase C (cognition legibility), Phase D (guided tour + evidence bundles), and the B4 leeway producer all merged. Phase E (robustness; continuous) and the parallel tracks (CORE-Logos Studio, the universal proposal envelope) remain.

Doctrine is unchanged: read-only first, allowlisted execution only (/evals/run, ratify, /demos/{id}/run), every surface a real backend reader (no theater), determinism over persuasion.

Shipped surfaces

14 registry-driven routes (src/app/routes.ts), grouped by section:

Section Routes
Converse Chat
Cognition Trace (Pipeline / Field / Bundle / Surfaces / Grounding / Verdicts tabs), Contemplation (staged learning loop)
Determinism Tour (guided determinism narrative), Replay (hash-to-hash), Demos (Demo Theater)
Evidence Proposals (+ HITL ratification), Runs (+ identity continuity), Vault, Audit
Discipline Evals (wrong=0 ledger), Calibration (gold-tether arena, Wilson floor vs θ)
Substrate Packs
Settings Settings (landing / density / inspector prefs)

Cross-cutting: Evidence Address (URL = subject, ?inspect=), Evidence Chain Rail, command palette + registry-driven keyboard help, per-turn pipeline / field / leeway / bundle evidence, doctrine gates (hexScan, schemaDrift, enumCoverage, route conformance, golden-file DAG layout).


W-026 Local Runbook

Start the read-only local API:

core workbench api

Verify liveness:

curl http://127.0.0.1:8765/health

Inspect each W-026 endpoint family:

curl http://127.0.0.1:8765/runtime/status
curl http://127.0.0.1:8765/artifacts
curl http://127.0.0.1:8765/artifacts/evals/contemplation_quality/contract.md
curl http://127.0.0.1:8765/proposals
curl http://127.0.0.1:8765/evals
curl http://127.0.0.1:8765/evals/contemplation_quality
curl -X POST http://127.0.0.1:8765/evals/run \
  -H 'Content-Type: application/json' \
  -d '{"lane":"contemplation_quality","version":"v1","split":"public"}'

Bind to a different local port:

core workbench api --port 9000

Non-local binds require an explicit operator flag:

core workbench api --host 0.0.0.0 --allow-nonlocal-bind

Initial Work Queue (delivered)

The original W-026…W-031 queue is complete; it is kept here as provenance. Current work is tracked in the Wave M worthiness plan and the residue ledger.

Work Item Goal Status
W-026 Read-only API done
W-027 Frontend shell done
W-028 Chat + trace drawer done
W-029 Proposal queue done
W-030 Eval center done
W-031 Replay theater done

Guiding Question

The correct operator reaction to the workbench should be:

“Wait… I can actually inspect and replay the cognition.”

not:

“Cool chatbot.”