Agent pack
Audits: screen, asset, user/flow, story, prod
What each audit checks, how to run it, and where the results land.
What each audit checks, how to run it, where results go. Verified 2026-10-11 by reading blueforge and blueforge-org
(forge-control's local checkout was 56 commits behind, so its read paths were read from forge-git/main).
Where results go differs per audit; only three reading kinds reach app-dev-db (see app-dev-db.md).
| Audit | Checks | Run | Results store |
|---|---|---|---|
| Page smoke | unstyled render, blank SPA shell, unreadable heading contrast | node scripts/screen-audit.mjs [--only a,b] [--url u] [--soft] |
docs/audits/screen-audit.json + PNGs |
| Flow / screen audit | scripted flows across devices and themes, scored per page | pnpm audit:site | audit:app | audit:flow | audit:all (wraps @blueforge-studio/screen-audit-runner) |
screen-audit/results/<date>/; POST /api/audits/screen if MISSION_CONTROL_API_URL set |
| Asset audit | image / audio assets (asset-audit-run --phase image|audio [--folder] [--config] [--dry-run] [--json]) |
exit 0 clean, 1 findings, 2 config error | image-audit-results-<id>.json + .audit/audit.db; no upload, no CI anywhere yet |
| User-flow checks | flow files are well-formed and generated files fresh | pnpm exec blueforge-sidecars verify-flows [--check] [--tier a|b] [--json]; user-flows check|validate|codegen |
flows.verify reading (forge-dev only) |
| Story audit | Storybook stories, vision-model reviewed | runStorybookAudit({storybookUrl}) (storybook-audit); in-app story-harness via screen-audit-iterate kind:'stories' |
/api/audits/storybook |
| prod-audit | live-site health per product | prod-audit run site … |
audit-archive branch, not main |
Screen / flow audit
- Flags (
screen-audit/README.md):--flows --tags --domains --devices desktop,tablet,mobile,mobile-lg --theme light|dark|both --url --concurrency --full-page --quick --cleanup --flow-timeout-ms --reduced-motion --settle-ms. Use--theme both: it audits light and dark. - The flows and the page checks must measure the SAME state. The page checks (a repo's
screen-audit/checks/playwright.config.ts) setreducedMotion: 'reduce'on their Playwright projects; until screen-audit 0.14.0 / runner 0.5.0 the flow runner could not, so it measured a page mid-fade and axe'scolor-contrastrule sampled the blended colours — a white title on a dark card read as ~1.29:1 while fading against ~5:1 settled, so the audit called a good page broken. Pass--reduced-motion reduce(or set it in the runner's config) so the runner takes the branch the checks take.--settle-msis the other half: it waits out an entrance animation that ignores the media query. Note the delivery shape: the runner resolves the kit as its own nested dependency, so bumping the top-level@blueforge-studio/screen-auditdelivers nothing — bump@blueforge-studio/screen-audit-runnerto carry the new kit in. - Flows live in
screen-audit/flows/*.flow.ts; they must be typechecked, and how depends on the repo: some excludescreen-audit/from the roottscand typecheck the flows with a separatepnpm typecheck:flows(blueforge does), others include**/*.tsin the roottscso the root typecheck already covers them (forge-auth does). Check your repo'stsconfig.jsonbefore assuming a script exists —pnpm typecheck:flowsis not fleet-wide. Either way a renamed action (0.13 readsaction.type, notactionType) otherwise silently no-ops. Verify selectors against prod before trusting a flow. App id:BLUEFORGE_APP_ID, thenblueforge.config.tsproject.name, then the cwd. - CI:
.gitea/workflows/screen-audit.yml, daily plus dispatch (onlyinput). Persona audits (kid in the AppStore, portfolio explorer) exist (#536). - Tiering: page scores in
screen-audit/results/iterate/*.jsongive DRAFT 0-59, PREVIEW 60-79, PASS 80-89, BETA 90-94, PROD 95+.pnpm audit:syncwritessrc/data/audit-tiers.json; exemptions insrc/data/audit-exempt.json. Theaudit-tierspackage is marked deprecated in favour ofaudit-core. Fleet batches:audit-configs/<tier>.apps.jsonrun viaaudit-configs/run.sh <tier>. - resource-guard aborts a run on host memory/CPU pressure (
RESOURCE_GUARD_PROFILE=low|moderate|high). Keep it at^0.1.3: 0.2.x broke prod-audit. Two local runs of screen-audit 0.13 / runner 0.3.4 were aborted at 95-97% memory and are unverified on a live flow. app-dom/dom-instrumentadddata-appdom-*instrumentation;app-dom checkis advisory (4 of 60 pages, not baselined).
Storybook and story audits
Guide: blueforge-org/packages/audits/STORY-AUDIT.md. Flavour A (storybook-audit, against a running Storybook; finds stories via
/index.json, vision-model review, writes storybook-audit-output/). Flavour B (in-app story-harness). Upload: /api/audits/storybook.
blueforge itself has no Storybook config or workflow. arch-sdk detect-stories finds stories (see architecture-sdk.md).
prod-audit
CI .gitea/workflows/prod-audit.yml (daily): run site --profile low --per-product-limit 5 --out-dir docs/audits/prod-audit, build, then
per-app-landing on mobile/tablet/desktop/mobile-lg in light and dark. Reports are committed to the audit-archive branch (no PR, so no
zero-CI deadlock). Do not trust pnpm prod-audit:site in package.json: it passes --quiet, which the CI comments say does not exist
(flag is --out-dir); likely stale, unverified by running.
Rules for agents
- Never run a fleet-wide audit on a loaded host: resource-guard will abort it, and it can starve other sessions.
- A green audit that scanned nothing certifies nothing: app-dev-db rejects empty scope (
checked < 1) for the same reason. - Do not claim an audit is "wired to app-dev-db" unless a workflow pushes a reading (see
app-dev-db.md).