qa-execution-runner
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
QA-Exec run contract for executing authored test cases against the deployed build. Use when QA-Exec is dispatched for a task in-test to gather by-us/by-task test cases, check executable specs and instrumentation coverage, invoke the proper runner, execute UI tiers, validate visual specs, route failures, and write docs/qa-reports/<task-id>.md plus artifacts.
- Reads credentials
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 14 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill for every QA-Exec dispatch.
- Distinctive: line 28
read linked US IDs and FR IDs from the task.
- Distinctive: line 36
Run bidirectional instrumentation coverage for UI tasks:
- Distinctive: line 37
every contract-declared testID appears in at least one spec.
- Distinctive: line 38
when bundle is reachable, every contract-declared testID ships in the bundle.
- Very specific: line 42
verify base URLs, fixtures, env vars, build/commit/instrumentation identity.
- Very specific: line 43
verify env_files, env_templates, and env_validation are present.
- Distinctive: line 44
when SRS §3.4.6 declares runtime keys, verify the deploy report lists each declared key name with a non-secret status summary only.
- Very specific: line 45
verify every Executable: file exists.
- Distinctive: line 58
if any pre-run check is blocked, halt before invoking the runner.
- Very specific: line 75
Write docs/qa-reports/<task-id>.md and artifacts under docs/qa-reports/<task-id>/.
- Very specific: line 82
Tier 2 asset/composition: every required logo/graphic/image/background asset is loaded from the traced implementation path and rendered …
- Distinctive: line 89
Use this only when SRS §3.4.3 explicitly accepts a non-introspectable UI surface, such as a Unity build where AltTester was rejected.
- Distinctive: line 92
Use the coordinate + template registry pattern:
- Distinctive: line 97
Treat coordinate/template checks as fragile.
- Very specific: line 98
Do not claim Tier 2 properties that cannot be observed.
- Very specific: line 102
Every run writes artifacts under docs/qa-reports/<task-id>/:
- Distinctive: line 130
Never modify build, code, or tests to make a run pass.
- Distinctive: line 131
Never declare done with failed or blocked cases.
- Distinctive: line 132
Never silently skip verification.
- Distinctive: line 142
Commit before signaling ready-to-finalize.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
QA Execution Runner
Use
Use this skill for every QA-Exec dispatch.
Inputs
- Target task file and linked US/FRs
docs/test-cases/by-us/<US-ID>/anddocs/test-cases/by-task/<task-id>/- Executable specs named by each TC
docs/deploy-reports/<task-id>.md- SRS §3.4.6 Environment Configuration when the project has FE/BE runtime scope
- UI artifacts: design refs, visual specs, instrumentation contract, UI refs
Procedure
- Gather test cases:
- read linked US IDs and FR IDs from the task;
- load every linked by-us functional TC;
- load task-scoped structural/api/e2e/functional TCs;
- halt on missing expected coverage.
- For UI tasks, enforce strict artifact presence:
- by-task TC directory with at least one TC;
docs/uiux/visual-specs/<task-id>.md;- instrumentation contract when UI selectors/testIDs are expected.
- Run bidirectional instrumentation coverage for UI tasks:
- every contract-declared testID appears in at least one spec;
- when bundle is reachable, every contract-declared testID ships in the bundle.
- Route spec gaps to QA-Author and bundle gaps to FE Dev.
- Pre-run checks:
- parse deploy report
## Test Environment; - verify base URLs, fixtures, env vars, build/commit/instrumentation identity;
- verify
env_files,env_templates, andenv_validationare present;compose_config_quietispass;missing_required_envisnone;srs_environment_contractispass;declared_config_keys_statusisall documented; andsecret_values_redactedistrue; - when SRS §3.4.6 declares runtime keys, verify the deploy report lists each declared key name with a non-secret status summary only; missing declared keys are a blocked environment state routed back to DevOps;
- verify every
Executable:file exists; - grep executable specs for
TODO: instrumentation-contract; any hit isblocked. - inspect fixture reset behavior: direct DB INSERT/TRUNCATE must be followed by a synchronous reset/flush of
affected caches and process-global runtime state before the SUT is read; missing capability is
blocked: test-harness-state-resetrouted to BE Dev. - for direct-DB fixtures, require deploy-report
test_endpoints_enabled: trueandruntime_state_reset.synchronous_probe: passplusruntime_state_reset.behavioral_fresh_read_probe: pass; missing or failed evidence routes to DevOps/BE Dev and blocks the runner. - inspect runner concurrency: any global DB reset, global cache flush, or process-global reset requires per-worker
isolation or a dedicated one-worker project; otherwise mark
blocked: shared-test-state. - compare navigation assertions with the signed-off URL/canonicalization contract. A path-only
$assertion that rejects required query parameters isblocked: test-spec-contract-drift, routed to QA-Author. - if any pre-run check is blocked, halt before invoking the runner. Record the blocked reason and owning role; do not continue to Step 7 with a known-invalid harness/spec.
- parse deploy report
- Skip deprecated US test cases with reason
deprecated-us; report the skip. - Select runner from
solution-defaults, project ADRs, and SRS UI Introspection Profile. Loadui-test-executionand any relevant runner reference. - Invoke the runner against the deployed environment, never against production data.
- For UI tasks:
- Tier 1 functional always;
- Tier 2 structural/token always where introspection allows;
- Tier 3 visual diff only when SRS marks Visual-Critical.
- Validate visual spec before UI execution:
Status: Generated;- Figma version matches confirmed task version;
- handoff hash matches current handoff.
- reference-render Node IDs, Figma version, dimensions, and checksums are present;
- Visual Composition Assertions and Asset Assertions are non-empty and cover every handoff composition/AST row.
- Report each TC as
pass,fail,blocked, orskipped. - For failures, attach actual vs expected, logs/screenshots/traces/diffs, and suspected track.
- Write
docs/qa-reports/<task-id>.mdand artifacts underdocs/qa-reports/<task-id>/. - Emit
plan-update.json:in-test -> doneonly when no fail/blocked cases remain; otherwisein-test -> failed.
UI Tiers
- Tier 1 functional: required elements, copy, interactions, form validation, required states, and accessibility checks named by the SRS.
- Tier 2 structural/token: layout, spacing, colors, typography, component hierarchy, and required states from
docs/uiux/visual-specs/<task-id>.md. - Tier 2 asset/composition: every required logo/graphic/image/background asset is loaded from the traced implementation path and rendered with the specified fit/crop/mask/opacity/z-order; major regions and responsive variants match the Visual Composition Assertions.
- Tier 3 visual fidelity: screenshot diff against approved references, only for
Visual-Critical: yes.
Report Tier 2 per component/property. A component passes only when every non-skipped property in every required state passes.
No-Introspection Fallback
Use this only when SRS §3.4.3 explicitly accepts a non-introspectable UI surface, such as a Unity build where AltTester was rejected.
- Confirm the SRS records the acceptance decision. If not, halt with
blocked: introspection-gap. - Use the coordinate + template registry pattern:
- fixed viewport/device resolution;
- screenshot capture per state;
- registry row per component with bounds, coordinate target, template image, source handoff node, and tolerance;
- artifacts under
docs/qa-reports/<task-id>/registry/.
- Treat coordinate/template checks as fragile. If this is not a one-off transitional path, file a high-severity open issue recommending instrumentation.
- Do not claim Tier 2 properties that cannot be observed. Mark them
skipped: framework-not-introspectable.
Artifact Layout
Every run writes artifacts under docs/qa-reports/<task-id>/:
docs/qa-reports/<task-id>/
|-- playwright-report/ (or framework-equivalent HTML report)
|-- traces/ (one trace.zip per failing test, named TC-ID.trace.zip)
|-- screenshots/ (test-captured screenshots, named TC-ID.<step>.png)
|-- visual-diffs/ (Tier 3 only)
|-- registry/ (coordinate/template fallback)
|-- xcresult/ (iOS only)
|-- android-report/ (Android only)
`-- logs/ (browser console, native logs, network captures)The markdown report at docs/qa-reports/<task-id>.md links the supporting artifact for each fail/blocked/skipped item.
Failure Tracks
be: server/data/status error.fe: UI render/behavior error with correct data.integration: contract/auth/CORS/boundary mismatch.design-drift: SRS/design mismatch requiring BA + Designer reconciliation.introspection-gap: tooling cannot verify the property.instrumentation-violation: missing testIDs/accessibility/instrumentation.unknown: TL diagnoses.
Hard Rules
- Never modify build, code, or tests to make a run pass.
- Never declare done with failed or blocked cases.
- Never silently skip verification.
- Missing spec files, stale visual specs, build identity mismatch, and unresolved selector TODOs are blocked states.
- Missing or failed deploy-report env validation, including absent SRS §3.4.6 declared-key coverage, is a blocked state routed back to DevOps. QA-Exec never guesses local
.envbehavior. - Flaky is failure until proven otherwise.
- A serial pass after a parallel FK/cache failure does not clear the failure until the harness removes shared-state contention or serializes the affected project by design.
- Contract-incompatible test assertions are blocked QA-Author defects, not product failures; do not change the shipped behavior to satisfy them.
- Per-property UI reporting is mandatory for Tier 2.
- Missing assets, placeholder substitutions, wrong frame/layout, absent backgrounds, and failed composition assertions are
fefailures even when functional flows pass. - Commit before signaling ready-to-finalize.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

