Skip to content

Commit 98368e2

Browse files
author
DavidQ
committed
Plan timeline rewind preparation for Level 11 network architecture
- Defines frame history buffer - Establishes rewind strategy - Introduces authoritative injection model - Expands debug visualization concepts Docs-only PR
1 parent 1d334bd commit 98368e2

16 files changed

Lines changed: 971 additions & 97 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Authoritative Injection Specification
2+
3+
## Purpose
4+
Define where authoritative state enters the system.
5+
6+
## Design
7+
- Inject at frame boundary
8+
- Must not overwrite predicted directly
9+
- Pass through reconciliation layer
10+
11+
## Outcome
12+
Clean separation of authority vs prediction

docs/dev/CODEX_COMMANDS.md

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

44
COMMAND:
5-
Create BUILD_PR_LEVEL_11_2_RECONCILIATION_LAYER_FOUNDATION as a docs-first implementation plan follow-up for the HTML-JavaScript-Gaming repo.
6-
7-
Requirements:
8-
- Use docs/dev/RECONCILIATION_LAYER_SPEC.md, docs/dev/STATE_TIMELINE_SPEC.md, and docs/dev/DEBUG_SURFACE_CONTRACT.md as source guidance.
9-
- Preserve current repo workflow conventions.
10-
- Do not modify engine core APIs.
11-
- Do not add server-dashboard, docker, or transport implementation.
12-
- Keep Sample C as a consumer/proving ground, not the shared implementation itself.
13-
- Normalize any proposed interfaces around approved public selectors/events only.
14-
- Prefer sample-level layering and bounded history buffers.
15-
- Future-proof naming away from sample-specific ad hoc wiring.
16-
- Package outputs as a repo-structured ZIP at:
17-
HTML-JavaScript-Gaming/tmp/BUILD_PR_LEVEL_11_2_RECONCILIATION_LAYER_FOUNDATION_delta.zip
18-
19-
Expected outputs:
20-
- docs/pr/BUILD_PR_LEVEL_11_2_RECONCILIATION_LAYER_FOUNDATION.md
21-
- docs/dev/reports/file_tree.txt
22-
- docs/dev/reports/change_summary.txt
23-
- docs/dev/reports/validation_checklist.txt
24-
- docs/dev/commit_comment.txt
25-
26-
Do not write implementation code unless explicitly required by the build instructions. Keep this bundle docs/planning only.
5+
Implement timeline buffer and rewind preparation based on provided specs.
6+
Do not modify engine core APIs.
7+
Keep implementation isolated to network samples.

docs/dev/COMMIT_COMMENT.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Build Level 11.2 reconciliation layer foundation (docs-first)
1+
Plan timeline rewind preparation for Level 11 network architecture
22

3-
- Create BUILD follow-up plan from reconciliation/timeline/debug contract specs
4-
- Preserve PLAN_PR -> BUILD_PR -> APPLY_PR workflow conventions
5-
- Keep Sample C as proving-ground consumer, not shared layer implementation
6-
- Normalize future interfaces around approved public selectors/events only
7-
- Require sample-level layering and bounded history buffers
8-
- Explicitly exclude engine-core, server-dashboard, docker, and transport implementation
3+
- Defines frame history buffer
4+
- Establishes rewind strategy
5+
- Introduces authoritative injection model
6+
- Expands debug visualization concepts
7+
8+
Docs-only PR
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Debug Timeline Visualization
2+
3+
## Goals
4+
- Show state over time
5+
- Highlight corrections
6+
7+
## Concepts
8+
- Timeline bar
9+
- Frame markers
10+
- Delta visualization
11+
12+
## Future
13+
Scrubbing and replay controls

docs/dev/FRAME_HISTORY_SPEC.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Frame History Specification
2+
3+
## Purpose
4+
Store recent frames for rewind and replay.
5+
6+
## Requirements
7+
- Ring buffer (fixed size)
8+
- Store:
9+
- input
10+
- predicted state
11+
- timestamp
12+
13+
## Notes
14+
Keep lightweight and sample-scoped

docs/dev/REWIND_STRATEGY_SPEC.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Rewind Strategy Specification
2+
3+
## Concept
4+
Rewind to authoritative frame and re-simulate forward.
5+
6+
## Steps
7+
1. Receive authoritative state
8+
2. Find matching frame in buffer
9+
3. Replace predicted state
10+
4. Reapply inputs forward
11+
12+
## Notes
13+
No full implementation yet — design only
Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1 @@
1-
CHANGE SUMMARY
2-
3-
Created a docs-only BUILD follow-up bundle for Level 11.2 reconciliation-layer foundation work.
4-
5-
Included:
6-
- BUILD PR doc for Level 11.2 reconciliation-layer foundation
7-
- Updated report artifacts (file tree, change summary, validation checklist)
8-
- Updated commit comment for this BUILD bundle
9-
10-
Guided by:
11-
- docs/dev/RECONCILIATION_LAYER_SPEC.md
12-
- docs/dev/STATE_TIMELINE_SPEC.md
13-
- docs/dev/DEBUG_SURFACE_CONTRACT.md
14-
15-
Key BUILD outcomes:
16-
- preserve workflow convention (PLAN_PR -> BUILD_PR -> APPLY_PR)
17-
- keep Sample C as a consumer/proving ground, not shared implementation
18-
- normalize future interfaces around approved public selectors/events only
19-
- prefer sample-level layering with bounded history buffers
20-
- avoid engine-core, server-dashboard, docker, and transport implementation scope
1+
Adds Level 11.3 planning docs for timeline rewind preparation

docs/dev/reports/file_tree.txt

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
BUILD_PR_LEVEL_11_2_RECONCILIATION_LAYER_FOUNDATION/
2-
`-- docs/
3-
|-- dev/
4-
| |-- commit_comment.txt
5-
| `-- reports/
6-
| |-- change_summary.txt
7-
| |-- file_tree.txt
8-
| `-- validation_checklist.txt
9-
`-- pr/
10-
`-- BUILD_PR_LEVEL_11_2_RECONCILIATION_LAYER_FOUNDATION.md
1+
docs/
2+
pr/
3+
PLAN_PR_LEVEL_11_3_TIMELINE_REWIND_PREP.md
4+
dev/
5+
FRAME_HISTORY_SPEC.md
6+
REWIND_STRATEGY_SPEC.md
7+
AUTHORITATIVE_INJECTION_SPEC.md
8+
DEBUG_TIMELINE_VISUALIZATION.md
9+
codex_commands.md
10+
commit_comment.txt
11+
reports/
12+
file_tree.txt
13+
change_summary.txt
14+
validation_checklist.txt
Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
VALIDATION CHECKLIST
2-
3-
[ ] Bundle remains docs/planning only
4-
[ ] BUILD doc exists at docs/pr/BUILD_PR_LEVEL_11_2_RECONCILIATION_LAYER_FOUNDATION.md
5-
[ ] Source guidance references reconciliation/timeline/debug contract specs
6-
[ ] Workflow convention preserved as PLAN_PR -> BUILD_PR -> APPLY_PR
7-
[ ] Proposed interfaces constrained to approved public selectors/events only
8-
[ ] Sample C retained as consumer/proving ground, not shared runtime implementation
9-
[ ] Future-proof neutral naming guidance included (no sample-specific ad hoc shared names)
10-
[ ] Bounded history buffer guidance included
11-
[ ] No engine-core API changes proposed
12-
[ ] No server-dashboard implementation proposed
13-
[ ] No docker/container implementation proposed
14-
[ ] No transport implementation proposed
15-
[ ] commit_comment.txt updated for this BUILD bundle
16-
[ ] reports/file_tree.txt reflects this BUILD bundle structure
17-
[ ] reports/change_summary.txt reflects this BUILD bundle intent
1+
- Docs only
2+
- No engine changes
3+
- Structure matches repo conventions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# PLAN PR LEVEL 11.3 — Timeline Rewind Preparation
2+
3+
## Objective
4+
Introduce time-aware architecture to support rewind and replay for authoritative correction.
5+
6+
## Scope
7+
- Frame history buffer design
8+
- Authoritative state injection
9+
- Rewind strategy (design only)
10+
- Debug timeline visualization concepts
11+
12+
## Constraints
13+
- No engine-core changes
14+
- No production networking
15+
- Sample-layer only implementation
16+
17+
## Outcomes
18+
Establish groundwork for deterministic rewind and replay in Level 11.4

0 commit comments

Comments
 (0)