Repository navigation
Track→DAG hierarchy (#354) + Critical Path rework + scheduler fixes - #356
Merged
Merged
Conversation
- Track→DAG hierarchy (#354): runtime exposes Engine→Track→DAG→Phase→System; apps declare tracks via RuntimeSchedule.DeclareTrack; Fence migrated to a normal DAG on the Engine-Post track; flat RuntimeOptions.Phases/DefaultPhase removed. - Trace format: new TrackRecord/DagRecord tables + SystemDefinitionRecord.DagId; reader/writer/header updated. - Workbench DTOs/API: TopologyDto + ProfilerMetadataDto gain Tracks[]→Dags[] and SystemDefinitionDto.DagId; new TrackHierarchyProjection; orval regen. - System DAG panel: hierarchical Track→DAG→Phase grouping; "show engine systems" toggle (new useViewOptionsStore + Options DAG form); engine tracks hidden by default. - Critical Path panel: track-aware per-track traceback, track selector + Tracks band; timeline reworked to clip-and-pan (no horizontal scrollbar, wheel pans) instead of native scroll; worker-claim-wait hatch restricted to the CP track. - Scheduler readyUs fix: stamp a successor's ready time at predecessor completion, not mid-fan-out — corrects both OnSystemComplete and the single-threaded path; CP gating was mis-measured. - WriteTickFence: scope the profiler phase marker to the serial prep only, excluding the Fence DAG dispatch — stops double-counting Fence systems into writeTickFenceUs. - Spatial perf: per-cell scan cursor collapses cluster slot-claim from O(M²) to O(1) amortized; full-cluster scan reads non-dirty. - EcsQuery: pre-size the View entity-id set to its final count (one POH allocation instead of incremental resizes). - Workbench files UI: shared lib/formatters.ts; FileBrowser/RecentFiles show size + last-modified columns. - AntHill demo + engine test suite migrated to the Track/DAG API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #354 — the
Engine → Track → DAG → Phase → Systempartitioning hierarchy (W1–W6), plus Critical Path / scheduler fixes that landed alongside it.Track→DAG hierarchy (#354)
Engine → Track → DAG → Phase → System; apps declare tracks viaRuntimeSchedule.DeclareTrack. FlatRuntimeOptions.Phases/DefaultPhaseremoved.InternalScheduleBuilder/.Internal()retired).TrackRecord/DagRecordtables +SystemDefinitionRecord.DagId; reader/writer/header updated.TopologyDto+ProfilerMetadataDtogainTracks[] → Dags[]andSystemDefinitionDto.DagId; newTrackHierarchyProjection; orval regen.useViewOptionsStore+ Options DAG form); engine tracks hidden by default.Critical Path / scheduler fixes (same branch)
readyUsfix — stamp a successor's ready time at predecessor completion, not mid-fan-out; corrects bothOnSystemCompleteand the single-threaded path (CP gating was mis-measured).WriteTickFence— scope the profiler phase marker to the serial prep only, excluding the Fence DAG dispatch (was double-counting the Fence systems intowriteTickFenceUs).Other
EcsQuery: pre-size the View entity-id set to its final count.Docs (overview/13-runtime.md, ADR 052) are in the companion
typhon-claudePR.🤖 Generated with Claude Code