Skip to content

Commit cf4c39f

Browse files
committed
Clean Project Workspace validation blockers before commit - PR_26168_218-project-workspace-validation-cleanup
1 parent b8f5cda commit cf4c39f

7 files changed

Lines changed: 337 additions & 96916 deletions

File tree

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# PR_26168_218-project-workspace-validation-cleanup
2+
3+
## Branch Validation
4+
5+
PASS: current branch is `main`.
6+
7+
- Expected branch: `main`
8+
- Current branch: `main`
9+
- Local branches found: `main`
10+
11+
## Scope Summary
12+
13+
PASS: PR218 stays scoped to validation cleanup for the Project Workspace lane.
14+
15+
- `src/dev-runtime/server/local-api-router.mjs`: treats `validate*` repository methods as read-only so `validateDesign` no longer enters the configured DB persistence gate during read-only page validation.
16+
- `toolbox/controls/controls.js`: removes initial-render write cleanup/default persistence from Controls; explicit Save/Delete paths still use the existing repository write contract.
17+
- `tests/playwright/tools/InputMappingV2Tool.spec.mjs`: updates the default Controls page assertion to match read-only default rendering.
18+
- `docs_build/dev/reports/playwright_v8_coverage_report.txt`: PR218-specific advisory V8 coverage report for changed runtime JavaScript.
19+
20+
## Requirement Checklist
21+
22+
| Requirement | Status | Evidence |
23+
| --- | --- | --- |
24+
| Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` first | PASS | Instructions were read before edits and branch guard. |
25+
| Hard stop unless current branch is `main` | PASS | `git branch --show-current` returned `main`; `git branch --list` showed only `* main`. |
26+
| Keep PR215-217 behavior intact unless fixing validation blockers | PASS | Admin Infrastructure, Owner Operations promotion safety, and Project Workspace targeted lanes all passed after the cleanup. |
27+
| Fix or isolate remaining `npm run test:workspace-v2` failures from `RootToolsFutureState.spec.mjs` | PASS | The two failing RootToolsFutureState checks passed directly, and the full workspace-contract lane passed 5/5. |
28+
| Use Project Workspace for touched user-facing copy/test/report prose | PASS | Report prose uses Project Workspace; `npm run test:workspace-v2` is documented as a legacy command name only. |
29+
| Reduce unrelated `docs_build/dev/reports` churn | PASS | Generated lane-report churn was restored; retained reports are the required PR report, review artifacts, and required V8 coverage report. |
30+
| Keep Admin Infrastructure showing only `assets/GFS-Infrastructure v1-3.png` | PASS | Static check and Playwright Admin Infrastructure validation confirm v1-3 is present and v1-2 is absent. |
31+
| Do not add new feature scope | PASS | Changes only adjust read-only validation boundaries and corresponding tests. |
32+
| Do not run full samples smoke | PASS | Full samples smoke skipped by instruction; no sample or shared engine sample surface changed. |
33+
34+
## Validation Lane Report
35+
36+
PASS: `node --check src/dev-runtime/server/local-api-router.mjs`
37+
38+
PASS: `node --check toolbox/controls/controls.js`
39+
40+
PASS: `node --check tests/playwright/tools/InputMappingV2Tool.spec.mjs`
41+
42+
PASS: `npx playwright test tests/playwright/tools/RootToolsFutureState.spec.mjs -g "root tools surface links current tool pages without old_\* routes|representative active tool pages align center cleanup and registry group colors"`
43+
44+
- Result: 2 passed.
45+
- Evidence: previously failing RootToolsFutureState validation blockers now pass.
46+
47+
PASS: `npx playwright test tests/playwright/tools/GameWorkspaceMockRepository.spec.mjs -g "Game Workspace creates, opens, and deletes mock games|Project Workspace preserves guest browsing and blocks guest saves|Game Workspace shows active-game API diagnostics without throwing|Game Workspace reports malformed active-game payloads without throwing|Game Workspace displays and edits game purpose and member role|Game Workspace progress panels update from mock game state"`
48+
49+
- Result: 6 passed.
50+
- Evidence: Project Workspace Local API / Local DB project records and guest save blocking remain intact.
51+
52+
PASS: `npx playwright test tests/playwright/tools/AdminPlatformToolsWireframes.spec.mjs -g "Infrastructure Admin wireframe preserves template structure"`
53+
54+
- Result: 1 passed.
55+
- Evidence: Admin Infrastructure still uses Theme V2 structure, displays `/dev/projects/`, `/ist/projects/`, `/uat/projects/`, `/prod/projects/`, and shows only `GFS-Infrastructure v1-3.png`.
56+
57+
PASS: `npx playwright test tests/playwright/tools/AdminPlatformToolsWireframes.spec.mjs -g "Owner Operations exposes owner-only connection validation and manual operation actions|Owner Operations blocks signed-in non-owner users"`
58+
59+
- Result: 2 passed.
60+
- Evidence: Owner-only promotion safety reporting remains intact, with Import overwrite blocked visibly until explicit confirmation exists.
61+
62+
PASS: `npx playwright test tests/playwright/tools/InputMappingV2Tool.spec.mjs -g "Toolbox Controls shows game controls only and keeps presets wireframe safe"`
63+
64+
- Result: 1 passed.
65+
- Evidence: Controls default rows render without initial repository write cleanup.
66+
67+
PASS: `npm run test:workspace-v2`
68+
69+
- Result: 5 passed in `RootToolsFutureState.spec.mjs`.
70+
- Note: `npm run test:workspace-v2` is a legacy command name that routes the `workspace-contract` lane. User-facing language remains Project Workspace.
71+
72+
PASS: Playwright V8 coverage report produced at `docs_build/dev/reports/playwright_v8_coverage_report.txt`.
73+
74+
- `(64%) toolbox/controls/controls.js` covered by browser V8 coverage.
75+
- `(0%) src/dev-runtime/server/local-api-router.mjs` reported as WARN because server runtime modules are not collected by browser V8 coverage; behavior covered by syntax checks and RootToolsFutureState validation.
76+
77+
## Manual Validation Notes
78+
79+
PASS: Static Admin Infrastructure inspection confirmed:
80+
81+
- `assets/GFS-Infrastructure v1-3.png` appears in `admin/infrastructure.html`.
82+
- `assets/GFS-Infrastructure v1-2.png` does not appear.
83+
- `/dev/projects/`, `/ist/projects/`, `/uat/projects/`, and `/prod/projects/` remain visible.
84+
85+
PASS: RootToolsFutureState no longer reports configured DB 500s for `validateDesign` or Controls `replaceMappings` during read-only page traversal.
86+
87+
SKIP: Full samples smoke was not run because the PR is a targeted Project Workspace validation cleanup, sample JSON was untouched, and the user explicitly instructed not to run full samples smoke.
Lines changed: 10 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,16 @@
11
# git status --short
2-
M admin/platform-settings.html
3-
M admin/tool-votes.html
4-
M admin/users.html
5-
M assets/theme-v2/js/owner-operations.js
6-
M docs_build/dev/reports/codex_changed_files.txt
7-
M docs_build/dev/reports/codex_review.diff
8-
M docs_build/dev/reports/coverage_changed_js_guardrail.txt
9-
M docs_build/dev/reports/dependency_gating_report.md
10-
M docs_build/dev/reports/dependency_hydration_reuse_report.md
11-
M docs_build/dev/reports/execution_graph_reuse_report.md
12-
M docs_build/dev/reports/failure_fingerprint_report.md
13-
M docs_build/dev/reports/filesystem_scan_reduction_report.md
14-
M docs_build/dev/reports/incremental_validation_report.md
15-
M docs_build/dev/reports/lane_compilation_report.md
16-
M docs_build/dev/reports/lane_deduplication_report.md
17-
M docs_build/dev/reports/lane_input_validation_report.md
18-
M docs_build/dev/reports/lane_manifests/workspace-contract.json
19-
M docs_build/dev/reports/lane_runtime_optimization_report.md
20-
M docs_build/dev/reports/lane_snapshot_report.md
21-
M docs_build/dev/reports/lane_snapshots/workspace-contract.json
22-
M docs_build/dev/reports/lane_warm_start_report.md
23-
M docs_build/dev/reports/lane_warm_starts/workspace-contract.json
24-
M docs_build/dev/reports/monolith_trigger_removal_report.md
25-
M docs_build/dev/reports/persistent_lane_manifest_report.md
26-
M docs_build/dev/reports/playwright_discovery_ownership_report.md
27-
M docs_build/dev/reports/playwright_discovery_scope_report.md
28-
M docs_build/dev/reports/playwright_structure_audit.md
29-
M docs_build/dev/reports/playwright_v8_coverage_report.txt
30-
M docs_build/dev/reports/retry_suppression_report.md
31-
M docs_build/dev/reports/slow_path_pruning_report.md
32-
M docs_build/dev/reports/static_validation_report.md
33-
M docs_build/dev/reports/targeted_file_manifest_report.md
34-
M docs_build/dev/reports/test_cleanup_performance_report.md
35-
M docs_build/dev/reports/test_cleanup_routing_report.md
36-
M docs_build/dev/reports/testing_lane_execution_report.md
37-
M docs_build/dev/reports/validation_cache_report.md
38-
M docs_build/dev/reports/zero_browser_preflight_report.md
39-
M owner/operations.html
2+
M docs_build/dev/reports/playwright_v8_coverage_report.txt
403
M src/dev-runtime/server/local-api-router.mjs
41-
M tests/playwright/tools/AdminPlatformToolsWireframes.spec.mjs
42-
M tests/playwright/tools/GameWorkspaceMockRepository.spec.mjs
43-
M toolbox/game-workspace/game-workspace-api-client.js
44-
M toolbox/game-workspace/game-workspace.js
45-
M toolbox/game-workspace/index.html
46-
M toolbox/tools-page-accordions.js
47-
?? admin/infrastructure.html
48-
?? docs_build/dev/reports/PR_26168_215-admin-infrastructure-page.md
49-
?? docs_build/dev/reports/PR_26168_216-promotion-safety-validation.md
50-
?? docs_build/dev/reports/PR_26168_217-project-workspace-db-integration.md
4+
M tests/playwright/tools/InputMappingV2Tool.spec.mjs
5+
M toolbox/controls/controls.js
6+
?? docs_build/dev/reports/PR_26168_218-project-workspace-validation-cleanup.md
517

528
# git ls-files --others --exclude-standard
53-
admin/infrastructure.html
54-
docs_build/dev/reports/PR_26168_215-admin-infrastructure-page.md
55-
docs_build/dev/reports/PR_26168_216-promotion-safety-validation.md
56-
docs_build/dev/reports/PR_26168_217-project-workspace-db-integration.md
9+
docs_build/dev/reports/PR_26168_218-project-workspace-validation-cleanup.md
5710

5811
# git diff --stat
59-
admin/platform-settings.html | 1 +
60-
admin/tool-votes.html | 1 +
61-
admin/users.html | 1 +
62-
assets/theme-v2/js/owner-operations.js | 3 +-
63-
docs_build/dev/reports/codex_changed_files.txt | 114 +-
64-
docs_build/dev/reports/codex_review.diff | 94192 ++++++++++---------
65-
.../dev/reports/coverage_changed_js_guardrail.txt | 10 +-
66-
docs_build/dev/reports/dependency_gating_report.md | 2 +-
67-
.../reports/dependency_hydration_reuse_report.md | 12 +-
68-
.../dev/reports/execution_graph_reuse_report.md | 16 +-
69-
.../dev/reports/failure_fingerprint_report.md | 2 +-
70-
.../reports/filesystem_scan_reduction_report.md | 2 +-
71-
.../dev/reports/incremental_validation_report.md | 14 +-
72-
docs_build/dev/reports/lane_compilation_report.md | 2 +-
73-
.../dev/reports/lane_deduplication_report.md | 2 +-
74-
.../dev/reports/lane_input_validation_report.md | 2 +-
75-
.../reports/lane_manifests/workspace-contract.json | 10 +-
76-
.../reports/lane_runtime_optimization_report.md | 14 +-
77-
docs_build/dev/reports/lane_snapshot_report.md | 12 +-
78-
.../reports/lane_snapshots/workspace-contract.json | 22 +-
79-
docs_build/dev/reports/lane_warm_start_report.md | 12 +-
80-
.../lane_warm_starts/workspace-contract.json | 16 +-
81-
.../dev/reports/monolith_trigger_removal_report.md | 2 +-
82-
.../dev/reports/persistent_lane_manifest_report.md | 12 +-
83-
.../playwright_discovery_ownership_report.md | 2 +-
84-
.../reports/playwright_discovery_scope_report.md | 2 +-
85-
.../dev/reports/playwright_structure_audit.md | 2 +-
86-
.../dev/reports/playwright_v8_coverage_report.txt | 46 +-
87-
docs_build/dev/reports/retry_suppression_report.md | 2 +-
88-
docs_build/dev/reports/slow_path_pruning_report.md | 16 +-
89-
docs_build/dev/reports/static_validation_report.md | 12 +-
90-
.../dev/reports/targeted_file_manifest_report.md | 8 +-
91-
.../dev/reports/test_cleanup_performance_report.md | 22 +-
92-
.../dev/reports/test_cleanup_routing_report.md | 2 +-
93-
.../dev/reports/testing_lane_execution_report.md | 52 +-
94-
docs_build/dev/reports/validation_cache_report.md | 30 +-
95-
.../dev/reports/zero_browser_preflight_report.md | 10 +-
96-
owner/operations.html | 3 +-
97-
src/dev-runtime/server/local-api-router.mjs | 81 +-
98-
.../tools/AdminPlatformToolsWireframes.spec.mjs | 79 +-
99-
.../tools/GameWorkspaceMockRepository.spec.mjs | 102 +-
100-
.../game-workspace/game-workspace-api-client.js | 9 +
101-
toolbox/game-workspace/game-workspace.js | 112 +-
102-
toolbox/game-workspace/index.html | 19 +-
103-
toolbox/tools-page-accordions.js | 1 -
104-
45 files changed, 48205 insertions(+), 46883 deletions(-)
12+
.../dev/reports/playwright_v8_coverage_report.txt | 76 ++++------------------
13+
src/dev-runtime/server/local-api-router.mjs | 2 +-
14+
tests/playwright/tools/InputMappingV2Tool.spec.mjs | 36 +---------
15+
toolbox/controls/controls.js | 13 +---
16+
4 files changed, 19 insertions(+), 108 deletions(-)

0 commit comments

Comments
 (0)