console fill: no silent waits; an unknown page gets a debug dump and a bounded stop

A real `console fill apple-app-privacy` clicked Next onto a console page
the engine did not recognise and logged nothing for 8 hours.

- Step watchdog: after a click, or while the form is expected, no known
  page within --step-timeout seconds (default 30) -> "the page after
  "Next" is not a page storebound knows ... Buttons there: ...", a debug
  dump, and the manual steps. It keeps watching, but 20 min without
  progress closes the window and exits 1.
- A heartbeat line every minute while waiting (also during sign-in); the
  final review wait is bounded (2 h) with a reminder every 10 min.
- Debug dump (cli/console/debug.ts) in .storebound/console-debug/
  <form>-<time>/: page.json (URL without query, headings, dialogs, every
  visible control with role and name), page.html (rebuilt from a clone:
  no scripts, values, hidden inputs or non-whitelisted attributes) and a
  small screenshot. Emails, phone numbers and the header / account area
  are replaced; cookies, storage and tokens are never read.
  --debug-dump writes one at every step for bug reports.
- Guardrail tests: an unknown-page fixture (dump sanitized, bounded exit)
  and a scan of cli/console for while loops without a deadline and
  Playwright waits without a timeout (one waitForLoadState fixed).
- Pitfall 14 (docs/pitfalls.md, store-pitfalls skill); the
  console-autofill skill says how to send a dump.
This commit is contained in:
CRTkafa 2026-10-11 23:08:10 +00:00
parent 7f869403e8
commit 7239347605
9 changed files with 358 additions and 13 deletions

View file

@ -286,9 +286,11 @@
"console fill": [
"cdp",
"chrome-profile",
"debug-dump",
"fresh-profile",
"profile",
"start-url",
"step-timeout",
"store"
],
"desktop": [
@ -666,6 +668,7 @@
"daily",
"date",
"days",
"debug-dump",
"declarations",
"delay",
"detail",
@ -779,6 +782,7 @@
"state",
"status",
"stdio",
"step-timeout",
"store",
"storefront",
"storefronts",