Canonical six surfaces — local build and browser checks

# Canonical six surfaces — local build and browser checks

The public contract is `/`, `/app/`, `/console/`, `/widgetbook/`, `/golden/`,
`/docs/`. Widgetbook is assembled from `app/app_widgetbook`; its directory name
does not become the public URL. Static docs/golden accept no locale/theme prefs.
Widgetbook supports `#/?locale={name:ar}&theme={name:Dark}` and translates plain
`?lang=ar&theme=dark` into the same addon settings before content is rendered.

Run heavy commands one at a time and check at least40GiB free before each.
Supply is baseline v2 final (Serverpod 4.0.3, co-package 5b479112, CoUI 0.159.2 = 1b3838db; candidate 1 was co-package a66629f6 · CoUI 0.159.1 = e48a3568, v1.1 was CoUI 0.159.0 = c3eac02f).

```sh
flutter pub get --enforce-lockfile
PAGES_BASE=/ PAGES_MIN_FREE_GB=40 bash tool/pages/build.sh
# Independent second layer, matching the existing upload step:
python3 tool/pages/check_no_credentials.py build/pages
node tool/pages/smoke/smoke.mjs --base https://pages.test/ \
  --local-root "$PWD/build/pages" --out build/smoke/surfaces.json
node tool/pages/smoke/brand.mjs --root build/pages --out build/smoke/brand.json
node tool/pages/smoke/routes.mjs --base https://pages.test/ \
  --local-root "$PWD/build/pages" --out build/smoke/routes.json
node tool/pages/smoke/locale-preservation.mjs --root="$PWD/build/pages" \
  --values=/absolute/path/to/current-locale-support.json \
  --out="$PWD/build/smoke/locale.json"
node tool/pages/smoke/fr-focus.mjs --root "$PWD/build/pages" \
  --out "$PWD/build/smoke/focus.json"
```

The deployed site uses the same locale harness against the public URL (read-only GETs) —
this is the `언어 전환 (locale)` job in `pages.yml`. `--commit` waits until the landing
`pages-commit` equals the full SHA; there is no retry inside the harness, so a Pages edge
4xx/5xx (cocode#1160) is a `failedAssets` failure:

```sh
node tool/pages/smoke/locale-preservation.mjs --base=https://<pages host>/<repo>/ \
  --commit=<40-hex sha> --values=/absolute/path/to/locale-support.json \
  --out="$PWD/build/smoke/locale.json"
```

The build defaults to a repository subpath in CI; `/` above is a local fixture
base used by the two existing approved-origin iframe/focus harnesses. The smoke
and route tools also accept a subpath base. Each local artifact check is distinct
from a deployed same-SHA public smoke; only the coordinator merge train deploys.

The six-surface smoke verifies200/render/reload and zero console errors,
off-origin requests, failed assets and business methods. Brand probes record
new ar windows, bundled font/icon traffic and both theme captures. The21route
manifest covers15app/6console routes with expected UI phrases and reload URL
preservation. Each route uses a fresh context, blocked service workers and CDP
cache disabled. A01 additionally waits for the actual12,900product price before
measuring first data against the **3second local target**; page headers alone
are reported as first content, not business data. This local timing excludes
deployment/network conditions and does not prove the public NFR.

C01 must show `***` address masking and no full Korean contact number. The
current console order contract has no phone field; this absence is not a claim
that a future contact field is masked. Full-address and contact exposure must
be rechecked when the domain adds those fields. The existing focus harness uses
native trusted focus between two real app/console tabs, keeps a second demo
namespace sentinel and asserts order0042 state/route preservation. It is not a
running second demo application. The iframe harness checks ko→en→ja→ar→ko,
route/filter/page/input/A preservation and expected projected data, without
restarting the app or opting out of selection.

Baseline v1.1 (CoUI 0.159.0 = c3eac02f, coui#5355 selection fixes #5268/#5348/#5361
and coui#5354 chrome in 11 languages) closes the former BLOCKED rows. Local release
measurement 2026-10-11 (PC-C, default selection on): surfaces 8/8, brand 8/8,
route21 **21/21** (previously 11/21 with 10 selection errors) with 0 console/page
errors, external or business requests, A01 cold first data 1,926 ms, live iframe
locale ko→en→ja→ar→ko succeeded (6 checks, 0 errors), two-tab focus 1/1. None of
this uses an app localization delegate, exception handler, disabled selection or
unapproved supplier ref; a browser failure is still retained as a failure. Patrol device,
public deployment, Linux golden compare and final sidecar are separate gates.