Sigroom Docs

Test an Application with GeneSYS QA

GeneSYS QA keeps web, CLI, and API user checks with your repository, then records what happened in a run you can inspect and share.

readyApplication developersSource reviewed 2026-11-08

Create QA Flows in Your Repository

Run setup from the repository root. It discovers applications and creates .gene/qa/config.yaml, .gene/qa/flows/*.yaml, QA skills, and a pull-request workflow. Read the generated flows, replace example URLs and checks with your app's real behavior, and commit the reviewed files. Setup preserves existing files; use --force only when you intend to replace them.

bash
cd /path/to/your/repository
gene qa setup

Run the Checks You Need

Choose a flow directly, run all flows, or let GeneSYS select flows affected by a diff. An explicit --flow or --all run does not need an origin remote. A diff run needs valid base and head refs. Read each flow before running it: its steps may start your app, call an API, or use a browser.

bash
: "${GENE_QA_FLOW_ID:?Set a reviewed flow ID from .gene/qa/flows}"
gene qa run --flow "$GENE_QA_FLOW_ID"

# Alternative: run every reviewed flow
gene qa run --all

# Alternative: select checks from a valid Git diff
: "${GENE_QA_BASE_REF:?Set the base Git reference to compare}"
gene qa run --base "$GENE_QA_BASE_REF" --head HEAD --json

Inspect the Result and Evidence

The command prints the evidence manifest path. Its run folder in Gene home also contains report.md and captures from terminal, API, or browser steps. A failed or blocked required flow returns a nonzero exit code. A run without a Sigroom candidate binding reports submission as unbound; local QA still works.

Review Suggested Flow Fixes

When a flow fails or is blocked, GeneSYS may write learned-qa-knowledge.patch in that run folder. It proposes a change to the same flow file that was read, preserving existing reviewed knowledge. Inspect the patch and check that it applies before choosing whether to use it. GeneSYS never applies the proposal automatically.

bash
git apply --check /path/to/qa/run/learned-qa-knowledge.patch

Submit Evidence to a Sigroom Candidate

If your Sigroom instance supports candidate QA, an authorized project service token with the qa:submit scope can submit the run. Configure SIGROOM_API_URL, SIGROOM_API_TOKEN, SIGROOM_WORKSPACE_ID, SIGROOM_PROJECT_ID, SIGROOM_QA_CANDIDATE_KIND=hacp_candidate_snapshot, SIGROOM_QA_CANDIDATE_ID, and SIGROOM_QA_CANDIDATE_HASH before running gene qa. Use the exact ID and hash of a ready candidate. For an explicit --flow or --all candidate run, GeneSYS requires versioned QA configuration and a clean Git checkout. The command fails when expected submission does not succeed. Keep the token out of the repository and reports.

More Setup Help

If gene reports an unknown qa command, use a GeneSYS build that includes application QA before following these steps.

Source Material

  • GeneSYS/docs/features/AUTOMATED_QA.md
  • GeneSYS/packages/cli/src/commands/qa/service.ts
  • GeneSYS/packages/cli/src/qa/setup.ts
  • GeneSYS/packages/cli/src/qa/runner.ts
  • apps/api/src/modules/qa/routes.ts