|
| 1 | +# Workspace Schema Removal Report |
| 2 | + |
| 3 | +PR: `PR_26140_054-remove-workspace-schema-usage` |
| 4 | + |
| 5 | +## Summary |
| 6 | +- Removed the active Workspace schema file and its runtime validation path. |
| 7 | +- Replaced Workspace schema acceptance with direct manifest/toolState contract checks. |
| 8 | +- Kept browser `sessionStorage` toolState sessions intact; only obsolete Workspace schema assumptions were removed. |
| 9 | +- Preserved Workspace Manager V2 and tool launch behavior. |
| 10 | + |
| 11 | +## Removed Active Workspace Schema Usage |
| 12 | +- Deleted `tools/schemas/workspace.manifest.schema.json`. |
| 13 | +- Removed `WORKSPACE_MANIFEST_SCHEMA_PATH`, `WORKSPACE_SESSION_SCHEMA_REF`, and `loadWorkspaceManifestSchema()` from Workspace Manager V2. |
| 14 | +- Removed root `$schema` emission from generated Workspace Manager contexts and template workspace manifests. |
| 15 | +- Removed `workspaceSchemaRef` from workspace-launched tool session metadata. |
| 16 | +- Removed Workspace schema fallback from launch-context-only tool sessions. |
| 17 | +- Removed the stale current-session Workspace schema export test path. |
| 18 | +- Renamed the Workspace schema boundary test to `ToolManifestBoundary` and updated it to guard against the removed schema file. |
| 19 | + |
| 20 | +## Current Acceptance Gates |
| 21 | +- Game manifests validate through `tools/schemas/game.manifest.schema.json`. |
| 22 | +- Workspace Manager V2 generated contexts validate through an explicit manifest/toolState contract check. |
| 23 | +- Tool payloads validate directly against their current tool schemas: |
| 24 | + - `tools/schemas/tools/asset-manager-v2.schema.json` |
| 25 | + - `tools/schemas/tools/object-vector-studio-v2.schema.json` |
| 26 | + - `tools/schemas/tools/palette-manager-v2.schema.json` |
| 27 | + - `tools/schemas/tools/text2speech-V2.schema.json` |
| 28 | +- Normalized workspace tool sessions keep the existing `schema`, `workspace`, `data`, and `dirty` shape. |
| 29 | + |
| 30 | +## ToolState Save/Load/Import/Export Confirmation |
| 31 | +- Workspace Manager V2 still hydrates enabled tool sessions into `sessionStorage`. |
| 32 | +- Tool return refresh still writes dirty toolState data back into the active Workspace Manager context. |
| 33 | +- Save still validates the game manifest and root `tools` toolState payloads before manifest write-back. |
| 34 | +- Text to Speech V2 empty-array save, return, relaunch, and manifest write-back passed targeted validation. |
| 35 | +- Text to Speech V2 summary now defaults to `[]`, matching its root-array payload contract during async relaunch. |
| 36 | + |
| 37 | +## Active Reference Audit |
| 38 | +- Active search for `workspace schema`, `workspaceSchemaRef`, `workspace.manifest.schema`, `schema-valid workspace`, `workspace manifest schema`, and `schema-only workspace` returned no matches outside excluded historical or out-of-scope locations. |
| 39 | +- Excluded locations were `node_modules`, `tests/results`, `docs/dev/reports`, `tmp`, `docs/pr`, `tools/schemas/docs`, `docs/dev/roadmaps`, and `samples`. |
| 40 | +- Roadmaps and sample JSON were intentionally left untouched. |
| 41 | + |
| 42 | +## Validation |
| 43 | +- PASS: targeted syntax/import validation for changed runtime, tool, script, and test files. |
| 44 | +- PASS: template workspace manifest JSON and game manifest schema JSON parse checks. |
| 45 | +- PASS: targeted `ToolManifestBoundary` Node validation. |
| 46 | +- PASS: targeted `ToolSchemaStrictModeValidation` Node validation. |
| 47 | +- PASS: targeted Text to Speech V2 workspace return/write-back Playwright validation. |
| 48 | +- PASS: `npm run test:workspace-v2` with 58 passed. |
| 49 | +- PASS: `git diff --check`. |
| 50 | + |
| 51 | +## Out Of Scope |
| 52 | +- Full samples smoke test was skipped as requested. |
| 53 | +- Sample JSON was not modified. |
| 54 | +- Roadmap text was not modified. |
| 55 | +- Historical schema docs under `tools/schemas/docs` and PR snapshots were not modified. |
0 commit comments