Repository navigation
Description
Summary
Add two new dockable Workbench panels — Data Flow Timeline (Marey-style: data tracks on Y, tick time on X, system runs as colored bars) and Access Matrix (system × data heatmap) — plus the engine/wire instrumentation that feeds them. Sibling to the System DAG (data-first vs. scheduler-first); both panels ship and cross-link.
Full design with locked decisions (12), 5 granularity levels (L0 Domain → L4 Archetype × component), 3 X-axis modes, uPlot timeline-discrete renderer + CSS Grid for the matrix, hover-to-isolate UX:
📄 claude/design/Apps/Workbench/Modules/14-data-flow.md
Why
Today the Workbench shows what runs (System DAG) but not what happens to the data. Engineers debugging "where is my tick spending time on this data?" or "is this archetype the bottleneck?" have no view of it. RFC 07 access declarations and per-tick tier-cluster info already exist on the engine side — Phase A surfaces the missing per-(system, archetype) cross-dimension and feeds it through the AggregationService track surface that shipped in #322.
Phases
- Phase A — Engine + wire (server)
ArchetypeAttribute.Alias(optional), new[ComponentFamily]attribute +ComponentFamilyResolver- New
SchedulerSystemArchetypeEvent { SystemIndex, ArchetypeId, EntityCount, ChunkCount }emitted at system completion via[ThreadStatic]accumulator (mirroringDormancyReporterpattern) TelemetryConfig.SchedulerArchetypeTouchesActivegate (default true, JIT dead-code-elim when off)- Extend
ArchetypeDtoin place withLabel,SchemaRevision,ComponentTypeNames[]; addComponentFamiliestoTopologyDto - Register new track families in
AggregationService:archetype/<label>,system-archetype/<sys>/<arch>,component-family/<name> - Orval regen
- Phase B — Data Flow Timeline panel (uPlot, 5 granularity levels, 3 X modes, 3 aggregation modes — replay/p5–p95 envelope/density heatmap, phase header strip with click-cycle collapse + D10 auto-collapse <5%, hatched per-row gap waits + phase-fence waits, wheel-zoom + middle-click reset + F-fit, hover-to-isolate, inline bar labels, bar tooltip with §11.3 contract content)
- Phase C — Access Matrix panel (virtualized CSS Grid + TanStack Virtual, sortable, sticky phase headers)
- Phase D — Cross-panel linking (selection store extensions for
dataTrack,phase,hoveredSystemTickKey; SystemDag highlights fordataTrack/phase; liftedgatingAnalysisto@/lib/dag/+ shareduseGatingStore) - Phase D follow-up — Playwright bar-click + hover —
data-flow.spec.tscases for "click a bar → System DAG node selects" and "hover a bar → Access Matrix column brightens" are stilltest.fixme()'d. Needs an AntHill recording with archetype touches (theProfilerSetupthin-record fix that shipped in this PR is the prerequisite)
Re-scope notes (since the design was drafted)
The design predates #322 (Internal Data API + System DAG view) and #326 (static schema export). Phase A re-scopes around what shipped:
/topologyalready returns richTopologyDto { Systems, Archetypes, ComponentTypes, Phases }— extendsArchetypeDtoin place rather than adding a parallelArchetypeRecordDto/data/tracks+/data/track/{id}+/data/aggregate(POST) ship Tier 1/2 aggregation operators — Phase A adds new track families instead of a standalone/profiler/system-archetype-touchesendpointIStaticSchemaProvider(Live + Trace) already exposes archetype + component schema — provider implementations get extended for the newArchetypeDtofields[ComponentFamily]resolution: heuristic-only on Trace sessions in v1 (attribute overrides require Open session or re-record); no v7→v8 trace format bump
Related Documents
- Design: claude/design/Apps/Workbench/Modules/14-data-flow.md
- Sibling: claude/design/Apps/Workbench/Modules/09-system-dag.md
- RFC 07 access declarations: claude/design/Runtime/07-system-access-declarations.md
- Predecessor PRs: Workbench: Internal Data API + System DAG view (closes #306, #314) #322 (data API), Workbench: System DAG enhancements + static schema export + opportunistic improvements (closes #325) #326 (static schema)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Area
Activity
Workbench Data Flow module — Marey timeline + Access Matrix (closes #327