Repository navigation
Description
The Workbench stops being a viewer you open separately and becomes the companion to a database: it knows that database's profiling captures, bridges between what a capture recorded and what the database holds, and steps aside when you run your app.
Design docs:
claude/design/Apps/Workbench/10-database-and-profiles.md— the database + profiles design (decisions D-1…D-10, the correlation bridges, the drift analysis)claude/design/Apps/Workbench/11-cooperative-lock-handoff.md— the Workbench yielding the database lock
The experience
- Open
world.typhon— everything the Workbench does today. - A Profiles list appears, read from
{name}.typhon/profilings/and rendered from trace headers alone. - Open one — the session gains profiler capabilities: timeline, call tree, system DAG, query analyzer, data flow.
- Bridges light up between what the capture recorded and what the database holds.
- Run your app — the Workbench releases the database, and resumes when the app exits.
Why it holds together
Three engine properties make the correlation safe, and it would have been unshippable if any one were false:
| Property | Consequence |
|---|---|
EntityId is monotonic and never recycled, routing id persisted |
An entity named in a 6-month-old capture still names that entity, or nothing. Never the wrong one. |
TSN is globally monotonic and durable across restarts |
Drift is measurable in transactions, not guessed. |
SchemaHistoryR1 is a timestamped schema-change audit trail |
Drift is itemisable per component, not merely detectable. |
Guiding principle throughout: identity is carried by structure (where a file lives, what a file records) rather than reconstructed by inference. And where a guarantee cannot be met, fail to a weaker guarantee, never to a plausible wrong one.
Features
Artefact self-description — engine-side, do first
- F1 — Self-describing trace captures #614 — F1 · Self-describing trace captures (one trace-format revision covering D-2, D-3, D-5, D-9)
- F2 — Schema-history rename records #615 — F2 · Schema-history rename records ⏰ time-sensitive — the evidence is destroyed once
PreviousNameattributes are dropped - F3 — Traces live with the database:
profilings/+ retention #616 — F3 · Traces live with the database:profilings/+ retention
The experience
- F4 — Profiles as a session sub-resource #617 — F4 · Profiles as a session sub-resource (enables F5–F7)
- F5 — Structural correlation bridges #618 — F5 · Structural correlation bridges (the value: systems ↔ components, query → index, drift readout)
- F6 — Physical lens: performance → storage #619 — F6 · Physical lens: performance → storage
- F7 — Entity lens: spawn/destroy cohorts #620 — F7 · Entity lens: spawn/destroy cohorts
Independent
- F8 — Cooperative lock handoff (pause / resume) #621 — F8 · Cooperative lock handoff (pause / resume) (what makes the Workbench dev-loop-viable)
- F9 — Machine-local database registry #622 — F9 · Machine-local database registry
Dependencies: F5–F7 require F4. F5/F6 are better with F1 but degrade gracefully to name-joins without it. F8 and F9 are independent of the profiles chain.
Status (2026-08-15) — DONE, merged in PR #810. All nine features are implemented and on
main. What shipped and every deviation is recorded in §1.1–§1.9 of the two design docs.F8 grew two additions beyond its original scope, both approved during implementation and recorded in the design: open-into-paused (a database already held by another process opens as a Paused session rather than failing), and the entry-mode subtraction — the Workbench now has exactly two ways in, Open database and Attach, with the standalone trace-session type deleted so a capture is only ever reachable through its database.
The merge also carried four engine fixes the work uncovered: the WAL resting footprint (#784) and the drain-overrun rule WR-03 (#785), the two remaining crash-recovery / advisory-lock defects in #767, and a retention bug that could delete a capture the Workbench had open on every platform except Windows — where
File.Deletefailing was the entire mechanism enforcing the opposite.One follow-up is open: #811.
DatabasePauseTestsis quarantined from the merge gate because it wedges the c6id runner and passes everywhere else, including four consecutive full-suite runs on Linux under WSL2. That removes server-side F8 coverage from the gate until it is understood; the nightly still runs it.
Out of scope (recorded blockers)
- B1 — a live engine's database cannot be opened at all (
db.lock+FileShare.Read). Post-mortem only, unless a read-only open mode is ever built. - B2 — no historical read: MVCC reclaims old versions, so "data as it was at tick N" is not recoverable from these artefacts.
- B3 — two Open sessions are blocked by the process-global
ArchetypeRegistry. - Remote / multi-user Workbench — parked. The real gate is a read-only open mode, not auth: two Workbench processes cannot share a database because of the engine's exclusive lock, and a running app blocks everyone (B1). That one capability would unlock B1, N concurrent readers, and make F8 unnecessary — which is why it keeps surfacing as the answer.
Activity
profilings/+ retention #616#614 #615 A profiling capture could not say which database it came fr…
#613 #621 The Workbench becomes a database companion, and yields the …