Skip to content

Workbench Data Flow module — Marey-style timeline + Access Matrix #327

Closed

Description

@nockawa

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 (mirroring DormancyReporter pattern)
    • TelemetryConfig.SchedulerArchetypeTouchesActive gate (default true, JIT dead-code-elim when off)
    • Extend ArchetypeDto in place with Label, SchemaRevision, ComponentTypeNames[]; add ComponentFamilies to TopologyDto
    • 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 for dataTrack/phase; lifted gatingAnalysis to @/lib/dag/ + shared useGatingStore)
  • Phase D follow-up — Playwright bar-click + hover — data-flow.spec.ts cases for "click a bar → System DAG node selects" and "hover a bar → Access Matrix column brightens" are still test.fixme()'d. Needs an AntHill recording with archetype touches (the ProfilerSetup thin-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:

  • /topology already returns rich TopologyDto { Systems, Archetypes, ComponentTypes, Phases } — extends ArchetypeDto in place rather than adding a parallel ArchetypeRecordDto
  • /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-touches endpoint
  • IStaticSchemaProvider (Live + Trace) already exposes archetype + component schema — provider implementations get extended for the new ArchetypeDto fields
  • [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

Activity

  1. self-assigned this
    on May 8, 2026
  2. moved this to In Progress in Typhon devon May 8, 2026
  3. added a commit that references this issue on May 10, 2026
    7741eef
  4. moved this from In Progress to Done in Typhon devon May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

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