argusqa-os 9.5.9 → 9.6.1

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 CHANGED
@@ -1,1112 +1,384 @@
1
- # Argus — AI-Powered Dev Testing Tool
2
-
3
- [![Argus MCP server](https://glama.ai/mcp/servers/ironclawdevs27/Argus/badges/card.svg)](https://glama.ai/mcp/servers/ironclawdevs27/Argus)
4
-
5
- > *Argus Panoptes — the all-seeing giant of Greek mythology with a hundred eyes who never slept.*
6
-
7
- Automated browser testing pipeline that catches bugs, compares environments, and sends rich reports to Slack (or generates a self-contained HTML dashboard when Slack is not configured) — powered by Chrome DevTools MCP and Claude Code.
8
-
9
- ---
10
-
11
- ## MCP Quick Start
12
-
13
- Add both servers to your `.mcp.json`:
14
-
15
- ```json
16
- {
17
- "mcpServers": {
18
- "chrome-devtools": {
19
- "command": "npx",
20
- "args": ["-y", "chrome-devtools-mcp@latest"]
21
- },
22
- "argus": {
23
- "command": "npx",
24
- "args": ["-y", "argusqa-os"]
25
- }
26
- }
27
- }
28
- ```
29
-
30
- Or register via the Claude Code CLI:
31
-
32
- ```bash
33
- claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
34
- claude mcp add argus -- npx -y argusqa-os
35
- ```
36
-
37
- Set your target URL and start Chrome with remote debugging:
38
-
39
- ```bash
40
- # .env
41
- TARGET_DEV_URL=http://localhost:3000
42
-
43
- # Start Chrome (required — Argus drives this instance via CDP)
44
- # macOS: open -a "Google Chrome" --args --remote-debugging-port=9222 --headless=new
45
- # Windows (PowerShell): & "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --headless=new --no-sandbox --disable-gpu --user-data-dir="$env:TEMP\chrome-argus"
46
- # Linux: google-chrome --remote-debugging-port=9222 --headless=new --no-sandbox
47
- ```
48
-
49
- Then ask Claude (or any MCP client):
50
-
51
- ```
52
- Run argus_audit on http://localhost:3000
53
- ```
54
-
55
- **Eight tools are exposed:**
56
-
57
- | Tool | What it does |
58
- | --- | --- |
59
- | `argus_audit` | Fast QA pass JS errors, network failures, accessibility, SEO, security, CSS, content |
60
- | `argus_audit_full` | Deep QA pass — adds Lighthouse scoring, responsive layout checks across 4 viewports, memory leak detection, hover-state bug detection, and accessibility tree snapshot |
61
- | `argus_compare` | Diff dev vs staging side-by-side — screenshots, findings delta, environment regressions |
62
- | `argus_last_report` | Return the last saved JSON report without re-running a scan |
63
- | `argus_watch_snapshot` | Snapshot the currently open Chrome tab without navigating — raw console + network capture |
64
- | `argus_get_context` | Capture everything broken on the open tab, formatted as a diagnostic context for Claude to diagnose and suggest fixes |
65
- | `argus_design_audit` | Full Figma design-to-implementation fidelity audit — 13 finding types across color, typography, spacing, per-corner radius, position drift, stroke, shadow (color+spread), opacity, gap, and text. Selector fallback: `[data-testid]` → `[aria-label]` → `#id` → `.class` |
66
- | `argus_visual_diff` | Screenshot baseline comparison — first call saves baseline PNG; subsequent calls emit `visual_regression` (warning ≥0.1% / critical ≥5%) + `visual_diff_summary`. Pass `updateBaseline: true` to reset the baseline after intentional UI changes. |
67
-
68
- > **Requires**: Node.js ≥ 20.19, Chrome (desktop or headless), and the `chrome-devtools-mcp` server registered alongside Argus (shown above).
69
-
70
- ---
71
-
72
- The `landing/` directory contains the product landing page (React + Vite + Tailwind + Framer Motion) with Supabase-backed waitlist and enterprise contact forms. Live at **[argus-qa.com](https://argus-qa.com)** (deployed via Cloudflare Pages; background video served from Cloudflare R2). See [landing/README.md](landing/README.md) for setup.
73
-
74
- <div align="center">
75
-
76
- [![Tech stack icons](https://skillicons.dev/icons?i=nodejs,js,expressjs,react,css,sass,github,githubactions,vscode)](https://skillicons.dev)
77
-
78
- </div>
79
-
80
- <div align="center">
81
-
82
- | 🔴 Critical / 🟡 Warning / 🔵 Info | ⚙️ | 🧪 | 📋 |
83
- | :---: | :---: | :---: | :---: |
84
- | **136 distinct issue types detected** | **31 analysis engines** | **626 test assertions** | **136 test blocks** |
85
-
86
- </div>
87
-
88
- ---
89
-
90
- ## What Argus Catches
91
-
92
- Argus runs **31 analysis engines** per run and detects **136 distinct issue types** across JavaScript runtime, network, CSS, performance, accessibility, SEO, security, content quality, responsive layout, memory, runtime anti-patterns, hover-state interactions, accessibility tree snapshots, keyboard focus, and Chrome DevTools issues panel — plus flakiness detection, historical baselines, user flow assertions, and environment comparison as cross-cutting layers. Every finding is classified by severity (`critical` / `warning` / `info`) and routed to the right Slack channel — or rendered as a local `report.html` when Slack is not configured.
93
-
94
- ### JavaScript Runtime
95
-
96
- | Severity | Bug / Issue | Detection Method |
97
- | --- | --- | --- |
98
- | 🔴 Critical | Uncaught exceptions`TypeError`, `ReferenceError`, etc. | `window.onerror` listener injected before page load |
99
- | 🔴 Critical | Unhandled Promise rejections | `unhandledrejection` event listener injected into the page |
100
- | 🟡 Warning | `console.error` calls (on non-critical routes) | Chrome DevTools `list_console_messages` |
101
- | 🔴 Critical | `console.error` calls (on critical routes) | Chrome DevTools `list_console_messages` |
102
- | 🔵 Info | `console.warn` deprecation notices and warnings | Chrome DevTools `list_console_messages` |
103
-
104
- ### Network & API
105
-
106
- | Severity | Bug / Issue | Detection Method |
107
- | --- | --- | --- |
108
- | 🔴 Critical | HTTP 5xx server errors on any request | `list_network_requests` → status ≥ 500 |
109
- | 🔴 Critical | 401 / 403 auth failures on a **critical route** — user is being kicked out | `list_network_requests` → status 401 or 403 + `routeIsCritical` flag |
110
- | 🟡 Warning | 401 / 403 auth failures on a non-critical route | `list_network_requests` → status 401 or 403 (non-critical path) |
111
- | 🔴 Critical | API endpoint called 5+ times in one page load — likely an infinite loop | Network frequency grouping by normalized URL + method |
112
- | 🟡 Warning | HTTP 4xx client errors (404, 422, 429, etc.) | `list_network_requests` → status 400–499 (non-auth) |
113
- | 🟡 Warning | API endpoint called 3–4 times — likely a double-fetch bug | Frequency grouping → 3 ≤ count ≤ 4 (check `useEffect` deps) |
114
- | 🔵 Info | API endpoint called twice — may be intentional prefetch | Frequency grouping → count = 2 |
115
- | 🔵 Info | API call summary per page load (total calls, unique endpoints, duplicates) | Aggregated network analysis |
116
- | 🟡 Warning | Redirect chain longer than 2 hops — extra round-trips inflate load time | Navigation Timing `redirectCount` read after page settle |
117
- | 🟡 Warning | Broken internal link — `<a href>` target returns HTTP 404 | `<a>` elements harvested via `evaluate_script`, each verified against `list_network_requests` |
118
-
119
- ### Page Health
120
-
121
- | Severity | Bug / Issue | Detection Method |
122
- | --- | --- | --- |
123
- | 🔴 Critical | Blank or near-empty page — less than 50 characters of body text | `document.body.innerText` length check after navigation |
124
- | 🟡 Warning | Expected element never appeared — page may have crashed mid-load | `waitFor` selector timeout after 10 seconds |
125
-
126
- ### CSS & Styling
127
-
128
- | Severity | Bug / Issue | Detection Method |
129
- | --- | --- | --- |
130
- | 🟡 Warning | `!important` cascade conflict — forced override fighting another rule | CSS rule walk: property declared with `!important` on same element |
131
- | 🟡 Warning | Component style leak BEM selector found in the wrong stylesheet | `.block__element` selector in a file whose name doesn't match `block` |
132
- | 🟡 Warning | React inline style overriding a stylesheet declaration on the same element | `style=""` attribute vs. matching CSS rule, `__reactFiber` presence confirmed |
133
- | 🔵 Info | CSS property declared by multiple rules on the same element (cascade override) | Computed style walk across all matched rules per key element |
134
- | 🔵 Info | Unused CSS rules — selectors matching no element on the page (> 10 flagged) | `querySelectorAll(selector).length === 0` for every rule |
135
- | 🔵 Info | CSS Modules detected — hashed class names found on DOM elements | Pattern `_ComponentName_class_hash` matched on live DOM |
136
- | 🔵 Info | SCSS source map found — compiled CSS traced back to `.scss` origin file | `sourceMappingURL` comment in `<style>` tags |
137
-
138
- ### Performance
139
-
140
- | Severity | Bug / Issue | Detection Method |
141
- | --- | --- | --- |
142
- | 🟡 Warning | LCP > 2500ms — largest element took too long to paint | Chrome performance trace → `performance_analyze_insight` |
143
- | 🟡 Warning | CLS > 0.1 layout shifted significantly after initial render | Chrome performance trace |
144
- | 🟡 Warning | FID / TBT > 100ms main thread was blocked during interaction | Chrome performance trace |
145
- | 🟡 Warning | TTFB > 800ms — server took too long to send the first byte | Chrome performance trace |
146
-
147
- ### Accessibility
148
-
149
- | Severity | Bug / Issue | Detection Method |
150
- | --- | --- | --- |
151
- | 🔴 Critical | Lighthouse accessibility score below 50 / 100 | Lighthouse audit via `lighthouse_audit` |
152
- | 🟡 Warning | Lighthouse accessibility score 50–89 / 100 | Lighthouse audit |
153
- | 🟡 Warning | Missing alt text on images | Individual Lighthouse audit check |
154
- | 🟡 Warning | Insufficient color contrast ratio | Individual Lighthouse audit check |
155
- | 🟡 Warning | Missing ARIA labels on interactive elements | Individual Lighthouse audit check |
156
- | 🟡 Warning | Keyboard navigation broken or unreachable elements | Individual Lighthouse audit check |
157
-
158
- ### SEO
159
-
160
- | Severity | Bug / Issue | Detection Method |
161
- | --- | --- | --- |
162
- | 🟡 Warning | Missing `<meta name="description">` | DOM inspection via `evaluate_script` |
163
- | 🟡 Warning | Missing Open Graph tags (`og:title`, `og:description`, `og:image`) | DOM inspection via `evaluate_script` |
164
- | 🟡 Warning | `og:image` URL is relative — Open Graph requires an absolute URL | DOM inspection + URL prefix check (`http://` / `https://`) |
165
- | 🟡 Warning | Multiple `<h1>` tags on one page | DOM inspection — `querySelectorAll('h1').length > 1` |
166
- | 🟡 Warning | Zero `<h1>` tags — page has no primary heading | DOM inspection — `querySelectorAll('h1').length === 0` |
167
- | 🟡 Warning | Generic page title (less than 10 characters, or default placeholder) | DOM inspection + length check |
168
- | 🟡 Warning | Missing `<link rel="canonical">` | DOM inspection via `evaluate_script` |
169
- | 🟡 Warning | Missing `<meta name="viewport">` | DOM inspection via `evaluate_script` |
170
-
171
- ### Security
172
-
173
- | Severity | Bug / Issue | Detection Method |
174
- | --- | --- | --- |
175
- | 🔴 Critical | Auth token found in `localStorage` or `sessionStorage` | `evaluate_script` walks storage keys for token patterns |
176
- | 🔴 Critical | Sensitive token in the page URL (query param or hash) | URL pattern match against current `window.location.href` |
177
- | 🔴 Critical | `eval()` call detected in page scripts | `evaluate_script` AST-style text scan of inline `<script>` tags |
178
- | 🔴 Critical | CSP violation — inline script or external resource blocked by Content-Security-Policy | Chrome DevTools Issues panel (`list_console_messages({ types: ['issue'] })`) |
179
- | 🟡 Warning | Sensitive data (`password`, `token`, `secret`) logged to the console | `list_console_messages` + keyword match |
180
- | 🟡 Warning | Missing `Content-Security-Policy` response header | `fetch(location.href)` inside the page → response headers check |
181
- | 🟡 Warning | Missing `X-Frame-Options` response header | Same headers fetch |
182
- | 🟡 Warning | Cross-origin `<iframe>` without `sandbox` attribute — enables form submission, parent navigation, cookie access | `evaluate_script` checks `iframe[src]` elements for missing sandbox attribute |
183
- | 🟡 Warning | Page served over plain HTTP with no HTTPS upgrade redirect | URL protocol check (`http://` + non-localhost) |
184
- | 🔵 Info | Cookie present without `HttpOnly` flag (limited detection — JS-visible cookies only) | `document.cookie` inspection |
185
- | 🔵 Info | Deprecated browser API usage (e.g. `document.domain`, `DOMSubtreeModified`) | Chrome DevTools Issues panel |
186
-
187
- ### Content Quality
188
-
189
- | Severity | Bug / Issue | Detection Method |
190
- | --- | --- | --- |
191
- | 🟡 Warning | `null` or `undefined` rendered as visible text | DOM text scan for literal "null" / "undefined" strings |
192
- | 🟡 Warning | Lorem ipsum / placeholder copy still in production | DOM text scan for "lorem ipsum" and common placeholder strings |
193
- | 🟡 Warning | Broken image (404 or failed to load) | `evaluate_script` checks `img.naturalWidth === 0` on all images |
194
- | 🔵 Info | Empty data list — `<ul>`, `<ol>`, or `<select>` with no children | DOM structure check |
195
-
196
- ### Responsive / Mobile
197
-
198
- | Severity | Bug / Issue | Detection Method |
199
- | --- | --- | --- |
200
- | 🔴 Critical | Horizontal overflow at mobile / tablet viewport (≤ 768px) | `emulate` at 375px and 768px → `document.documentElement.scrollWidth > clientWidth` |
201
- | 🟡 Warning | Touch target smaller than 44×44 px at mobile or tablet viewport | CSS computed size check on interactive elements at 375px and 768px |
202
- | 🔵 Info | Responsive screenshot grid — snapshots at 375 / 768 / 1024 / 1440px | `emulate` at 4 breakpoints, screenshots dispatched to Slack |
203
-
204
- ### Network Performance
205
-
206
- | Severity | Bug / Issue | Detection Method |
207
- | --- | --- | --- |
208
- | 🔴 Critical | API response time > 3000ms | `PerformanceObserver` entries for `fetch` / XHR calls |
209
- | 🟡 Warning | API response time > 1000ms | Same observer, lower threshold |
210
- | 🔴 Critical | API response payload > 2 MB | `list_network_requests` → response body size |
211
- | 🟡 Warning | API response payload > 500 KB | Same, lower threshold |
212
- | 🟡 Warning | Cross-origin (third-party) script TTFB > 2000ms — blocking render or late interactivity | HAR `timing.wait` field from `list_network_requests` HAR data; cross-origin requests only |
213
-
214
- ### Network Request Origin Tagging
215
-
216
- All network findings carry an `origin` field (`'first-party'` / `'third-party'`) so operators can triage critical first-party failures separately from third-party noise.
217
-
218
- ### Lighthouse Audits
219
-
220
- | Severity | Bug / Issue | Detection Method |
221
- | --- | --- | --- |
222
- | 🔴 Critical | Lighthouse accessibility score < 50 / 100 | `lighthouse_audit` (accessibility category) |
223
- | 🟡 Warning | Lighthouse accessibility score 50–89 / 100 | `lighthouse_audit` |
224
- | 🟡 Warning | Lighthouse performance score < 90 / 100 | `lighthouse_audit` (performance category) |
225
- | 🟡 Warning | Lighthouse SEO score < 90 / 100 | `lighthouse_audit` (seo category) |
226
- | 🟡 Warning | Lighthouse best-practices score < 90 / 100 | `lighthouse_audit` (best-practices category) |
227
- | 🟡 Warning | Individual failing Lighthouse audit items | Surfaced per-audit from the full Lighthouse report |
228
-
229
- ### Memory Leaks
230
-
231
- | Severity | Bug / Issue | Detection Method |
232
- | --- | --- | --- |
233
- | 🔴 Critical | > 100 detached DOM nodes in V8 heap — severe leak | `take_heapsnapshot` → parse flat nodes array for "Detached Xxx" names |
234
- | 🟡 Warning | > 10 detached DOM nodes in V8 heap — probable leak | Same snapshot parse, lower threshold |
235
- | 🟡 Warning | Heap grew > 2 MB after navigate-away + navigate-back — probable per-load leak | `performance.memory.usedJSHeapSize` delta across round-trip (soft — GC-dependent) |
236
-
237
- ### Runtime Anti-Patterns
238
-
239
- | Severity | Bug / Issue | Detection Method |
240
- | --- | --- | --- |
241
- | 🟡 Warning | Synchronous `XMLHttpRequest` blocks the main thread until the server responds | `XMLHttpRequest.open` patched via `addScriptToEvaluateOnNewDocument`; `async === false` calls recorded |
242
- | 🟡 Warning | `document.write` / `document.writeln` called — can erase the page or block parsing | `document.write` and `document.writeln` patched before page load; calls recorded with method + content |
243
- | 🟡 Warning | Long task > 50ms on the main thread — blocks user interaction | `PerformanceObserver` with `entryTypes: ['longtask']` injected before page load |
244
- | 🔴 Critical | CORS policy violation — cross-origin fetch blocked by the browser | `list_console_messages` + pattern match for `"has been blocked by CORS policy"` |
245
- | 🟡 Warning | Service worker registration failure — SW script returns 4xx or is invalid | `navigator.serviceWorker.register` patched before page load; `.catch()` records failing script URL |
246
- | 🔵 Info | Same-origin static asset (`.js`, `.css`, `.png`, `.woff2`, etc.) served without `Cache-Control` or `ETag` — browsers cannot cache it efficiently | `evaluate_script` reads `performance.getEntriesByType('resource')`, HEAD-fetches each unique same-origin asset, checks response headers |
247
-
248
- ### Historical Baselines & Trends
249
-
250
- | Severity | Bug / Issue | Detection Method |
251
- | --- | --- | --- |
252
- | 🔴 Critical | New critical finding not present in the saved baseline — regression introduced since last run | `applyBaseline` compares finding keys (`type::message[:100]::status`) against `reports/baselines/<branch>.json` (D7.2 per-branch) |
253
- | 🟡 Warning | New warning finding not present in the baseline | Same key comparison, warning severity |
254
- | 🔵 Info | Pre-existing finding still present — no change since last run | Suppressed from real-time alerts; included in info digest only |
255
- | 🔵 Info | Run trend summary new vs resolved counts, saved per run | Appended to `reports/baselines/<branch>-trends.json`; surfaced as a trend line in Slack digest |
256
-
257
- ### Hover-State Bugs
258
-
259
- | Severity | Bug / Issue | Detection Method |
260
- | --- | --- | --- |
261
- | 🟡 Warning / 🔴 Critical | `[aria-haspopup]` element whose controlled popup does not become visible after hover `aria-expanded` stays false and popup remains `display:none` / `visibility:hidden` / `opacity:0` | `hover` dispatches `mousemove`; `evaluate_script` checks `aria-expanded` + `getComputedStyle` on the controlled element; critical on routes marked `critical: true` |
262
- | 🟡 Warning | `[data-tooltip]` element whose `[role="tooltip"]` is not visible in the DOM after hover not found or opacity ≤ 0.05 | Same hover + `evaluate_script` checks tooltip opacity, `display`, `visibility`, and `offsetHeight` |
263
-
264
- ### Accessibility Snapshot Analysis
265
-
266
- | Severity | Bug / Issue | Detection Method |
267
- | --- | --- | --- |
268
- | 🟡 Warning | Interactive element (`<button>`, `<a>`, `[role="button"]`, `[role="link"]`) with no accessible name — no text content, `aria-label`, `aria-labelledby`, `title`, or `alt` | `take_snapshot` captures DOM/AX state; `evaluate_script` queries each visible interactive element for accessible name sources |
269
- | 🟡 Warning | Form control (`<input>`, `<select>`, `<textarea>`) with no associated label — no `<label for="...">`, `aria-label`, or `aria-labelledby` (placeholder is intentionally excluded — not a valid accessible name per WCAG 2.1 §3.3.2) | `evaluate_script` checks `label[for]`, ancestor `<label>`, `aria-label`, and `aria-labelledby` for each visible control |
270
- | 🟡 Warning | Landmark role appearing more than once without distinct `aria-label` / `aria-labelledby` screen readers cannot differentiate them | `evaluate_script` counts `[role=X]` instances and checks for unique label values across: `main`, `banner`, `contentinfo`, `navigation`, `search`, `complementary`, `form`, `region` |
271
- | 🟡 Warning | Heading level skip — h1→h3 or h4→h6 jumps more than one level, breaking WCAG 1.3.1 document outline | DOM walk of `h1`–`h6` elements; detects gaps > 1 between consecutive heading levels |
272
- | 🟡 Warning | `aria-expanded` button/control has no `aria-controls` attribute or references a non-existent element | `evaluate_script` checks `[aria-expanded]` elements for missing or broken `aria-controls` pointer |
273
-
274
- ### Keyboard Accessibility
275
-
276
- | Severity | Bug / Issue | Detection Method |
277
- | --- | --- | --- |
278
- | 🟡 Warning | Button or focusable element has `outline:0` with no `box-shadow` fallback no visible focus ring | `press_key({ key: 'Tab' })` walk + `evaluate_script` reads `document.activeElement` computed style for outline/box-shadow |
279
-
280
- ### Flakiness Detection
281
-
282
- | Severity | Bug / Issue | Detection Method |
283
- | --- | --- | --- |
284
- | original | Confirmed finding — present in both crawl runs | `mergeRunResults` finds the key in both run1 and run2 (`type::message[:100]::status` scheme); original severity kept |
285
- | 🔵 Info | Flaky finding — appeared in only one of two crawl runs | Present in run1 or run2 but not both; downgraded to `severity: 'info'`, labelled `:zap: _flaky_` in Slack digest |
286
-
287
- ### User Flow Assertions
288
-
289
- | Severity | Bug / Issue | Detection Method |
290
- | --- | --- | --- |
291
- | 🔴 Critical | Flow step failed — navigate/fill/click/waitFor threw mid-flow (page state unknown) | `flow-runner.js` wraps every step; any throw emits `flow_step_failed` and halts the flow |
292
- | 🔴 Critical | `element_visible` assert — expected selector absent within timeout | Polled via `evaluate_script` + `document.querySelector` (MCP `wait_for` doesn't reliably throw on timeout) |
293
- | 🟡 Warning | `no_console_errors` assert — console errors recorded *during* this flow (baseline-sliced, not session-wide) | Baseline snapshot of `list_console_messages` at flow start; only messages after that offset count |
294
- | 🟡 Warning | `no_network_errors` assert — 4xx/5xx request during this flow (baseline-sliced) | Baseline snapshot of `list_network_requests` at flow start; status ≥ 400 after offset |
295
- | 🟡 Warning | `url_contains` assert — URL does not include expected substring after flow completes | `evaluate_script` reads `window.location.href` |
296
- | 🟡 Warning | `element_not_visible` assert — selector unexpectedly present in DOM | `evaluate_script` → `!document.querySelector(...)` |
297
- | 🔴 Critical | `no_js_errors` assert — uncaught exceptions captured in `window.__argusErrors` during flow | Script parses the injected error buffer |
298
-
299
- ### Environment Regressions *(dev vs staging)*
300
-
301
- | Severity | Bug / Issue | Detection Method |
302
- | --- | --- | --- |
303
- | 🔴 Critical | API status regressed — request that returned 2xx in dev now returns 5xx in staging | Network diff between both environments |
304
- | 🟡 Warning | Visual change > 0.5% pixels different between dev and staging screenshots | `pixelmatch` pixel-level comparison + diff overlay image |
305
- | 🟡 Warning | New console error in staging that doesn't exist in dev | Console message diff |
306
- | 🟡 Warning | New network request in staging — unexpected endpoint appeared | Network request URL diff |
307
- | 🟡 Warning | Request present in dev is missing in staging — endpoint removed or broken | Network request URL diff |
308
- | 🟡 Warning | API status changed between environments (any non-5xx change) | Network status diff |
309
- | 🔵 Info | DOM structural change — element count differs between dev and staging | HTML tag count comparison across snapshots |
310
-
311
- ---
312
-
313
- ## What It Does
314
-
315
- Argus watches your running application and automatically surfaces issues that test suites miss: visual regressions, API loops, CSS drift, console noise, and accessibility failures — all with screenshots delivered directly to Slack.
316
-
317
- | Feature | Description |
318
- | --- | --- |
319
- | **Error Detection** | Crawls your app's routes; captures JS exceptions, console errors, failed API calls, redirect chains, and broken internal links |
320
- | **Environment Comparison** | Diffs dev vs staging: screenshots, DOM structure, network requests, console errors |
321
- | **CSS Analysis** | Detects cascade overrides, component style leaks, unused rules, React inline style conflicts |
322
- | **API Frequency Analysis** | Flags endpoints called more than once per page load (double-fetch, missing `useEffect` deps, infinite loops) |
323
- | **Network Performance** | `slow_api` > 1s/3s and `large_payload` > 500KB/2MB per API call |
324
- | **SEO Checks** | Missing meta description, OG tags, canonical, viewport, h1 DOM-inspected on every route |
325
- | **Security Checks** | localStorage tokens, token-in-URL, `eval()`, sensitive console output, missing CSP/X-Frame-Options |
326
- | **Content Quality** | `null`/`undefined` rendered text, lorem ipsum, broken images, empty data lists |
327
- | **Responsive Analysis** | Overflow + touch target checks at 375/768px; screenshot grid at 4 breakpoints dispatched to Slack |
328
- | **Memory Leak Detection** | V8 heap snapshot detached DOM node count; heap growth across navigate-away + navigate-back |
329
- | **Runtime Anti-Patterns** | Synchronous XHR, `document.write`, long tasks > 50ms, CORS violations, service worker registration failures, and missing cache headers on static assets — detected via script injection and post-load HEAD checks |
330
- | **Hover-State Bug Detection** | Fires `hover` on every `[aria-haspopup]` and `[data-tooltip]` element; detects broken dropdowns and invisible tooltips that CSS `:hover` was supposed to reveal |
331
- | **Accessibility Snapshot Analysis** | Calls `take_snapshot` then `evaluate_script`; flags interactive elements missing accessible names, unlabelled form controls, duplicate landmark regions, heading level skips, and `aria-expanded` buttons with missing/broken `aria-controls` |
332
- | **Keyboard Focus Analysis** | Tab-walks every focusable element (up to 20 steps); detects `focus_visible_missing` (button/link with `outline:0` and no `box-shadow` fallback — keyboard users cannot see where focus is) |
333
- | **Chrome DevTools Issues Panel** | Queries `list_console_messages({ types: ['issue'] })` for the Issues panel namespace, which is entirely separate from `console.error`; catches CSP violations and deprecated API usage (verified) — additional Chrome-surfaced types (CORS blocks, mixed content, cookie misconfiguration, low-contrast) are classified when present |
334
- | **Mobile CPU Throttling** | Applies 4× CPU throttle (`emulate({ cpuThrottlingRate: 4 })`) during ≤768px responsive breakpoints finds layout reflow and animation jank that only manifests under realistic mobile CPU pressure |
335
- | **Origin-Tagged Network Findings** | All network error and timing findings carry `origin: 'first-party' \| 'third-party'` so operators can triage critical first-party failures without digging through third-party CDN noise |
336
- | **Historical Baselines** | Saves finding keys after each run; subsequent runs only alert on *new* issues; trend summary in Slack digest |
337
- | **Flakiness Detection** | Crawls each route twice per run; findings in both runs are confirmed (original severity); findings in only one run are marked flaky (`severity: info`, `:zap: _flaky_` label) |
338
- | **User Flow Assertions** | Named multi-step flows (`navigate/fill/click/press_key/drag/upload_file/waitFor/sleep/handle_dialog/assert`) with baseline-sliced `no_console_errors`, `no_network_errors`, `element_visible`, `url_contains`, `no_js_errors` asserts runs end-to-end user journeys without writing Playwright specs · Use `typing: true` on a fill step to dispatch real keyboard events via `mcp.type_text` (triggers input-event validation) · Use `drag` step to fire dragstartdragoverdrop sequences · Use `upload_file` step to deliver a local file to a file input via CDP (`{ action: 'upload_file', selector: 'input[type=file]', filePath: '/path/to/file' }`) |
339
- | **API Contract Validation** | Define `apiContracts[]` in `targets.js` with inline `schema` or `schemaFile`; validates captured response bodies against JSON Schema (type, required, properties, items) — emits `api_contract_violation` warnings when shapes diverge from spec |
340
- | **Severity Policy Overrides** | Define `severityOverrides` in `targets.js` (`{ finding_type: 'info' \| 'warning' \| 'critical' \| 'suppress' }`); applied before Slack routing — remap or silence specific detections without touching analyzer code |
341
- | **Auth Token Refresh** | `refreshSession()` is called before each route; re-runs the login flow when the saved session has less than `sessionRefreshWindowMs` (default 5 min) remaining — prevents long crawls from failing mid-run when the auth cookie expires |
342
- | **Slack-optional mode** | When `SLACK_BOT_TOKEN` is not configured, Argus skips Slack entirely and auto-generates a local `report.html` (all findings + inline screenshots) and opens it in the default browser — zero setup required to start using Argus |
343
- | **Codebase Cross-Reference** | Points `ARGUS_SOURCE_DIR` at your app source to detect: missing env vars (`process.env.X` used in code but absent from `.env`), feature flag leakage (conditional env var that is falsy/unset), console error stack traces resolved to `file:line`, and internal links that return 404 — all without opening a browser |
344
- | **GitHub PR Integration** | Posts a structured Markdown findings table as a PR comment (updates in-place — one comment per PR, no spam); adds a **Selector** column linking each finding to its exact DOM element; includes a **Visual Regressions** section with diff percentages + embedded diff image (`ARGUS_DIFF_IMAGE_URL`). Creates a **GitHub Check Run** via the Checks API (`createCheckRun`/`completeCheckRun`) with full findings output visible in the Checks tab. Sets an `argus-qa` commit status (`failure` when new criticals ≥ `ARGUS_CRITICAL_THRESHOLD`, default 1 — set 0 to never block). `generateReleaseNotes(currentReport, prevReport)` generates a markdown changelog comparing two runs. Requires `GITHUB_TOKEN` + `GITHUB_REPOSITORY`. |
345
- | **Auto Route Discovery** | Augments manual `routes[]` with paths from three sources: fetches `/sitemap.xml` (follows one sitemap-index level, 10s timeout), scans Next.js `pages/` (Next 12) and `app/` (Next 13+) directories stripping route groups `(auth)`, and greps JS/TS source for React Router `<Route path>` declarations. Dynamic `[param]` segments are skipped — no concrete URL to crawl. Manual route config (`critical`, `waitFor`) always takes precedence. |
346
- | **`argus init` Setup Wizard** | `npm run init` (or `npx argus init`) guides first-time setup: collects target URLs, detects the app framework (Next.js / React Router / unknown) from the source directory's `package.json`, runs C3 route discovery against the dev URL, prompts for optional Slack tokens and GitHub credentials, then writes a populated `.env` and a pre-filled `src/config/targets.js` — zero manual config editing required. |
347
- | **Watch Mode** | `npm run watch` attaches to whatever Chrome tab is open and polls `list_console_messages` + `list_network_requests` every 1 s (configurable via `ARGUS_WATCH_INTERVAL_MS`). Reports new console errors, network failures (4xx/5xx), CORS blocks, and auth failures in real time without navigating. Starts a live web dashboard at `http://localhost:3002` (configurable via `ARGUS_WATCH_UI_PORT`). On `Ctrl+C`, generates a final `reports/report.html`. No route config needed. |
348
- | **Full Lighthouse Suite** | All 4 Lighthouse categories (performance, SEO, best-practices, accessibility) with per-audit items |
349
- | **Performance Budgets** | Enforces LCP < 2500ms, CLS < 0.1, FID < 100ms, TTFB < 800ms per route |
350
- | **Slack Notifications** | Rich Block Kit reports with inline screenshots routed to `#bugs-critical`, `#bugs-warnings`, `#bugs-digest` |
351
- | **Slash Command** | `/argus-retest <url>` triggers an on-demand test from any Slack channel |
352
- | **CI Integration** | GitHub Actions workflow runs daily at 6 AM UTC and on every push to `main` |
353
- | **MCP Server (AI-callable Argus)** | Register Argus as an MCP server via `.mcp.json`; Claude (or any MCP client) can call all **8 tools** `argus_audit`, `argus_audit_full`, `argus_compare`, `argus_last_report`, `argus_watch_snapshot`, `argus_get_context`, `argus_design_audit`, and `argus_visual_diff` directly from a conversation — no CLI, no terminal required. Published to npm as **[argusqa-os](https://www.npmjs.com/package/argusqa-os)** — add via `{ "command": "npx", "args": ["-y", "argusqa-os"] }` in `.mcp.json` |
354
- | **Figma Design Fidelity** | `argus_design_audit(url, figmaFrameUrl)` compares every extracted Figma property — 13 mismatch finding types: CSS token values, component presence, per-node fill/text color (RGB distance), typography (fontSize/fontWeight/lineHeight/fontFamily/letterSpacing), Auto Layout padding and gap, border-radius (per-corner), bounding-box overflow, **absolute position drift** (scroll-corrected x/y vs Figma bounds, 20px), border stroke (color+weight), box-shadow (offset+blur+**spread**+**color**), opacity, and text content. Selector fallback: tries `[data-testid]`, `[aria-label]`, `#id`, `.class` per node. Requires `FIGMA_API_TOKEN` env var. |
355
- | **Visual Regression** | Per-route screenshot baseline comparison using pixelmatch. First run saves the baseline PNG; subsequent runs emit (warning ≥0.1% / critical ≥5% pixels changed) + . Baselines stored in . |
356
- | **Core Web Vitals & Bundle Size** | Per-run LCP, CLS, FCP, TTI (domInteractive), and TTFB captured directly via browser Performance API works in **headless Chrome** without Lighthouse. Bundle size regression: `perf_bundle_large` fires when JS ≥ 500 KB (warning) / 2 MB (critical) or CSS ≥ 150 KB. `perf_vitals_summary` always emitted with all metric values. No external dependencies — pure Performance API. |
357
- | **Deep Accessibility (A12)** | axe-core 4.12 injected into every audited page — runs 80+ WCAG 2.x A/AA rules not covered by existing analyzers; maps impact to Argus severity (`critical → critical`, `serious/moderate → warning`, `minor → info`); deduplicates with snapshot-analyzer. CVD color blind simulation (protanopia + deuteranopia Machado matrices) checks WCAG AA contrast under each deficiency — flags elements safe for full-color vision that fail for red-green color blind users. 3 finding types: `a11y_axe_violation`, `a11y_colorblind_risk`, `a11y_deep_summary`. |
358
- | **HAR Network Baseline (N1)** | Records all network requests per route as a HAR-style baseline on first run. Subsequent runs diff current traffic against the baseline — surfaces `har_new_request`, `har_missing_request`, `har_status_changed`. Useful for isolating frontend bugs from backend noise. URL normalisation strips cache-busters from query strings to reduce false positives. Baselines stored in `reports/baselines/har/`. |
359
- | **Motion & Animation Accessibility (A9)** | Detects pages that animate without respecting `prefers-reduced-motion` — a WCAG 2.1 SC 2.3.3 violation that can trigger vestibular disorders. Checks: CSS animation/transition without `@media (prefers-reduced-motion)`, `<video autoplay>` without visible pause controls, animated interactive elements (button/a/input). Also emulates `prefers-reduced-motion: reduce` via CDP and flags elements that still animate. 4 finding types. |
360
- | **Font Loading (A10)** | Detects web font reliability and performance issues. Scans `@font-face` rules for missing `font-display` (FOIT — invisible text while loading), `font-display: swap/fallback` (FOUT — layout shift risk), `font-family` declarations without system font fallbacks (invisible text on load failure), slow-loading fonts via PerformanceResourceTiming (> 1000ms), and suboptimal font formats (.ttf/.eot instead of .woff2). 5 finding types + `font_summary`. |
361
- | **Form Validation (A11)** | Audits HTML forms for accessibility and UX gaps. Detects: inputs without `required`/`aria-required`, personal data fields (name/email/address/phone/CC) missing `autocomplete` (WCAG 1.3.5), error messages not linked via `aria-describedby`, `<input type="text">` labelled as password fields, and forms with required fields but no HTML5 validation. 5 finding types + `form_summary`. |
362
-
363
- Works with **React + SCSS**, CSS Modules, CSS-in-JS (styled-components / emotion), and plain HTML/CSS apps.
364
-
365
- ---
366
-
367
- ## How It Works
368
-
369
- Three components run against the same Chrome instance:
370
-
371
- ```text
372
- Claude Code (Terminal / VS Code)
373
- ├── MCP Protocol → Chrome DevTools MCP Server → Chrome
374
- └── Writes → Orchestration Layer → Slack Bot API
375
- ```
376
-
377
- - **Chrome DevTools MCP Server** — programmatic access to Chrome: network traffic, console, screenshots, DOM, performance traces
378
- - **Claude Code** — orchestration hub: reads codebase, drives the MCP tools, classifies findings, posts to Slack
379
- - **Slack Bot (BugBot)** — receives reports, exposes `/argus-retest` slash command, handles Acknowledge / Retest button actions
380
-
381
- In interactive mode (running from Claude Code), MCP tools are called natively. In CI mode (GitHub Actions), `src/utils/mcp-client.js` spawns `chrome-devtools-mcp` as a child process and communicates via JSON-RPC over stdio.
382
-
383
- ---
384
-
385
- ## Prerequisites
386
-
387
- | Requirement | Version | Notes |
388
- | --- | --- | --- |
389
- | Node.js | v20.19+ | Required by Chrome DevTools MCP |
390
- | Chrome | Stable (current) | Must be installed |
391
- | Claude Code | Latest | `npm install -g @anthropic-ai/claude-code` |
392
- | Slack workspace | — | **Optional** — only needed if you want Slack reports. Without it, Argus generates a local `report.html` instead |
393
-
394
- ---
395
-
396
- ## One-Time Setup
397
-
398
- ### Option A — MCP Server (Claude Code / any MCP client)
399
-
400
- No local install required. `npx` auto-downloads `argusqa-os` on first use.
401
-
402
- #### 1. Register both MCP servers
403
-
404
- Add to `.mcp.json` in your project root:
405
-
406
- ```json
407
- {
408
- "mcpServers": {
409
- "chrome-devtools": {
410
- "command": "npx",
411
- "args": ["-y", "chrome-devtools-mcp@latest"]
412
- },
413
- "argus": {
414
- "command": "npx",
415
- "args": ["-y", "argusqa-os"]
416
- }
417
- }
418
- }
419
- ```
420
-
421
- Or via Claude Code CLI:
422
-
423
- ```bash
424
- claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
425
- claude mcp add argus -- npx -y argusqa-os
426
- ```
427
-
428
- #### 2. Environment variables
429
-
430
- Create a `.env` file in your project root:
431
-
432
- ```env
433
- TARGET_DEV_URL=http://localhost:3000
434
- TARGET_STAGING_URL=https://staging.example.com # optional — enables argus_compare
435
- ```
436
-
437
- #### 3. Start Chrome with remote debugging
438
-
439
- ```bash
440
- # macOS
441
- open -a "Google Chrome" --args --remote-debugging-port=9222 --headless=new
442
-
443
- # Windows (PowerShell)
444
- & "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --headless=new --no-sandbox --disable-gpu --user-data-dir="$env:TEMP\chrome-argus"
445
-
446
- # Linux
447
- google-chrome --remote-debugging-port=9222 --headless=new --no-sandbox
448
- ```
449
-
450
- #### 4. Slack notifications (optional)
451
-
452
- > Skip to use local `report.html` mode — Argus generates a self-contained HTML report when Slack is not configured.
453
-
454
- 1. [api.slack.com/apps](https://api.slack.com/apps) → **Create New App** → name it **BugBot**
455
- 2. **OAuth & Permissions** → Bot Token Scopes: `chat:write`, `files:write`, `files:read`
456
- 3. Install to workspace → copy **Bot User OAuth Token** (`xoxb-...`) to `.env` as `SLACK_BOT_TOKEN`
457
- 4. Create `#bugs-critical`, `#bugs-warnings`, `#bugs-digest` and `/invite @BugBot` in each
458
-
459
- ```env
460
- SLACK_BOT_TOKEN=xoxb-...
461
- SLACK_CHANNEL_CRITICAL=C0000000000
462
- SLACK_CHANNEL_WARNINGS=C0000000001
463
- SLACK_CHANNEL_DIGEST=C0000000002
464
- ```
465
-
466
- ---
467
-
468
- ### Option B — npm Package (dev dependency / CI/CD)
469
-
470
- #### 1. Install
471
-
472
- ```bash
473
- npm install --save-dev argusqa-os
474
- ```
475
-
476
- #### 2. Environment variables
477
-
478
- Run the interactive wizard to auto-generate `.env` and `src/config/targets.js`:
479
-
480
- ```bash
481
- npx argus
482
- ```
483
-
484
- The wizard detects your framework (Next.js / React Router), discovers routes from `sitemap.xml` and your file structure, and optionally collects Slack and GitHub credentials.
485
-
486
- **Alternative — manual setup:** Create a `.env` with `TARGET_DEV_URL` and optionally `TARGET_STAGING_URL`.
487
-
488
- #### 3. Start Chrome with remote debugging
489
-
490
- Same as Option A — see above.
491
-
492
- #### 4. Slack notifications (optional)
493
-
494
- Same as Option A — see above.
495
-
496
- ---
497
-
498
- ### Option C — Clone the Repository (full source / contributors)
499
-
500
- #### 1. Clone and install
501
-
502
- ```bash
503
- git clone https://github.com/ironclawdevs27/Argus.git
504
- cd Argus
505
- npm install
506
- npm run setup # creates reports/ directory
507
- ```
508
-
509
- #### 2. Environment variables
510
-
511
- **Recommended — use the interactive setup wizard:**
512
-
513
- ```bash
514
- npm run init
515
- ```
516
-
517
- **Alternative — manual setup:**
518
-
519
- ```bash
520
- cp .env.example .env
521
- ```
522
-
523
- Open `.env` and fill in:
524
-
525
- ```env
526
- TARGET_DEV_URL=http://localhost:3000
527
- TARGET_STAGING_URL=https://staging.example.com # leave blank → CSS-only analysis mode
528
-
529
- # Slack — OPTIONAL. Omit to get a local report.html instead.
530
- # SLACK_BOT_TOKEN=xoxb-...
531
- # SLACK_SIGNING_SECRET=...
532
- # SLACK_CHANNEL_CRITICAL=C0000000000
533
- # SLACK_CHANNEL_WARNINGS=C0000000001
534
- # SLACK_CHANNEL_DIGEST=C0000000002
535
- ```
536
-
537
- #### 3. Configure routes
538
-
539
- If you ran `npm run init` — skip this step.
540
-
541
- Otherwise, edit [src/config/targets.js](src/config/targets.js):
542
-
543
- ```js
544
- export const routes = [
545
- { path: '/', name: 'Home', critical: true, waitFor: 'main' },
546
- { path: '/login', name: 'Login', critical: true, waitFor: 'form' },
547
- { path: '/dashboard', name: 'Dashboard', critical: true, waitFor: '[data-testid="dashboard"]' },
548
- { path: '/settings', name: 'Settings', critical: false, waitFor: null },
549
- ];
550
- ```
551
-
552
- - `critical: true` — errors on this route go to `#bugs-critical`
553
- - `waitFor` — CSS selector Argus waits for before capturing (signals the page is ready)
554
-
555
- #### 4. Connect Chrome DevTools MCP to Claude Code
556
-
557
- ```bash
558
- claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
559
- ```
560
-
561
- Verify — ask Claude: *"List all open Chrome pages"* — you should see your tabs.
562
-
563
- #### 5. Start Chrome with remote debugging
564
-
565
- Same as Option A — see above.
566
-
567
- #### 6. Slack notifications (optional)
568
-
569
- Same as Option A — see above.
570
-
571
- ---
572
-
573
- ## Running Argus
574
-
575
- ### Option A — Via MCP (Claude Code / any MCP client)
576
-
577
- Ask Claude directly — no terminal needed.
578
-
579
- **Available tools:**
580
-
581
- | Tool | What it does |
582
- | --- | --- |
583
- | `argus_audit` | Fast QA pass — JS errors, network failures, accessibility, SEO, security, CSS, content |
584
- | `argus_audit_full` | Deep QA pass — adds Lighthouse, responsive layout checks across 4 viewports, memory leak detection, hover-state bug detection, and accessibility tree snapshot |
585
- | `argus_compare` | Diff dev vs staging — screenshots, findings delta, environment regressions |
586
- | `argus_last_report` | Return the last saved JSON report without re-running a scan |
587
- | `argus_watch_snapshot` | Snapshot the currently open Chrome tab without navigating — raw console + network capture |
588
- | `argus_get_context` | Capture everything broken on the open tab, formatted as a diagnostic context for Claude to diagnose and suggest fixes |
589
- | `argus_design_audit` | Figma design-to-implementation fidelity audit — 13 finding types across color, typography, spacing, per-corner radius, position drift, stroke, shadow (color+spread), opacity, gap, and text content |
590
- | `argus_visual_diff` | Screenshot baseline comparison — first call saves baseline; subsequent calls detect pixel regressions. Pass `updateBaseline: true` to reset. |
591
-
592
- **`argus_audit`** — fast audit of any URL:
593
-
594
- ```text
595
- Run argus_audit on http://localhost:3000/checkout
596
- Run argus_audit on http://localhost:3000/login with critical: true
597
- ```
598
-
599
- **`argus_audit_full`** — deep audit with Lighthouse + memory + responsive checks:
600
-
601
- ```text
602
- Run argus_audit_full on http://localhost:3000/dashboard
603
- ```
604
-
605
- **`argus_compare`** — dev vs staging diff (reads `TARGET_DEV_URL` and `TARGET_STAGING_URL` from `.env`):
606
-
607
- ```text
608
- Run argus_compare
609
- ```
610
-
611
- **`argus_last_report`** — retrieve last audit without re-running Chrome:
612
-
613
- ```text
614
- Run argus_last_report
615
- ```
616
-
617
- **`argus_watch_snapshot`** — snapshot the currently open tab without navigating. Useful when the page is in an authenticated or post-interaction state that navigation would reset:
618
-
619
- ```text
620
- Run argus_watch_snapshot
621
- Run argus_watch_snapshot with url: http://localhost:3000
622
- ```
623
-
624
- **`argus_get_context`** — when your app is stuck or throwing errors, run this to capture everything that's broken and feed it to Claude for diagnosis:
625
-
626
- ```text
627
- Run argus_get_context
628
- ```
629
-
630
- Then follow with: *"Here's the context — what's causing these errors and how do I fix them?"*
631
-
632
- ---
633
-
634
- ### Option B & C — Via CLI / npm scripts
635
-
636
- **Available commands:**
637
-
638
- | Command | What it does |
639
- | --- | --- |
640
- | `npm run crawl` | Multi-page batch audit of all routes in `targets.js` |
641
- | `npm run compare` | Dev vs staging diff (or CSS analysis if no `TARGET_STAGING_URL`) |
642
- | `npm run watch` | Passive monitor — polls the open Chrome tab every 1s, no navigation |
643
- | `npm run report:html` | Generate `reports/report.html` from the latest JSON audit |
644
- | `npm run server` | Start the Slack slash command + interaction server (port 3001) |
645
- | `npm run init` | Interactive setup wizard — generates `.env` + `targets.js` |
646
- | `npm run test:unit` | Run 61 unit tests (no Chrome required) |
647
- | `npm run test:harness` | Run 129-block correctness harness (requires Chrome) |
648
-
649
- **`npm run crawl`** — full audit of all configured routes:
650
-
651
- ```bash
652
- npm run crawl
653
- ```
654
-
655
- Reports are saved to `reports/` as JSON files. Run `npm run report:html` after any crawl for a portable `reports/report.html` with all screenshots inlined — useful for sharing with designers or reviewing offline.
656
-
657
- **`npm run compare`** — dev vs staging diff:
658
-
659
- ```bash
660
- npm run compare
661
- ```
662
-
663
- When `TARGET_STAGING_URL` is not set, automatically switches to **CSS analysis mode** — cascade overrides, component style leaks, unused rules, and React inline style conflicts on the dev environment only.
664
-
665
- **`npm run watch`** — passive monitoring (polls every 1s, no navigation):
666
-
667
- Attaches to whatever Chrome tab is open and reports new issues in real time without navigating anywhere. Use this while developing.
668
-
669
- ```text
670
- Requires 2 terminals:
671
- Terminal 1 — your app (npm start / npm run dev)
672
- Terminal 2 — npm run watch
673
- ```
674
-
675
- Steps:
676
- 1. Open Chrome and navigate to your app
677
- 2. Terminal 1: start your application
678
- 3. Terminal 2: `npm run watch` — Argus begins polling
679
- 4. Develop normally — console errors, network failures (4xx/5xx), CORS blocks, and auth failures print in real time
680
- 5. `Ctrl+C` — stops the monitor and writes `reports/report.html`
681
-
682
- ```bash
683
- # Attribute findings to a specific URL:
684
- npm run watch http://localhost:4000
685
- ```
686
-
687
- | Variable | Default | Description |
688
- | --- | --- | --- |
689
- | `ARGUS_WATCH_INTERVAL_MS` | `1000` | Poll interval in milliseconds |
690
- | `TARGET_DEV_URL` | `http://localhost:3000` | URL attributed to findings when none passed |
691
-
692
- **`npm run report:html`** — generate HTML dashboard from last audit:
693
-
694
- ```bash
695
- npm run report:html
696
- # → reports/report.html (all findings + inline screenshots, portable, no server needed)
697
- ```
698
-
699
- ---
700
-
701
- ### Option D — From Slack (on-demand)
702
-
703
- ```text
704
- /argus-retest https://staging.example.com/checkout
705
- ```
706
-
707
- BugBot responds immediately, runs the test, and posts results back. Detailed bug reports go to `#bugs-critical`. See [Slack Slash Command Setup](#slack-slash-command-setup) for configuration.
708
-
709
- ---
710
-
711
- ## CSS Analysis Mode
712
-
713
- When `TARGET_STAGING_URL` is not set in `.env`, `npm run compare` automatically switches to **CSS analysis mode** instead of comparing two environments.
714
-
715
- **What it analyzes on your dev environment:**
716
-
717
- | Check | What it catches |
718
- | --- | --- |
719
- | **Cascade overrides** | Same CSS property declared multiple times on an element; `!important` flagged as warning |
720
- | **Component style leaks** | BEM selector (`.card__title`) found in a stylesheet that doesn't belong to that component |
721
- | **Unused rules** | CSS selectors that match no element on the current page |
722
- | **CSS Modules** | Detects hashed class names; extracts readable component names (`Button`, `Card`, etc.) |
723
- | **React inline style conflicts** | `style=""` attribute overriding a stylesheet declaration on the same element |
724
- | **SCSS source maps** | Traces compiled CSS back to original `.scss` files where source maps are available |
725
-
726
- **API frequency analysis** also runs automatically:
727
-
728
- | Call count | Severity | Likely cause |
729
- | --- | --- | --- |
730
- | 2 calls | info | Possible prefetch + actual — verify intentional |
731
- | 3–4 calls | warning | Double-fetch — check `useEffect` deps or component re-mounts |
732
- | 5+ calls | critical | Runaway loop — missing cleanup, infinite re-render |
733
-
734
- ---
735
-
736
- ## Performance Budgets
737
-
738
- Argus enforces these thresholds on every crawl:
739
-
740
- | Metric | Threshold | Severity |
741
- | --- | --- | --- |
742
- | LCP (Largest Contentful Paint) | < 2500ms | warning |
743
- | CLS (Cumulative Layout Shift) | < 0.1 | warning |
744
- | FID / TBT (interaction latency) | < 100ms | warning |
745
- | TTFB (Time to First Byte) | < 800ms | warning |
746
-
747
- Violations are reported as individual warning bugs with the measured value.
748
-
749
- ---
750
-
751
- ## Lighthouse Suite
752
-
753
- Runs all four Lighthouse categories on every route:
754
-
755
- - **Accessibility** — score < 50 → `critical`; score < 90 → `warning`
756
- - **Performance** — score < 90 → `warning`
757
- - **SEO** — score < 90 → `warning`
758
- - **Best Practices** — score < 90 → `warning`
759
-
760
- Individual failing audit items (e.g., missing alt text, low contrast, render-blocking resources) are surfaced as separate findings alongside the category score.
761
-
762
- ---
763
-
764
- ## Slack Channel Routing
765
-
766
- > **Slack is optional.** When `SLACK_BOT_TOKEN` is not set, Argus skips Slack entirely and
767
- > auto-generates a local `report.html` (all findings + inline screenshots) and opens it in
768
- > the default browser. No Slack setup needed to start using Argus.
769
-
770
- When Slack **is** configured, findings are routed by severity:
771
-
772
- | Severity | Channel | When |
773
- | --- | --- | --- |
774
- | `critical` | `#bugs-critical` | JS exceptions, HTTP 5xx, blank page, auth failure, API called 5+ times, Lighthouse accessibility < 50, auth token in storage/URL, responsive overflow, slow API > 3s, payload > 2MB, > 100 detached DOM nodes, CORS policy violations, `debugger;` statements in production code, blocked mixed content (HTTP resource on HTTPS page) |
775
- | `warning` | `#bugs-warnings` | Visual regression > 0.5%, HTTP 4xx, CSS overrides with `!important`, API called 3–4×, Lighthouse scores < 90, missing SEO/OG tags, missing security headers, placeholder content, touch targets too small, slow API > 1s, payload > 500KB, > 10 detached DOM nodes, redirect chains > 2 hops, broken links, sync XHR, `document.write`, long tasks > 50ms, SW registration failures, duplicate `id` attributes, passive mixed content (images/audio on HTTPS page) |
776
- | `info` | `#bugs-digest` | Console warnings, unused CSS rules, API summaries, CSS Modules detection, empty data lists, responsive screenshot grid, missing cache headers on static assets |
777
-
778
- Each message includes:
779
-
780
- - Severity badge + affected URL + timestamp
781
- - AI-generated description
782
- - Inline screenshot (uploaded directly to Slack — no external hosting)
783
- - **View Page**, **Acknowledge**, and **Retest** action buttons
784
-
785
- ---
786
-
787
- ## Slack Slash Command Setup
788
-
789
- To use `/argus-retest` from Slack, you need to expose the Argus server publicly.
790
-
791
- ### Step 1 — Start the server
792
-
793
- ```bash
794
- npm run server
795
- ```
796
-
797
- Server runs on port 3001.
798
-
799
- ### Step 2 — Expose with Cloudflare Tunnel
800
-
801
- Download [cloudflared](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/) (free, no account needed), then:
802
-
803
- ```bash
804
- cloudflared tunnel --url http://localhost:3001
805
- ```
806
-
807
- Alternatively, with no install at all (SSH tunnel):
808
-
809
- ```bash
810
- ssh -R 80:localhost:3001 nokey@localhost.run
811
- ```
812
-
813
- Copy the public HTTPS URL that appears.
814
-
815
- ### Step 3 — Configure Slack App
816
-
817
- 1. [api.slack.com/apps](https://api.slack.com/apps) → BugBot → **Slash Commands** → Create New Command:
818
- - Command: `/argus-retest`
819
- - Request URL: `https://your-public-url/slack/commands`
820
- - Description: `Run Argus regression test on a URL`
821
- - Usage hint: `<url>`
822
-
823
- 2. **Interactivity & Shortcuts** → Enable → Request URL: `https://your-public-url/slack/interactions`
824
-
825
- 3. **OAuth & Permissions** → **Reinstall to Workspace**
826
-
827
- ### Step 4 — Test
828
-
829
- ```text
830
- /argus-retest http://localhost:3000
831
- ```
832
-
833
- BugBot should reply within 3 seconds with a "running" acknowledgement, then post results.
834
-
835
- ---
836
-
837
- ## GitHub Actions CI Setup
838
-
839
- ### Add secrets to your repository
840
-
841
- Go to GitHub repo → **Settings** → **Secrets and variables** → **Actions** → add:
842
-
843
- | Secret name | Required | Value |
844
- | --- | --- | --- |
845
- | `SLACK_BOT_TOKEN` | No | Your `xoxb-...` token. **Omit entirely to use Slack-optional mode** — Argus generates `report.html` instead |
846
- | `SLACK_SIGNING_SECRET` | No* | From Slack App → Basic Information (only needed for `/argus-retest` slash command) |
847
- | `SLACK_CHANNEL_CRITICAL` | No* | Channel ID (required when Slack is configured) |
848
- | `SLACK_CHANNEL_WARNINGS` | No* | Channel ID (required when Slack is configured) |
849
- | `SLACK_CHANNEL_DIGEST` | No* | Channel ID (required when Slack is configured) |
850
- | `TARGET_STAGING_URL` | Yes | Your staging base URL |
851
- | `GITHUB_TOKEN` | No | For C2 PR integration — auto-injected by GitHub Actions as `secrets.GITHUB_TOKEN` |
852
- | `GITHUB_REPOSITORY` | No | For C2 PR integration — `owner/repo` format (e.g., `acme/my-app`) |
853
-
854
- > **C2 PR integration**: when `GITHUB_TOKEN` and `GITHUB_REPOSITORY` are set, Argus posts a PR comment and commit status check for every crawl. `GITHUB_PR_NUMBER` is injected automatically by the workflow from `github.event.pull_request.number`. The included workflow does not wire these up by default — add them to the `env:` block in `.github/workflows/argus.yml` if you want PR-level comments.
855
-
856
- The workflow at [.github/workflows/argus.yml](.github/workflows/argus.yml) runs:
857
-
858
- - On every push to `main` / `master`
859
- - Daily at 6 AM UTC (before the team starts work)
860
- - Manually via **Actions** → **Run workflow** (with optional URL override)
861
-
862
- If critical issues are found, the pipeline **fails** — preventing silent regressions from being missed.
863
-
864
- ---
865
-
866
- ## Project Structure
867
-
868
- ```text
869
- argus/
870
- ├── .env # Your secrets (never commit this)
871
- ├── .env.example # Template — copy to .env
872
- ├── .gitignore
873
- ├── package.json
874
- ├── README.md
875
- ├── .claude/
876
- │ └── settings.json # Claude Code permission config (auto-approve node/npm/reports)
877
- ├── .github/
878
- │ └── workflows/
879
- │ └── argus.yml # CI pipeline
880
- ├── .vscode/
881
- │ └── mcp.json # Chrome DevTools MCP config for VS Code
882
- ├── .mcp.json # Argus MCP server registration — exposes all 8 tools to Claude: argus_audit/argus_audit_full/argus_compare/argus_last_report/argus_watch_snapshot/argus_get_context/argus_design_audit/argus_visual_diff
883
- ├── src/
884
- │ ├── argus.js # Single-page audit entry point
885
- │ ├── batch-runner.js # Multi-page batch audit
886
- │ ├── mcp-server.js # Argus MCP server — argus_audit / argus_audit_full / argus_compare / argus_last_report / argus_watch_snapshot / argus_get_context / argus_design_audit / argus_visual_diff
887
- │ ├── adapters/
888
- │ │ └── browser.js # CdpBrowserAdapter — facade over all chrome-devtools-mcp calls
889
- │ ├── domain/
890
- │ │ └── finding.js # createFinding() factory — canonical finding shape
891
- │ ├── registry.js # Analyzer plugin registry — registerCheap/registerExpensive/getCheap/getExpensive/clearAll
892
- │ ├── config/
893
- │ │ ├── targets.js # Routes to test, thresholds, config
894
- │ │ └── schema.js # Zod validation schema; validateConfig() called inside runCrawl()
895
- │ ├── orchestration/
896
- │ │ ├── crawl-and-report.js # Backward-compat re-export shell → orchestrator + report-processor + dispatcher
897
- │ │ ├── orchestrator.js # Crawl loop, route/flow crawl, runCrawl()
898
- │ │ ├── report-processor.js # Dedup → severity overrides → baseline → JSON write
899
- │ │ ├── dispatcher.js # Slack / GitHub / HTML dispatch
900
- │ │ ├── env-comparison.js # Dev vs staging diff + CSS analysis mode
901
- │ │ ├── watch-mode.js # Passive browser monitoring (WatchSession + runWatchMode)
902
- │ │ └── slack-notifier.js # Slack Block Kit dispatcher
903
- │ ├── server/
904
- │ │ ├── index.js # Express server (port 3001)
905
- │ │ ├── slash-command-handler.js # /argus-retest handler
906
- │ │ └── interaction-handler.js # Acknowledge + Retest button handler
907
- │ ├── utils/
908
- │ │ ├── css-analyzer.js # CSS analysis script injected into the browser
909
- │ │ ├── seo-analyzer.js # SEO checks: meta, OG tags, h1, canonical, viewport
910
- │ │ ├── security-analyzer.js # Security: localStorage tokens, eval(), headers, cookies
911
- │ │ ├── content-analyzer.js # Content quality: null text, placeholders, broken images
912
- │ │ ├── responsive-analyzer.js # Responsive: overflow + touch targets at 4 breakpoints
913
- │ │ ├── memory-analyzer.js # Memory leaks: V8 heap snapshot + heap growth
914
- │ │ ├── logger.js # Pino structured logger — childLogger(module)│ │ ├── retry.js # withRetry() exponential backoff — navigate/fill only; Number.isFinite guard│ │ ├── telemetry.js # OTel tracing + metrics — startSpan() / recordFinding() / recordFlaky() / recordNewFindings(); no-op default│ │ ├── session-manager.js # Auth: backward-compat re-export barrel│ │ ├── session-persistence.js # Auth: saveSession (mkdirSync+atomic write), restoreSession, hasSession, clearSession│ │ ├── login-orchestrator.js # Auth: runLoginFlow, refreshSession + lock file│ │ ├── baseline-manager.js # Baselines: loadBaseline, saveBaseline, applyBaseline, appendTrend
915
- │ │ ├── flakiness-detector.js # Flakiness: mergeRunResults — confirmed vs flaky per double-crawl
916
- │ │ ├── flow-runner.js # User flow assertions: runFlow / runAllFlows — assert DSL
917
- │ │ ├── html-reporter.js # HTML dashboard: generateHtmlReport() + npm run report:html (D7.1 / D7.7)
918
- │ │ ├── parallel-crawler.js # chunkArray sharding utility (ARGUS_CONCURRENCY=N parallel crawl)
919
- │ │ ├── contract-validator.js # API contract validation: validateSchema, matchesContract (D7.4)
920
- │ │ ├── severity-overrides.js # Severity policy overrides: applyOverrides (D7.5)
921
- │ │ ├── slack-guard.js # Slack-optional guard: isSlackConfigured() (D7.7)
922
- │ │ ├── hover-analyzer.js # Hover-state bug detection — aria-haspopup + data-tooltip (D8.1)
923
- │ │ ├── snapshot-analyzer.js # Accessibility tree snapshot — missing names, labels, landmarks, heading hierarchy, ARIA state (D8.2 + v6)
924
- │ │ ├── issues-analyzer.js # Chrome DevTools Issues panel — CSP/deprecated/cookie issues
925
- │ │ ├── network-timing-analyzer.js # HAR timing analysis — slow third-party detection
926
- │ │ ├── keyboard-analyzer.js # Keyboard Tab-walk — focus_visible_missing, focus_lost
927
- │ │ ├── theme-analyzer.js # A7: Theme & Dark Mode detection — emulateColorScheme, prefers-color-scheme mismatches
928
- │ │ ├── design-fidelity-analyzer.js # D9: Figma design token vs DOM comparison — 13 mismatch finding types
929
- │ │ ├── web-vitals-analyzer.js # Sprint 9: LCP/CLS/FCP/TTI/TTFB via Performance API + bundle size regression
930
- │ │ ├── visual-diff-analyzer.js # A8: Visual regression baseline comparison (pixelmatch)
931
- │ │ ├── a11y-deep-analyzer.js # A12: axe-core 4.12 injection + CVD color blind simulation (protanopia/deuteranopia)
932
- │ │ ├── har-recorder.js # N1: HAR network baseline — record + diff all requests per route
933
- │ │ ├── motion-analyzer.js # A9: Motion & Animation — prefers-reduced-motion + autoplay detection
934
- │ │ ├── font-analyzer.js # A10: Font Loading — FOIT/FOUT/fallback/slow/suboptimal-format detection
935
- │ │ ├── form-analyzer.js # A11: Form Validation — required/autocomplete/aria/validation gaps
936
- │ │ ├── codebase-analyzer.js # Codebase cross-reference — env vars, feature flags, dead routes (C1)
937
- │ │ ├── github-reporter.js # GitHub PR comment + commit status + Check Runs (C2) — createCheckRun/completeCheckRun/generateReleaseNotes
938
- │ │ ├── route-discoverer.js # Auto route discovery — sitemap + Next.js + React Router (C3)
939
- │ │ ├── diff.js # pixelmatch screenshot + DOM/network diff utilities
940
- │ │ ├── mcp-parsers.js # Text-format parsers for list_console_messages + list_network_requests (v9)
941
- │ │ └── mcp-client.js # Headless JSON-RPC MCP client for CI mode
942
- │ └── cli/
943
- │ └── init.js # argus init setup wizard — detect framework, discover routes, write .env + targets.js (C4)
944
- ├── test/
945
- │ └── unit/ # Vitest unit tests — no Chrome required
946
- │ ├── finding.test.js # createFinding() — fields, throws, frozen, extra fields (8 tests)
947
- │ ├── config-schema.test.js # validateConfig() + ConfigSchema.safeParse (8 tests)
948
- │ ├── report-processor.test.js # deduplicateFindings + rebuildSummary (11 tests)
949
- │ ├── flakiness-detector.test.js # findingKey normalization + mergeRunResults (13 tests)
950
- │ ├── baseline-manager.test.js # loadBaseline/saveBaseline/applyBaseline (9 tests)
951
- │ └── flow-runner.test.js # normalizeArray (pure) + runFlow mock browser (11 tests)
952
- ├── landing/ # Product landing page (React 19 + Vite 8 + Tailwind + Framer Motion 12)
953
- │ ├── src/
954
- │ │ ├── App.jsx # Single-page app — hero, features, comparison, waitlist + enterprise modals
955
- │ │ └── supabase.js # Supabase client factory (null-safe when env vars missing)
956
- │ ├── public/
957
- │ │ ├── favicon.svg # SVG favicon — purple ring + dot
958
- │ │ ├── argus-poster.png # Video poster fallback (1918×1078)
959
- │ │ ├── og-image-v2.jpg # OG social card — 1200×630 JPEG, branded overlay, black-outlined stat numbers
960
- │ │ ├── robots.txt # Allows all crawlers; Sitemap reference
961
- │ │ └── sitemap.xml # Canonical URL for argus-qa.com/
962
- │ ├── index.html # Vite entry; OG/Twitter/JSON-LD SEO tags; canonical; favicon
963
- │ ├── package.json
964
- │ ├── .env.example # VITE_SUPABASE_URL + VITE_SUPABASE_ANON_KEY template
965
- │ └── README.md # Setup guide, Supabase SQL schema, env vars, deployment
966
- ├── scripts/
967
- │ └── dispatch-report.js # Standalone Slack re-dispatch script (re-posts last report.json to Slack)
968
- ├── test-harness/ # Fixture server + test runner (135 blocks, 616 hard assertions, 62 fixture pages)
969
- │ ├── README.md
970
- │ ├── server.js # Express fixture server (ports 3100 dev / 3101 staging)
971
- │ ├── harness-config.js # Route definitions + expected findings
972
- │ ├── validate.js # Test runner — 136 numbered blocks ([80]–[84] MCP/createFinding/withRetry/watch/init, [85]–[93] Sprint 0.5 Tier 3, [94]–[126] gap-close, [127] A7 theme, [128] D9 design fidelity, [129] Sprint 9 Web Vitals, [130] A8 Visual Regression, [131] A12 axe-core, [132] N1 HAR, [133] A9 Motion, [134] A10 Font, [135] A11 Form, [136] Sprint 6 Check Runs)
973
- │ ├── pages/ # 62 fixture HTML pages (one per detection category)
974
- │ ├── nextjs-fixture/ # Next.js app structure for C3 discovery tests (10 files)
975
- │ ├── source-fixture/ # Minimal app.js for C1 codebase-analyzer tests (env var audit)
976
- │ └── static/
977
- │ └── button-styles.css # BEM card selectors in button file → component leak
978
- └── reports/ # Output: JSON reports + screenshots (gitignored)
979
- ├── baselines/
980
- │ ├── <branch>.json # Per-route finding keys — per git branch (D7.2)
981
- │ └── <branch>-trends.json # Append-only run history per branch (D7.2)
982
- └── .gitkeep
983
- ```
984
-
985
- ---
986
-
987
- ## Key Technical Decisions
988
-
989
- | Decision | Choice | Reason |
990
- | --- | --- | --- |
991
- | Screenshot comparison | pixelmatch + AI classification | pixelmatch is fast and deterministic; Claude removes false positives from anti-aliasing and dynamic content |
992
- | Slack API | Bot API, not Incoming Webhooks | Bot API supports file uploads, message updates, interactive buttons, and threads |
993
- | File uploads | `files.getUploadURLExternal` + PUT + `files.completeUploadExternal` | `files.upload` is deprecated; pre-signed URL requires PUT — POST silently produces broken files |
994
- | CSS analysis | Script injected via `evaluate_script` | Runs in page context so it sees the live computed styles, CSS Modules hashes, and React fiber properties |
995
- | Responsive viewport | `emulate` (not `resize_page`) | `resize_page` only resizes the browser window and does not update CSS viewport width — `emulate` is the correct API |
996
- | Viewport width measurement | `document.documentElement.clientWidth` | After `emulate` with mobile flag, `window.innerWidth` returns the legacy layout viewport (~952px), not the device width |
997
- | V8 heap snapshot | `take_heapsnapshot({ filePath })` → read from disk | The MCP tool writes JSON to disk (not inline); parse with `JSON.parse(fs.readFileSync(filePath))` then delete the temp file |
998
- | Detached DOM detection | Walk flat `nodes` array for "Detached " prefix in strings table | Chrome serializes detached elements as "Detached HTMLDivElement" etc.; secondary check on `detachedness === 2` (Chrome 90+) |
999
- | Baseline finding key | `type::message[:100]::status` | Excludes timestamps and dynamic URL path IDs; message truncated to 100 chars to handle slight wording variations; `::status` suffix only added when non-null |
1000
- | Baseline alert filter | `isNew === true` (strict) | Only findings explicitly marked new by `applyBaseline` are dispatched to Slack — prevents stale re-dispatch if baseline-manager is not called (fails silently rather than spamming) |
1001
- | Flakiness routing | `severity: 'info'` for flaky findings | Downgrading severity means existing `dispatchToSlack` routing sends them to the info digest with zero routing changes — only the `:zap: _flaky_` label needed |
1002
- | Private `findingKey` per module | Each of `baseline-manager.js` and `flakiness-detector.js` has its own copy | Avoids coupling two independently-useful modules via a shared export for a trivial 3-line function |
1003
- | Runtime anti-pattern injection | `addScriptToEvaluateOnNewDocument` via MCP | Scripts registered this way run in the new page context before any page script — intercepts `XMLHttpRequest.open`, `document.write`, and `navigator.serviceWorker.register` before the page can call them |
1004
- | CORS error detection | `list_console_messages` + text match, not in-page intercept | CORS errors are generated by the browser itself, not by page JS — `console.error` patcher misses them; the MCP console log captures them |
1005
- | Long task detection | `PerformanceObserver({ entryTypes: ['longtask'] })` injected before load | Only the duration is included in the finding message (not `startTime`) — ensures identical tasks on two crawl runs produce the same dedup key |
1006
- | CI MCP client | JSON-RPC over stdio | In CI there's no Claude Code agent — the headless client replaces it with the same API surface |
1007
- | Node.js | v20.19+ | Minimum required by Chrome DevTools MCP |
1008
-
1009
- ---
1010
-
1011
- ## Known MCP Tool Limitations
1012
-
1013
- The Chrome DevTools MCP behavioral constraints below cause **3 permanent test failures** in the harness (`623/626` pass). These are MCP-layer restrictions — they cannot be fixed in Argus code. `validate.js` now exits with code 0 when only these 3 failures remain, making the CI harness gate reliable.
1014
-
1015
- > **`type_text` clarification**: `type_text` does fire DOM `input` events when the element is properly focused first with `mcp.click({ uid })`. Always use uid-based focus — passing `{ selector }` to `mcp.click` silently does nothing.
1016
-
1017
- | Tool | Constraint | Impact |
1018
- | --- | --- | --- |
1019
- | `drag` | Uses mouse simulation, **not** HTML5 DnD API | `dragstart`/`dragover`/`drop` events never fire |
1020
- | `list_console_messages({ types: ['issue'] })` | Issues panel returns empty even when violations exist | CSP and deprecated-API detection is unreliable |
1021
-
1022
- These constraints are documented with workarounds in [SKILL.md §10](SKILL.md).
1023
-
1024
- The harness passes **623/626** assertions (exits 0). The 3 failures are the permanent MCP-limited ones listed above.
1025
-
1026
- ---
1027
-
1028
- ## Environment Variables Reference
1029
-
1030
- | Variable | Required | Description |
1031
- | --- | --- | --- |
1032
- | `SLACK_BOT_TOKEN` | No | `xoxb-...` Bot User OAuth Token. **Omit to enable Slack-optional mode** — Argus generates `report.html` and opens it in the browser instead |
1033
- | `SLACK_SIGNING_SECRET` | No* | Verifies slash command / interaction requests from Slack (required only when using `/argus-retest`) |
1034
- | `SLACK_CHANNEL_CRITICAL` | No* | Channel ID for critical bugs (required when Slack is configured) |
1035
- | `SLACK_CHANNEL_WARNINGS` | No* | Channel ID for warnings (required when Slack is configured) |
1036
- | `SLACK_CHANNEL_DIGEST` | No* | Channel ID for info / daily digest (required when Slack is configured) |
1037
- | `TARGET_DEV_URL` | Yes | Base URL of your dev environment |
1038
- | `TARGET_STAGING_URL` | No | Base URL of staging. If blank → CSS analysis mode |
1039
- | `SCREENSHOT_DIFF_THRESHOLD` | No | Pixel diff % to flag (default: `0.5`) |
1040
- | `REPORT_OUTPUT_DIR` | No | Where to write reports (default: `./reports`) |
1041
- | `ARGUS_CONCURRENCY` | No | Number of parallel MCP clients for route crawling (default: `1` = sequential) |
1042
- | `PORT` | No | Server port (default: `3001`) |
1043
- | `ARGUS_LOG_LEVEL` | No | Pino log level — `trace`, `debug`, `info`, `warn`, `error`, `fatal` (default: `info`) |
1044
- | `ARGUS_LOG_PRETTY` | No | Set to `1` for human-readable log output instead of JSON (dev mode) |
1045
- | `ARGUS_RETRY_ATTEMPTS` | No | Max retry attempts for `navigate`/`fill` MCP calls (default: `3`) |
1046
- | `OTEL_EXPORTER_OTLP_ENDPOINT` | No | OTLP collector endpoint — enables span/metric export to Jaeger, Grafana Tempo, Datadog, etc. |
1047
- | `ARGUS_OTEL_CONSOLE` | No | Set to `1` to print OTel spans to stdout without an OTLP endpoint (dev tracing) |
1048
- | `ARGUS_WATCH_INTERVAL_MS` | No | Watch mode poll interval in milliseconds (default: `1000`) |
1049
- | `ARGUS_WATCH_UI_PORT` | No | Watch mode web dashboard port (default: `3002`) |
1050
- | `ARGUS_SOURCE_DIR` | No | Path to your app's source directory — enables codebase cross-reference (env var detection, feature flag leakage, dead routes) |
1051
- | `ARGUS_ENV_FILE` | No | Path to your app's `.env` file — C1 cross-references env vars used in source code against this file to detect missing declarations |
1052
- | `GITHUB_TOKEN` | No | GitHub personal access token — required for PR comment + commit status integration |
1053
- | `GITHUB_REPOSITORY` | No | Repository in `owner/repo` format — required for GitHub PR integration |
1054
- | `GITHUB_SHA` | No | Commit SHA for the commit status check — injected automatically by GitHub Actions (`${{ github.sha }}`) |
1055
- | `GITHUB_PR_NUMBER` | No | PR number for comment targeting — set via `${{ github.event.pull_request.number }}` in your workflow |
1056
- | `ARGUS_REPORT_URL` | No | Full URL to the hosted HTML report — linked from the GitHub commit status check |
1057
-
1058
- ---
1059
-
1060
- ## Troubleshooting
1061
-
1062
- ### Chrome DevTools MCP not connecting
1063
-
1064
- ```bash
1065
- claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
1066
- # Then restart Claude Code
1067
- ```
1068
-
1069
- ### Slack messages not posting
1070
-
1071
- - Confirm `SLACK_BOT_TOKEN` starts with `xoxb-` (not `xoxp-`, `xoxe-`, or `xapp-`)
1072
- - Verify BugBot is invited to each channel: `/invite @BugBot`
1073
- - Check token scopes: `chat:write`, `files:write`, `files:read`
1074
-
1075
- ### Screenshots not appearing in Slack messages
1076
-
1077
- - The upload uses a pre-signed URL that requires `PUT`, not `POST` — if you see a broken image, check that the Slack token has `files:write` scope and the channel is correct
1078
-
1079
- ### Slash command returns "dispatch_failed"
1080
-
1081
- - Your tunnel URL has changed (Cloudflare Tunnel / localhost.run URLs change on restart)
1082
- - Update the Request URL in Slack App → Slash Commands and reinstall
1083
-
1084
- ### CSS analysis returns empty results
1085
-
1086
- - Page may be behind auth — make sure you're logged in on the Chrome instance Argus is controlling
1087
- - Cross-origin stylesheets (CDN fonts, third-party widgets) can't be read due to browser security restrictions — this is expected
1088
-
1089
- ### Screenshots are blank
1090
-
1091
- - Page hasn't finished loading — increase `pageSettleMs` in `src/config/targets.js`
1092
- - Add a `waitFor` selector for that route
1093
-
1094
- ### CI pipeline fails immediately
1095
-
1096
- - Chrome may not be starting fast enough — increase the `sleep 3` after Chrome launch to `sleep 5` in `.github/workflows/argus.yml`
1097
-
1098
- ---
1099
-
1100
- ## How Argus Differs From Playwright / Cypress
1101
-
1102
- Argus is not a replacement for unit or E2E tests. It's a complementary layer:
1103
-
1104
- | | Playwright / Cypress | Argus |
1105
- | --- | --- | --- |
1106
- | **Tests** | Your logic and API contracts | What the user actually sees |
1107
- | **Catches** | Regression in behaviour | CSS drift, visual regressions, API redundancy, console noise, perf budgets |
1108
- | **Runs** | In your test suite | Continuously, on the live running app |
1109
- | **Setup** | Write test files | Configure routes in `targets.js` |
1110
- | **Output** | Pass / fail | Structured Slack reports with screenshots and action buttons |
1111
-
1112
- They complement each other — Argus catches what test suites miss.
1
+ <div align="center">
2
+
3
+ # Argus AI-Powered Automated QA
4
+
5
+ [![npm](https://img.shields.io/npm/v/argusqa-os?color=7C3AED)](https://www.npmjs.com/package/argusqa-os)
6
+ [![MCP Server](https://glama.ai/mcp/servers/ironclawdevs27/Argus/badges/card.svg)](https://glama.ai/mcp/servers/ironclawdevs27/Argus)
7
+ [![Harness](https://img.shields.io/badge/harness-641%2F644-4ADE80)](test-harness/)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
9
+
10
+ **Argus catches the bugs your test suite misses — visual regressions, API loops, CSS drift, console noise, accessibility failures, and more — and delivers rich reports to Slack (or a local HTML dashboard).**
11
+
12
+ [Quick Start](#quick-start) · [Features](#what-argus-catches) · [Setup](#full-setup) · [MCP Tools](#mcp-tools) · [CLI Commands](#cli-commands) · [Troubleshooting](#troubleshooting) · [Full Reference](REFERENCE.md)
13
+
14
+ </div>
15
+
16
+ ---
17
+
18
+ ## Quick Start
19
+
20
+ > **No install required.** `npx` auto-downloads Argus on first run.
21
+
22
+ **Step 1 — Add to `.mcp.json`** in your project root:
23
+
24
+ ```json
25
+ {
26
+ "mcpServers": {
27
+ "chrome-devtools": { "command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"] },
28
+ "argus": { "command": "npx", "args": ["-y", "argusqa-os"] }
29
+ }
30
+ }
31
+ ```
32
+
33
+ Or via Claude Code CLI:
34
+
35
+ ```bash
36
+ claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
37
+ claude mcp add argus -- npx -y argusqa-os
38
+ ```
39
+
40
+ **Step 2 — Start Chrome with remote debugging:**
41
+
42
+ ```bash
43
+ # macOS
44
+ open -a "Google Chrome" --args --remote-debugging-port=9222 --headless=new
45
+
46
+ # Windows (PowerShell)
47
+ & "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --headless=new --no-sandbox --disable-gpu --user-data-dir="$env:TEMP\chrome-argus"
48
+
49
+ # Linux
50
+ google-chrome --remote-debugging-port=9222 --headless=new --no-sandbox
51
+ ```
52
+
53
+ **Step 3 — Run an audit:**
54
+
55
+ ```
56
+ Run argus_audit on http://localhost:3000
57
+ ```
58
+
59
+ Argus scans your app and either posts findings to Slack or opens a local `report.html`. That's it.
60
+
61
+ ---
62
+
63
+ ## What Argus Catches
64
+
65
+ 31 analysis engines, 138 distinct issue types, zero test-file maintenance:
66
+
67
+ | Category | What it detects |
68
+ |---|---|
69
+ | **JavaScript** | Uncaught exceptions, unhandled promise rejections, `console.error` on critical routes |
70
+ | **Network & API** | HTTP 5xx, 401/403 auth failures, duplicate API calls (infinite loops), 4xx errors, broken links |
71
+ | **Performance** | LCP > 2500ms, CLS > 0.1, TTFB > 800ms, slow APIs > 1s/3s, payloads > 500KB/2MB, JS bundles > 500KB |
72
+ | **Accessibility** | axe-core (80+ WCAG rules), color-blind simulation, missing ARIA, keyboard focus, heading hierarchy |
73
+ | **SEO** | Missing meta description, OG tags, canonical, viewport, h1 |
74
+ | **Security** | Auth tokens in localStorage/URL, `eval()`, missing CSP/X-Frame-Options, CSP violations |
75
+ | **CSS** | Cascade overrides, component style leaks, unused rules, React inline style conflicts |
76
+ | **Content** | `null`/`undefined` as visible text, lorem ipsum, broken images, empty data lists |
77
+ | **Responsive** | Horizontal overflow at 375px/768px, touch targets < 44×44px |
78
+ | **Memory** | Detached DOM nodes via V8 heap snapshot, heap growth across navigation |
79
+ | **Visual** | Pixel-level screenshot regression via pixelmatch (≥0.1% warning, ≥5% critical) |
80
+ | **Figma** | Design-to-implementation fidelity — 13 property types (color, spacing, typography, shadows, etc.) |
81
+ | **Forms** | Missing `required`, `autocomplete`, `aria-describedby`; unlabelled inputs |
82
+ | **Fonts** | FOIT, FOUT, missing fallbacks, slow loads > 1s, suboptimal formats |
83
+ | **Motion** | `prefers-reduced-motion` violations, `autoplay` without pause controls |
84
+ | **Network baseline** | New requests, missing requests, status-code regressions vs saved HAR baseline |
85
+ | **Environment diff** | Dev vs staging — screenshot diff, DOM changes, console/network regressions |
86
+
87
+ > All findings are classified as `critical` / `warning` / `info` and routed to the right Slack channel — or surfaced in the local HTML report. For per-finding severity tables and detection methods, see [REFERENCE.md](REFERENCE.md).
88
+
89
+ ---
90
+
91
+ ## MCP Tools
92
+
93
+ Ask Claude (or any MCP client) — no terminal required:
94
+
95
+ | Tool | Description |
96
+ |---|---|
97
+ | `argus_audit` | Fast pass JS, network, accessibility, SEO, security, CSS, content |
98
+ | `argus_audit_full` | Deep passadds Lighthouse, responsive checks, memory leak detection, hover-state bugs |
99
+ | `argus_compare` | Diff dev vs staging screenshots, findings delta, environment regressions |
100
+ | `argus_get_context` | Capture everything broken on the open tab for Claude to diagnose |
101
+ | `argus_watch_snapshot` | Snapshot the open tab without navigating (preserves auth/form state) |
102
+ | `argus_last_report` | Return last JSON report without re-running |
103
+ | `argus_design_audit` | Figma URL → 13 design-token finding types (color, spacing, typography, shadows, etc.) |
104
+ | `argus_visual_diff` | Screenshot baseline comparison. Pass `updateBaseline: true` to reset. |
105
+ | `argus_pr_validate` | Fetch GitHub PR diff → map changed files to affected routes → targeted audit → `{ blocked, findings }` |
106
+
107
+ **Example prompts:**
108
+
109
+ ```
110
+ Run argus_audit on http://localhost:3000/checkout
111
+ Run argus_audit_full on http://localhost:3000/dashboard
112
+ Run argus_compare
113
+ Run argus_get_context
114
+ ```
115
+
116
+ ---
117
+
118
+ ## Full Setup
119
+
120
+ ### Prerequisites
121
+
122
+ | Requirement | Version |
123
+ |---|---|
124
+ | Node.js | v20.19+ |
125
+ | Chrome | Stable (desktop or headless) |
126
+ | Claude Code | Latest (`npm install -g @anthropic-ai/claude-code`) |
127
+ | Slack workspace | **Optional** — omit for local `report.html` mode |
128
+
129
+ ---
130
+
131
+ ### Option AMCP Server *(recommended for Claude Code users)*
132
+
133
+ No local install needed. Use the [Quick Start](#quick-start) above, then add your target URL:
134
+
135
+ ```env
136
+ # .env in your project root
137
+ TARGET_DEV_URL=http://localhost:3000
138
+ TARGET_STAGING_URL=https://staging.example.com # optional — enables argus_compare
139
+ ```
140
+
141
+ **Optional Slack notifications:**
142
+
143
+ 1. [api.slack.com/apps](https://api.slack.com/apps) Create New App name it **BugBot**
144
+ 2. OAuth & Permissions Bot Token Scopes: `chat:write`, `files:write`, `files:read`
145
+ 3. Install to workspace copy the `xoxb-...` token
146
+ 4. Create channels `#bugs-critical`, `#bugs-warnings`, `#bugs-digest` and run `/invite @BugBot` in each
147
+
148
+ ```env
149
+ SLACK_BOT_TOKEN=xoxb-...
150
+ SLACK_CHANNEL_CRITICAL=C0000000000
151
+ SLACK_CHANNEL_WARNINGS=C0000000001
152
+ SLACK_CHANNEL_DIGEST=C0000000002
153
+ ```
154
+
155
+ > Without Slack: Argus auto-generates `reports/report.html` and opens it in your browser zero extra config.
156
+
157
+ ---
158
+
159
+ ### Option B — npm Package (CI / dev dependency)
160
+
161
+ ```bash
162
+ npm install --save-dev argusqa-os
163
+ npx argus init # interactive wizard detects framework, discovers routes, writes .env
164
+ npm run crawl # run after Chrome is started
165
+ ```
166
+
167
+ ---
168
+
169
+ ### Option C Clone the Repository (contributors / full source)
170
+
171
+ ```bash
172
+ git clone https://github.com/ironclawdevs27/Argus.git
173
+ cd Argus
174
+ npm install
175
+ npm run init # interactive setup wizard
176
+ ```
177
+
178
+ **Manual setup (skip the wizard):**
179
+
180
+ ```bash
181
+ cp .env.example .env
182
+ # Fill in TARGET_DEV_URL and optional Slack tokens
183
+ ```
184
+
185
+ Then configure your routes in [src/config/targets.js](src/config/targets.js):
186
+
187
+ ```js
188
+ export const routes = [
189
+ { path: '/', name: 'Home', critical: true, waitFor: 'main' },
190
+ { path: '/login', name: 'Login', critical: true, waitFor: 'form' },
191
+ { path: '/dashboard', name: 'Dashboard', critical: true, waitFor: '[data-testid="dashboard"]' },
192
+ { path: '/settings', name: 'Settings', critical: false, waitFor: null },
193
+ ];
194
+ ```
195
+
196
+ - `critical: true` — errors on this route go to `#bugs-critical`
197
+ - `waitFor` — CSS selector Argus waits for before capturing (signals page-ready)
198
+
199
+ ---
200
+
201
+ ## CLI Commands
202
+
203
+ ```bash
204
+ npm run crawl # Batch audit of all configured routes
205
+ npm run compare # Dev vs staging diff (CSS-only if no staging URL)
206
+ npm run watch # Passive monitor polls open Chrome tab every 1s
207
+ npm run report:html # Generate reports/report.html from last JSON audit
208
+ npm run server # Start Slack slash-command server (port 3001)
209
+ npm run init # Interactive setup wizard
210
+ npm run test:unit # 61 unit tests no Chrome required
211
+ npm run test:harness # 138-block correctness harness requires Chrome
212
+ ```
213
+
214
+ **Watch mode** live monitoring as you develop:
215
+
216
+ ```bash
217
+ # Terminal 1: start your app
218
+ npm run dev
219
+
220
+ # Terminal 2: start Argus watcher
221
+ npm run watch
222
+ # Ctrl+C stops monitor and writes reports/report.html
223
+ ```
224
+
225
+ **Slack slash command** (on-demand from any channel):
226
+
227
+ ```
228
+ /argus-retest https://staging.example.com/checkout
229
+ ```
230
+
231
+ To expose the server via tunnel: `cloudflared tunnel --url http://localhost:3001` (free, no account required). Set the resulting URL as the Request URL in Slack App → Slash Commands.
232
+
233
+ ---
234
+
235
+ ## GitHub Actions CI
236
+
237
+ Add to your repo's secrets (Settings → Secrets → Actions):
238
+
239
+ | Secret | Required | Value |
240
+ |---|---|---|
241
+ | `TARGET_STAGING_URL` | Yes | Your staging base URL |
242
+ | `SLACK_BOT_TOKEN` | No | `xoxb-...` token (omit for HTML-only mode) |
243
+ | `SLACK_CHANNEL_CRITICAL` | No* | Channel ID (needed when Slack is configured) |
244
+ | `SLACK_CHANNEL_WARNINGS` | No* | Channel ID |
245
+ | `SLACK_CHANNEL_DIGEST` | No* | Channel ID |
246
+ | `GITHUB_TOKEN` | No | Auto-injected by Actions for PR comments + Check Runs |
247
+
248
+ The included [workflow](.github/workflows/argus.yml) runs on push to `main`, daily at 6 AM UTC, and on manual trigger. If critical issues are found, the pipeline fails.
249
+
250
+ ---
251
+
252
+ ## Environment Variables
253
+
254
+ <details>
255
+ <summary>Full reference (click to expand)</summary>
256
+
257
+ | Variable | Default | Description |
258
+ |---|---|---|
259
+ | `TARGET_DEV_URL` | | **Required.** Base URL of your dev environment |
260
+ | `TARGET_STAGING_URL` | | Staging URL — enables `argus_compare`; omit for CSS-only mode |
261
+ | `SLACK_BOT_TOKEN` | — | `xoxb-...` token. Omit for local `report.html` mode |
262
+ | `SLACK_SIGNING_SECRET` | — | For `/argus-retest` slash command verification |
263
+ | `SLACK_CHANNEL_CRITICAL` | — | Channel ID for critical bugs |
264
+ | `SLACK_CHANNEL_WARNINGS` | — | Channel ID for warnings |
265
+ | `SLACK_CHANNEL_DIGEST` | — | Channel ID for info / daily digest |
266
+ | `PORT` | `3001` | Slack slash-command server port |
267
+ | `REPORT_OUTPUT_DIR` | `./reports` | Where to write JSON reports |
268
+ | `ARGUS_CONCURRENCY` | `1` | Parallel MCP clients for route crawling |
269
+ | `ARGUS_LOG_LEVEL` | `info` | `trace` / `debug` / `info` / `warn` / `error` |
270
+ | `ARGUS_LOG_PRETTY` | — | Set `1` for human-readable logs in dev |
271
+ | `ARGUS_RETRY_ATTEMPTS` | `3` | Max retries for `navigate`/`fill` MCP calls |
272
+ | `ARGUS_WATCH_INTERVAL_MS` | `1000` | Watch mode poll interval (ms) |
273
+ | `ARGUS_WATCH_UI_PORT` | `3002` | Watch mode web dashboard port |
274
+ | `ARGUS_SOURCE_DIR` | — | App source path — enables env-var / feature-flag / dead-route analysis |
275
+ | `ARGUS_ENV_FILE` | — | Path to app `.env` for codebase cross-reference |
276
+ | `SCREENSHOT_DIFF_THRESHOLD` | `0.5` | Pixel diff % threshold for environment comparison |
277
+ | `GITHUB_TOKEN` | | For PR comments + Check Runs |
278
+ | `GITHUB_REPOSITORY` | — | `owner/repo` format |
279
+ | `GITHUB_PR_NUMBER` | — | Auto-injected by Actions from PR context |
280
+ | `ARGUS_CRITICAL_THRESHOLD` | `1` | New criticals before blocking merge (0 = never block) |
281
+ | `ARGUS_DIFF_IMAGE_URL` | — | Visual diff image URL to embed in PR comment |
282
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | | OTLP collector for Jaeger / Grafana Tempo |
283
+ | `FIGMA_API_TOKEN` | | Required for `argus_design_audit` |
284
+ | `FONT_SLOW_MS` | `1000` | Slow web font load threshold (ms) |
285
+ | `A11Y_CONTRAST_AA` | `4.5` | WCAG AA min contrast ratio for CVD simulation |
286
+
287
+ </details>
288
+
289
+ ---
290
+
291
+ ## Troubleshooting
292
+
293
+ **Chrome DevTools MCP not connecting**
294
+ ```bash
295
+ claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
296
+ # Restart Claude Code after adding
297
+ ```
298
+
299
+ **Slack messages not posting**
300
+ - Token must start with `xoxb-` (not `xoxp-`, `xoxe-`, or `xapp-`)
301
+ - Run `/invite @BugBot` in each channel
302
+ - Required scopes: `chat:write`, `files:write`, `files:read`
303
+
304
+ **Screenshots are blank**
305
+ - Page hasn't settled increase `pageSettleMs` in `src/config/targets.js` or add a `waitFor` selector for the route
306
+
307
+ **`/argus-retest` returns "dispatch_failed"**
308
+ - Tunnel URL changed update the Request URL in Slack App Slash Commands and reinstall
309
+
310
+ **CSS analysis returns empty results**
311
+ - Page may be behind auth — ensure you're logged in on the Chrome instance Argus is controlling
312
+
313
+ **CI pipeline fails immediately**
314
+ - Chrome may not start fast enough — increase `sleep 3` to `sleep 5` in [.github/workflows/argus.yml](.github/workflows/argus.yml)
315
+
316
+ ---
317
+
318
+ ## How Argus Differs From Playwright / Cypress
319
+
320
+ Argus is a **complementary layer**, not a replacement for unit or E2E tests:
321
+
322
+ | | Playwright / Cypress | Argus |
323
+ |---|---|---|
324
+ | **Purpose** | Test your logic and API contracts | Catch what the user actually sees |
325
+ | **What it catches** | Regressions in behavior | CSS drift, visual regressions, API loops, console noise, perf budgets |
326
+ | **When it runs** | In your test suite | Continuously, on the live running app |
327
+ | **Setup** | Write test files | Configure routes in `targets.js` |
328
+ | **Output** | Pass / fail | Structured Slack reports with screenshots |
329
+
330
+ ---
331
+
332
+ ## Known Limitations
333
+
334
+ 3 permanent test failures (`641/644`) are MCP-layer restrictionsnot fixable in Argus code:
335
+
336
+ | Tool | Constraint |
337
+ |---|---|
338
+ | `drag` | Uses mouse simulation, not HTML5 DnD — `dragstart`/`dragover`/`drop` events never fire |
339
+ | `list_console_messages({ types: ['issue'] })` | Issues panel returns empty even when violations exist |
340
+
341
+ ---
342
+
343
+ ## Project Structure
344
+
345
+ ```
346
+ src/
347
+ argus.js single-page audit entry point
348
+ mcp-server.js — 9 MCP tools exposed to Claude / any MCP client
349
+ orchestration/ — crawl loop, Slack/GitHub dispatch, env comparison, watch mode
350
+ utils/ — 30+ analysis engines (accessibility, security, performance, etc.)
351
+ adapters/browser.js — CdpBrowserAdapter wraps all chrome-devtools-mcp calls
352
+ config/targets.js — routes, thresholds, auth steps
353
+ cli/init.js argus init interactive setup wizard
354
+ test-harness/ 138-block correctness harness, 62 fixture pages
355
+ test/unit/ — 61 Vitest unit tests (no Chrome required)
356
+ landing/ Product landing page (React 19 + Vite + Tailwind)
357
+ ```
358
+
359
+ Full source map [CLAUDE.md](CLAUDE.md) · MCP/DSL reference [SKILL.md](SKILL.md)
360
+
361
+ ---
362
+
363
+ ## Contributing
364
+
365
+ 1. Fork the repo and create a branch
366
+ 2. `npm run test:unit` — verify without Chrome (61 tests)
367
+ 3. `npm run test:harness` — full integration coverage (requires Chrome on port 9222)
368
+ 4. Open a PR — Argus audits itself via the CI workflow
369
+
370
+ ---
371
+
372
+ ## License
373
+
374
+ MIT © [ironclawdevs27](https://github.com/ironclawdevs27)
375
+
376
+ ---
377
+
378
+ <div align="center">
379
+
380
+ *Argus Panoptes — the all-seeing giant of Greek mythology who never slept.*
381
+
382
+ [argus-qa.com](https://argus-qa.com) · [npm](https://www.npmjs.com/package/argusqa-os) · [MCP Registry](https://glama.ai/mcp/servers/ironclawdevs27/Argus)
383
+
384
+ </div>