adhoc-flow
Workflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc.
Phase 4 Test Case Specification of api-aqa-flow (HITL APPROVAL GATE)
> /plugin marketplace add griddynamics/rosetta > /plugin install rosetta@rosetta
How it fires
How this command gets triggered: by you, by Claude, or both.
/api-aqa-flow-test-case-specificationContext preview
What this command does when you run it.
Phase 4 Test Case Specification of api-aqa-flow (HITL APPROVAL GATE)
name: api-aqa-flow-test-case-specification description: "Phase 4 Test Case Specification of api-aqa-flow (HITL APPROVAL GATE)" alwaysApply: false disable-model-invocation: true user-invocable: false baseSchema: docs/schemas/phase.md
<api_aqa_flow_test_case_specification>
<description_and_purpose> Convert test cases into detailed, implementation-ready API test specifications using Given-When-Then format. User approval required before implementation. </description_and_purpose>
<workflow_context>
</workflow_context>
<phase_steps> 1. Load all previous phase outputs 2. Execute test specification authoring 3. Produce test specs document 4. Present for user approval 5. Update state </phase_steps>
<load_inputs step="4.1">
Read completely: 1. `plans/api-aqa-{IDENTIFIER}/raw-data.md` — original test cases and patterns 2. `plans/api-aqa-{IDENTIFIER}/api-analysis.md` — endpoint contracts 3. `plans/api-aqa-{IDENTIFIER}/analysis.md` — clarifications and resolved gaps
</load_inputs>
<execute_authoring step="4.2" subagent="architect" role="Test specification author">
1. USE SKILL `qa-knowledge` (`scenario_design` mode) with all loaded inputs from step 4.1. This phase OWNS the output contract — the spec artifact shape is `qa-knowledge`'s test-spec template (the skill loads its own asset) plus the file-mapping / shared-utilities / execution-order sections; the mode EMITS Given-When-Then ATC entries into them per its GWT-spec taxonomy and process. 2. Redact any captured credentials, tokens, PII, or credentialed URLs in the emitted spec → USE SKILL `sensitive-data`. 3. The mode produces: test scenarios, GWT specs, file mapping, shared utilities, execution order.
</execute_authoring>
<produce_output step="4.3">
**Before presenting:** every item in `<validation_checklist>` below must be satisfied for the produced file. Items that are not yet verifiable at this step (e.g., user approval) are checked at step 4.5.
Create `plans/api-aqa-{IDENTIFIER}/test-specs.md` per `qa-knowledge`'s test-spec template — it carries the full skeleton: Summary, Test Scenarios (per-endpoint `ATC-NNN` Given-When-Then with a worked example), Test File Mapping, Shared Utilities, Execution Order, Assumptions.
</produce_output>
<present_for_approval step="4.4"> 1. Present summary to user: total scenarios, priority breakdown, endpoints covered. 2. **Approval gate:** USE SKILL `qa-knowledge` to run its shared approval gate; USE SKILL `hitl`. Approval = an exact token from the closed list `approved` / `approve` / `yes` (case-insensitive), scoped to the presented specs — no `"or equivalent"` / `"or similar"` phrasing extends it. Comments, questions, suggestions, edits, and partial review are REVIEW, not approval. Bindings: re-present step = 4.3; full-reject revisit target = Phase 3. Treat partial approve as a change request that drops the rejected scenarios. 3. **DO NOT PROCEED** to Phase 5 without explicit approval. </present_for_approval>
<update_state step="4.5"> 1. **GATE — before marking complete:** re-run `<validation_checklist>` and confirm every item is checked off — **in particular that every `ATC-NNN` traces to a Phase 3 source** (`test-specs.md` is Phase 5's contract; an untraceable ATC means Phase 5 implements unverifiable tests). Report `Phase 4 checklist: N/N items satisfied` in chat. Do NOT mark complete if any item fails. 2. Update `agents/TEMP/<FEATURE>/api-aqa-state.md`:
3. Mark Phase 4 complete, Phase 5 current </update_state>
<validation_checklist>
</validation_checklist>
<failure_handling>
</failure_handling>
</api_aqa_flow_test_case_specification>
Repo: griddynamics/rosetta
Workflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc.
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED)
Phase 3 Gap & Requirements Clarification of api-aqa-flow (USER INTERACTION REQUIRED)
Phase 0 Project Config Loading of api-aqa-flow (USER INTERACTION CONDITIONALLY REQUIRED)