UX Harness — continuous UI/UX audit for the fleet¶
Continuous UI/UX audit for the fleet: the
ux-auditkit's computational gate and the hub's critique loop.Status: v0 kit (
templates/ux-audit/0.1.0). Computational gate is real; hub critique loop is designed here and capped in_data/fleet.ymlbut not fully wired as a cron yet.
Why it lives in bamr87¶
bamr87 is the control plane: _data/projects.yml decides which repos are in scope, templates/ux-audit/ defines what gets seeded, _data/fleet.yml caps how often / how much, and leaf repos run the gate. That matches the existing harness pattern (docs/HARNESS.md, docs/HARNESS-OPS.md).
Scope rule¶
A repo is UX-in-scope when:
ux.enabledis true on its_data/projects.ymlentry, oruxis omitted butlive_urlis set andstatusis notarchived(pilot default).
Out of scope: pure libs/CLIs/content unless they opt in with ux.enabled: true.
ux: registry fields¶
ux:
enabled: true
tier: active # active | experiment | content
surfaces: # optional override of leaf ux.yml
- url: https://example.com/
role: home
personas: [first-time, returning]
preview: # documented for leaf; not executed by the hub
command: "npm run preview"
ready_url: http://127.0.0.1:4173/
baselines: none # none | visual | journey
Kit¶
templates/ux-audit/ (see its README) seeds:
ux.ymlmanifest examplescripts/ux_audit.py— UPS-FE-60 R1–R13 (stdlib)scripts/collect_evidence.mjs— Playwright + axe evidence MVP.github/workflows/ux-gate.yml- specialist prompts + agent consumption guide
Fan-out is OPT-IN (tools/fanout.sh --kit ux-audit). Never part of the default standardize artifact set.
Two planes¶
| Plane | Trigger | Blocking? | Output |
|---|---|---|---|
| Leaf computational gate | PR paths touching UI | Yes (R-rules) | annotations / job fail |
| Evidence collector | PR or dispatch | Advisory in 0.1.0 | evidence/ artifact |
| Hub critique loop | schedule / manual (roadmap) | No — draft PRs only | ranked findings |
Caps (_data/fleet.yml → ux_audit:)¶
Keep critique under the same throughput/budget discipline as other harnesses. Defaults are conservative; raise deliberately.
Roadmap¶
Schema + kit MVP(this change)- Fan-out to pilot live_url repos
dash-gen→_data/ux_registry.yml+/ux/dash page- Hub critique workflow with specialist prompts and re-gate
- Visual baselines (UPS-FE-61) where leaves opt in
References¶
specs/FRONTEND.md— UPS-FE-50…61templates/ux-audit/— kitbamr87/law-aiscripts/ux_audit.py— app-specific reference rules