qyrus-change-impact
Selects the minimal real-device test set for a specific code change - reads the git diff, classifies behavior changes, maps them to existing saved Qyrus tests and new scenarios, produces an action pla
SKILL.mdskills/qyrus-change-impact/SKILL.md
GitHub<!-- Distilled from: shared/execution-routing.md, shared/local-state.md, shared/cli-contract.md, shared/event-contract.md, shared/safety-policy.md, apps/qyrion/docs/getting-started.md. -->
Diff-driven minimal device test selection
Given a base..head diff, decide which device tests must run unchanged, be updated then run, be newly created, or be proposed for retirement — then run only that minimal set and triage the results.
Apply references/execution-routing.md to preserve the user's intent: saved
tests can satisfy requested regression reuse, while explicitly requested new
coverage uses fresh Qyrion web/mobile sessions. Do not substitute the host's
browser/CUA. Ask about new versus existing coverage only when unclear; reuse
known target, build and permitted login facts from the task/ticket.
Read before starting:
references/cli-contract.md— CLI resolution, handshake, command catalogreferences/event-contract.md— JSONL frames, park semantics, artifactsreferences/safety-policy.md— binding rules (production, secrets, cleanup)references/parallel-orchestration.md— running the selected setreferences/change-classification.md— classification taxonomy and mapping
Phase 1 — Preflight
qyrion capabilities --jsonhandshake (own missing-tool setup and offer accepted upgrades perreferences/update-checks.md), then shared setup and MCP team discovery perreferences/credentials.md. Confirm the selected team and verify Qyrion access with helper-wrappedqyrion sessions list --json. Do not require the separate gatewayqyrion auth teamscall; ask the user when multiple teams have no selection.- Determine base and head revisions. Default to the merge base with the default branch and the working head; state what you chose.
- Parse
qyrion.ymlif present for path→journey hints, project id, and preferred devices. Optional — proceed without it. - Confirm the changed build is actually what will run on device (a fresh build containing head). If you cannot confirm, produce the plan but say clearly that execution would not validate this change.
Phase 2 — Read and classify the diff
git diff --name-status <base>...<head>
git diff <base>...<head> -- <interesting paths>
Classify every behavior-relevant change with the taxonomy (details and
signals in references/change-classification.md):
screen_added | screen_removed | flow_changed | validation_changed |
label_changed | api_contract_changed | copy_only | style_only | unknown
copy_only/style_only rarely justify device runs; unknown must never be
silently dropped — it becomes an investigate row.
Phase 3 — Map to existing tests and scenarios
Fetch the saved-test inventory when a project id is known:
qyrion tests list --project <project-id> --json
qyrion tests get <test-id> --json # steps/objective for close candidates
Evidence priority when mapping changes to tests: explicit qyrion.yml
journey mappings → test objective/steps that reference the changed screen or
flow → repo call graph and component ownership → name similarity (weak signal
only). For gaps, draft new scenarios (same scenario shape the device-testing
workflow uses: title, intent, steps, assertions, evidence, confidence,
sources).
Phase 4 — The plan table (always produced, before any run)
One row per credible test/scenario:
action | test/scenario | evidence | confidence | risk
action is one of:
| Action | Meaning |
|---|---|
run_unchanged |
behavior may regress but the saved test still matches the contract |
update_then_run |
steps/assertions/labels must change first (propose the exact edit) |
create_then_run |
new behavior lacks coverage; new scenario drafted |
retire_candidate |
removed behavior makes a test obsolete — propose only, never delete |
investigate |
evidence insufficient or conflicting |
not_impacted |
no credible path from the change to the scenario |
Confidence: high = explicit mapping plus matching steps; medium = strong code path but no exact step match; low = name similarity or shared dependency only. Do not run mutations from low-confidence rows without user review.
Stop here and get approval before device execution unless the user pre-approved running the selected set. Propose retirements for review unless the specific deletion was explicitly authorized.
For web changes, use qyrus-web-testing and the same requirement mapping;
verify the deployed build SHA and use browser flags, without mobile uploads.
API contract execution uses the live Aegis guide and the qyrus-mcp skill's
qyrus_tools / qyrus_tool_schema / qyrus_tool_call path to reach its tools.
Phase 5 — Execute the minimal set
run_unchangedrows with a saved test:qyrion tests rerun <test-id> --device-ref <ref> --app <app-id> --jsonl.update_then_run: apply the approved edit (qyrion tests update) first, then rerun; record before/after.create_then_runand ad hoc scenarios: one session per scenario via the turn loop —sessions create --jsonl(capture run_id) →stream --until input-required --max-seconds 900→ inspect events + download the latestobserve_rawscreenshot →send --follownext objective or finish →result --wait --json. ci mode for single-objective checks.- Ensure the changed build is uploaded first:
qyrion apps upload <build> --skip-if-uploaded --json. - Include a minimal smoke dependency (e.g. login) when the changed flow sits behind it.
- Bounded parallelism and the mandatory final cancel-sweep per
references/parallel-orchestration.md.
Phase 6 — Triage and report
Classify every non-pass before blaming the product:
- product regression — evidence in screenshots/events that head behavior broke the assertion
- stale test — the diff intentionally changed the behavior the test
asserts (feeds an
update_then_runproposal) - environment/deployment mismatch — wrong build, backend not matching head, missing test data
- flaky — timing/nondeterminism; rerun once before claiming flake
- tool/backend failure — qyrion or device-cloud errors, not the app
Report: the classified diff summary, the plan table with final outcomes per
row, verdicts with artifact file paths and event sequence_no citations,
proposed test updates/retirements awaiting human review, and the result of
the leftover-session sweep.
Retain scoped returned IDs/outcomes per references/local-state.md; revalidate
them on reuse. Independent runs may use multiple CLI calls from one agent
under references/parallel-orchestration.md; subagents are optional.