Skip to content

Commit 6cc9d4f

Browse files
author
DavidQ
committed
PR_DEBUG_SURFACES_NETWORK_SAMPLE_A_FULL - Adds fake network sample and debug surfaces
1 parent 4429078 commit 6cc9d4f

16 files changed

Lines changed: 1220 additions & 97 deletions

docs/dev/BIG_PICTURE_ROADMAP.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ Do NOT change structure or wording.
7272

7373
# 🌐 TRACK G — NETWORK / MULTIPLAYER DEBUG
7474

75-
- [.] Connection status panel
76-
- [ ] Latency / RTT panel
75+
- [x] Connection status panel
76+
- [x] Latency / RTT panel
7777
- [ ] Replication state viewer
7878
- [ ] Client/server divergence inspector
79-
- [ ] Event tracing
79+
- [x] Event tracing
8080
- [x] PLAN_PR_DEBUG_SURFACES_NETWORK_SUPPORT
8181
- [x] BUILD_PR_DEBUG_SURFACES_NETWORK_SUPPORT
8282
- [x] APPLY_PR_DEBUG_SURFACES_NETWORK_SUPPORT
@@ -124,3 +124,4 @@ A complete system:
124124
- Standard Library → shared baseline
125125
- Presets → usability layer
126126
- Extensions → 3D, network, inspectors
127+

docs/dev/CODEX_COMMANDS.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
1-
MODEL: GPT-5.4-codex
1+
MODEL: GPT-5.4-codex
22
REASONING: high
33

44
COMMAND:
5-
Create PR_DEBUG_SURFACES_NETWORK_SUPPORT_FULL
5+
Create PR_DEBUG_SURFACES_NETWORK_SAMPLE_A_FULL
66

7-
PURPOSE:
8-
Define the full network / multiplayer debug support path, including staged samples, using PLAN_PR + BUILD_PR + APPLY_PR in one bundle.
9-
10-
IN SCOPE:
11-
- PLAN_PR_DEBUG_SURFACES_NETWORK_SUPPORT
12-
- BUILD_PR_DEBUG_SURFACES_NETWORK_SUPPORT
13-
- APPLY_PR_DEBUG_SURFACES_NETWORK_SUPPORT
14-
- docs/dev/NETWORK_SAMPLES_PLAN.md
15-
- bracket-only updates to docs/dev/BIG_PICTURE_ROADMAP.md
16-
17-
RULES:
18-
- docs-first
19-
- one PR per purpose
20-
- no engine-core pollution
21-
- keep network support sample-backed
22-
- BIG_PICTURE_ROADMAP.md bracket-only edits only
23-
- do not change wording or structure outside brackets
24-
25-
OUTPUT:
26-
<project folder>/tmp/PR_DEBUG_SURFACES_NETWORK_SUPPORT_FULL_bundle.zip
7+
(See PLAN/BUILD/APPLY docs for scope)

docs/dev/COMMIT_COMMENT.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
PR_DEBUG_SURFACES_NETWORK_SUPPORT_FULL
2-
docs: define complete sample-backed network debug support path and staged execution plan
1+
PR_DEBUG_SURFACES_NETWORK_SAMPLE_A_FULL
2+
build(sample-network): add Sample A loopback network debug sample with provider/panel/command integration

docs/dev/NETWORK_SAMPLES_PLAN.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Toolbox Aid
1+
Toolbox Aid
22
David Quesenberry
33
04/06/2026
44
NETWORK_SAMPLES_PLAN.md
@@ -17,11 +17,11 @@ Track staged network sample progress used to validate multiplayer debug support
1717

1818
# TRACK N - NETWORK SAMPLE FOUNDATION
1919

20-
- [ ] Sample A - Local Loopback / Fake Network
21-
- [ ] Synthetic connection lifecycle
22-
- [ ] Synthetic RTT feed
23-
- [ ] Synthetic replication feed
24-
- [ ] Trace event feed
20+
- [x] Sample A - Local Loopback / Fake Network
21+
- [x] Synthetic connection lifecycle
22+
- [x] Synthetic RTT feed
23+
- [x] Synthetic replication feed
24+
- [x] Trace event feed
2525

2626
---
2727

@@ -49,33 +49,33 @@ Track staged network sample progress used to validate multiplayer debug support
4949

5050
# TRACK Q - NETWORK DEBUG PANELS
5151

52-
- [ ] Connection status panel
53-
- [ ] Latency / RTT panel
52+
- [x] Connection status panel
53+
- [x] Latency / RTT panel
5454
- [ ] Replication state viewer
5555
- [ ] Client/server divergence inspector
56-
- [ ] Event tracing panel
56+
- [x] Event tracing panel
5757

5858
---
5959

6060
# TRACK R - NETWORK DEBUG COMMANDS
6161

62-
- [ ] network.help
63-
- [ ] network.status
62+
- [x] network.help
63+
- [x] network.status
6464
- [ ] network.connections
65-
- [ ] network.latency
65+
- [x] network.latency
6666
- [ ] network.replication
6767
- [ ] network.divergence
68-
- [ ] network.trace
68+
- [x] network.trace
6969
- [ ] network.sample.*
7070

7171
---
7272

7373
# TRACK S - READINESS TO PROMOTE
7474

75-
- [ ] Sample-backed provider validation
76-
- [ ] Sample-backed panel validation
77-
- [ ] Operator command validation
78-
- [ ] Debug-only gating validation
75+
- [.] Sample-backed provider validation
76+
- [.] Sample-backed panel validation
77+
- [.] Operator command validation
78+
- [x] Debug-only gating validation
7979
- [ ] Promotion recommendation
8080

8181
## Recommended Execution Order
@@ -84,4 +84,4 @@ Track staged network sample progress used to validate multiplayer debug support
8484
3. Sample B
8585
4. Replication and authority and divergence
8686
5. Sample C
87-
6. Promotion review
87+
6. Promotion review

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PR_DEBUG_SURFACES_NETWORK_SAMPLE_A_FULL
1+
PR_DEBUG_SURFACES_NETWORK_SAMPLE_B_FULL
Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
1-
Toolbox Aid
2-
David Quesenberry
3-
04/06/2026
4-
change_summary.txt
5-
6-
Executed PR_DEBUG_SURFACES_NETWORK_SUPPORT_FULL as a docs-first PLAN/BUILD/APPLY bundle.
7-
8-
Included:
9-
- PLAN_PR_DEBUG_SURFACES_NETWORK_SUPPORT
10-
- BUILD_PR_DEBUG_SURFACES_NETWORK_SUPPORT
11-
- APPLY_PR_DEBUG_SURFACES_NETWORK_SUPPORT
12-
- docs/dev/NETWORK_SAMPLES_PLAN.md
13-
- bracket-only update in docs/dev/BIG_PICTURE_ROADMAP.md
14-
15-
Roadmap state update (Track G):
16-
- BUILD_PR_DEBUG_SURFACES_NETWORK_SUPPORT: [.] -> [x]
17-
18-
Scope guard:
19-
- No engine-core changes
20-
- No runtime/UI changes
21-
- No non-bracket edits in BIG_PICTURE roadmap
22-
- Network support remains sample-backed
1+
Implemented Sample A network debug surfaces as a sample-level integration with no engine-core changes.
2+
3+
What was built:
4+
- New game sample at games/network_sample_a with fake loopback telemetry.
5+
- Synthetic connection lifecycle, latency, replication backlog, and trace events.
6+
- Sample debug plugin with read-only provider descriptors.
7+
- Overlay panels for connection status, latency/RTT, and trace events.
8+
- Console commands: network.help, network.status, network.latency, network.trace [count].
9+
- Overlay and console remain hidden by default until explicit user action.
10+
- Sample A PLAN/BUILD/APPLY docs finalized.
11+
- Network sample plan and roadmap states updated for completed Sample A slice.

docs/dev/reports/file_tree.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
Toolbox Aid
2-
David Quesenberry
3-
04/06/2026
4-
file_tree.txt
5-
6-
docs/pr/PLAN_PR_DEBUG_SURFACES_NETWORK_SUPPORT.md
7-
docs/pr/BUILD_PR_DEBUG_SURFACES_NETWORK_SUPPORT.md
8-
docs/pr/APPLY_PR_DEBUG_SURFACES_NETWORK_SUPPORT.md
9-
docs/dev/NETWORK_SAMPLES_PLAN.md
10-
docs/dev/BIG_PICTURE_ROADMAP.md
1+
docs/pr/PLAN_PR_DEBUG_SURFACES_NETWORK_SAMPLE_A.md
2+
docs/pr/BUILD_PR_DEBUG_SURFACES_NETWORK_SAMPLE_A.md
3+
docs/pr/APPLY_PR_DEBUG_SURFACES_NETWORK_SAMPLE_A.md
114
docs/dev/CODEX_COMMANDS.md
125
docs/dev/COMMIT_COMMENT.txt
136
docs/dev/NEXT_COMMAND.txt
7+
docs/dev/NETWORK_SAMPLES_PLAN.md
8+
docs/dev/BIG_PICTURE_ROADMAP.md
149
docs/dev/reports/change_summary.txt
1510
docs/dev/reports/validation_checklist.txt
16-
docs/dev/reports/file_tree.txt
11+
docs/dev/reports/file_tree.txt
12+
games/network_sample_a/index.html
13+
games/network_sample_a/main.js
14+
games/network_sample_a/debug/networkSampleADebug.js
15+
games/network_sample_a/game/FakeLoopbackNetworkModel.js
16+
games/network_sample_a/game/NetworkSampleAScene.js
Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1-
Toolbox Aid
2-
David Quesenberry
3-
04/06/2026
4-
validation_checklist.txt
1+
Workflow
2+
- [x] PLAN created
3+
- [x] BUILD created
4+
- [x] APPLY created
55

6-
[x] PLAN_PR doc updated
7-
[x] BUILD_PR doc updated
8-
[x] APPLY_PR doc updated
9-
[x] NETWORK_SAMPLES_PLAN.md updated
10-
[x] BIG_PICTURE_ROADMAP updated using bracket-only edits
11-
[x] No wording/structure changes outside brackets in BIG_PICTURE roadmap
12-
[x] No engine-core changes
13-
[x] No UI/runtime changes
14-
[x] Network support remains sample-backed
15-
[x] Repo-structured bundle zip created
6+
Sample A Runtime
7+
- [x] Sample opens from games/network_sample_a/index.html
8+
- [x] Fake loopback telemetry updates
9+
- [x] Connection lifecycle controls (disconnect/reconnect)
10+
- [x] Synthetic RTT and replication values update
1611

17-
Validation checks:
18-
- `git diff -- docs/dev/BIG_PICTURE_ROADMAP.md`
19-
- `git diff --name-only`
20-
- `tar -tf tmp/PR_DEBUG_SURFACES_NETWORK_SUPPORT_FULL_bundle.zip`
12+
Debug Surfaces
13+
- [x] Connection status panel renders
14+
- [x] Latency panel renders
15+
- [x] Event trace panel renders
16+
- [x] Overlay hidden by default until explicit open
17+
18+
Commands
19+
- [x] network.help
20+
- [x] network.status
21+
- [x] network.latency
22+
- [x] network.trace
23+
24+
Scope Safety
25+
- [x] No engine core files modified
26+
- [x] Sample-level integration only
27+
- [x] Roadmap edits are bracket-only
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Toolbox Aid
2+
David Quesenberry
3+
04/06/2026
4+
APPLY_PR_DEBUG_SURFACES_NETWORK_SAMPLE_A.md
5+
6+
# APPLY_PR_DEBUG_SURFACES_NETWORK_SAMPLE_A
7+
8+
## Apply Scope
9+
Apply the approved Sample A implementation exactly:
10+
- add `games/network_sample_a/` sample files
11+
- wire fake telemetry into diagnostics context
12+
- register Sample A debug plugin panels/providers/commands
13+
- update docs and reports for Sample A status
14+
15+
## Validation Targets
16+
- Sample opens from `games/network_sample_a/index.html`.
17+
- Fake telemetry updates continuously.
18+
- Overlay panels show connection, latency, and trace data.
19+
- `network.status`, `network.latency`, and `network.trace` execute successfully.
20+
- No engine core files are modified.
21+
22+
## Roadmap State Updates
23+
Bracket-only status updates in `docs/dev/BIG_PICTURE_ROADMAP.md`:
24+
- Connection status panel -> `[x]`
25+
- Latency / RTT panel -> `[x]`
26+
- Event tracing -> `[x]`
27+
28+
## Output
29+
`<project folder>/tmp/PR_DEBUG_SURFACES_NETWORK_SAMPLE_A_FULL_bundle.zip`
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Toolbox Aid
2+
David Quesenberry
3+
04/06/2026
4+
BUILD_PR_DEBUG_SURFACES_NETWORK_SAMPLE_A.md
5+
6+
# BUILD_PR_DEBUG_SURFACES_NETWORK_SAMPLE_A
7+
8+
## Build Summary
9+
Built a new sample-owned network diagnostics slice at `games/network_sample_a/` using fake loopback telemetry and existing public debug integration APIs.
10+
11+
## Implemented Scope
12+
1. Fake network model
13+
- synthetic phases (`disconnected`, `connecting`, `synchronizing`, `connected`)
14+
- synthetic RTT and jitter feed
15+
- synthetic replication counters and backlog
16+
- bounded trace event feed
17+
18+
2. Sample integration
19+
- new sample entry HTML and boot path
20+
- debug integration wired with overlay hidden by default
21+
- sample controls for packet inject/disconnect/reconnect
22+
23+
3. Debug plugin
24+
- read-only provider descriptors for connection/latency/trace
25+
- passive overlay panels:
26+
- connection status
27+
- latency / RTT
28+
- event trace
29+
- operator commands:
30+
- `network.help`
31+
- `network.status`
32+
- `network.latency`
33+
- `network.trace [count]`
34+
35+
## Scope Safety
36+
- no engine core API changes
37+
- no runtime transport/protocol work
38+
- sample-level integration only

0 commit comments

Comments
 (0)