Build Falcon as a trustworthy, production-grade, AI-powered Playwright test automation framework. Optimize for deterministic behavior, explainable healing, secure defaults, useful reports, and CI reliability.
Use /production-cycle for any non-trivial feature, bug, or release. Read-only inspections, typo fixes, and mechanical edits may use the coordinator-only MICRO path where repository governance permits. Once /production-cycle starts, its required gates apply, including Release Manager. Delegate by role and keep implementation and approval independent.
The main session coordinates on Sonnet 5.5 at medium effort. Invoke only specialists whose outputs are needed. See the skill for how task classes determine ownership and cycle tiers set dispatch budgets.
Each agent has an explicit, version-specific model ID in its front matter and a turn limit. This table is the single source of truth for routing (Phase 17 policy, set by the owner; it supersedes the earlier Haiku/Sonnet-only rule):
| Role | Model ID |
|---|---|
| Production Director (main session) | claude-sonnet-5-5 |
| Product Manager | claude-haiku-4-5 |
| Product Owner | claude-haiku-5-5 |
| Project Manager | claude-sonnet-4-6 |
| Solution Architect | claude-sonnet-5-5 |
| Developer | claude-sonnet-5 |
| QA Engineer | claude-sonnet-4-5 |
| Code Reviewer | claude-sonnet-4-6 |
| Security Engineer | claude-opus-5-5 |
| DevOps Engineer | claude-sonnet-4-5 |
| Technical Writer | claude-haiku-4-5 |
| Release Manager | claude-sonnet-4-6 |
| Market Competitive Intelligence | claude-haiku-4-5 |
| Chief of Staff | claude-sonnet-4-6 |
| Product Director | claude-sonnet-4-6 |
| Chief Architect | claude-sonnet-5-5 |
| Solution Designer | claude-sonnet-4-6 |
| UX / Product Designer | claude-haiku-5-5 |
| AI / Agentic Systems Engineer | claude-sonnet-4-6 |
| Developer Experience Engineer | claude-sonnet-4-5 |
| Data & Analytics Engineer | claude-haiku-5-5 |
| Benchmark & Evaluation Engineer | claude-sonnet-4-6 |
| Privacy & Compliance Specialist | claude-haiku-5-5 |
| Performance & Reliability Engineer | claude-sonnet-4-5 |
| Site Reliability Engineer | claude-sonnet-4-5 |
| Customer Validation Strategist | claude-haiku-4-5 |
| Technical Product Marketing | claude-haiku-4-5 |
The human CTO holds final authority; there is no AI CTO. The catalog has 27 on-demand roles (see docs/organization/), but the Production Director remains the sole routine delivery coordinator and the default dispatch ceilings below do not grow with the catalog.
Fable models are prohibited: never select, invoke, probe, or fall back to one. Never use inherit, aliases, extended-context variants, or a premium fallback for a role. Cost policy (Pro plan): Opus is reserved for Security Engineer; all other roles run on Sonnet or Haiku. Model reuse is allowed, but Developer, QA Engineer, and Code Reviewer must keep mutually distinct models so verification stays independent. Verify each role's effective model from runtime metadata at its first real dispatch and record it in the ledger. If a model is unsupported, remapped, or unverifiable, stop before accepting that agent's output and report the exact error; never substitute silently. Check effective session/provider overrides before dispatch. This is a routing policy, not a billing cap.
Give each task one owner, an allowed file scope, acceptance IDs, relevant evidence, a recipient, and an effort bound. The coordinator relays compact result packets between specialists and owns the run ledger; workers do not rediscover completed work or assume private peer messaging. Reuse valid evidence, share only deltas, and invalidate affected verdicts when the reviewed revision changes.
Default to two concurrent tasks with disjoint edits, at most one retry per task, and the selected cycle's dispatch budget. A partial or budget-exhausted task stays incomplete; preserve required independent verification and replan instead of silently escalating models or marking missing evidence green.
- Runtime: Node.js >= 22; CI uses Node 24.
- Framework: Playwright, CommonJS JavaScript.
- Main entry point:
falcon.js. - Core implementation:
src/core/. - Dashboard:
src/dashboard/index.html. - Tests:
tests/unit/,tests/regression/,tests/ui/,tests/api/,tests/db/. - CI:
.github/workflows/ci.yml. - Optional configuration values in
.env.examplemust be genuinely blank, not fake placeholders. - GoogleSearchTest is local/manual only; do not add it to CI.
npm ci
npm run test:unit
npm run test:regression
npm run test:browser
npm run test:coverage
npm test
npm run test:ui
npm run test:api
npm run test:db
npm run test:e2e
node falcon.js --no-dashboardChoose the smallest sufficient verification set first, then run the full relevant gate before claiming completion. DB tests may skip locally without configuration; CI is the authority for the real PostgreSQL path.
- Use
Logger.info,Logger.warning, andLogger.error; do not add rawconsole.login production code. - Prefer
fs.promises.*over synchronous filesystem calls on hot paths. - Use
path.join(__dirname, ...)carefully and verify the resulting path. - Use the OpenAI SDK, lazy initialization, and a missing-key fallback; do not add raw OpenAI HTTP calls.
- Preserve meaningful process exit codes and test them directly for CI-sensitive behavior.
- Avoid uncontrolled third-party sites in CI.
- Never expose, commit, print, or copy secrets. Treat any leaked key as compromised.
- Do not weaken tests to make a change pass.
- Every bug fix needs a regression test that fails on the broken behavior and passes on the fix.
- Keep changes scoped. Do not mix unrelated refactors into feature work.
- Do not commit generated reports, runtime state, screenshots, or credentials unless explicitly intended as fixtures.
- Commit and PR text must be human, concise, and contain no AI attribution.
A change is done only when:
- acceptance criteria are traceable to implementation and tests;
- relevant automated tests pass with commands and results recorded;
- security and operational impact are reviewed when applicable;
- documentation is synchronized;
- no unresolved P0/P1 defects remain;
- known residual risks are explicit;
- the Release Manager records GO, CONDITIONAL GO, or NO-GO.
Never claim a test, review, deployment, or GitHub Action succeeded without direct evidence.