QA 录制会话运维与排障
qa-session-ops
运行和排查 `bun run beep qa` 录制会话:包括 record / extract / report 子命令、录制通道选择(playwright recordVideo 与 OBS obs-websocket 对接真实 Chrome 的对比)、OBS 配置(启用 websocket、PipeWire portal 恢复令牌、场景设置),以及 collector/witness 调试。当 QA 录制无法启动、不产生任何事件、录制成黑屏窗口,或必须选择录制通道时使用。循环协议本身位于 `browser-qa-loop`;本技能是其底层支撑机制。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 80
- Forks
- 14
01 前言 Front Matter
- name
- qa-session-ops
- metadata
- { "status": "active", "version": "0.2.0" }
- description
- Run and troubleshoot `bun run beep qa` recording sessions: record / extract / report subcommands, lane choice (playwright recordVideo vs OBS obs-websocket against real Chrome), OBS provisioning (websocket enable, PipeWire portal restore-token, scene setup), and collector/witness debugging. Use when a QA capture will not start, produces no events, records a black window, or you must pick a recording lane. The loop protocol itself lives in `browser-qa-loop`; this skill is the machinery under it.
02 资源文件 57
- 资产文件img_010515.png40.9 KB
- 资产文件img_010632.png23.8 KB
- 资产文件img_011113.png135.2 KB
- 资产文件img_011234.png23.3 KB
- 资产文件img_014648.png13.6 KB
- 资产文件img_015253.png17.4 KB
- 资产文件img_015845.png8.6 KB
- 资产文件img_093212.png20.0 KB
- 资产文件img_105523.png69.3 KB
- 资产文件img_105536.png361.9 KB
- 资产文件img_141346.png7.3 KB
- 资产文件img_143156.png15.5 KB
- 资产文件img_143248.png41.8 KB
- 资产文件img_150716.png602.8 KB
- 资产文件img_151657.png872.8 KB
- 资产文件img_152133.png1.1 MB
- 资产文件img_155006.png41.5 KB
- 资产文件img_160539.png300.5 KB
- 资产文件img_164042.png5.4 KB
- 资产文件img_164352.png35.6 KB
- 资产文件img_165448.png58.2 KB
- 资产文件img_165508.png50.5 KB
- 资产文件img_165550.png17.3 KB
- 资产文件img_170847.png42.7 KB
- 资产文件img_170940.png116.3 KB
- 资产文件img_171010.png41.5 KB
- 资产文件img_174750.png84.8 KB
- 资产文件img_180007.png63.6 KB
- 资产文件img_180734.png75.6 KB
- 资产文件img_181213.png41.0 KB
- 资产文件img_182707.png14.8 KB
- 资产文件img_182833.png13.4 KB
- 资产文件img_183427.png533.3 KB
- 资产文件img_184037.png12.7 KB
- 资产文件img_184736.png153.3 KB
- 资产文件img_185707.png14.9 KB
- 资产文件img_191235.png92.1 KB
- 资产文件img_191341.png91.4 KB
- 资产文件img_192458.png19.7 KB
- 资产文件img_192938.png136.8 KB
- 资产文件img_193219.png28.1 KB
- 资产文件img_194735.png12.2 KB
- 资产文件img_201253.png97.4 KB
- 资产文件img_202115.png30.5 KB
- 资产文件img_203140.png194.5 KB
- 资产文件img_203416.png21.4 KB
- 资产文件img_203448.png17.7 KB
- 资产文件img_204723.png30.4 KB
- 资产文件img_205448.png34.9 KB
- 资产文件img_214913.png85.8 KB
- 资产文件img_215147.png47.9 KB
- 资产文件img_215807.png26.2 KB
- 资产文件img_215834.png19.5 KB
- 资产文件img_223216.png47.4 KB
- 参考文档references/lane-selection.md1.3 KB
- 参考文档references/troubleshooting.md2.4 KB
- 脚本resources/qa-env-doctor.sh1.3 KB
03 SKILL.md 正文
QA Session Ops
browser-qa-loop owns when and how to run the loop. This skill owns making
the machinery work: lanes, OBS, the event collector, and the witness.
Quick health check
bun run beep qa doctor — probes ffmpeg/ffprobe/exiftool presence,
obs-websocket reachability (127.0.0.1:4455), and playwright. Exit 1 on
required-missing. resources/qa-env-doctor.sh is the standalone fallback when
the CLI itself is broken.
Lane choice
See references/lane-selection.md for the decision table. Short version:
Lane A (playwright) for every loop round — deterministic, headless, CI-able.
Lane B (OBS) is deprecated as of 2026-08-01 — it cannot run unattended
(the PipeWire portal requires human consent by design) and silently records
black video when its restore token goes stale. Its replacement for native
drag, cursor, and OS-selection classes is Lane C (Xvfb + xdotool XTEST +
ffmpeg x11grab + CDP), proven as a prototype but not yet shipped as a CLI
lane; see browser-qa-loop and the recorded-qa-acceptance packet.
OBS provisioning (Lane B — deprecated, existing sessions only)
- obs-websocket server:
server_enabled: truein~/.config/obs-studio/plugin_config/obs-websocket/config.json(edit with OBS closed — OBS rewrites the file on exit) or OBS → Tools → WebSocket Server Settings. Port 4455; password lives in that file — export it asOBS_WEBSOCKET_PASSWORDfor the driver, never commit it. - Scene:
beep qa record --lane obsprovisions thebeep-qascene and window-capture input idempotently via@beep/obsensureQaScene— do not hand-build scenes. On Wayland the input ispipewire-screen-capture-source: the FIRST run pops the portal window picker (pick the Chrome window); OBS persists theRestoreTokenin the input settings and later runs reuse it. A stale token (compositor/portal update) just re-pops the picker — that is expected, not an error. - OBS need not be running —
ensureRunningspawnsobs --minimize-to-traydetached and retry-connects. First-ever OBS launch shows the onboarding wizard once (manual step).
Collector / witness debugging
- Collector runs inside
beep qa recordathttp://127.0.0.1:43117(--portto override):GET /health(event count),GET /witness.js,POST /events,POST /mark,POST /stop. A live session writes.beep/qa/current.json(pid + port);beep qa stopandbeep qa markdiscover it there. Stale handle after a crash → delete the file. - No events flowing? Check in order: (1)
curl 127.0.0.1:43117/health; (2) witness actually injected —window.__beepQadefined in the page console; (3) CORS — the collector allows the portless app origins; a rawlocalhost:<port>origin outside the allowed set is silently dropped by the browser; (4) events aretext/plainNDJSON POSTs — a proxy rewriting content-type breaks decode (rejects are counted in/health). - Black/empty Lane B video: the portal picked the wrong window, or the window
is minimized (PipeWire delivers no frames) — keep the Chrome window visible;
re-pick via
ensureQaSceneafter deleting the input's RestoreToken. - Clock-sync confidence
lowinreport.md: the beacon was not detected (heavy first-paint delay, or beacon disabled). Extraction still ran with +250 ms window padding; re-record with--beaconon and a settled page for precise windows. Seereferences/troubleshooting.mdfor the full table.
Worktree / parallel lanes
Portless names are machine-global and duplicate registration fails loudly.
Concurrent lanes use lane-suffixed names
(portless storybook-<lane>.beep sh -c '...'); never --force over another
lane's route. One recording session per checkout at a time (pid-checked
current.json).
Environment notes
- The
chrome-devtoolsMCP (slim, default-disabled in settings) attaches to the QA Chrome via--browser-urlfor perf traces and computed-style introspection — enable it for the session, keep it disabled otherwise. - Evidence reading is
motion-evidence-review; artifact provenance lives in XMP-beepQA tags (inspect withexiftool/ffprobe).
04 同仓库更多 Skills
alchemy-provider
Bring up a new Alchemy cloud provider (its own `@alchemy.run/<provider>` package under packages/<provider>) end to end — credentials, a distilled SDK, resources, bindings, live tests, and the patch loop that feeds live-test failures back into distilled — or extend an existing provider with a new service, or bring an existing provider up to the bar (gap audit, then waves). Use for "add a <X> provider", "create an alchemy provider for <X>", "port <X> to alchemy", "add <service> to the <X> provider", "bring the <X> provider up to par", or any work that needs a distilled SDK plus Alchemy resources tested against a live API.
alchemy-domain
Build backends with @alchemy.run/domain (domain-driven design on Effect) - turn requirements into aggregates, commands, events, rejections, views, policies, sagas, projections, streams, queries, external systems and Apis; lay them out in a monorepo (domain / server / web packages, kind-suffixed files); test them with stories; host them on Durable Objects (Cloudflare, Rivet or Effect Cluster) with alchemy; and drive them from a foldkit frontend. Use when designing or changing an @alchemy.run/domain model, adding a building block, wiring hosting or a frontend, or reviewing such code.
update-harnesses
Update every agent harness on every fleet host: T3 Code, Codex, Claude Code, Grok Build, Kimi Code, Junie, Cursor Agent and Muse on DankStation, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl and the grok-bot VM, plus the desktop apps (ChatGPT and Claude Desktop on DankStation and grok-bot; Cursor and Kimi Desktop on DankStation). Use on `/update-harnesses`, when a harness is out of date somewhere, or to audit which versions and install methods each host runs.
auth-environments
Sign Claude Code in to a chosen Claude subscription on every linked T3 fleet host (grok-bot, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl). Use when a Claude account hits its weekly limit, when `bun run beep accounts` shows the fleet's account used up, or on `/auth-environments`. Opens each host's OAuth page and a masked KDE code dialog together and verifies the admitted account.
shadcn 技能来源校验
shadcn
用于 shadcn 技能不可变来源(provenance)的固定装置(fixture)。
QA 库存判定
qa-inventory-judge
暂无简介