Skip to content

Workbench: Internal Data API (umbrella) #306

Closed

Description

@nockawa

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, TickSummary v11, 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, readyUs capture, 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

Activity

  1. self-assigned this
    on May 6, 2026
  2. added
    refactoring
    on May 6, 2026
  3. moved this to Ready in Typhon devon May 6, 2026
  4. moved this from Ready to In Progress in Typhon devon May 6, 2026
  5. nockawa commented on May 7, 2026

    @nockawa
    CollaboratorAuthor

    @claude\scratch\audit\comment-4393752611-new-body.txt

  6. moved this from In Progress to Done in Typhon devon May 7, 2026
  7. added a commit that references this issue on May 7, 2026
    af67b4f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

refactoring

Type

No type

Fields

Priority

None yet

Area

Workbench

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions