--- name: isa-extension-ui-control description: Validate a standalone ISA Warden extension inside the native app using selector automation and a discovered monorepo checkout. Use for real host bridge and extension UI behavior, rather than plain browser preview. --- # Native extension UI control 1. Run `isa-ext find-monorepo` from the extension root (or `npm run isa-ext -- find-monorepo` when the project bundles the CLI). It searches ancestors and adjacent checkouts; an explicit `--monorepo /absolute/monorepo` or `ISA_WARDEN_MONOREPO` can select a checkout. If discovery fails, ask the user for the checkout location. Do not guess, clone a host, switch branches, or change host sources just to run an extension test. Build and unit-test the extension while waiting. 2. Read `/.agents/skills/control-chat-ui/SKILL.md` and the relevant references there. That host-owned skill is the authority for current automation syntax and installation. If it is missing, report that the checkout lacks the native automation workflow and ask for a supported checkout. 3. Build the extension with its own full package script. Install the host helper using the discovered skill's `scripts/install-or-upgrade-cli.sh`, then run `control-chat-ui start` from the monorepo in an early-yield foreground command session. Keep the session alive until stopping the owned app. Ordinary launches and dashboard browser builds do not expose the automation broker. 4. Inspect `control-chat-ui contexts` and `control-chat-ui inspect --context host`. Only mounted developer extensions expose automation contexts. If this project is not mounted, ask the user to select this standalone extension directory through the app's Developer folder picker; the native picker cannot be controlled by the selector API. Installed marketplace extensions intentionally have no automation context. 5. Read `extension.json` for the manifest ID, then run `control-chat-ui open-extension --manifest-id ` and inspect `--context extension:`. Choose selectors from actual inspection; commands must target a unique element or use an intentional index. Run actions sequentially and re-inspect after reload/context replacement. Never use arbitrary JavaScript injection or bypass bridge permissions. 6. Verify the requested interaction and applicable light/dark, focus, disabled, loading, empty, and error states. Use disposable test projects for writes; do not delete or overwrite user data. Distinguish iframe layout proof from real native bridge and persistence proof. Native dialogs and trusted permission prompts need user interaction. 7. Run `control-chat-ui stop` for the app session you started and confirm its foreground command exits. Report exercised flows and anything blocked by mounting, permissions, models, dashboard access, or host availability. Do not push or modify the monorepo unless the user separately requests host changes. The extension repository owns extension updates.