Skip to content

Commit d545dcc

Browse files
committed
Add deterministic lane snapshots and execution-graph reuse to reduce repeated targeted-lane rebuild and dependency traversal overhead - PR_26146_037-deterministic-lane-snapshots-and-graph-reuse
1 parent dabc08b commit d545dcc

27 files changed

Lines changed: 1368 additions & 38 deletions

docs/dev/reports/dependency_gating_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dependency Gating Report
22

3-
Generated: 2026-05-26T20:35:58.938Z
3+
Generated: 2026-05-26T20:47:41.392Z
44
Status: PASS
55

66
## Gate Order

docs/dev/reports/dependency_hydration_reuse_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dependency Hydration Reuse Report
22

3-
Generated: 2026-05-26T20:35:58.939Z
3+
Generated: 2026-05-26T20:47:41.393Z
44
Status: PASS
55

66
## Summary
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Execution Graph Reuse Report
2+
3+
Generated: 2026-05-26T20:47:41.393Z
4+
Status: PASS
5+
6+
## Summary
7+
8+
Reused execution graphs: 4
9+
Prevented graph rebuilds: 4
10+
Prevented redundant dependency traversal: 4
11+
Prevented fixture/helper graph assembly: 17
12+
Prevented manifest traversal: 4
13+
Prevented targeted scheduling work: 4
14+
15+
## Execution Graph Decisions
16+
17+
| Lane | Status | Snapshot Status | Execution Graph Hash | Reason |
18+
| --- | --- | --- | --- | --- |
19+
| tool-runtime | REUSED | REUSED | efa4203683589f08 | Lane snapshot is part of the selected targeted execution graph. |
20+
| game-runtime | REUSED | REUSED | 9bc2253407c5b3be | Lane snapshot is part of the selected targeted execution graph. |
21+
| integration | REUSED | REUSED | c6571bb72b5f91c9 | Lane snapshot is part of the selected targeted execution graph. |
22+
| engine-src | REUSED | REUSED | ec4e15969f9cbbcb | Lane snapshot is part of the selected targeted execution graph. |
23+
24+
## Safeguards
25+
26+
- Execution graph reuse is allowed only when the lane snapshot hash remains valid.
27+
- Stale graph snapshots are invalidated before runtime scheduling.
28+
- Deterministic invalidation does not fall back to broad lane regeneration.
29+
- Reused execution graphs keep targeted lane scope and do not start Workspace/global lanes unless selected.
30+
31+
## Runtime Savings Observations
32+
33+
- Reused snapshots reduce repeated lane graph construction.
34+
- Reused snapshots reduce repeated manifest, helper, fixture, and dependency traversal.
35+
- Reused snapshots reduce repeated targeted scheduling work before Playwright/browser startup.

docs/dev/reports/failure_fingerprint_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Failure Fingerprint Report
22

3-
Generated: 2026-05-26T20:38:01.099Z
3+
Generated: 2026-05-26T20:49:40.108Z
44
Status: WARN
55

66
## Summary

docs/dev/reports/filesystem_scan_reduction_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Filesystem Scan Reduction Report
22

3-
Generated: 2026-05-26T20:35:58.913Z
3+
Generated: 2026-05-26T20:47:41.366Z
44
Status: PASS
55

66
## Scan Enforcement

docs/dev/reports/incremental_validation_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Incremental Validation Report
22

3-
Generated: 2026-05-26T20:35:58.941Z
3+
Generated: 2026-05-26T20:47:41.394Z
44
Status: PASS
55

66
## Reuse Summary

docs/dev/reports/lane_compilation_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lane Compilation Report
22

3-
Generated: 2026-05-26T20:35:58.938Z
3+
Generated: 2026-05-26T20:47:41.391Z
44
Status: PASS
55

66
## Lane Graph

docs/dev/reports/lane_deduplication_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lane Deduplication Report
22

3-
Generated: 2026-05-26T20:35:58.938Z
3+
Generated: 2026-05-26T20:47:41.392Z
44
Status: PASS
55

66
## Summary

docs/dev/reports/lane_input_validation_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lane Input Validation Report
22

3-
Generated: 2026-05-26T20:35:58.941Z
3+
Generated: 2026-05-26T20:47:41.394Z
44
Status: PASS
55

66
## Input Files

docs/dev/reports/lane_runtime_optimization_report.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Lane Runtime Optimization Report
22

3-
Generated: 2026-05-26T20:35:58.939Z
3+
Generated: 2026-05-26T20:47:41.392Z
44
Status: PASS
55

66
## Runtime Cost Summary
77

88
Reused runtime sessions: 3
9+
Reused lane snapshots: 4
910
Reused warm-start lanes: 4
1011
Reused dependency hydration: 4
12+
Prevented graph rebuilds: 4
1113
Prevented redundant initialization: 4
1214
Prevented redundant browser launches: 4
1315
Prevented redundant lane execution: 2
@@ -27,16 +29,17 @@ No zero-browser, compilation, or dependency blockers were found.
2729

2830
## Lane Plans
2931

30-
| Lane | Warm Start | Hydration | Baseline Browser Launches | Scheduled Browser Launches | Commands | Reason |
31-
| --- | --- | --- | --- | --- | --- | --- |
32-
| tool-runtime | REUSED | REUSED | 3 | 2 | C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/tools/AssetManagerV2.spec.mjs --grep "launch guard|temporary UAT context|rejects non-Workspace" --project=playwright --workers=1 --reporter=list; C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/tools/PreviewGeneratorV2Baseline.spec.mjs tests/playwright/tools/CollisionInspectorV2.spec.mjs --project=playwright --workers=1 --reporter=list | Tool runtime lane validates focused tool behavior without treating unrelated stale product assertions as blockers. |
33-
| game-runtime | REUSED | REUSED | 4 | 1 | C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/games/AsteroidsBackgroundAssetResolution.spec.mjs tests/playwright/games/AsteroidsBeatTiming.spec.mjs tests/playwright/games/AsteroidsGameSceneCleanup.spec.mjs tests/playwright/games/AsteroidsShipStateVisuals.spec.mjs --project=playwright --workers=1 --reporter=list | Game runtime lane validates explicit game-owned Playwright behavior only. |
34-
| integration | REUSED | REUSED | 1 | 1 | C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/integration/GameIndexPreviewManifestResolution.spec.mjs --grep Pong --project=playwright --workers=1 --reporter=list | Integration lane validates explicit cross-surface handoffs only; broad all-game thumbnail coverage is outside the default targeted lane. |
35-
| engine-src | REUSED | REUSED | 0 | 0 | C:\nvm4w\nodejs\node.exe scripts/run-node-test-files.mjs tests/core/EngineCoreBoundaryBaseline.test.mjs tests/core/FrameClock.test.mjs tests/core/FixedTicker.test.mjs tests/assets/AssetLoaderSystem.test.mjs tests/audio/AudioService.test.mjs tests/input/InputMap.test.mjs tests/input/KeyboardState.test.mjs tests/input/MouseState.test.mjs tests/input/GamepadInputAdapter.test.mjs tests/input/GamepadHapticsService.test.mjs tests/render/Renderer.test.mjs | Engine/src lane validates reusable runtime surfaces through targeted node tests. |
32+
| Lane | Snapshot | Warm Start | Hydration | Baseline Browser Launches | Scheduled Browser Launches | Commands | Reason |
33+
| --- | --- | --- | --- | --- | --- | --- | --- |
34+
| tool-runtime | REUSED | REUSED | REUSED | 3 | 2 | C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/tools/AssetManagerV2.spec.mjs --grep "launch guard|temporary UAT context|rejects non-Workspace" --project=playwright --workers=1 --reporter=list; C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/tools/PreviewGeneratorV2Baseline.spec.mjs tests/playwright/tools/CollisionInspectorV2.spec.mjs --project=playwright --workers=1 --reporter=list | Tool runtime lane validates focused tool behavior without treating unrelated stale product assertions as blockers. |
35+
| game-runtime | REUSED | REUSED | REUSED | 4 | 1 | C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/games/AsteroidsBackgroundAssetResolution.spec.mjs tests/playwright/games/AsteroidsBeatTiming.spec.mjs tests/playwright/games/AsteroidsGameSceneCleanup.spec.mjs tests/playwright/games/AsteroidsShipStateVisuals.spec.mjs --project=playwright --workers=1 --reporter=list | Game runtime lane validates explicit game-owned Playwright behavior only. |
36+
| integration | REUSED | REUSED | REUSED | 1 | 1 | C:\nvm4w\nodejs\node.exe C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming\node_modules\@playwright\test\cli.js test tests/playwright/integration/GameIndexPreviewManifestResolution.spec.mjs --grep Pong --project=playwright --workers=1 --reporter=list | Integration lane validates explicit cross-surface handoffs only; broad all-game thumbnail coverage is outside the default targeted lane. |
37+
| engine-src | REUSED | REUSED | REUSED | 0 | 0 | C:\nvm4w\nodejs\node.exe scripts/run-node-test-files.mjs tests/core/EngineCoreBoundaryBaseline.test.mjs tests/core/FrameClock.test.mjs tests/core/FixedTicker.test.mjs tests/assets/AssetLoaderSystem.test.mjs tests/audio/AudioService.test.mjs tests/input/InputMap.test.mjs tests/input/KeyboardState.test.mjs tests/input/MouseState.test.mjs tests/input/GamepadInputAdapter.test.mjs tests/input/GamepadHapticsService.test.mjs tests/render/Renderer.test.mjs | Engine/src lane validates reusable runtime surfaces through targeted node tests. |
3638

3739
## Runtime Savings Observations
3840

3941
- Zero-browser preflight, lane compilation, and dependency validation run once per targeted runner invocation.
42+
- Reused lane snapshots avoid rebuilding identical targeted execution graphs.
4043
- Validated warm-start lanes reuse deterministic initialization state when manifest and dependency hashes are unchanged.
4144
- Reused dependency hydration avoids repeated helper resolution and fixture ownership traversal for compatible targeted runs.
4245
- Compatible Playwright specs with matching options are kept in shared CLI invocations to avoid redundant browser startup.

0 commit comments

Comments
 (0)