Skip to content

Commit 5a67a06

Browse files
author
DavidQ
committed
Apply advanced shared server dashboard on promoted network debug layer with read-only commands, metrics, refresh modes, and roadmap tracker updates.
1 parent 5f6bfd0 commit 5a67a06

20 files changed

Lines changed: 1045 additions & 158 deletions

docs/dev/CODEX_COMMANDS.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
MODEL: GPT-5.4-codex
2-
COMMAND: APPLY_PR_DEBUG_SURFACES_NETWORK_PROMOTION
2+
REASONING: high
3+
4+
COMMAND:
5+
Follow PLAN_PR + BUILD_PR + APPLY_PR
6+
7+
Create APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED
8+
9+
Requirements:
10+
- Docs-first before implementation
11+
- No engine core changes
12+
- One PR per purpose
13+
- Build zip automatically to <project folder>/tmp/
14+
- Implement advanced shared server dashboard under engine/debug/network/dashboard
15+
- Keep providers read-only
16+
- No console coupling
17+
- No overlay coupling
18+
- No persistence
19+
- Add:
20+
- serverDashboardViewModel.js
21+
- serverDashboardMetrics.js
22+
- serverDashboardRefreshModes.js
23+
- registerDashboardCommands.js
24+
- Extend host/registry/renderer through public APIs only
25+
- Validate imports, snapshot normalization, refresh modes, command outputs, and sample plugin parity
26+
- Update roadmap trackers with bracket-only edits only
27+
- Roadmaps live under docs/roadmaps/

docs/dev/COMMIT_COMMENT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Apply network promotion build
1+
Apply advanced shared server dashboard under engine/debug/network/dashboard with read-only providers, refresh modes, view-model metrics, dashboard command pack registration, targeted validation coverage, and bracket-only NETWORK_SAMPLES_PLAN tracker updates.

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
APPLY_PR_DEBUG_SURFACES_NETWORK_PROMOTION
1+
PLAN_PR_DEBUG_SURFACES_NETWORK_SERVER_CONTAINER
Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
Network promotion build bundle.
1+
# Change Summary
2+
3+
## Bundle
4+
APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED_delta
5+
6+
## Scope Applied
7+
- Docs-first PLAN/BUILD/APPLY updates for server dashboard advanced work.
8+
- Added advanced shared dashboard modules under `engine/debug/network/dashboard`.
9+
- Extended host/registry/renderer through public APIs.
10+
- Added read-only `dashboard.*` command registration bridge.
11+
- Exported advanced dashboard modules from `engine/debug/network/index.js`.
12+
- Updated `docs/roadmaps/NETWORK_SAMPLES_PLAN.md` using bracket-only state edits.
13+
14+
## Validation
15+
- Import and syntax checks for updated dashboard modules.
16+
- Snapshot normalization and metrics/view-model smoke coverage.
17+
- Refresh mode validation (`manual`, `normal`, `fast`).
18+
- Command output validation for `dashboard.help/status/refresh/mode/snapshot`.
19+
- Sample A/B/C plugin parity and provider read-only checks.
20+
21+
## Constraints Kept
22+
- No engine core API changes.
23+
- No console coupling.
24+
- No overlay coupling.
25+
- No persistence.

docs/dev/reports/file_tree.txt

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
docs/pr
2-
docs/dev
1+
HTML-JavaScript-Gaming/
2+
docs/
3+
pr/
4+
PLAN_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md
5+
BUILD_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md
6+
APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md
7+
dev/
8+
CODEX_COMMANDS.md
9+
COMMIT_COMMENT.txt
10+
NEXT_COMMAND.txt
11+
reports/
12+
change_summary.txt
13+
validation_checklist.txt
14+
file_tree.txt
15+
roadmaps/
16+
NETWORK_SAMPLES_PLAN.md
17+
engine/
18+
debug/
19+
network/
20+
index.js
21+
dashboard/
22+
serverDashboardHost.js
23+
serverDashboardRegistry.js
24+
serverDashboardRenderer.js
25+
serverDashboardMetrics.js
26+
serverDashboardViewModel.js
27+
serverDashboardRefreshModes.js
28+
registerDashboardCommands.js
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
Validate network promotion.
1+
# Validation Checklist
2+
3+
- [x] PLAN doc present
4+
- [x] BUILD doc present
5+
- [x] APPLY doc present
6+
- [x] Codex command present
7+
- [x] Commit comment present
8+
- [x] Next command present
9+
- [x] Dashboard modules scoped to engine/debug/network/dashboard
10+
- [x] No engine-core changes
11+
- [x] Providers remain read-only
12+
- [x] Commands use host public APIs only
13+
- [x] Refresh modes validated
14+
- [x] Snapshot normalization validated
15+
- [x] Sample A/B/C plugin parity checked
16+
- [x] Roadmap edits bracket-only only
17+
- [x] Zip built under <project folder>/tmp/
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Toolbox Aid
2+
David Quesenberry
3+
04/06/2026
4+
APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md
5+
6+
# APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED
7+
8+
## Apply Intent
9+
Implement advanced shared server dashboard behavior in `engine/debug/network/dashboard` with read-only providers and command-safe host APIs.
10+
11+
## Guardrails
12+
- No engine core changes.
13+
- No console coupling.
14+
- No overlay coupling.
15+
- No persistence.
16+
- Keep implementation scoped to shared dashboard modules.
17+
18+
## Required File Work
19+
- `engine/debug/network/dashboard/serverDashboardHost.js`
20+
- `engine/debug/network/dashboard/serverDashboardRegistry.js`
21+
- `engine/debug/network/dashboard/serverDashboardProviders.js`
22+
- `engine/debug/network/dashboard/serverDashboardRenderer.js`
23+
- `engine/debug/network/dashboard/serverDashboardViewModel.js`
24+
- `engine/debug/network/dashboard/serverDashboardMetrics.js`
25+
- `engine/debug/network/dashboard/serverDashboardRefreshModes.js`
26+
- `engine/debug/network/dashboard/registerDashboardCommands.js`
27+
- `engine/debug/network/index.js` (exports only)
28+
29+
## Command Contract
30+
- `dashboard.help` lists commands and modes
31+
- `dashboard.status` returns mode, refresh status, section count, and key counts
32+
- `dashboard.refresh` triggers one immediate read-only refresh
33+
- `dashboard.mode` reads/sets refresh mode through host API
34+
- `dashboard.snapshot` returns normalized dashboard snapshot summary
35+
36+
## Validation Sequence
37+
1. Import checks for all advanced dashboard modules.
38+
2. Snapshot normalization smoke test with mixed input shapes.
39+
3. Refresh mode checks for `manual`, `normal`, and `fast`.
40+
4. Command output checks via `registerDashboardCommands`.
41+
5. Sample plugin parity checks for Sample A/B/C network debug plugins.
42+
6. Confirm no engine core API files changed.
43+
44+
## Roadmap Edits
45+
Only bracket state edits in:
46+
- `docs/roadmaps/NETWORK_SAMPLES_PLAN.md`
47+
- `docs/roadmaps/BIG_PICTURE_ROADMAP.md`
48+
49+
No wording, ordering, or structure edits.
50+
51+
## Packaging
52+
Build zip automatically at:
53+
`<project folder>/tmp/APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED_delta.zip`
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
Toolbox Aid
2+
David Quesenberry
3+
04/06/2026
4+
BUILD_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md
5+
6+
# BUILD_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED
7+
8+
## Build Intent
9+
Prepare an implementation-ready APPLY package for advanced shared server dashboard behavior under `engine/debug/network/dashboard` while preserving read-only and decoupled architecture rules.
10+
11+
## Authoritative Target Structure
12+
```text
13+
engine/debug/network/dashboard/
14+
serverDashboardHost.js
15+
serverDashboardRegistry.js
16+
serverDashboardProviders.js
17+
serverDashboardRenderer.js
18+
serverDashboardViewModel.js
19+
serverDashboardMetrics.js
20+
serverDashboardRefreshModes.js
21+
registerDashboardCommands.js
22+
```
23+
24+
## Build Rules
25+
- No engine core changes.
26+
- Use public APIs for host/registry/renderer integration.
27+
- Keep providers read-only.
28+
- No console coupling.
29+
- No overlay coupling.
30+
- No persistence.
31+
32+
## Public API Targets
33+
### Host
34+
- `refreshNow()`
35+
- `setRefreshMode(mode)`
36+
- `getStatus()`
37+
- `getSnapshot()`
38+
- `destroy()`
39+
40+
### Registry
41+
- deterministic section registration/listing
42+
- visibility and priority controls through registry APIs
43+
- read-only section snapshots
44+
45+
### Renderer
46+
- consume normalized snapshots/view model only
47+
- render advanced summary, latency, throughput, player, and connection/session sections
48+
49+
### Commands
50+
- `dashboard.help`
51+
- `dashboard.status`
52+
- `dashboard.refresh`
53+
- `dashboard.mode <manual|normal|fast>`
54+
- `dashboard.snapshot`
55+
56+
## Ordered Build Steps
57+
1. Add refresh mode definitions and normalization helpers.
58+
2. Add aggregate metrics calculator.
59+
3. Add snapshot-to-view-model normalization.
60+
4. Extend host for refresh lifecycle + command-safe APIs.
61+
5. Extend registry for deterministic section controls.
62+
6. Extend renderer to consume the new view model.
63+
7. Add dashboard command registration bridge using host APIs only.
64+
8. Export advanced dashboard modules from `engine/debug/network/index.js`.
65+
9. Run targeted validations.
66+
67+
## Validation Targets
68+
- imports
69+
- snapshot normalization
70+
- refresh mode transitions
71+
- command outputs
72+
- sample plugin parity
73+
- providers remain read-only
74+
- no engine core changes
75+
76+
## Packaging Target
77+
`<project folder>/tmp/APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED_delta.zip`
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
Toolbox Aid
2+
David Quesenberry
3+
04/06/2026
4+
PLAN_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md
5+
6+
# PLAN_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED
7+
8+
## Workflow Discipline
9+
PLAN_PR -> BUILD_PR -> APPLY_PR
10+
11+
## Purpose
12+
Advance the shared server dashboard under `engine/debug/network/dashboard` into a stronger read-only debugging surface without changing engine core APIs.
13+
14+
## Scope
15+
In scope:
16+
- Add advanced dashboard modules:
17+
- `serverDashboardViewModel.js`
18+
- `serverDashboardMetrics.js`
19+
- `serverDashboardRefreshModes.js`
20+
- `registerDashboardCommands.js`
21+
- Extend dashboard host, registry, and renderer through public APIs only.
22+
- Keep providers read-only.
23+
- Validate imports, snapshot normalization, refresh modes, command outputs, and sample plugin parity.
24+
- Update roadmap trackers with bracket-only edits.
25+
26+
Out of scope:
27+
- Engine core changes.
28+
- Console coupling.
29+
- Overlay coupling.
30+
- Persistence.
31+
- Server-dashboard, docker, or transport work.
32+
33+
## Boundaries
34+
- Shared ownership: `engine/debug/network/dashboard/*`
35+
- Sample ownership: sample feeds and scenario data
36+
- Engine core ownership: no changes in this PR
37+
38+
## Data Flow
39+
Sample/runtime snapshots
40+
-> read-only dashboard provider normalization
41+
-> dashboard metrics + view model
42+
-> dashboard renderer output
43+
-> dashboard commands through host public APIs
44+
45+
## Validation Goals
46+
- New and updated dashboard modules import cleanly.
47+
- Snapshot normalization remains deterministic and read-only.
48+
- Refresh modes (`manual|normal|fast`) behave as documented.
49+
- `dashboard.*` commands return expected read-only outputs.
50+
- Sample A/B/C debug plugin parity remains intact.
51+
- No engine core files are changed.
52+
53+
## Deliverables
54+
- `docs/pr/PLAN_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md`
55+
- `docs/pr/BUILD_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md`
56+
- `docs/pr/APPLY_PR_DEBUG_SURFACES_SERVER_DASHBOARD_ADVANCED.md`
57+
- `docs/dev/CODEX_COMMANDS.md`
58+
- `docs/dev/COMMIT_COMMENT.txt`
59+
- `docs/dev/NEXT_COMMAND.txt`
60+
- `docs/dev/reports/change_summary.txt`
61+
- `docs/dev/reports/file_tree.txt`
62+
- `docs/dev/reports/validation_checklist.txt`

docs/roadmaps/BIG_PICTURE_ROADMAP.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
⚠️ RULE:
2-
This file is a status tracker only.
3-
ONLY modify bracket states [ ] [.] [x].
4-
Do NOT change structure or wording.
5-
6-
---
7-
81
# 🧭 Debug Platform & Ecosystem Roadmap
92

103
## Status Legend
@@ -75,10 +68,10 @@ Do NOT change structure or wording.
7568
- [x] Connection status panel
7669
- [.] Latency / RTT panel
7770
- [ ] Replication state viewer
78-
- [ ] Client/server divergence inspector
71+
- [x] Client/server divergence inspector
7972
- [.] Event tracing
80-
- [.] PLAN_PR_DEBUG_SURFACES_NETWORK_SUPPORT
81-
- [ ] BUILD_PR_DEBUG_SURFACES_NETWORK_SUPPORT
73+
- [x] PLAN_PR_DEBUG_SURFACES_NETWORK_SUPPORT
74+
- [x] BUILD_PR_DEBUG_SURFACES_NETWORK_SUPPORT
8275
- [x] APPLY_PR_DEBUG_SURFACES_NETWORK_SUPPORT
8376

8477
---

0 commit comments

Comments
 (0)