vscuse Scenario Authoring
Goal
Use docs, PRDs, scenarios, or mockups as the source of truth for vscuse coverage. Use vscuse-ui and noVNC as the primary authoring surface: execute the scenario in a real vscuse desktop, decide whether product behavior matches the docs, and then update existing test coverage or generate a new plan. Use vscuse execute afterward as the final CI-parity validation.
This workflow is for authoring or refreshing vscuse coverage. For diagnosing an already-failing case, use vscuse-case-diagnosis.
Required Inputs
- Docs/mockup/scenario path or quoted scenario text.
- The feature area or expected user workflow.
- Whether the expected UI already exists in product code. vscuse-ui cannot execute future UI that has not been implemented.
- Feature flags from the docs scenario, especially any
## Feature flagssection or acceptance criteria that depends onfeatureFlag(...). - The intended validation case boundary: start state, one primary behavior, and success state.
Core Rules
- Docs/mockups define expected behavior, but
vscuse-uidoes not automatically understand or execute docs. The agent or human must perform the scenario in the live noVNC desktop. - Prefer
vscuse-uifor creating or repairing case steps. It is the fastest way to inspect live UI state, record changed interactions, refresh screenshots, and edit steps. Treat the CLI as the final verifier, not the primary authoring surface. - Use the integrated browser at
http://localhost:6080/vnc.htmlas the live evidence surface. - Treat
vscuse-uigenerated plans as drafts until cleaned, parsed, and rerun withvscuse execute. - Archive every local
vscuse executeusing the repository-root artifact command inlocal-vscuse-validation: a unique gitignored.local/test-reports/<timestamp>-<plan-name>/directory containingrun.logandtest_report.html. - If product behavior does not match the docs, classify it as a product gap or bug before changing coverage.
- When a draft scenario explicitly replaces shipped behavior, treat the draft doc as the source of truth for the covered case. Existing vscuse steps that encode the old behavior are test plan drift, even if they used to pass.
- A product journey, product scenario, and validation case are different units. Follow the definitions in