The problem every QA team knows. A developer renames a button ID or reshuffles a page. The application still works, but the test suite turns red. Someone has to trace each broken locator and fix it by hand, and the same work returns with the next release. Over time, maintenance eats the hours meant for new coverage, and real defects hide among failures that were never really failures.
Why Falcon exists. Falcon was built to take that repair work off your team without taking the decisions away from it. When a locator breaks, Falcon looks for the same element using evidence from earlier runs, declines to guess when the match is unclear, and records each repair as a proposal that a person approves before it is reused. Local recovery needs no AI provider; model-assisted selection is optional.
Falcon is an open-source test automation framework built on Playwright. It explores a web application, generates interaction scenarios from the live page, and runs them with layered locator recovery. Teams can follow execution in a live dashboard, inspect what changed, and decide which recovered selectors to trust.
For QA leaders and engineering teams evaluating how to reduce selector maintenance and make test results easier to investigate.
Technical preview · Node.js 22+ · Playwright · Apache 2.0 licensed
See the demo · Try it locally · View the architecture · Explore the docs · View the roadmap
Falcon brings discovery, execution, recovery, and review into one workflow:
| Team need | What Falcon provides |
|---|---|
| Spend less time repairing selectors | Retries, approved replacements, local evidence matching, and optional AI-assisted recovery for clicks, text entry, and dropdown selection. |
| Explore an unfamiliar application | A bounded crawl that discovers pages and generates interaction scenarios from their DOM. |
| Understand what a run actually covered | Page-level coverage, explicit reasons for untested pages, and pass/fail/skip results. Today a pass means the interaction succeeded; reporting verified business outcomes separately is planned for M1. |
| Review recovery decisions | Scoped locator proposals, approve/reject controls, rollback, and persisted decision history. |
| Investigate unstable tests | Repeated execution, flaky-scenario tracking, quarantine review, and run-history trends. |
| Fit into an existing delivery workflow | CLI execution, GitHub Actions, reports, page-level parallelism, and deterministic sharding. |
Generated scenarios provide a starting point for interaction coverage. Your team still defines the business assertions that establish whether a checkout, calculation, permission, or other customer journey is correct.
falcon-customer-demo-full-16x9.mp4
What the demo shows: a saved customer journey passes on a local copy of a real open-source web application (AI-agency, the code behind the AxonRadar site). A UI refactor then renames one test hook. Falcon recovers because the control kept strong identity evidence, a person approves the repair in the dashboard, and a fresh Falcon process reuses it. Falcon also refuses a different change when the control had no stable identity. Recovery uses local evidence only: no API keys and no LLM. The journey's steps were written for the demo; Falcon captured the selector.
Watch the full demo (1 min 42 s, MP4) · LinkedIn cut (4:5) · Reproduce it and see what it proves
Falcon is a self-hosted Node.js application that runs beside the application under test. Playwright owns the browser session, while Falcon coordinates discovery, scenario generation, execution, locator recovery, human review, and reporting.
The architecture guide explains:
- Runtime layers and their source components
- End-to-end execution and locator-recovery flows
- Human approval, trust, and data boundaries
- Local, CI, parallel-worker, and sharded deployment models
- Optional LLM provider isolation and local state ownership
Open the complete Falcon architecture guide →
Every row below is audited, with its status and executable evidence, in the capability truth table. Anything that table marks PLANNED or UNVERIFIED is not a shipped feature.
| Capability | Available today | Evaluation boundary |
|---|---|---|
| Browser automation | Playwright-based UI execution | Chromium is exercised in CI. Firefox and WebKit are smoke-tested through BrowserManager on a local fixture in a separate, non-gating CI job; healing is validated on Chromium only. |
| Discovery and generation | Page exploration, DOM issue scanning, generated interaction scenarios | Discovery is bounded and can miss unreachable or state-dependent journeys. |
| Locator recovery | Direct retries, scoped approved replay, deterministic matching, optional LLM selection | Recovery depends on available evidence; weak or ambiguous matches can be refused. |
| Visual regression | Screenshot comparison and diff images | Baselines and tolerances need to suit your application and execution environment. |
| API and database testing | API scenario examples and PostgreSQL tests, including TLS/mTLS configuration | Configure endpoints, credentials, fixtures, and assertions for your system. |
| Review and reporting | Live dashboard, structured results, healing history, flaky-test review, Allure integration | Local review channels are not an enterprise identity or role-based access system. |
| Parallel execution | Independent pages across workers; shard bundles merged into a combined result | Scenarios within each page remain sequential; worker session state is not synchronized. |
| Optional AI providers | OpenAI, Anthropic, Gemini, Azure OpenAI, approved OpenAI-compatible endpoints | Integrations have mocked contract tests; live model quality is not certified by those tests. |
Falcon tries recovery in order and stops when an action succeeds.
| Stage | What happens | External model required? |
|---|---|---|
| 1 · Retry | Retry the original selector. A successful interaction can capture element evidence. | No |
| 2 · Approved replay | Reuse an approved replacement in the same application, origin, pathname, action, and original-selector scope, after checking the live element. | No |
| 2.5 · Local matching | Compare live candidates with stored element evidence. Require sufficient identity, confidence, and separation from competing candidates. | No |
| 3 · AI-assisted selection | Ask the selected provider to choose from eligible candidates. Build selectors locally and revalidate the chosen element before acting. | Yes, explicitly enabled |
Human review controls trusted reuse. Local matching and AI inference may execute a recovered action in the current run. A successful recovery creates a proposal; it does not automatically become an approved replacement. Approval is scoped to the current proposal and persisted before it takes effect.
Use the dashboard's locator panel or inspect proposals from the CLI:
node scripts/healing/review.js locator-list
node scripts/healing/review.js locator-show "<identity-key>"
node scripts/healing/review.js locator-approve "<identity-key>" "<proposal-id>"
node scripts/healing/review.js locator-reject "<identity-key>" "<proposal-id>"Copy the identity and current proposal ID from the review output. Old LocatorStore entries and legacy healing approvals do not authorize the current scoped replay path.
Local matching needs previously captured evidence with a stable identifier. It is designed to decline when that evidence is missing or ambiguous. Healing also does not establish business correctness: retain assertions that verify the intended outcome.
Prerequisites: Git, Node.js 22 or newer, and npm. CI uses Node.js 24.
Use a local fixture, staging, or disposable test environment. Discovery clicks links and buttons and fills real controls. These actions can change application data, even before a recovery proposal is approved. Do not point autonomous exploration at production.
git clone https://github.com/eddieir/Falcon-Automation.git
cd Falcon-Automation
npm ci
npx playwright install chromium
cp .env.example .envOn Linux environments that need browser system libraries, use npx playwright install --with-deps chromium.
In the first terminal, from the repository directory:
npm run fixture:serve -- --port=4173This starts a disposable fixture at http://127.0.0.1:4173. Keep it running.
In a second terminal, from the same directory:
node falcon.js --url=http://127.0.0.1:4173 --max-pages=5 --budget-ms=120000Open the dashboard URL printed in the terminal; the default is http://localhost:3000. Review the execution events, result totals, and pages omitted by the limits. The default configuration keeps the dashboard available for 60 seconds after completion; increase DASHBOARD_LINGER_MS in .env before a presentation if needed.
No API key or database is needed for this walkthrough. With the fresh configuration above, Tier 3 is disabled. A first run collects evidence; it does not guarantee that a healing event will occur. This fixture walkthrough demonstrates discovery and execution.
To watch Chromium as it runs, set HEADLESS=false in .env. Stop the fixture with Ctrl+C when finished.
Replace the example URL with a test environment you control:
node falcon.js --url=https://staging.example.com --max-pages=10 --budget-ms=180000For a customer pilot, choose a small set of representative journeys, prepare disposable data and any required authentication, and agree on success criteria before running. Measure coverage gaps, maintenance effort, recovery accuracy, and review effort on that application.
Falcon's local recovery works without an LLM. Enable Tier 3 when your evaluation needs provider-assisted candidate selection.
| Provider route | Provider ID | Key consideration |
|---|---|---|
| OpenAI | openai |
Explicit provider selection and credentials required. |
| Anthropic | anthropic |
Supply a model ID available to your account. |
| Gemini direct API | gemini |
Supply a model ID; Vertex AI authentication is not implemented. |
| Azure OpenAI | azure-openai |
API-key authentication; configure resource, host suffix, and deployment. Entra ID is not implemented. |
| OpenAI-compatible endpoint | openai-compatible |
Requires explicit custom-endpoint opt-in; compatibility depends on the endpoint and model. |
After supplying OPENAI_API_KEY through your environment or secret manager:
node falcon.js --url=https://staging.example.com --llm-provider=openai --llm-model="<model-id>"Replace <model-id> with a model available to your account. An API key alone does not enable Tier 3. A conflicting FALCON_LLM_PROVIDER setting causes CONFIG_CONFLICT; align or unset it before selecting a different provider.
Named profiles store provider settings and a credential environment-variable name, never the key value. See the BYOK operations guide for profiles, credential isolation, budgets, and provider switching.
What leaves the machine: the failing selector, action, step description, and bounded candidate descriptors such as tag names, selected attributes, and text are sent to the selected endpoint. The prompt defaults to 20 candidates, supports up to 60, and is capped at 8 KiB. Falcon does not send the full page DOM, cookies, storage, or environment variables in this payload. Candidate labels and text can still contain application data.
The provider release was tested against mocked protocols. It does not certify live provider behavior, every vendor model, AWS Bedrock, or other unimplemented authentication methods.
- Execution results: pass, fail, and skip outcomes, plus pages left untested and the reason.
- Recovery evidence: which recovery stage was used, proposals awaiting review, and scoped decisions.
- Visual evidence: screenshot baselines and differences when visual regression checks are used.
- Stability signals: repeated-run classification, quarantine review, and history trends.
- CI artifacts: regression reports, scenario reports, and Allure output from the repository workflow.
The GitHub Actions workflow exercises regression checks, browser tests, scenario tests with a seeded PostgreSQL service, and sharding/merge behavior. See current workflow runs for commit-specific results.
Run these from the repository root after installation:
| Task | Command |
|---|---|
| Run without the live dashboard | node falcon.js --url=http://127.0.0.1:4173 --no-dashboard |
| Repeat generated scenarios for stability analysis | node falcon.js --url=http://127.0.0.1:4173 --repeat=3 |
| Run independent pages with two workers | node falcon.js --url=http://127.0.0.1:4173 --workers=2 |
| Run Node.js regression checks | npm run test:regression |
| Run browser regression checks | npm run test:browser |
| Run both regression layers | npm test |
| Inspect run history | npm run history:list |
| Run the recorded third-party UI demo suite | npm run test:demo |
| Generate and open an Allure report from existing results | npm run report |
Keep the local fixture running for commands targeting port 4173. The recorded third-party suite needs network access and is intentionally excluded from CI. For sharding, merge validation, and worker limitations, see parallel execution operations.
Falcon runs in your own Node.js environment or CI runner. The dashboard binds to loopback by default; a non-loopback bind requires DASHBOARD_TOKEN. Use the printed dashboard URL and follow the configuration reference when enabling remote access.
Local locator memory, reports, screenshots, and history can contain application details. Keep runtime artifacts out of source control and apply your team's access and retention rules. Locator memory includes bounded plaintext fields; hashed attributes do not make the file anonymous. For sensitive evaluations, configure and securely retain a stable FALCON_LOCATOR_SALT.
The current review audit records decision channels such as CLI and dashboard, not authenticated individual identities. Evaluate those controls against your organization's requirements before broader adoption. Report vulnerabilities through the security policy.
| Start here | What you will find |
|---|---|
| Architecture guide | Runtime layers, execution flows, recovery, trust boundaries, deployment, and detailed design links. |
| Environment configuration | Browser, dashboard, database, provider, and history settings. |
| BYOK operations | Invocation-scoped providers, profiles, and credentials. |
| Provider architecture | Provider context and isolation design. |
| Parallel execution operations | Workers, shards, merge behavior, and constraints. |
| Historical technical reference | The previous detailed README, including demo walkthroughs, operational background, and phase history. |
| Capability truth table | Every promised capability tagged SHIPPED, PARTIAL, PLANNED or UNVERIFIED, with evidence, limits and open gaps. |
| Competitive evidence register | How competitor claims are sourced, dated and graded; unknown is not the same as absent. |
| Competitive benchmark protocol | Neutral workloads, scoring rules, the scorer and a local run against Playwright, Selenium and Cypress, with its limits. |
| Release history | Delivered changes and fixes. |
| Development plans | Phase plans and implementation context. |
| Delivery plan | Milestone timeline, decision gates, risks, and the full delivery chart. |
| Contributing | Development and contribution guidance. |
Falcon is developed in ten milestones, M0 to M9. GitHub milestones are the source of truth. Target dates are provisional planning estimates, not release commitments.
gantt
title Falcon roadmap, M0 to M9
dateFormat YYYY-MM-DD
axisFormat %b %Y
tickInterval 2month
todayMarker off
section Done
M0 Competitive evidence baseline :done, m0, 2026-10-23, 2026-11-13
M1 Trustworthy Alpha :done, m1, 2026-10-27, 2026-11-10
section Next
M2 Secure Technical Preview :m2, 2027-01-11, 2027-02-19
section Planned
M3 Verified Self-Healing :m3, 2027-02-22, 2027-03-26
M4 Developer Beta :m4, 2027-03-29, 2027-05-07
M5 Efficient CI :m5, 2027-05-10, 2027-06-18
M6 Enterprise Operations :m6, 2027-06-21, 2027-08-13
M7 Customer Pilot :m7, 2027-08-16, 2027-09-24
M8 Advanced QA :m8, 2027-09-27, 2027-12-03
M9 Independent Competitive Release :m9, 2027-12-06, 2028-01-14
| Milestone | Target | Status | What you'll get |
|---|---|---|---|
| M0 — Competitive evidence baseline | 13 Nov 2026 | ✅ Done | A public record of what works today, with evidence behind every claim |
| M1 — Trustworthy Alpha | 8 Jan 2027 | 🟢 Issues closed 10 Nov 2026; known exclusions below | Results that show green only when your business checks pass, not just when clicks succeed |
| M2 — Secure Technical Preview | 19 Feb 2027 | 🟡 Next; #80 blocked on owner decisions and an independent human reviewer | Safe exploration by default, and isolated test logins for each user role |
| M3 — Verified Self-Healing | 26 Mar 2027 | ⚪ Planned | Measured, explainable healing that you can review and undo |
| M4 — Developer Beta | 7 May 2027 | ⚪ Planned | Bring your Playwright tests in, take clean Playwright tests out, and get started in five minutes |
| M5 — Efficient CI | 18 Jun 2027 | ⚪ Planned | Faster, cheaper CI that runs only the affected tests, within time and AI-cost limits |
| M6 — Enterprise Operations | 13 Aug 2027 | ⚪ Planned | Team roles, audit trails, and retention controls for larger organizations |
| M7 — Customer Pilot | 24 Sep 2027 | ⚪ Planned | Results from real design-partner pilots, plus a cost and ROI model |
| M8 — Advanced QA | 3 Dec 2027 | ⚪ Planned | Accessibility, visual, and API checks inside the same customer journeys |
| M9 — Independent Competitive Release | 14 Jan 2028 | ⚪ Planned | An independently reviewed release with reproducible benchmarks |
Delivery plan for each milestone: what "done" means, dependencies, and a timeline of the issues
Dates inside each milestone are planning estimates and move as work lands. Issue numbers link to the work on GitHub.
Done when: Completed on 26 Oct 2026. The competitor evidence register, the benchmark harness with a local run, and the capability truth table are published.
Depends on: Nothing
gantt
title M0 Competitive evidence baseline, target 13 Nov 2026
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1day
todayMarker off
section Done
Competitor evidence register (#74) :done, t1, 2026-10-23, 2026-10-27
Neutral benchmark harness (#75) :done, t2, 2026-10-23, 2026-10-27
Capability truth table (#76) :done, t3, 2026-10-24, 2026-10-27
Done when: A run with no approved business checks can never be reported as fully verified. Approved checks run the same way every time, without an LLM. Discovery finds 2–5 step journeys in local test apps, within set page and action limits.
Depends on: M0
All four M1 issues (#79, #125, #77, #78) are closed on GitHub. Closure is not full delivery of every planned item. Not delivered in M1:
- A CLI discovery flag, and
JourneyExploreruse inside site sweeps. #78 delivered a library module only (PR #142), proven on local fixtures. See journey discovery. - Real-site validation, and form entry, login or multi-tab exploration. Discovery is click-only.
- Strict
--require-verifiedCLI mode, dashboard and Allure agreement (#79 follow-up). It is not in the code today.
These stay planned future work without a committed date.
gantt
title M1 Trustworthy Alpha, issues closed 10 Nov 2026
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 2week
todayMarker off
section Done
Verification classifier (#79) :done, t1, 2026-10-23, 2026-10-27
Safer storage for approved checks (#125) :done, t2, 2026-10-23, 2026-10-28
Business checks and approved contracts (#77) :done, t3, 2026-10-23, 2026-11-06
Journey discovery library (#78) :done, t4, 2026-11-02, 2026-11-10
Done when: Destructive actions are blocked by default, with a visible reason. Each user role runs in its own browser context, with no shared sessions or leaked secrets. An independent human security review signs off.
Depends on: M1, and an independent security reviewer
gantt
title M2 Secure Technical Preview, target 19 Feb 2027
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1week
todayMarker off
section Planned
Security review gates (#80) :t1, 2027-01-11, 2027-01-30
Risky actions blocked by default (#81) :t2, 2027-01-25, 2027-02-11
Isolated logins per user role (#82) :t3, 2027-02-01, 2027-02-18
Done when: Healing accuracy, wrong-action and refusal rates are published reproducibly, including on applications the Falcon team did not write. Ambiguous matches are refused, and every repair can be traced and undone.
Depends on: M0 and M1
gantt
title M3 Verified Self-Healing, target 26 Mar 2027
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1week
todayMarker off
section Planned
Healing benchmark corpus (#83) :t1, 2027-02-22, 2027-03-06
Stricter element matching and replay (#84) :t2, 2027-03-08, 2027-03-20
Explain and undo every repair (#85) :t3, 2027-03-15, 2027-03-27
Done when: Playwright suites import without running their code, and anything unsupported is listed rather than skipped. Exported tests compile and pass. A first run works on Node.js 22 and 24 without an API key.
Depends on: M1 and M3
gantt
title M4 Developer Beta, target 7 May 2027
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1week
todayMarker off
section Planned
Import Playwright tests (#86) :t1, 2027-03-29, 2027-04-17
Export clean Playwright tests (#87) :t2, 2027-04-12, 2027-05-04
Five-minute onboarding (#88) :t3, 2027-04-19, 2027-05-08
Done when: If the impact of a change is unknown, the full relevant test set runs. A run that hits its budget reports PARTIAL or UNKNOWN, never PASSED. Related failures are grouped without hiding different root causes.
Depends on: M1
gantt
title M5 Efficient CI, target 18 Jun 2027
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1week
todayMarker off
section Planned
Run only the tests a change affects (#89) :t1, 2027-05-10, 2027-05-29
Run-time and AI-cost budgets (#91) :t2, 2027-05-10, 2027-06-05
Group related failures (#90) :t3, 2027-05-31, 2027-06-19
Done when: Access is denied by default, and audit records show who did what. Retention, deletion and audit export are integrity-checked, with no credentials or personal data in default artifacts. CI integrations are safe for pull requests from forks.
Depends on: M2, and an independent security review
gantt
title M6 Enterprise Operations, target 13 Aug 2027
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1week
todayMarker off
section Planned
Team roles and permissions (#92) :t1, 2027-06-21, 2027-07-17
Retention and audit export (#93) :t2, 2027-07-05, 2027-07-31
Safer CI integrations (#95) :t3, 2027-07-19, 2027-08-12
Done when: Three scoped design-partner evaluations are completed, or the reason they could not be recruited is documented. ROI figures use customer-verified inputs. Packaging decisions have legal sign-off.
Depends on: M2, M3, and recruiting design partners
gantt
title M7 Customer Pilot, target 24 Sep 2027
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1week
todayMarker off
section Planned
Packaging and support plans (#98) :t1, 2027-08-16, 2027-09-11
Three design-partner pilots (#96) :t2, 2027-08-16, 2027-09-25
ROI and cost calculator (#97) :t3, 2027-08-23, 2027-09-18
Done when: Accessibility findings are tied to journeys and never presented as certification. Visual baselines change only with explicit approval. UI actions are linked to API evidence, with sensitive data masked.
Depends on: M1 and M6
gantt
title M8 Advanced QA, target 3 Dec 2027
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 2week
todayMarker off
section Planned
Accessibility checks in journeys (#99) :t1, 2027-09-27, 2027-10-30
Visual change review (#100) :t2, 2027-10-11, 2027-11-13
Link UI actions to API calls (#101) :t3, 2027-10-25, 2027-12-02
Done when: The benchmark is rerun on the release version. An independent human security and QA review is recorded. Every published claim links to its evidence.
Depends on: All earlier milestones, and independent reviewers
gantt
title M9 Independent Competitive Release, target 14 Jan 2028
dateFormat YYYY-MM-DD
axisFormat %d %b
tickInterval 1week
todayMarker off
section Planned
Cross-tool benchmarks (#102) :t1, 2027-12-06, 2027-12-24
Independent security and QA review (#103) :t2, 2027-12-06, 2028-01-08
Release evidence pack (#104) :t3, 2028-01-03, 2028-01-15
For the team's working plan, including decisions, risks, and the full delivery chart, see the delivery plan.
Falcon is an open-source technical preview in active development. Evaluate it against your own application, assertions, data policies, and CI requirements. The repository's announcement readiness notes document the evidence and limits behind the provider release.
Released under the Apache License 2.0; see also NOTICE. Versions up to and including the v1.0.0-mit tag were released under the MIT License, and those versions remain available under it.
Falcon's core is open source and will stay that way. Team and enterprise features may be offered under a separate commercial license in the future.
Created by Peyman Iravani.