Status: Active
Scope: Validation evidence for OST-00087 (Workspace context switching).
Coverage Summary#
- Integration:
apps/oshun/web/src/components/__tests__/StudioWorkspaceContextSwitchingWorkspace.test.tsx
- E2E (smoke spec):
apps/oshun/web/e2e/studio-workspace-context-switching-smoke.spec.ts
- Accessibility checks:
- keyboard-accessible native-button assertions
- same-context protection and policy-denied assertions
- Performance/SLO checks:
- runs, success-rate, and p95 indicator assertions
Required Scenarios#
- Route
/studio/workspace-context-switchingrenders all required governance flows. - Optimistic transition behavior is validated (
idle -> pending -> success). - Failure + retry recovery is validated (
pending -> error -> success). - Unauthorized role execution is blocked with explicit denial reason.
- SLO indicators and audit entries update after flow execution.
Execution Notes#
- Unit/integration command:
pnpm nx run @oshun/web:test
- E2E command wiring for
@oshun/web:e2eremains scaffolded in project configuration; smoke coverage is committed and ready once Playwright wiring is enabled.
Acceptance Gate#
OST-00087 is complete when:
- integration tests cover optimistic/error/retry/deny behavior,
- e2e smoke coverage for
/studio/workspace-context-switchingis committed, - accessibility and SLO assertions are codified,
- validation matrix maps scenarios to concrete evidence paths.