console fill: walk the whole form; the owner only reviews and presses the final button

App Privacy stopped at "now click Get Started yourself" and every page
asked the owner to click Next. The owner should not click what
storebound can safely do.

- Every button of every console form is classified (navigation,
  draft-save, final-submit) in FORM_BUTTONS (cli/lib/console-forms.ts),
  citing Apple's and Google's help pages. A scoped flow gate
  (flowAllowed) lets navigation through; the generic click gate stays
  absolute for field clicks.
- App Privacy: Get Started, Edit next to Data Types (never the Privacy
  Policy Edit), each data type / "Set Up <type>", Next, and the Save
  inside the questionnaire dialogs (a draft: Apple publishes only after
  Publish, per "Manage app privacy"). Each type's dialog may be one page
  or purposes > Next > linked > Next > tracking > Save. It ends with
  "review the summary, then press Publish yourself". Publish is never
  clicked.
- Play content rating and target audience: Next by itself. Save draft,
  Submit, the final Save, Create and Create app stay the owner's.
- An uncertain answer stops the walk on its page (outlined, "answer
  needed on ...") until the owner has set it; then it goes on.

Fixture apple-app-privacy-flow.html (first time, ?existing=1, decoys);
tests/console-flow.test.ts with the guardrail that no log line asks the
owner to click a navigation control.
This commit is contained in:
CRTkafa 2026-10-11 22:51:01 +00:00
parent 0c2261cb33
commit 955832af4f
23 changed files with 662 additions and 56 deletions

View file

@ -188,12 +188,14 @@ write, never an MCP tool):
1. The click runs the dry run (`console fill <form> --dry --json`): nothing opens. A panel lists the answers from
the config; the ones only the owner knows are marked "You answer this". It shows the note: "Console pages
change. This is AI-assisted: review every field in the browser and press Save yourself. storebound never saves,
submits or publishes."
change. This is AI-assisted: review every field in the browser and press the final button (Publish, Submit, Save
or Create) yourself. storebound moves through the pages for you and never submits or publishes; App Privacy
answers stay a draft until you press Publish."
2. **Open the browser** goes through `write_with_confirm`: the host repeats the dry run and shows the answers and the
note in a native dialog ("Open the browser" / Cancel). Only that button mints the confirm token.
3. The real run opens a visible Chromium with its own profile. The owner signs in (storebound never types passwords);
storebound fills the fields, highlights the uncertain ones and never clicks Save, Submit, Publish or Next. The
storebound fills the fields, highlights the uncertain ones, clicks the navigation (Next, App Privacy's Get Started /
Edit / data types and its draft Save) and never clicks Submit, Publish, Create or a final Save. The
run lasts until the owner closes the browser: no timeout in serve, the runner or the host. Progress lines show in
the panel; **Cancel: close the browser** sends `$/cancelRequest`, which stops the command and its browser.

View file

@ -89,7 +89,7 @@ first. No write path sends the same values again on a second run.
| `ads apple bid / budget / pause` | campaign / keyword | PUT of a value | ok (owner) |
| `web init` | file content | unchanged files are not written | ok |
| `flow run --apply` | steps (state file) | each step is one of the commands above; `--resume` skips finished steps | ok |
| `console fill` | none | fills fields in a visible browser, never presses Save / Submit / Next | ok (never saves) |
| `console fill` | none | fills fields in a visible browser and moves through the pages; never presses Submit / Publish / Create or a final Save (App Privacy: draft Save only, public after the owner's Publish) | ok (re-filling sets the same answers) |
| `storebound api <write>` | none (one raw request) | a POST without a clear answer is not retried; check with a GET first | raw |
## Not run twice in the tests