adhoc-flow
Workflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc.
Phase 4 Selector Identification of ui-aqa-flow
> /plugin marketplace add griddynamics/rosetta > /plugin install rosetta@rosetta
How it fires
How this command gets triggered: by you, by Claude, or both.
/ui-aqa-flow-selector-identificationContext preview
What this command does when you run it.
Phase 4 Selector Identification of ui-aqa-flow
name: ui-aqa-flow-selector-identification description: "Phase 4 Selector Identification of ui-aqa-flow" alwaysApply: false disable-model-invocation: true user-invocable: false baseSchema: docs/schemas/phase.md
<ui_aqa_flow_selector_identification>
<description_and_purpose> Identify missing UI selectors from frontend source code or page-source HTML and record the selector map with values and strategy. Conditionally requests page-source capture from the user. Read-only identification — no page-object writes (that is Phase 5). </description_and_purpose>
<workflow_context>
</workflow_context>
<failure_handling> If the code-analysis file is missing, the slug stays ambiguous in `agents/TEMP/<FEATURE>/ui-aqa-state.md`, or more than one plausible `plans/ui-aqa-*/code-analysis.md` exists: stop Phase 4, record the gap in `agents/TEMP/<FEATURE>/ui-aqa-state.md`, ask the user once for the canonical `<test-name>` or to re-run Phase 3 — do not guess (slug rules per `qa-structure`). </failure_handling>
<phase_steps> 1. Resolve `<test-name>` and verify the Phase 3 code-analysis file (step 4.0) 2. Execute selector identification (step 4.1) 3. Handle page source request if needed (step 4.2) 4. Update state (step 4.3) </phase_steps>
<resolve_inputs step="4.0"> 1. USE SKILL `qa-structure` and resolve `<test-name>` per its UI layout slug rules (the slug matches the Phase 1 run folder; use `ui-aqa-state.md` if unclear). 2. Verify `plans/ui-aqa-<test-name>/code-analysis.md` exists and is the single canonical input for this run. 3. If verification fails: apply `<failure_handling>`. </resolve_inputs>
<execute_identification step="4.1" subagent="engineer" role="Selector identification specialist"> 1. USE SKILL `testing` and USE SKILL `qa-knowledge` (`implementation_modes` — selector mode, Part A: read-only identify) with the parent-supplied bindings: test plan path; code-analysis path; page-sources directory + capture contract = `qa-structure`'s UI layout; output = the `## Selector Management` section's Part A subsections in the test plan. 2. Execute Part A only (Interaction Map → Selector Availability → frontend-source search → page-source analysis for still-missing selectors). If all selectors are found in frontend code, skip step 4.2. 3. Honor the read-only scope (`<workflow_context>`).
**Part A deliverables** (written into the test plan's `## Selector Management` — the contract Phase 5 reads):
**Blocking-infeasibility check.** If the test's core interactions are **UNRESOLVABLE because the target elements/flow are absent from the app** — page source was captured but contains no matching elements (not merely a not-yet-captured page source) — the test cannot be authored without inventing selectors or modifying product source. Trigger the workflow's **Blocking infeasibility HARD-STOP** (`ui-aqa-flow.md`): escalate to the user with the options and WAIT for an explicit choice. Do NOT fabricate selectors, do NOT on your own initiative default to a pending/`fixme` spec, and do NOT advance to Phase 5 — even if the user earlier said "skip clarification". </execute_identification>
<handle_page_source step="4.2" condition="selectors still missing">
1. Create directory `plans/ui-aqa-<test-name>/page-sources/` (same `<test-name>` slug resolved in step 4.0; path/naming contract per `qa-structure`).
2. **Send the user the verbatim capture-instruction message** — USE SKILL `qa-knowledge` to send its page-source capture instructions verbatim. Do NOT paraphrase; non-technical users rely on the literal F12 / right-click steps.
3. **STOP AND WAIT** for the user to add the page-source files. Acceptable resumption signals: the user replies with "captured" + the filename list, OR the user replies with a single filename and a "more coming" signal (partial-resumption allowed once the user confirms the rest).
4. Verify the files exist at `plans/ui-aqa-<test-name>/page-sources/` with the kebab-case naming (`<page-name>.html`). If any file is missing, malformed, or saved with the wrong name, ask the user once for a corrected filename or content; do NOT proceed to selector analysis on incomplete page-source coverage.
5. **Redaction pre-read gate (fail-closed):** authenticated page-source HTML routinely embeds session/CSRF tokens and PII. USE SKILL `sensitive-data`: scan every saved page-source file and redact in place BEFORE reading or referencing any of it — no scan → no read. Then continue Part A analysis.
</handle_page_source>
<update_state step="4.3">
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)