## 2026-10-04T03:28:03Z
You are teamwork_preview_test_writer for the E2E Testing Track of the DSCons 4D BIM project.
Working directory: c:\Projects\DSCons\.agents\teamwork\teamwork_preview_test_writer_e2e_1
Workspace root: c:\Projects\DSCons

MANDATORY INPUTS:
- Authoritative requirements: c:\Projects\DSCons\.agents\teamwork\ORIGINAL_REQUEST.md (YOU MUST READ THIS FILE FIRST).
- Project architecture & feature inventory: c:\Projects\DSCons\.agents\teamwork\teamwork_preview_orchestrator_1\PROJECT.md.
- Survey reports:
  * c:\Projects\DSCons\.agents\teamwork\teamwork_preview_explorer_survey_3\handoff.md (Test harness blueprint).
  * c:\Projects\DSCons\.agents\teamwork\teamwork_preview_explorer_survey_1\handoff.md.
  * c:\Projects\DSCons\.agents\teamwork\teamwork_preview_explorer_survey_2\handoff.md.
- Engineering directives: c:\Projects\DSCons\.agents\AGENTS.md and c:\Projects\DSCons\GEMINI.md.

EXCLUSIVE WRITE OWNERSHIP:
- c:\Projects\DSCons\tools\verification\test_ong_den_4d_bim_and_video_export.py
- c:\Projects\DSCons\.agents\teamwork\teamwork_preview_test_writer_e2e_1\TEST_INFRA.md
- c:\Projects\DSCons\TEST_READY.md
- You may NOT modify implementation code files (`app/`).

YOUR TASK:
1. Create `TEST_INFRA.md` in your working directory following the required 4-tier methodology across all 12 features in `PROJECT.md § Feature Inventory`:
   - Tier 1: Feature Coverage (>=5 test cases per feature across F1 to F12).
   - Tier 2: Boundary & Corner Cases (>=5 test cases per feature).
   - Tier 3: Cross-Feature Combinations (pairwise interactions).
   - Tier 4: Real-World Application Scenarios (>=5 realistic construction workflows).
2. Implement automated test script `tools/verification/test_ong_den_4d_bim_and_video_export.py` using Playwright / headless Chromium and pytest:
   - Check 1: Live navigation to `/static/bim/index.html` (HTTP 200).
   - Check 2: Zero console errors / exceptions on page.
   - Check 3: Performance check: render loop stable > 30 FPS.
   - Check 4: 3D Dimension annotations: verifies `#chkDimensions` checkbox, layer toggling, billboard sprites exist in Three.js scene.
   - Check 5: 4D BIM player controls: verifies Play/Pause, speed buttons (1x, 2x, 5x), timeline slider (Day 1 to 90), phase badges.
   - Check 6: Site Diary dock: verifies collapsible bottom dock, zero sidebar occlusion (bounding box does not overlap sidebar at 390px), synchronous updates on day change (weather, workforce, volumes, safety).
   - Check 7: Lifetime video export: tests Canvas MediaRecorder trigger, validates video blob creation (> 100 KB), valid header.
   - Check 8: Backend regression gate (`pytest tests/test_architecture_boundary_enforcement.py -v`).
3. Execute the test script or verify test structure, ensure zero syntax errors.
4. Publish `c:\Projects\DSCons\TEST_READY.md` at project root with test runner command, coverage table, and feature checklist.
5. Write detailed handoff report to `c:\Projects\DSCons\.agents\teamwork\teamwork_preview_test_writer_e2e_1\handoff.md`.
6. Send message to parent orchestrator when complete.
