Skip to content

Commit de340f0

Browse files
committed
Define Workspace contract test boundaries and remove hidden bootstrap assumptions from automated validation - PR_26146_003-workspace-contract-test-boundaries
1 parent b8bf606 commit de340f0

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/dev/PROJECT_INSTRUCTIONS.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,36 @@ Affected game fixtures are optional targeted validation only.
372372

373373
Samples are never implicit validation gates.
374374

375+
### Workspace Contract Test Boundaries
376+
377+
Workspace V2 tests validate contract and lifecycle only.
378+
379+
Tool runtime behavior belongs to tool-specific Playwright suites.
380+
381+
Tests must not rely on shared hidden bootstrap assumptions.
382+
383+
Tests must explicitly declare required manifest, toolState, and runtime inputs.
384+
385+
Invalid payload rejection must be validated independently from tool rendering.
386+
387+
Shared setup utilities may assist launch and logging only.
388+
389+
Shared utilities must not inject hidden runtime state.
390+
391+
Runtime-only workspace state starts clean every run.
392+
393+
Automated tests must not depend on persisted workspace restoration.
394+
395+
Game fixtures are explicit opt-in validation targets only.
396+
397+
Cross-tool assertions are allowed only in dedicated integration tests.
398+
399+
Integration-test-only scope is limited to:
400+
- workspace launch into tool
401+
- manifest handoff
402+
- palette propagation
403+
- toolState open/save contracts
404+
375405
Every PR must document:
376406
- whether full samples test was skipped or run
377407
- reason for decision

0 commit comments

Comments
 (0)