Operating contract for coding agents and maintainers working in QA-army/cli (built by Perirun for QA.army). Read SOUL.md first.
QA-army/cli ships the standalone qa-army (qa) command-line control plane. Keep this package lightweight, fast to install in ephemeral CI and agent sandboxes, and strictly decoupled from browser binaries, Temporal workers, or device drivers:
- Canonical API adapter: Targets
https://api.qa.armytoday across Rung 1 ($0Free:10saved Tests +100one-time Runs), Rung 2 ($39/moStarter,$149/moPro), and Rung 3 ($499/moDedicated), with planned local OpenAPI target support for Rung 0 self-hostedQA-army/qa.armyand Rung 4 Perirun sealed perimeters. - Shared native auth source of truth: Owns the native keyring, claimed WorkOS agent assertion exchange, refresh rotation, and process lock modules mirrored into
QA-army/mcp(src/cli-auth/provenance.json). - Device routing boundary: Raw
$0simulator/emulator/cloud session routing belongs toQA-army/open-device-router(odr), notqa-armyCLI.
- Never fabricate capabilities or passes. Unsupported surfaces must exit with status
2and return a typedREQUEST_CAPABILITYreceipt (docs/CAPABILITIES.md). Missing, interrupted, stale, or screenshot-free Runs remain errors/failures, never passing checks. - Strict credential hygiene. Store secrets only in the native OS keyring (
@napi-rs/keyring) or read governed runtime environment variables (QA_ARMY_API_KEY,QA_ARMY_ACCESS_TOKEN). Never accept secrets in CLI flags or Test steps, never log bearer tokens or signed storage URLs, and never send claimed WorkOS cloud credentials to non-canonical origins (including local Rung 0 servers). - Preserve
403and idempotency boundaries. On401, allow at most one token re-exchange; on403, surface the server's remediation without switching identities. Mutating batch/PR commands must preserve callerrequest_keyvalues and never auto-retry ambiguous mutations with fresh selections. - Cross-repo contract parity. When CLI flags, auth modules, or Test schemas change, keep
QA-army/mcp(src/cli-auth/provenance.json),QA-army/skills(skills/qa-army-cli/SKILL.md), and bundledskills/qa-army-cli/synchronized. - Tarball allowlist discipline.
scripts/verify-public.mjsenforces the exactpackage.jsonfilesallowlist (dist/src/,docs/,examples/,skills/,LICENSE,README.md,package.json). Never pack credentials, build caches, internal workstation paths, customer names, or private operational notes. - Honest availability labels. Clearly mark features in assisted rollout as
DOGFOOD-PENDING,release validation pending, orplanned.
npm ci
npm run validate
npm run verify:publicAll three OS targets (ubuntu-24.04, macos-14, windows-2022) must pass in CI before merging to main.