Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 3.23 KB

AGENTS.md

File metadata and controls

30 lines (21 loc) · 3.23 KB

AGENTS.md — QA-army/cli

Operating contract for coding agents and maintainers working in QA-army/cli (built by Perirun for QA.army). Read SOUL.md first.

Scope and role in the stack

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:

  1. Canonical API adapter: Targets https://api.qa.army today across Rung 1 ($0 Free: 10 saved Tests + 100 one-time Runs), Rung 2 ($39/mo Starter, $149/mo Pro), and Rung 3 ($499/mo Dedicated), with planned local OpenAPI target support for Rung 0 self-hosted QA-army/qa.army and Rung 4 Perirun sealed perimeters.
  2. 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).
  3. Device routing boundary: Raw $0 simulator/emulator/cloud session routing belongs to QA-army/open-device-router (odr), not qa-army CLI.

Non-negotiable engineering rules

  1. Never fabricate capabilities or passes. Unsupported surfaces must exit with status 2 and return a typed REQUEST_CAPABILITY receipt (docs/CAPABILITIES.md). Missing, interrupted, stale, or screenshot-free Runs remain errors/failures, never passing checks.
  2. 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).
  3. Preserve 403 and idempotency boundaries. On 401, allow at most one token re-exchange; on 403, surface the server's remediation without switching identities. Mutating batch/PR commands must preserve caller request_key values and never auto-retry ambiguous mutations with fresh selections.
  4. 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 bundled skills/qa-army-cli/ synchronized.
  5. Tarball allowlist discipline. scripts/verify-public.mjs enforces the exact package.json files allowlist (dist/src/, docs/, examples/, skills/, LICENSE, README.md, package.json). Never pack credentials, build caches, internal workstation paths, customer names, or private operational notes.
  6. Honest availability labels. Clearly mark features in assisted rollout as DOGFOOD-PENDING, release validation pending, or planned.

Validation before completion

npm ci
npm run validate
npm run verify:public

All three OS targets (ubuntu-24.04, macos-14, windows-2022) must pass in CI before merging to main.