Developer Workflow
Explain the human workflow: edit a scenario, run Playwright, inspect evidence, update the catalog, commit, and gate CI.
Abstract
This page focuses on the person doing the work locally: edit a scenario, run the system test, inspect evidence, update the catalog when behavior intentionally changes, and decide whether the change is ready.
Audience
Developers adding Blackbox to daily local work without changing their main runner or editor habits.
The Human Loop
- Edit a scenario, system test, or effect catalog entry.
- Generate or check feature files when they are part of the workflow.
- Run the project-owned system-test command.
- Inspect the OMC/DC, catalog, shape, and feature artifacts.
- Decide whether implementation, tests, feature files, or effect contracts should change.
- Commit only the durable artifacts that belong in review.
Local Commands
pnpm exec blackbox features emit ./tests --out ./featurespnpm exec blackbox features check --features ./features --tests ./testspnpm test:systemUse features emit when executable tests changed and feature artifacts should be refreshed. Use features check when you want a read-only syntax and drift gate. Use the project script, such as pnpm test:system, to actually run the system and produce runtime evidence.
For reshaping existing Playwright tests into the Blackbox closure DSL, preview first:
pnpm exec blackbox features reshape ./tests/my.spec.ts --dry-runOnly write after reviewing the preview:
pnpm exec blackbox features reshape ./tests/my.spec.ts --writeWhat The Developer Reviews
- The behavior that was observed.
- The required and forbidden effects.
- Whether the feature file still matches the run.
- Whether the catalog should change or the implementation should change.
Generated reports usually stay out of git. Feature files and effect catalogs are committed only when they are part of the durable behavior contract.
Workflow Boundaries
- CI gate policy belongs in The Blackbox Lifecycle.
- Agent-specific workflows belong in AI-Assisted Workflow.
- CLI syntax belongs in Reference.
Figure Placeholder
Caption: A developer using Blackbox to verify a change before merge.
Slot: <!-- TODO: insert editor-to-report workflow screenshot or GIF here -->