@ia-qa/self-healing 1.6.7 → 1.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -0
- package/TUTORIAL.md +128 -2
- package/assets/logoKawaiiGreenTiny.png +0 -0
- package/dist/aom.d.ts +8 -0
- package/dist/aom.js.map +1 -1
- package/dist/cli/args.js +4 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/audit.js +2 -8
- package/dist/cli/audit.js.map +1 -1
- package/dist/cli/diff.d.ts +25 -1
- package/dist/cli/diff.js +176 -20
- package/dist/cli/diff.js.map +1 -1
- package/dist/cli/emit.d.ts +71 -0
- package/dist/cli/emit.js +150 -0
- package/dist/cli/emit.js.map +1 -0
- package/dist/cli/fix.js +41 -3
- package/dist/cli/fix.js.map +1 -1
- package/dist/cli/history.d.ts +12 -0
- package/dist/cli/history.js +95 -0
- package/dist/cli/history.js.map +1 -0
- package/dist/cli/index.js +68 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/ingest.js +5 -8
- package/dist/cli/ingest.js.map +1 -1
- package/dist/cli/init.js +32 -0
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/map.d.ts +14 -1
- package/dist/cli/map.js +144 -33
- package/dist/cli/map.js.map +1 -1
- package/dist/cli/run.js +91 -8
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/ui.d.ts +16 -0
- package/dist/cli/ui.js +294 -0
- package/dist/cli/ui.js.map +1 -0
- package/dist/cli-ai/index.js +3 -3
- package/dist/cli-ai/index.js.map +1 -1
- package/dist/config.d.ts +50 -0
- package/dist/config.js +63 -1
- package/dist/config.js.map +1 -1
- package/dist/evidence.d.ts +130 -0
- package/dist/evidence.js +232 -0
- package/dist/evidence.js.map +1 -0
- package/dist/fixEngine.d.ts +2 -0
- package/dist/fixEngine.js +7 -0
- package/dist/fixEngine.js.map +1 -1
- package/dist/history.d.ts +145 -0
- package/dist/history.js +230 -0
- package/dist/history.js.map +1 -0
- package/dist/htmlReport.d.ts +47 -0
- package/dist/htmlReport.js +103 -1
- package/dist/htmlReport.js.map +1 -1
- package/dist/ingest.d.ts +18 -0
- package/dist/ingest.js +0 -0
- package/dist/ingest.js.map +1 -1
- package/dist/junit.d.ts +53 -0
- package/dist/junit.js +150 -0
- package/dist/junit.js.map +1 -0
- package/dist/mcp/server.js +46 -5
- package/dist/mcp/server.js.map +1 -1
- package/dist/nameMask.d.ts +110 -0
- package/dist/nameMask.js +0 -0
- package/dist/nameMask.js.map +1 -0
- package/dist/ui/icon.d.ts +41 -0
- package/dist/ui/icon.js +115 -0
- package/dist/ui/icon.js.map +1 -0
- package/dist/ui/lock.d.ts +40 -0
- package/dist/ui/lock.js +138 -0
- package/dist/ui/lock.js.map +1 -0
- package/dist/ui/page.d.ts +1 -0
- package/dist/ui/page.js +657 -0
- package/dist/ui/page.js.map +1 -0
- package/dist/ui/registry.d.ts +62 -0
- package/dist/ui/registry.js +139 -0
- package/dist/ui/registry.js.map +1 -0
- package/dist/ui/server.d.ts +76 -0
- package/dist/ui/server.js +607 -0
- package/dist/ui/server.js.map +1 -0
- package/dist/ui/shortcut.d.ts +90 -0
- package/dist/ui/shortcut.js +176 -0
- package/dist/ui/shortcut.js.map +1 -0
- package/dist/update.d.ts +104 -0
- package/dist/update.js +297 -0
- package/dist/update.js.map +1 -0
- package/dist/volatile.d.ts +2 -0
- package/dist/volatile.js +2 -0
- package/dist/volatile.js.map +1 -1
- package/package.json +3 -2
- package/skills/ia-qa-heal/SKILL.md +37 -0
package/README.md
CHANGED
|
@@ -148,6 +148,18 @@ Everything the tool needs lives in **one JSON file**, written for you by `ia-qa-
|
|
|
148
148
|
// prefix href:/selector:/name:/role: — without one, tried against href, selector and name.
|
|
149
149
|
"volatile": ["href:*source=rss*", "href:https://blog.example.com/*"],
|
|
150
150
|
|
|
151
|
+
// 🎭 NAMEMASK — labels that carry a counter, a total or a clock ("Cart (3)",
|
|
152
|
+
// "🔌 Smithery 3.2k calls"). The *label* rotates, the element does not — so
|
|
153
|
+
// unlike `volatile`, the element stays fully under contract (role, selector and
|
|
154
|
+
// href still gate, a selector break on it still BLOCKs) and only the name stops
|
|
155
|
+
// being compared. Applied at comparison time: the contracts on disk keep the raw
|
|
156
|
+
// label, so adding or removing a mask never needs a re-map.
|
|
157
|
+
// Same glob dialect as `volatile`, no field prefix. A pattern with no stable text
|
|
158
|
+
// ("*") is refused at load. At runtime a mask is also dropped, loudly, if it would
|
|
159
|
+
// swallow a label your tests locate by name, or leave two elements of one role
|
|
160
|
+
// sharing a name.
|
|
161
|
+
"nameMask": ["Cart (*)", "🔌 Smithery * calls"],
|
|
162
|
+
|
|
151
163
|
"ai": { "…": "optional AI add-on — see below" }
|
|
152
164
|
}
|
|
153
165
|
```
|
|
@@ -159,6 +171,7 @@ Everything the tool needs lives in **one JSON file**, written for you by `ia-qa-
|
|
|
159
171
|
1. **Separate configs/runs** — one `.ia-qa/` per role, selected with `--config <dir>` (see **Monorepos** below), or
|
|
160
172
|
2. **Let your own test suite log in** — run `ia-qa-heal run` with your `testCommand`; it sets `IAQA_CAPTURE=1` and the contract is captured *during your suite*, so **whatever logins your tests already do (any number of users) are covered** — no `auth` block needed.
|
|
161
173
|
- **"My diff BLOCKs on links that just… rotate (a news feed, a blog widget)?"** → That is content churn, not UI drift: the feed's links entered the contract as if they were buttons, and the next capture caught the feed mid-rotation. Name what rotates in `"volatile"` (see above) and it never enters a contract again — the diff even prints a hint pointing here when a BLOCK is made of lost external links.
|
|
174
|
+
- **"The same rows come back as `renamed` every run — a cart counter, a call total, a clock."** → Only the *label* is moving, so only the label should stop being compared: put the pattern in `"nameMask"` (`"Cart (*)"`), not in `"volatile"`. `volatile` would delete the element from the contract — counter, button, href and coverage together — so a real selector break on it would go unnoticed forever; a mask keeps all of that gating and exempts the name alone. The diff prints the exact config line to paste when it spots the pattern. Two masks it refuses to apply, and says so: one that would hide a label your tests locate by name (that is a red suite behind a green gate), and one that would leave two elements of the same role wearing one name (a locator coin flip the mask itself created).
|
|
162
175
|
- **"How do I add a page behind a click, not a URL?"** → add `steps` to that page (see `billing` above): a list of `{ "click": { "role": "...", "name": "..." } }`. Named by role + accessible name, exactly like the contract — never a CSS selector.
|
|
163
176
|
- **"My app spans several domains behind a single sign-on (federated SSO) — does `map` cover it?"** → **Not with one `auth` block.** `auth` runs **one** login against **one** domain, before the first page. A federated IdP that re-challenges each project/domain with its own scope (`?projectName=…`, a different sub-domain per portal) is never satisfied by that single login — the second domain bounces back to a login the first one never covered, and the page maps empty (map now warns when an authenticated target returns 0 elements). Two ways through: **one `.ia-qa/` per domain/portal**, each selected with `--config <dir>` (see **Monorepos** below), or **`ia-qa-heal run` with `IAQA_CAPTURE=1`** so your own suite — which already handles the full SSO dance (cookies, redirects, per-project scope) — does the auth and the contract is captured during that real run. For a multi-portal app, capture-during-run is the intended path; `map --auth` is for single-domain apps.
|
|
164
177
|
|
|
@@ -235,6 +248,60 @@ Run again with --apply to add the uncovered pages to config.pages.
|
|
|
235
248
|
|
|
236
249
|
Then `ia-qa-heal map` captures their contracts as usual. Discovery never maps, heals, or edits a test — it only ever edits `config.json`, and only with `--apply`.
|
|
237
250
|
|
|
251
|
+
## The console — `ia-qa-heal ui`
|
|
252
|
+
|
|
253
|
+
The report tells you what drifted. The console lets you **act on it**.
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
npx ia-qa-heal ui
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
…or, for someone who should never have to open a terminal at all:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
npx ia-qa-heal ui --shortcut # once per project
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
That puts an icon on the desktop — the ia-qa logo, wired to *this* project. Double-click it: the console starts and the browser opens on it. No URL is ever typed or copied, which is also how the session token stays out of a human's hands. Click it twice and it reuses the console it already opened. **Closing the browser tab stops the server**, so a click never leaves a process running behind your back (`--keep-alive` opts out).
|
|
266
|
+
|
|
267
|
+
It opens a local page with three things the terminal cannot give you:
|
|
268
|
+
|
|
269
|
+
- **The rows waiting on a human** — every `ambiguous`, `lost` and `rebound` row, each with a **highlighted crop** of the candidates as they look on the page right now (needs `map --screenshots`). When five identical "Copy" buttons exist, the row's selector tells you nothing; the picture tells you which one. Alongside them, the `file:line` of every test that will break.
|
|
270
|
+
- **The verbs as buttons** — capture, ingest, diff, audit, check, preview/apply the rewrites — with the output streamed back.
|
|
271
|
+
- **The run history as charts** — verdicts over time, mean coverage, and which pages actually churn.
|
|
272
|
+
|
|
273
|
+
**How it is kept safe**, because a server on a QA's machine is not free:
|
|
274
|
+
|
|
275
|
+
| | |
|
|
276
|
+
|---|---|
|
|
277
|
+
| **Loopback only** | bound to `127.0.0.1`, never `0.0.0.0` — in a container that would be a published port |
|
|
278
|
+
| **A one-time token** | in the URL, required on every request. Without it, *any* page open in your browser could `fetch` the console and read the contracts of your authenticated app, or trigger an action |
|
|
279
|
+
| **Host pinning** | requests whose `Host` is not loopback are refused, which is the DNS-rebinding case a token alone does not cover |
|
|
280
|
+
| **No new authority** | buttons spawn this package's own CLI with a fixed argv from an allowlist — never a string from the request. The console can do **nothing the CLI would refuse**: an `ambiguous` locator is never rewritten from here either |
|
|
281
|
+
|
|
282
|
+
Nothing is uploaded, there is no telemetry and no external asset — the page is inline HTML/CSS/JS and every byte it shows came off your disk. It refuses to start under CI, where an interactive surface would just hang; use `--json`, `--junit` or the exit code there.
|
|
283
|
+
|
|
284
|
+
**One request does leave, and it is stated rather than buried:** at startup, at most once a day, `ui` asks `registry.npmjs.org` whether a newer version of this package exists, so the banner can tell you. The desktop shortcut launches a fixed path on disk, and the person clicking it does not own a terminal — this is the only way they would ever find out. It sends a request for a public package's version number: nothing about your app, your tests, your contracts or your results, no telemetry, no identifier. The answer is cached in `~/.ia-qa/update-check.json`, the terminal names the host before the request happens, and **`ia-qa-heal ui --offline` removes it entirely**.
|
|
285
|
+
|
|
286
|
+
The banner stops at the command to paste. It installs nothing, and there is no button that would: the console's authority is exactly the CLI's, and `npm install` is a different binary that runs whatever lifecycle scripts the registry serves — wiring that to a button would widen a leaked token from "edits my test files" to "runs arbitrary code as me". If you started through `npx`, it says so and tells you there is nothing to install.
|
|
287
|
+
|
|
288
|
+
### Several projects — the switcher
|
|
289
|
+
|
|
290
|
+
The header carries a **Project** dropdown as soon as there is more than one. It is governed by a single rule:
|
|
291
|
+
|
|
292
|
+
> **A project is reachable only if you opened a console in it.**
|
|
293
|
+
|
|
294
|
+
Nothing scans your disk. `~/.ia-qa/projects.json` is a consent list, and there are exactly two ways to consent: run `ia-qa-heal ui` in a folder, or pick **+ Add another project…** in the dropdown and give the path. Switching between listed projects resolves the requested directory against that list *exactly* — a folder outside it cannot be named. Entries whose project has been deleted are dropped rather than offered, and actions are handed `--config <active project>` explicitly rather than inheriting anything.
|
|
295
|
+
|
|
296
|
+
Adding from the console is a deliberate action by whoever holds the session token — the same token that already authorizes *Repair my test files*. What the list defends against is a **drive-by**: another page in your browser reaching localhost. That is stopped by the token and the `Host` check, not by making you walk to a terminal.
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
ia-qa-heal ui --forget # clear the whole list
|
|
300
|
+
ia-qa-heal ui --forget ../shop # drop one project
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Forgetting only removes a folder from the switcher — it deletes nothing in the project, and opening a console there again re-adds it. `IAQA_HOME` relocates the list (useful on a shared machine).
|
|
304
|
+
|
|
238
305
|
## Visualize the app — `ia-qa-heal graph`
|
|
239
306
|
|
|
240
307
|
Turn the mappings you already have into a **navigation graph** (page → page, derived from the `href` on each page's links — the same engine `map` uses for `_overview.md`). Read-only: it never rewrites your mapping files, it just renders them.
|
|
@@ -633,6 +700,50 @@ jobs:
|
|
|
633
700
|
|
|
634
701
|
`diff` with no arguments compares the committed `.ia-qa/baseline/` against what `map` just re-captured — which is why the baseline has to be in git. Add `--report drift-report.html` to attach a branded HTML report to the build, and `--strict` to fail on FIX too. The full workflow (report upload, artifact, `--strict`) is in **[TUTORIAL.md → Putting it in CI](TUTORIAL.md#8-putting-it-in-ci)**.
|
|
635
702
|
|
|
703
|
+
### Trend charts for free — `--junit`
|
|
704
|
+
|
|
705
|
+
`diff --junit` and `run --junit` write the verdict as **JUnit XML**, which Jenkins, GitLab, CircleCI, Azure DevOps and the GitHub Actions reporters all ingest natively — including the per-build history graph. You get the trend without this package rendering anything in CI.
|
|
706
|
+
|
|
707
|
+
```bash
|
|
708
|
+
npx ia-qa-heal diff --junit reports/selector-drift.xml
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
It is language-agnostic by construction: what it describes is your **contract**, not your suite, so a Cypress/JS, Selenium/Python or Playwright/.NET project produces identically shaped XML.
|
|
712
|
+
|
|
713
|
+
| contract row | JUnit | why |
|
|
714
|
+
|---|---|---|
|
|
715
|
+
| `ok` | pass | the locator still finds the same element |
|
|
716
|
+
| `renamed` | pass + `system-out` | the selector still works; the label moved |
|
|
717
|
+
| `healable` | failure `type="healable"` | broken today — auto-repairable, but broken |
|
|
718
|
+
| `ambiguous` · `lost` · `rebound` | failure, typed | broken, and no deterministic repair exists |
|
|
719
|
+
| name drift | failure `type="name-drift-*"` | a name-anchored locator names nothing now |
|
|
720
|
+
| page not compared | **skipped** | not measured — reporting it as a pass would be the false green this tool exists to prevent |
|
|
721
|
+
|
|
722
|
+
> ⚠️ **Publish it under its own file pattern**, separate from your suite's results. Merged into one trend, the two sets of numbers stop meaning anything.
|
|
723
|
+
|
|
724
|
+
`run --json` (and `diff --json`) give the same verdict as one JSON document on stdout. For `run`, every other line moves to stderr so a pipe stays parseable.
|
|
725
|
+
|
|
726
|
+
### The trend, locally — `ia-qa-heal history`
|
|
727
|
+
|
|
728
|
+
Every `diff` and `run` appends one line to `.ia-qa/history.jsonl`: verdict, counters, capture source, page coverage and the git commit. It is the one thing no single invocation can reconstruct afterwards, so it is recorded as it happens.
|
|
729
|
+
|
|
730
|
+
```
|
|
731
|
+
📈 Run history · 6 recorded
|
|
732
|
+
6 comparable runs captured by `map` · 67% ended with drift · 100% mean coverage
|
|
733
|
+
|
|
734
|
+
⛔ BLOCK 8/9/26, 6:25 PM 3 drifted 2/2 pages
|
|
735
|
+
✅ PASS 8/9/26, 6:26 PM 0 drifted 2/2 pages
|
|
736
|
+
…
|
|
737
|
+
🔥 Where the churn lives
|
|
738
|
+
checkout 13 drifted elements across 4 runs
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
Runs captured **differently** — a `map` baseline versus a live suite capture — are held **out** of the trend and named, never averaged in: the two read a page differently, so charting both would invent a trend out of a capture artifact. Same for a run that covered far fewer pages than the rest.
|
|
742
|
+
|
|
743
|
+
The file is small, deterministic text (unlike `_shots/`), so committing it is defensible if you want the trend to survive across machines and CI.
|
|
744
|
+
|
|
745
|
+
Agents get the same numbers through the MCP tool **`heal_history`** — one `summarize()`, three renderings (terminal, console charts, MCP).
|
|
746
|
+
|
|
636
747
|
## Map artifacts
|
|
637
748
|
|
|
638
749
|
Beyond one contract per page, every `map` run rebuilds two views of the whole app. Both are derived entirely from the mappings on disk (no extra page visit) and rebuilt on every run, including `map <page>`, so they never drift out of date.
|
package/TUTORIAL.md
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
3. [Before you start](#3-before-you-start)
|
|
13
13
|
4. [Path A — I use an AI agent (easiest)](#4-path-a--i-use-an-ai-agent-easiest)
|
|
14
14
|
5. [Path B — I use a terminal](#5-path-b--i-use-a-terminal)
|
|
15
|
-
6. [Your first real workflow](#6-your-first-real-workflow-the-whole-point)
|
|
15
|
+
6. [Your first real workflow](#6-your-first-real-workflow-the-whole-point) — including [the console, if you don't want a terminal](#step-68--no-terminal-open-the-console)
|
|
16
16
|
7. [Reading the verdict](#7-reading-the-verdict)
|
|
17
|
-
8. [Putting it in CI](#8-putting-it-in-ci)
|
|
17
|
+
8. [Putting it in CI](#8-putting-it-in-ci) — [JUnit trends](#82-trend-charts-for-free--junit) · [the run history](#83-the-trend--ia-qa-heal-history)
|
|
18
18
|
9. [Optional: AI suggestions (BYOK)](#9-optional-ai-suggestions-for-the-lost-ones-byok)
|
|
19
19
|
10. [Troubleshooting](#10-troubleshooting)
|
|
20
20
|
11. [FAQ](#11-faq)
|
|
@@ -459,6 +459,49 @@ Three optional config keys make it better (`ia-qa-heal init` asks for them):
|
|
|
459
459
|
|
|
460
460
|
`run` keeps every judgment where it was: **BLOCK stops for you**, healable rewrites are shown as a dry run and applied only after you confirm (`--yes` for CI), and nothing is ever committed. **After applying the fix it re-runs your suite once more — without `IAQA_CAPTURE`, so it checks rather than re-maps — and reports whether the tests pass now.** The exit code follows that verdict (`0` green, `1` still failing), so CI catches a fix that rewrote the selector but left the test red. `--no-verify` skips the re-run; with `--report`, the HTML also lists the applied `old → new` edits (file + lines) and the verify verdict.
|
|
461
461
|
|
|
462
|
+
### Step 6.8 — No terminal? Open the console
|
|
463
|
+
|
|
464
|
+
Everything above is a command line. If the person who has to *decide* is a manual QA, that is a
|
|
465
|
+
wall — and the decision is the one thing the tool cannot take from them.
|
|
466
|
+
|
|
467
|
+
```bash
|
|
468
|
+
ia-qa-heal ui
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
A local page opens in your browser with three things a terminal cannot give you:
|
|
472
|
+
|
|
473
|
+
- **The rows waiting on a human.** Each `ambiguous` / `lost` / `rebound` row, with a **highlighted
|
|
474
|
+
picture** of each candidate as it looks on the page right now (needs `map --screenshots`), the
|
|
475
|
+
`file:line` of every test that will break, and — the part that matters — **a sentence saying what
|
|
476
|
+
to do about it**. When five identical "Copy" buttons exist, `div:nth-of-type(4) > … > button`
|
|
477
|
+
tells you nothing; the picture tells you which one.
|
|
478
|
+
- **The verbs as buttons**, in plain words: *Look at the app again*, *Check for changes*,
|
|
479
|
+
*Repair my test files ✎*. Every result is a sentence, not an exit code, with the raw output one
|
|
480
|
+
click away.
|
|
481
|
+
- **The run history as charts** — see [§8.3](#83-the-trend-ia-qa-heal-history).
|
|
482
|
+
|
|
483
|
+
Once, per project, so nobody ever types a command again:
|
|
484
|
+
|
|
485
|
+
```bash
|
|
486
|
+
ia-qa-heal ui --shortcut
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
That puts an icon on the desktop, bound to *this* project. Double-click → the console starts and
|
|
490
|
+
the browser opens on it. `ia-qa-heal init` offers to do this for you at the end of setup.
|
|
491
|
+
|
|
492
|
+
**What it is not:** it is not a website, and nothing is hosted. The server binds `127.0.0.1` only,
|
|
493
|
+
every request needs a one-time token that lives in the URL the tool opened, and requests whose
|
|
494
|
+
`Host` is not loopback are refused. Closing the browser tab stops the server, so a click never
|
|
495
|
+
leaves a process running behind your back. It can do **nothing the CLI would refuse** — an
|
|
496
|
+
`ambiguous` locator is never rewritten from the console either. It refuses to start under CI, where
|
|
497
|
+
it would simply hang.
|
|
498
|
+
|
|
499
|
+
Working on several projects? The header carries a **Project** dropdown. Pick
|
|
500
|
+
**+ Add another project…** and paste the folder's path — it must already contain a `.ia-qa`
|
|
501
|
+
directory (run `ia-qa-heal init` there once if not). Everything you add is remembered, so it is one
|
|
502
|
+
click from then on, and `ia-qa-heal ui --forget [dir]` takes it back out (deleting nothing inside
|
|
503
|
+
the project).
|
|
504
|
+
|
|
462
505
|
---
|
|
463
506
|
|
|
464
507
|
## 7. Reading the verdict
|
|
@@ -548,6 +591,67 @@ misconfigured job fails loudly instead of passing without comparing anything.
|
|
|
548
591
|
|
|
549
592
|
Add `--strict` if you want **FIX** to fail the build too (forces tests to be updated, not just healed).
|
|
550
593
|
|
|
594
|
+
### 8.2 Trend charts for free — `--junit`
|
|
595
|
+
|
|
596
|
+
Your CI already knows how to chart a test run over time. Give it the verdict in the format it
|
|
597
|
+
speaks and you get the history graph without this tool drawing anything:
|
|
598
|
+
|
|
599
|
+
```bash
|
|
600
|
+
npx ia-qa-heal diff --junit reports/selector-drift.xml
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
Jenkins, GitLab, CircleCI, Azure DevOps and the GitHub Actions reporters all ingest JUnit XML —
|
|
604
|
+
including the per-build trend. It is **language-agnostic by construction**: what it describes is
|
|
605
|
+
your *contract*, not your suite, so a Cypress/JS, Selenium/Python or Playwright/.NET project
|
|
606
|
+
produces identically shaped XML.
|
|
607
|
+
|
|
608
|
+
| Your contract | In the CI |
|
|
609
|
+
|---|---|
|
|
610
|
+
| `ok` | pass |
|
|
611
|
+
| `renamed` | pass, with the label change in the output |
|
|
612
|
+
| `healable` | failure, typed `healable` (broken today — repairable, but broken) |
|
|
613
|
+
| `ambiguous` · `lost` · `rebound` | failure, typed |
|
|
614
|
+
| a renamed label your tests use | failure, typed `name-drift-*` |
|
|
615
|
+
| a page that could not be compared | **skipped** |
|
|
616
|
+
|
|
617
|
+
That last row is the one to notice: a page left out of the verdict is **not** a pass, and reporting
|
|
618
|
+
it as `skipped` puts the coverage gap in your CI's own summary instead of only in our log.
|
|
619
|
+
|
|
620
|
+
> ⚠️ **Publish it under its own file pattern**, separate from your suite's results. Merged into one
|
|
621
|
+
> trend, the two sets of numbers stop meaning anything.
|
|
622
|
+
|
|
623
|
+
`--json` gives the same verdict as one document on stdout (`run --json` moves every human line to
|
|
624
|
+
stderr, so a pipe stays parseable).
|
|
625
|
+
|
|
626
|
+
### 8.3 The trend — `ia-qa-heal history`
|
|
627
|
+
|
|
628
|
+
Every `diff` and `run` appends one line to `.ia-qa/history.jsonl`: verdict, counts, how the capture
|
|
629
|
+
was taken, how many pages it covered, and the git commit. It is the one thing no single run can
|
|
630
|
+
reconstruct afterwards — so it is recorded as it happens, and the runs you have not made yet are
|
|
631
|
+
the only ones you can still get.
|
|
632
|
+
|
|
633
|
+
```
|
|
634
|
+
$ ia-qa-heal history
|
|
635
|
+
|
|
636
|
+
📈 Run history · 7 recorded
|
|
637
|
+
7 comparable runs captured by `map` · 71% ended with drift · 100% mean coverage
|
|
638
|
+
|
|
639
|
+
⛔ BLOCK 8/9/26, 6:25 PM 3 drifted 2/2 pages
|
|
640
|
+
✅ PASS 8/9/26, 6:26 PM 0 drifted 2/2 pages
|
|
641
|
+
…
|
|
642
|
+
🔥 Where the churn lives
|
|
643
|
+
checkout 16 drifted elements across 5 runs
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
Runs captured **differently** — a `map` baseline versus a live suite capture — are held **out** of
|
|
647
|
+
the trend and named, never quietly averaged in: the two read a page differently, so charting both
|
|
648
|
+
would invent a trend out of a capture artifact. Same for a run that covered far fewer pages than
|
|
649
|
+
the rest.
|
|
650
|
+
|
|
651
|
+
The file is small, deterministic text (unlike `_shots/`), so committing it is defensible if you
|
|
652
|
+
want the trend to survive across machines and CI. Agents get the same numbers through the
|
|
653
|
+
`heal_history` MCP tool.
|
|
654
|
+
|
|
551
655
|
---
|
|
552
656
|
|
|
553
657
|
## 9. Optional: AI suggestions for the `lost` ones (BYOK)
|
|
@@ -630,6 +734,22 @@ That's live content (a news feed, a blog widget) that entered the contract as if
|
|
|
630
734
|
|
|
631
735
|
Each pattern is a glob (`*` = anything, case-insensitive, whole string), with an optional `href:` / `selector:` / `name:` / `role:` prefix — without one it's tried against href, selector and name. The diff prints a hint pointing here when a BLOCK is made of lost external links.
|
|
632
736
|
|
|
737
|
+
**"The same rows come back as `renamed` every single run — a cart counter, a call total, a clock"**
|
|
738
|
+
Here the *element* is not rotating, its *label* is: `Cart (3)` → `Cart (5)`, `🔌 Smithery 3.2k calls` → `🔌 Smithery 4.1k calls`. Reaching for `volatile` would work, and it would cost far too much — the element leaves the contract entirely, so a real selector break on that button would never be caught again. Mask the label instead and keep the element gating:
|
|
739
|
+
|
|
740
|
+
```jsonc
|
|
741
|
+
"nameMask": ["Cart (*)", "🔌 Smithery * calls"]
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
Same glob dialect, no field prefix. Role, selector and href are still compared, so the button still BLOCKs if it moves or disappears — only the name stops being drift. Masking happens when the diff runs, not when the page is captured, so the contracts on disk keep the real label and adding or removing a mask never needs a re-map.
|
|
745
|
+
|
|
746
|
+
Two things it refuses to do, out loud:
|
|
747
|
+
|
|
748
|
+
- if a label the mask would swallow is one your tests locate by name (`getByRole('link', { name: 'Cart (3)' })`), the mask is **not applied** — it names the label and the `file:line`. Masking that would be a green gate over a suite that is about to go red;
|
|
749
|
+
- if the mask would leave two elements of the same role wearing one name (`Item 1` + `Item 2` → `Item *`), it is **not applied** either — that is a locator coin flip the mask itself would have created, and it would turn a clean `healable` into `ambiguous`.
|
|
750
|
+
|
|
751
|
+
Rule of thumb: **`nameMask` when the label rotates, `volatile` when the element does.**
|
|
752
|
+
|
|
633
753
|
---
|
|
634
754
|
|
|
635
755
|
## 11. FAQ
|
|
@@ -680,6 +800,12 @@ npx ia-qa-heal check # is the app sound? dead links · unna
|
|
|
680
800
|
npx ia-qa-heal graph --format markdown # the navigation graph, one card per page (RAG chunk / Confluence)
|
|
681
801
|
npx ia-qa-heal run # the whole loop: capture (your suite, IAQA_CAPTURE=1) → diff → confirm → fix → re-run to verify
|
|
682
802
|
|
|
803
|
+
npx ia-qa-heal ui # the local console: decide with pictures, verbs as buttons, history as charts
|
|
804
|
+
npx ia-qa-heal ui --shortcut # once per project: a desktop icon that opens it in one click
|
|
805
|
+
npx ia-qa-heal ui --forget [dir] # drop a project from the console's switcher
|
|
806
|
+
npx ia-qa-heal history [--json] # the trend: verdicts over time, coverage, which pages churn
|
|
807
|
+
npx ia-qa-heal diff --junit reports/x.xml # JUnit XML — your CI charts the trend natively
|
|
808
|
+
|
|
683
809
|
npx ia-qa-heal skill --install # teach your AI agent the rules (→ .claude/skills/ia-qa-heal/)
|
|
684
810
|
```
|
|
685
811
|
|
|
Binary file
|
package/dist/aom.d.ts
CHANGED
|
@@ -25,6 +25,14 @@ export interface MappedElement {
|
|
|
25
25
|
* never part of element identity, so it does not affect diff or layout matching.
|
|
26
26
|
*/
|
|
27
27
|
href?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Set by `nameMask` on an in-memory copy, at comparison time only — never written
|
|
30
|
+
* to disk, never produced by capture. `name` then holds the mask (`Cart (*)`) and
|
|
31
|
+
* `rawName` what the page actually read. Anything that would put a name into a
|
|
32
|
+
* *test file* must check this: a glob is not a locator.
|
|
33
|
+
*/
|
|
34
|
+
rawName?: string;
|
|
35
|
+
nameMasked?: boolean;
|
|
28
36
|
}
|
|
29
37
|
export interface PageMapping {
|
|
30
38
|
page: string;
|
package/dist/aom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aom.js","sourceRoot":"","sources":["../src/aom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"aom.js","sourceRoot":"","sources":["../src/aom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,sCAKC;AAED,gEAEC;AAED,kCAwBC;AAED,kCAQC;AApHD,uCAAyB;AACzB,2CAA6B;AAE7B,qCAAmD;AACnD,+CAAkD;AAgDlD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,aAAa,CAC3B,QAAoD,EACpD,OAAmD;IAEnD,OAAO,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,IAAI,QAAS,CAAC,UAAU,KAAK,OAAO,EAAE,UAAU,CAAC;AACvF,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAAC,IAAU;IACzD,OAAO,IAAI,CAAC,QAAQ,CAAC,uBAAa,CAA6B,CAAC;AAClE,CAAC;AAED,SAAgB,WAAW,CAAC,OAAoB,EAAE,MAAc,IAAA,mBAAU,GAAE;IAC1E,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACvC,MAAM,IAAI,GAAG,IAAA,oBAAW,EAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IA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CAAC,CAAC;IACxC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CACb,8BAA8B,QAAQ,MAAM,IAAI,2BAA2B,QAAQ,WAAW,CAC/F,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAgB,CAAC;AAClE,CAAC"}
|
package/dist/cli/args.js
CHANGED
|
@@ -19,14 +19,16 @@ exports.KNOWN_FLAGS = {
|
|
|
19
19
|
discover: ['--sitemap', '--crawl', '--no-reveal', '--strict-host', '--apply', '--max', '--depth'],
|
|
20
20
|
map: ['--screenshots'],
|
|
21
21
|
baseline: [],
|
|
22
|
-
diff: ['--strict', '--json', '--dir', '--report', '--open'],
|
|
22
|
+
diff: ['--strict', '--json', '--junit', '--dir', '--report', '--open'],
|
|
23
23
|
fix: ['--dry-run', '--locators', '--dir'],
|
|
24
24
|
ingest: [],
|
|
25
25
|
audit: ['--strict', '--json'],
|
|
26
26
|
check: ['--strict', '--json', '--offline'],
|
|
27
27
|
graph: ['--format', '--kind', '--out', '--open'],
|
|
28
|
-
run: ['--yes', '--no-verify', '--locators', '--report', '--open'],
|
|
28
|
+
run: ['--yes', '--no-verify', '--locators', '--report', '--junit', '--json', '--open'],
|
|
29
29
|
skill: ['--install', '--user', '--dir', '--print', '--force'],
|
|
30
|
+
history: ['--json', '--limit'],
|
|
31
|
+
ui: ['--port', '--no-open', '--shortcut', '--keep-alive', '--forget', '--offline'],
|
|
30
32
|
};
|
|
31
33
|
function rejectUnknownFlags(command, args) {
|
|
32
34
|
const known = exports.KNOWN_FLAGS[command];
|
package/dist/cli/args.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources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C,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,SAAS;QACjC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;YAAE,SAAS;QAChC,IAAI,CAAC,KAAK,MAAM,IAAI,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CACb,eAAe,OAAO,0FAA0F;gBAC9G,4GAA4G;gBAC5G,8FAA8F,CACjG,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,OAAO,8CAA8C,CAAC,CAAC;IAChH,CAAC;AACH,CAAC"}
|
package/dist/cli/audit.js
CHANGED
|
@@ -185,14 +185,8 @@ async function runAudit(args) {
|
|
|
185
185
|
else {
|
|
186
186
|
usage = (0, ingest_1.loadUsage)();
|
|
187
187
|
if (!usage) {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
configured = (0, config_1.loadConfig)().testPaths;
|
|
191
|
-
}
|
|
192
|
-
catch {
|
|
193
|
-
/* covered by the message below */
|
|
194
|
-
}
|
|
195
|
-
if (configured && configured.length > 0)
|
|
188
|
+
const configured = (0, config_1.configuredTestPaths)();
|
|
189
|
+
if (configured.length > 0)
|
|
196
190
|
usage = (0, ingest_1.ingestPaths)(configured).usage;
|
|
197
191
|
}
|
|
198
192
|
}
|
package/dist/cli/audit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../src/cli/audit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,0CAQC;AAqED,4CA0CC;AAED,4BAoNC;AAvYD,uCAAyB;AACzB,2CAA6B;AAE7B,4CAAkD;AAClD,sCAAsE;AACtE,sCAA0D;AAC1D,kDAAqG;AACrG,uCAAqD;AA6CrD,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B;;;GAGG;AACH,SAAgB,eAAe,CAAC,QAAgB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OAAO,EAC/D,OAAO,KAAK,MAAM;QAChB,CAAC,CAAC,UAAU,WAAW,CAAC,MAAM,uBAAuB;QACrD,CAAC,CAAC,GAAG,OAAO,MAAM,IAAI,CAAC,MAAM,gBAAgB,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,gBAAgB,EAC3F,CAAC,GAAG,KAAK,CAAC,MAAM,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,aAAa,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CACzF,CAAC;IACF,OAAO,CAAC,QAAQ,GAAG,MAAM,IAAI,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,CAAC"}
|
package/dist/cli/diff.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { MaskOutcome } from '../nameMask';
|
|
1
2
|
import { Usage } from '../ingest';
|
|
2
3
|
import { NameDriftFinding } from '../nameDrift';
|
|
3
|
-
import { FixOutcome } from '../htmlReport';
|
|
4
|
+
import { FixOutcome, ReportEvidence } from '../htmlReport';
|
|
4
5
|
/**
|
|
5
6
|
* `ia-qa-heal diff [baseline] [current] [--strict] [--json] [--dir]`
|
|
6
7
|
*
|
|
@@ -53,6 +54,11 @@ export declare function openInBrowser(file: string): void;
|
|
|
53
54
|
*/
|
|
54
55
|
export declare function pageUrlMap(): Map<string, string> | undefined;
|
|
55
56
|
export declare function pageShotMap(): Map<string, string> | undefined;
|
|
57
|
+
export declare function buildEvidence(reports: Array<{
|
|
58
|
+
name: string;
|
|
59
|
+
report: Report;
|
|
60
|
+
isLayout: boolean;
|
|
61
|
+
}>, currentDir: string): ReportEvidence | undefined;
|
|
56
62
|
/** Render the drift report to `reportPath` and announce it. Never throws on a bad write path to callers of the gate — reporting is a side effect, not the verdict. */
|
|
57
63
|
export declare function writeDriftReport(reportPath: string, agg: DirReport, reports: Array<{
|
|
58
64
|
name: string;
|
|
@@ -60,6 +66,17 @@ export declare function writeDriftReport(reportPath: string, agg: DirReport, rep
|
|
|
60
66
|
isLayout: boolean;
|
|
61
67
|
}>, baselineDirPath: string, currentDirPath: string, usage?: Usage | null, open?: boolean, outcome?: FixOutcome): void;
|
|
62
68
|
export declare function runDiff(args: string[]): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* What `nameMask` did, in two registers.
|
|
71
|
+
*
|
|
72
|
+
* The applied half is one quiet line: the rows it silenced are gone from the output,
|
|
73
|
+
* and a gate that silently stops reporting something has to say so somewhere.
|
|
74
|
+
*
|
|
75
|
+
* The refused half is loud, on stderr, because it is a config that does not do what
|
|
76
|
+
* its author believes it does — and in the `referenced-by-tests` case, believing it
|
|
77
|
+
* would mean believing a green gate over a suite that is about to go red.
|
|
78
|
+
*/
|
|
79
|
+
export declare function printNameMasks(outcome: MaskOutcome | undefined): void;
|
|
63
80
|
/**
|
|
64
81
|
* The name-drift section of a human verdict.
|
|
65
82
|
*
|
|
@@ -111,6 +128,8 @@ export interface DirReport {
|
|
|
111
128
|
* header renames once, not once per page that carries it.
|
|
112
129
|
*/
|
|
113
130
|
nameDrift?: NameDriftFinding[];
|
|
131
|
+
/** `config.nameMask`'s effect across the walk — applied patterns and refusals, unioned. */
|
|
132
|
+
nameMask?: MaskOutcome;
|
|
114
133
|
}
|
|
115
134
|
export declare function aggregateReports(reports: Array<{
|
|
116
135
|
name: string;
|
|
@@ -165,4 +184,9 @@ export interface Report {
|
|
|
165
184
|
* inventoried the tests — absent means "not measured", never "none".
|
|
166
185
|
*/
|
|
167
186
|
nameDrift?: NameDriftFinding[];
|
|
187
|
+
/**
|
|
188
|
+
* What `config.nameMask` did to this comparison — patterns applied, and patterns
|
|
189
|
+
* refused with the reason. Absent when no mask is configured.
|
|
190
|
+
*/
|
|
191
|
+
nameMask?: MaskOutcome;
|
|
168
192
|
}
|