Repository navigation
Description
Summary
Umbrella for implementing the Workbench Internal Data API per claude/design/Apps/Workbench/10-internal-data-api.md.
The API is a Workbench-wide abstraction so panels never reprocess data on their own when it could be mutualized: parsing, caching, and aggregation live once on the server side; views are thin presentation layers over a documented contract.
Designed against the actual codebase after a full audit (see §4 Current state and §19 What changed from the initial draft in the design doc). Not aspirational — explicitly distinguishes:
- v1 — rationalisation of existing infrastructure (
IncrementalCacheBuilder,FileCacheSink,TickSummaryv11, 5 SSE streams, ProblemDetails, ADR-048 auth) into a typed-query API. No engine-side instrumentation needed. - v2 — capabilities gated on engine-side instrumentation (per-system / per-queue / post-tick per-tick records,
readyUscapture, RFC 07 declarations surfacing).
Scope
- One branch / one PR / one commit per sub-issue. Phases condensed to keep per-PR overhead bounded.
- Umbrella tracks the destination; each sub-issue is independently shippable and testable.
- Existing chunk endpoint (
/api/sessions/{id}/profiler/chunks/{idx}) and Web Worker chunk decoding are kept as-is. The new API is additive over the existing pipeline.
Sub-issues
v1 — ships without engine-side instrumentation
- [x] #307 Workbench: Data API foundations (versioning + topology + tick tracks + aggregations + lifecycle)
- [x] #308 Workbench: Data API SSE typed-event refactor + unified stream + selective subscription
- [x] #309 Workbench: Data API selection store + URL sync + panel migration
v2 — gated on engine-side instrumentation
- [x] #310 Workbench: Data API surface RFC 07 access declarations in topology
- [x] #311 Workbench: Data API per-system + per-queue + post-tick tracks (engine instrumentation)
- [x] #312 Workbench: Data API critical-path endpoint + Tier 2 aggregations
- [ ] #313 Workbench: Data API engine-reattach support
Recommended implementation order
End-to-end sequencing across this umbrella and the System DAG view umbrella (#314). Sequenced for dependency satisfaction and value-delivery cadence (first visible DAG view at step 5).
| # | Issue | What it ships |
|---|---|---|
| 1 | #307 | v1 Foundations (versioning + topology + tick tracks + aggregations + lifecycle) |
| 2 | #308 | v1 SSE typed-event refactor + unified stream + selective subscription |
| 3 | #309 | v1 Selection store + URL sync + panel migration — v1 complete |
| 4 | #310 | v2 RFC 07 access declarations in topology (closes #275 mvp) |
| 5 | #315 | DAG view Phase 1 — topology view (no stats) — first visible DAG view |
| 6 | #311 | v2 Per-system + per-queue + post-tick tracks (engine instrumentation) |
| 7 | #316 | DAG view Phase 2 — stats overlay |
| 8 | #312 | v2 Critical-path endpoint + Tier 2 aggregations |
| 9 | #317 | DAG view Phase 3 — critical-path tape — headline feature complete |
| 10 | #318 | DAG view Phase 4 — polish (search, lens toggles, log scale, metronome wait) |
| 11 | #313 | v2 Engine-reattach support (wb-dev cycle UX win, no functional dependency) |
Natural pause points if step-back assessment is wanted: after step 3 (v1 complete), step 5 (first visible DAG view), step 9 (headline feature complete).
Acceptance criteria
| Criterion | Status |
|---|---|
| Design doc committed and reviewed | DONE — see claude/design/Apps/Workbench/10-internal-data-api.md |
| All v1 sub-issues closed (#307, #308, #309) | pending |
| All v2 sub-issues closed (#310, #311, #312, #313) | pending |
| DAG view (#314) Phase 1 unblocked at end of v1 + #310 | pending |
| DAG view Phase 2 unblocked at end of #311 | pending |
| §19 What changed from the initial draft in the design doc removed once the destination matches | pending |
References
- Design doc:
claude/design/Apps/Workbench/10-internal-data-api.md - Workbench architecture:
claude/design/Apps/Workbench/02-architecture.md - DAG view (primary upcoming consumer):
claude/design/Apps/Workbench/Modules/09-system-dag.md— umbrella #314 - ADR-048 (auth):
claude/adr/048-workbench-two-tier-auth.md - ADR-049 (wire format versioning):
claude/adr/049-wire-format-in-profiler-library.md - RFC 07 (system access declarations, surfaced in Workbench: Data API surface RFC 07 access declarations in topology #310):
claude/design/Runtime/07-system-access-declarations.md
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Area
Activity
nockawa commentedon May 7, 2026
@claude\scratch\audit\comment-4393752611-new-body.txt
Workbench: Internal Data API + System DAG view (closes #306, #314) (#322