diff --git a/SECURITY.md b/SECURITY.md index a12a755..c35daeb 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -31,5 +31,5 @@ still welcome when Mobium's use of them makes it worse. ## Supported versions -Mobium has no tagged release yet. Fixes land on `main`, and from the first -release on, in the latest release. +The only release is the prerelease `v0.1.0-rc1`, of 2026-10-28. Fixes land +on `main` and reach users in the next release. diff --git a/docs/GESTURES.md b/docs/GESTURES.md index 7f204fc..6246c9b 100644 --- a/docs/GESTURES.md +++ b/docs/GESTURES.md @@ -29,7 +29,7 @@ multi-finger taps. | Gesture | Mobium | Witness in MobiumApp (Gestures ▸) | Android | iOS | | --- | --- | --- | --- | --- | | **Tap** | `tap` | Tap and Press — the app says which gesture arrived | yes | yes | -| **Press** (touch and hold, long press) | `long-press` | Tap and Press; a 50ms hold must read as a tap | yes | yes | +| **Press** (touch and hold, long press) | `long-press`, held 800ms unless `--duration` | Tap and Press; a 50ms hold must read as a tap | yes | yes | | **Double tap** | `double-tap` | Double Tap — the page's own `dblclick` | yes, `dblclick` fired | two presses ~200ms apart on a React Native control, as a person's double tap (CHALLENGES 149); a WKWebView gets WebDriverAgent's own double tap, two clicks and no `dblclick` for injected touches, though WebKit's double-tap zoom does fire | | **Drag** (tap and drag, touch and drag) | `drag` | Drag — a native drop zone that records the holds and the travel | yes | yes | | **Flick** | `swipe`, fast | Flick and Pan — how far the list coasts after the lift | yes, 120ms coasts ~1560dp | yes, 120ms coasts ~1370pt | diff --git a/docs/PROXY.md b/docs/PROXY.md index 44e62e2..8222c7b 100644 --- a/docs/PROXY.md +++ b/docs/PROXY.md @@ -17,7 +17,10 @@ a setting of that tool, not a tool of its own. ## The shape -Two layers, the second opt-in. +Two layers, the second opt-in. This is the design: of it, only the setting in +the first layer is built (the status above). The certificate and the whole of +the second layer are planned, not built, and `--proxy charles` is refused today, +since it is not host:port. - **A proxy, any proxy.** `mobium network --proxy ` points the device at a proxy and reads it back; `--no-proxy` takes it off; the end of diff --git a/docs/RELEASE-CHECKLIST.md b/docs/RELEASE-CHECKLIST.md index dc5c2cb..de44dbb 100644 --- a/docs/RELEASE-CHECKLIST.md +++ b/docs/RELEASE-CHECKLIST.md @@ -67,6 +67,10 @@ easy. Neither is here, for one reason: **a device test that runs unattended tells you it failed, not what the screen looked like.** Every defect in [CHALLENGES.md](CHALLENGES.md) was diagnosed by reading a hierarchy or comparing a computed point against a screenshot, which is a human activity. +The one hosted emulator job, +[`linux-quickstart.yml`](../.github/workflows/linux-quickstart.yml), is run by +hand and never on a push: it ran the quick start once on 2026-09-28, and is +parked until Linux support is decided. That is a judgment, not a law. Revisit it when there is a suite worth running unattended — a regression pack of screens with known-correct maps would be the diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 1d181aa..616044b 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -296,15 +296,15 @@ this is what is not. PyPI, npm, NuGet and the Maven Central Portal (the `dev.mobium` namespace is verified by a TXT record on `mobium.dev`), a GPG key for Maven Central, and a tag — `v0.1.0`, and `clients/go/v0.1.0` for the Go module. All four names - were unclaimed on 2026-09-27. -- **Prebuilt `mobium` binaries — built, waiting on the first tag.** + were unclaimed on 2026-09-27, and still were on 2026-11-26. +- **Prebuilt `mobium` binaries — released as `v0.1.0-rc1`, 2026-10-28.** `make dist` builds all six platforms, static and without build paths, into archives with the license, notices and README and a `SHA256SUMS`; the release workflow runs it on a `v*` tag, checks every archive and the Linux binary's `--version`, and attaches them to the release, and on a pull - request does all of that but the release. What is left: the tag, which is - a decision, not a step; a Homebrew tap; and notarizing the macOS binaries, - which needs an Apple Developer Program membership — until then + request does all of that but the release. `v0.1.0-rc1` was the first tag, + a prerelease. What is left: the final `v0.1.0`; a Homebrew tap; and + notarizing the macOS binaries, which needs an Apple Developer Program membership — until then [SETUP.md](SETUP.md#installing-a-release) says to download with `curl`. - **Video walkthroughs** of the quick start, one per client, once the clients' `start` and `quit` (the CLI's `session start` and `session end`) have diff --git a/docs/guides/autowait.md b/docs/guides/autowait.md index 33bfca3..16efbed 100644 --- a/docs/guides/autowait.md +++ b/docs/guides/autowait.md @@ -38,6 +38,11 @@ Five checks, each with a name that a refusal carries: | `receivesEvents` | would a finger reach it — no dialog, keyboard or other control over it? | waits for a transient cover (a toast), aims around one over its center, refuses one over all of it | | `editable` | for `type` and `fill`: is it a text field? | refuses at once | +The 2-second implicit wait is fixed, and no option lengthens it. It covers +an animation finishing, not a network round trip: wait for that with +[`mobium wait`](#5-waiting-on-purpose-mobium-wait), whose timeout and failure +say what was awaited. + A refusal always reads ` failed check : — `, and carries the check in its details, so code decides by the check, not by the wording ([section 6](#6-reading-a-refusal-from-code)). diff --git a/docs/guides/graybox-tutorial.md b/docs/guides/graybox-tutorial.md index e6cd579..e471db6 100644 --- a/docs/guides/graybox-tutorial.md +++ b/docs/guides/graybox-tutorial.md @@ -177,7 +177,10 @@ if (activity.intent.getBooleanExtra("MobiumGrayBox", false)) { ``` Write `MOBIUM-GRAYBOX on` once at start, `busy= tag=` at every -change of the count of work in flight, and `lift` whenever a finger comes up -— Mobium counts its grace from the lift, so work a tap starts is never -missed. [The gray box guide](graybox.md#what-the-app-writes) has the lines in -full, and MobiumApp's module is a complete example of all four. +change of the count of work in flight, `still busy=` every half second +while it is above zero, and `lift` whenever a finger comes up — Mobium counts +its grace from the lift, so work a tap starts is never missed. Without +`still busy`, a count unrestated for 1.5 seconds is taken as stale and Mobium +stops waiting for it, so any work longer than that is not waited for. +[The gray box guide](graybox.md#what-the-app-writes) has the lines in full, +and MobiumApp's module is a complete example of all four. diff --git a/docs/guides/inspector.md b/docs/guides/inspector.md index fe5280f..58a5634 100644 --- a/docs/guides/inspector.md +++ b/docs/guides/inspector.md @@ -151,10 +151,11 @@ with start() as device: ``` The program names no device; `start()` takes the only one running, and -`start(device=...)` names one. A step the table cannot write exactly — a -two-finger tap, a wait for a count — is refused when you download, naming -the step, rather than written as a different one: download the test file -for that recording. [`docs/checks/codegen.sh`](../checks/codegen.sh) +`start(device=...)` names one. Every step the page's controls make is one +the table writes. A step that reaches the inspector another way and cannot be +written exactly, such as a two-finger tap, is refused when you download, +naming the step, rather than written as a different one: download the test +file for that recording. [`docs/checks/codegen.sh`](../checks/codegen.sh) records this flow, downloads it in all five languages and runs each on the device; it passed on the Android 15 emulator and the iPhone 17 Pro simulator on 2026-10-22. diff --git a/docs/guides/mcp.md b/docs/guides/mcp.md index bbe9362..0f8a296 100644 --- a/docs/guides/mcp.md +++ b/docs/guides/mcp.md @@ -124,8 +124,8 @@ The handshake, as sent and answered: } ``` -`tools/list` answered with 71 tools, 19 of them marked read-only (on -2026-10-24 it answers 75, still 19 read-only). One, with its description +`tools/list` answered with 71 tools, 19 of them marked read-only. It now +answers 78, 22 of them read-only, as [API.md](../API.md) counts. One, with its description cut short and its schema reduced to the argument names: ```json @@ -366,5 +366,5 @@ screenshot can carry is open. | Runs as | `mobium ` through the daemon | `mobium mcp`, in its own process | `mobium pipe`, spawned by the client, through the daemon | | Answers | text, or `--json` | `content` and `structuredContent` | typed results and exceptions | -The same 75 tools behind each, checked by the build: a tool reachable from one +The same 78 tools behind each, checked by the build: a tool reachable from one front door and not another fails it ([API.md](../API.md)). diff --git a/docs/guides/test-runner.md b/docs/guides/test-runner.md index 249a2a8..91d0c78 100644 --- a/docs/guides/test-runner.md +++ b/docs/guides/test-runner.md @@ -454,8 +454,11 @@ On a simulator the capture is of the app alone, through a process tap on the Mac: nothing else the Mac or the simulator plays is in it, and the app is muted on the Mac's speakers while it is tapped. The tap needs macOS's System Audio Recording allowed for the terminal or app that runs mobium -(System Settings › Privacy & Security › Screen & System Audio Recording); -without it the stop is refused, naming it, rather than answering silence. +(System Settings › Privacy & Security › Screen & System Audio Recording, +under System Audio Recording Only); without it the stop is refused, naming +it, rather than answering silence. After allowing it, run +`mobium daemon stop` and capture again, as the refusal says: a daemon +started before the change is refused again. An app that never opened audio while the capture ran is said to have never opened it. The helper behind the tap is built with Xcode's `swiftc` the first time, in about two seconds, and kept. @@ -485,8 +488,11 @@ its sound: `expect` is refused there, and `interruptions` is the answer. matches. - **Answer the dialogs a platform raises** with a rule in `beforeEach`: `{"name": "app_dialogs", "arguments": {"when": "Save Password", "press": - "Not Now"}}` answers iOS's offer to save a password, and never fires on - Android, where it never comes. + "Not Now"}}` answers iOS's offer to save a password. The match ignores + case, so on an Android phone with Google Password Manager it answers that + "Save password" sheet too: it presses "Not now" where the sheet has it, and + is refused, naming the sheet's buttons, where a later login offers Never + instead. - **Keep platform differences out of the steps.** Pressing enter in MobiumApp's password field submits the form on iOS and not on Android; a test that pressed it signed in twice on one platform. Tap the button. diff --git a/docs/quickstart/build.py b/docs/quickstart/build.py index 5e06110..22cf1b0 100644 --- a/docs/quickstart/build.py +++ b/docs/quickstart/build.py @@ -51,6 +51,8 @@ "has the JSON. From then on, ask the agent for what you want " "done on the device, and it calls the tools below itself.", "save_where": "", + "run_note": "The output below was captured when Mobium had 75 tools. It has 78 " + "now ([API.md](../API.md)), so the count line you see will differ.", "code_intro": "The calls an agent makes, made by a script instead: start the " "server, open with the handshake, then one `tools/call` per step. " "Every tool is an `app_` name with JSON arguments, and every answer " @@ -239,6 +241,8 @@ def page(c): f"## {n + 1}. Run it", "", ] + if c.get("run_note"): + lines += [c["run_note"], ""] for p in ("android", "ios"): out = (HERE / "output" / f"{c['slug']}-{p}.txt").read_text().rstrip() lines += [ diff --git a/docs/quickstart/mcp.md b/docs/quickstart/mcp.md index ffaa007..f41c152 100644 --- a/docs/quickstart/mcp.md +++ b/docs/quickstart/mcp.md @@ -121,6 +121,8 @@ Settings is on every Android and iOS device with nothing to install. The row and ## 4. Run it +The output below was captured when Mobium had 75 tools. It has 78 now ([API.md](../API.md)), so the count line you see will differ. + ### Android ```sh diff --git a/examples/drivers/PROTOCOL.md b/examples/drivers/PROTOCOL.md index 5ab5059..e31ecd8 100644 --- a/examples/drivers/PROTOCOL.md +++ b/examples/drivers/PROTOCOL.md @@ -39,8 +39,10 @@ The driver replies with its name and what it can do: `Driver` and every driver must implement them. Everything else is optional and must be advertised. **Mobium wires up only the capabilities named**, so a driver that does not list `text` is a driver Mobium knows cannot type — and the -user is told to use a different backend, rather than the driver being asked and -failing. This mirrors the Go interfaces exactly: `Gesturer`, `TextEntry`, +user is told the driver does not list `text`, and that a driver types by listing +it and answering `setText`, rather than the driver being asked and failing. +The refusal never names a built-in backend: a driver may drive something no +built-in one reaches (CHALLENGES 363). This mirrors the Go interfaces exactly: `Gesturer`, `TextEntry`, `AppControl`, `Appearance`, `AppInventory`, `Permissions`, `PermissionReader`, `Health`. A capability Mobium does not recognize is ignored, so a driver may advertise ahead of a Mobium release. diff --git a/examples/drivers/README.md b/examples/drivers/README.md index 2a633a8..2d835be 100644 --- a/examples/drivers/README.md +++ b/examples/drivers/README.md @@ -163,7 +163,8 @@ Verified on a Pixel 7 AVD (Android 15), 2026-09-13: identical maps, plus `launch`, `terminate`, `tap`, `scroll-to` (2 swipes to reach *About emulated device*), `screenshot` (a real 1080x2400 PNG) and `apps`. Both capabilities it does not advertise were refused with a message naming the backend, and its own -diagnosis of an unreadable screen reached the user verbatim: +diagnosis of an unreadable screen reached the user verbatim. That run's output, +from before CHALLENGES 363: ``` $ mobium type 'text=Search settings' hello --driver adb @@ -174,6 +175,13 @@ error: adb/uiautomator (reference driver): uiautomator dump gave up waiting for the screen to stop changing (ERROR: could not get idle state.) … ``` +Since then, the first refusal names no built-in backend, because a driver may +drive something none of them reaches: + +``` +error: the adb driver cannot type into an element: it does not list the `text` capability — a driver types by listing it and answering `setText` (examples/drivers/PROTOCOL.md) +``` + It imports the Python standard library and nothing from Mobium. That is the test that matters: if a reference driver needs anything from this repository, the extension point is not really open. diff --git a/skills/mobile-check/SKILL.md b/skills/mobile-check/SKILL.md index 3c9d5d6..8d207ae 100644 --- a/skills/mobile-check/SKILL.md +++ b/skills/mobile-check/SKILL.md @@ -219,8 +219,11 @@ mobium download --app com.example.Shop --device-path Library/Caches -o caches the network is really gone or back; an emulator or a real Android phone - `mobium network --latency 300 --download 1600 --upload 750` — shape the traffic, replacing any shaping before; an emulator only (it needs root) -- `mobium network --reset` — no shaping, airplane mode off. The end of the - session does this for you, back to how it found the device +- `mobium network --proxy 127.0.0.1:8888` / `--no-proxy` — point the device's + HTTP proxy at a debugging proxy, or take it off; `127.0.0.1` is this + machine's, reached through `adb reverse`. Android only +- `mobium network --reset` — no shaping, no proxy, airplane mode off. The end + of the session does this for you, back to how it found the device - iOS refuses all of it: nothing outside it controls its network ### Light and dark