Skip to content

Releases

AndroidForge v1.0.0

Choose a tag to compare

@JuggyBob JuggyBob released this 24 Nov 14:44

AndroidForge v1.0.0 — The first stable 1.0 release

AndroidForge v1.0.0 is the first release on the 1.0 stable line. It closes the pre-1.0 contract and
safety gaps: notification clearing now requires an explicit selector, more device-mutating commands
require MCP confirmation, physical-device mutation is guarded end-to-end, conformance flow schemas are
strict, and the JSON envelope and run report schema stay at version 1. Fixture manifests can be JSON,
secrets in JSON key/value shapes and mock query strings are redacted, and the official Android robot
icon ships with third-party notices and font license texts.

Status: release gate complete for the supported scope. The host gate and final packaged assets
passed; POCO X4 GT covered the approved in-place IronPulse upgrade with full UI/evidence work, and
REDMAGIC 10 Pro covered 8/8 zero-touch read-only checks with unchanged device state. REDMAGIC UI
automation and all device actions are NOT RUN. Final asset hashes are listed below; see
VERIFICATION.md for the recorded evidence.

Highlights

  • JSON fixture manifests: fixture.json and *.json load alongside TOML; malformed JSON is an
    explicit error, not a silently skipped fixture.
  • Stronger redaction: JSON-style "token":"..."-shaped secrets and mock-server query strings are
    redacted like headers and bodies.
  • Official icon and notices: the Android robot with hard hat and wrench is the application icon;
    attribution is in THIRD_PARTY_NOTICES.md, and both font OFL texts are packaged.
  • Release validation: CI and the release workflow now fail on version drift (Cargo.toml,
    androidforge --version, installer ProductVersion), catalog/schema count drift and missing
    release content.
  • Hardened edge cases: logcat watch --package matches the query filter (with an stderr note when
    falling back to name matching), legacy 0.13 device locks stay enforceable under %XX serial encoding,
    unreadable lock files fail closed with E_DEVICE_BUSY instead of being deleted, oversized MCP stdio
    lines resynchronize at the next newline, and .apks entries declaring more than 2 GiB are rejected
    before any payload IO.

Breaking changes

  • notifications clear requires a package/id/tag/title/text selector; clearing everything by default
    is no longer supported.
  • More MCP tools require confirm=true: agent test, agent matrix, notifications tap,
    ui dismiss-overlays, test maestro, test instrumentation and conformance run.
  • snapshot save and standby set are classified device-mutation instead of read-only.
  • Physical-device mutation guards now apply to devices prepare/devices restore, conformance run,
    test maestro and test instrumentation. MCP strips allow_physical_mutation and fails closed.
  • emulator status rejects non-emulator serials; use devices inspect for physical devices.
  • finalize_pass reports a failed run when any step is still Running or failed.
  • conformance.schema.json uses a strict oneOf for script/maestro/fixture flows (for example
    timeout_secs is only valid where supported). Conformance version remains 1.
  • --run emits a warning when the selected command appends no step.
  • Generated MCP tools forward --yes to the CLI.

No state-file or report migration is required. Sessions, adapters, reports and artifacts remain
readable with schema version 1. Update scripts that relied on selector-free notification clearing,
emulator status against a physical serial, implicit read-only snapshot/standby calls, or MCP calls
without confirm=true, then re-run the affected flows after upgrading.

Upgrade notes

  • Both executables must be 1.0.0: the desktop requires an exact CLI version match and refuses a
    mismatched CLI.
  • Supported host: Windows 10/11 x86_64 only. Linux and macOS are not validated.
  • Uninstall/reinstall is not required for user data. The per-user installer preserves configuration
    and artifacts outside {app}; the portable ZIP keeps CLI and desktop binaries adjacent.
  • Report schema and envelope remain 1, so downstream readers and older reports keep working.

Known limitations

  • logcat watch --package samples package PIDs at startup; if the app restarts mid-stream, name
    matching is the fallback. See logcat watch --package --help and CHANGELOG.md for details.
  • Full limitations and recorded evidence are in CHANGELOG.md and VERIFICATION.md; the two-ROM
    scope is complete for the supported coverage, but REDMAGIC UI automation and all device actions are
    NOT RUN by the explicit zero-touch rule.

Verification checklist — physical-ROM campaign

Primary target: Xiaomi POCO X4 GT / HyperOS 2 / Android 14 (API 34), with an approved in-place
upgrade
of IronPulse 5.1.0 → 5.1.2 that preserved app data and full UI/evidence work.
Secondary target: nubia NX789J / REDMAGIC 10 Pro / Android 16 (API 36), RedMagicOS 11.0.6_EU,
exercised read-only under an explicit zero-touch rule. Emulator runs on API 34 / API 36 are
baseline/supporting evidence only.

Evidence is recorded in VERIFICATION.md; items without recorded evidence remain unchecked. The
two-ROM scope is complete for the supported coverage: approved mutation/UI on POCO X4 GT and zero-touch
read-only inspection on REDMAGIC. No UI, tap, launch or install result is claimed for REDMAGIC.

  • POCO X4 GT / HyperOS 2 / API 34: approved in-place upgrade IronPulse 5.1.0/code 15 → 5.1.2/code
    17 succeeded with decision: installed, reason: content_different, same debug certificate and
    base APK SHA-256 2321cd4619e65502409f9d2f87fceff2cdbcc1c576732948b242edfa74c235e4. Data
    preserved: 65 files / 2389 KB before and immediately after; no clear and no uninstall.
  • POCO X4 GT: app verify-installed matched, all version/code/hash assertions passed, foreground
    launch, ui observe 84 nodes and 29 clickable matches, screenshot/recording evidence, no residual
    recording temp files, session released; IronPulse 5.1.2 remains installed with data.
  • REDMAGIC zero-touch read-only: 8/8 checks passed (doctor warnings non-blocking, devices inspect/health, app list 438 packages, app status IronPulse 5.1.2/code 17,
    notifications list, bounded logcat peek, screenshot). Before/after pm list packages,
    settings global, settings secure, /data/local/tmp, getprop and df were identical; no
    session was created and IronPulse was not launched or modified. Screenshot SHA-256
    cfa4b6d356132645115fd322ea72e3e5b3fe39ef9fb6ed2511e9c82186568148.
  • REDMAGIC UI automation and all device actions (taps, launches, installs): NOT RUN by explicit
    zero-touch rule.
  • Both connected physical ROMs: JSON fixture manifests load and malformed JSON fails with a
    structured error.
  • Both connected physical ROMs: redaction covers JSON key/value secrets and mock-server query
    strings.
  • Both connected physical ROMs: notifications clear selector behavior and partial-progress
    reporting.
  • Both connected physical ROMs: device-mutation classification and guard behavior where supported
    (snapshot save, standby set, devices prepare/restore, conformance run); physical mutation
    remains excluded from MCP.
  • emulator status rejects non-emulator serials; baseline/supporting emulator runs on API 34 and
    API 36 are recorded and labelled as supporting evidence.
  • finalize_pass on a Running/failed step and --run with no appended step.
  • MCP: confirm=true gating for the newly device-mutating tools; --yes forwarding in generated
    tools; physical mutation stays excluded.
  • Conformance schema oneOf validation and version: 1 compatibility.
  • Host gate: fmt and strict clippy clean; cargo test --workspace --locked 392 passed / 0 failed
    (27 suites, including 4 new unreadable-lock tests); cargo deny and release build clean; CLI and
    desktop both 1.0.0; catalog 191, MCP 192, schemas 31/31, MCP initialize/tools/list 192.
  • Packaged assets and installer: hashes matched dist/SHA256SUMS.txt, installer 1.0.0, ZIPs
    contained all docs/notices/fonts, extracted CLI/desktop 1.0.0, silent install/uninstall exit 0,
    installed EXE hashes matched target/release, registry/Start Menu clean.
  • Release-only hash guard: final hashes are recorded here and in the Scoop manifest and match
    dist/SHA256SUMS.txt.
  • Screenshot ZIP: the five-capture v1.0.0 gallery is in docs/screenshots/v1.0.0/ and is published
    as androidforge-screenshots-v1.0.0.zip with its final checksum recorded below.
  • Cleanup: session released, no residual device recording temp files, and no physical mutation
    outside the approved in-place upgrade.

Release assets and hashes

Final assets for the v1.0.0 tag:

  • androidforge.exe (standalone CLI)
  • androidforge-desktop.exe (standalone desktop cockpit)
  • androidforge-cli-windows-x86_64.zip
  • androidforge-desktop-windows-x86_64.zip
  • androidforge-windows-x86_64-setup.exe
  • androidforge-screenshots-v1.0.0.zip — fresh five-capture v1.0.0 gallery
  • SHA256SUMS.txt
Asset SHA-256
androidforge.exe ea8ed8ea18c34e9e35c00e38a5d5028bafe89a97209d99459ff1d60cc6300788
androidforge-desktop.exe ce0e540403fafd94285ad20809f81de159932483185bd1e27708160be6b91aba
androidforge-cli-windows-x86_64.zip 615f55b0350d736cee220cb14a73471fbe8ee189c8e6d6669410c8e151c00a5e
androidforge-desktop-windows-x86_64.zip 8066ea28cfe8344930841d285d14d8f835db69d50db497910375308bbbb20f01
androidforge-windows-x86_64-setup.exe e9d689350d024e530c09d85a14c2a8d068791f8523cf2bad8c277ab0b988523d
androidforge-screenshots-v1.0.0.zip c1c1b763e282a0cd7ce2d6228ac79a957c340d7bfd3a5b5b2ddb6011df62b227

These are the final v1.0.0 asset hashes from dist/SHA256SUMS.txt. Ve...

Read more

AndroidForge v0.13.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:08

AndroidForge v0.13.0 — Optional Maestro, Tool Database & Complete MCP Surface

AndroidForge v0.13.0 is the next stable pre-1.0 release. It keeps the truthful verification layer from
v0.12 and adds optional Maestro installation, a searchable desktop command database, a complete MCP
tool surface, a compatibility policy and a security-hardening pass.

Stable status. This is a normal GitHub release, not a prerelease. Windows is the tested host.
Physical-device Maestro flows, instrumentation, snapshot restore and root-only operations remain
incompletely validated. See Known limitations below.

Highlights

Optional Maestro, installed deliberately

Maestro is optional — native androidforge ui commands never require it. When a project has Maestro
flows, AndroidForge can install a pinned, verified build:

androidforge tools install maestro --dry-run --json
androidforge tools install maestro --yes --json
androidforge tools status maestro --json
androidforge tools uninstall maestro --yes --json
  • Pinned Maestro CLI 2.12.1 from the official cli-2.12.1/maestro.zip.
  • SHA-256 verified before extraction:
    54dbb0716425626604973cbb374c585ca30272375d9ce15177a1152765ddd9d7.
  • Installed under %LOCALAPPDATA%\AndroidForge\tools\maestro\2.12.1 (or the equivalent state directory).
  • Requires Java 17+; AndroidForge points Maestro at the JDK it already discovered.
  • Desktop Setup → Environment shows an Install Maestro button, a confirmation dialog with the
    pinned version/URL/hash/target, progress, the active path and Copy path. CLI-installed copies are
    detected automatically.
  • Maestro remains best-effort/optional; the installer pins one tested version.

Desktop Tool database

A new sidebar page under Workspace, next to Setup, opens a complete command database generated from
the same clap parser the CLI uses:

  • Search command paths, summaries, argument names and help text.
  • Sort A-Z or Z-A.
  • Rows show tool name, safety class and a concise summary.
  • Click a row for a full detail page with bold title, usage, examples, argument table, possible values,
    defaults, safety classification and generated MCP tool name.
  • Opening a tool uses a short slide/fade transition.
  • The catalog comes from androidforge tools catalog --json; it cannot silently drift from the CLI.

Complete MCP surface

androidforge mcp serve now exposes 192 tools:

  • Curated safety-reviewed tools keep their friendly schemas (androidforge_app_install,
    androidforge_ui_tap, etc.).
  • Every other bounded, non-unsafe CLI leaf command is generated as androidforge_<command_path> from
    the catalog. Raw adb/run exec and the nested mcp serve are excluded; network mock serve is
    exposed only through the bounded curated tool.
  • Generated tools use the CLI argument names and safety classes.
  • Mutating generated tools require confirm=true.
  • Physical mutation cannot be self-approved from the MCP JSON object; the CLI/user must make that
    decision outside the tool call.
  • Raw adb and run exec are classified unsafe and deliberately excluded from the generated MCP
    surface. They remain available to a human/CLI that intentionally invokes them.
  • androidforge://catalog exposes the full command catalog as an MCP resource.
  • tools/call has a 600-second wall-clock limit, bounded stdout/stderr and process-tree termination;
    JSON-RPC request lines are capped.

Compatibility and deprecation policy

COMPATIBILITY.md now defines:

  • Stable tiers for commands/flags, JSON envelope, error and exit codes, report schema, curated MCP
    tools, generated MCP tools and internal state.
  • The semantic-versioning and deprecation window.
  • Additive-field rules and how to report a compatibility problem.
  • What is explicitly not covered (human formatting, internal Rust APIs, best-effort parsers).

tools-catalog.schema.json documents the command catalog shape.

Security-hardening pass

This release closes findings from five independent security audits, including a final regression audit:

  • MCP tools/call now enforces the advertised tool set; hidden unsafe/long-running catalog entries
    are rejected before argv construction. This closes a pre-release regression where the hidden
    androidforge_adb/androidforge_run_exec names were still callable.
  • Generated MCP tools forward array-valued serial targets (for example agent matrix), and
    report prune, app data-restore and doze unforce now require confirm=true.
  • MCP tools/call execution is bounded to 600 seconds with output caps and process-tree termination.
  • Fail-closed device classification: only emulator-* serials are unprotected emulators; unknown/vendor
    devices require --allow-physical-mutation.
  • Physical guards added to app launch, broadcast, service, force-stop and kill.
  • Package names validated before run-as/external path interpolation; .. cannot escape the app
    directory.
  • App-data tar restore rejects absolute/parent paths, symlinks, devices and non-regular entries.
  • Session GC refuses to reclaim a stale session with a live emulator or operation unless --stop.
  • Mock server gets per-connection timeouts, a 64-connection cap, exact body slicing, CRLF header
    validation, expanded sensitive-header redaction and redacted body logs.
  • Maestro installer cleans up staging on failure; desktop update staging is random and size-capped.
  • Desktop CLI output/preview frames are bounded; run paths must contain report.json.
  • Desktop Maestro install now goes through the normal confirmation dialog.

Fixed

  • MCP could previously expose run exec and raw adb as unconfirmed "read-only" tools. They are now
    unsafe and excluded.
  • MCP physical mutation could be self-approved with allow_physical_mutation=true. That field is no
    longer generated or forwarded.
  • Stale session GC could free a live emulator lock.
  • Package/path traversal in --external file push/pull.
  • Mock request bodies could appear unredacted in NDJSON logs.
  • Predictable update/Maestro staging directories.

Validation

  • Full workspace test suite, strict clippy and formatting via the delegated release gate.
  • tools catalog: 191 commands; tools schema --format mcp: 192 tools.
  • Maestro install/status/uninstall in an isolated home; doctor reports 2.12.1 and the managed path.
    A passing flow and a deliberately failing flow ran on a disposable API 36 emulator; both reported
    result.version:"2.12.1", failure exit 6, and preserved evidence.
  • Mock HTTP/TLS/redaction/timeout smoke; MCP generated tool calls; 15-page desktop smoke; multi-emulator
    and physical session-ownership campaigns recorded in VERIFICATION.md.
  • Physical Xiaomi POCO X4 GT: install, verify-installed, live status hash, same-version
    --only-if-changed (reason:content_different), UI dump/find/tap, screenshot, 5s recording,
    out-of-band refresh, uninstall only the isolated test package. Baseline 22DDD58E…, modified
    198A1EF3…, same certificate.

Compatibility and upgrade

  • Workspace, CLI, desktop, installer and compatibility version are 0.13.0.
  • Report schema remains 1; v0.12.x reports remain readable.
  • Existing command names, JSON envelope, exit codes and session ownership are preserved.
  • New fields, schemas and MCP tools are additive; raw adb/run exec are no longer auto-generated MCP
    tools.
  • The desktop and CLI must both be 0.13.0.
  • The desktop visual system is unchanged from v0.11.0; the v0.11.0 screenshot gallery remains
    representative.

Known limitations

  • Maestro remains optional/best-effort. The installer is Windows-only and pins one tested version.
    Flows were validated on an emulator; physical-device Maestro flows remain unvalidated.
  • Physical-device validation covers one Xiaomi debug package; vendor ROM behavior is best-effort.
  • Maestro flows were validated on an emulator (pass and fail); a real instrumentation test APK was not
    validated.
  • Snapshot restore, root-only time changes, macOS/Linux hosts and code signing remain unverified.
  • Raw adb, run exec and physical mutation are deliberately excluded from MCP self-service.
  • The Inno Setup installer is compiled and its version/payload/checksums are verified; a silent
    install/uninstall cycle was not run on the release host.
  • The desktop is Windows-focused; binaries are unsigned.

Release assets

  • androidforge-cli-windows-x86_64.zip
  • androidforge-desktop-windows-x86_64.zip
  • androidforge-windows-x86_64-setup.exe
  • SHA256SUMS.txt

Verify the published checksums before running downloaded files. Windows SmartScreen may warn because
the binaries are intentionally unsigned.

Documentation

AndroidForge v0.12.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 12:45

AndroidForge v0.12.1 — Dependency & Supply-Chain Patch

AndroidForge v0.12.1 is a normal stable patch for the v0.12.0 line. It contains no intentional feature
changes. It exists because a RustSec advisory was issued the same day v0.12.0 was published.

What changed

  • url 2.5.9 replaces url 2.5.8 in the desktop dependency graph. This fixes
    RUSTSEC-2026-0592, a stack overflow in
    Url::origin() on deeply nested blob: URLs. AndroidForge and its webbrowser use path do not call
    Url::origin() on untrusted input, but the published v0.12.0 desktop bundle contained the affected
    crate.
  • rustls-pemfile removed. Mock TLS certificate/key loading now uses the PEM parser built into
    rustls-pki-types, which is the migration recommended by
    RUSTSEC-2025-0134. User-visible behavior and error
    messages are unchanged.
  • Workspace, CLI, desktop, installer and compatibility version are 0.12.1.

Verification

  • cargo fmt --all -- --check: clean.
  • cargo clippy --workspace --all-targets -- -D warnings: clean.
  • cargo test --workspace: 347 passed / 0 failed / 0 ignored.
  • cargo deny check advisories bans licenses sources: advisories, bans, licenses and sources all
    report ok.
  • Mock TLS re-tested with a self-signed certificate after the PEM parser migration.
  • CLI, desktop and installer report 0.12.1; packaged asset hashes are recorded in
    VERIFICATION.md after the
    release workflow completes.

Compatibility

  • No command, flag, JSON schema or report schema changes from v0.12.0.
  • v0.12.0 reports remain readable.
  • The desktop and CLI must both be on 0.12.1.
  • The v0.12.0 release remains available, but v0.12.1 supersedes its assets for the supply-chain fix.

Known limitations

The v0.12.0 known limitations still apply: physical-device mutation paths, Maestro, instrumentation,
snapshot restore, root-only time changes, macOS/Linux hosts and code signing remain incompletely
validated.

Release assets

  • androidforge-cli-windows-x86_64.zip
  • androidforge-desktop-windows-x86_64.zip
  • androidforge-windows-x86_64-setup.exe
  • SHA256SUMS.txt

Verify the published checksums before running downloaded files. The binaries are unsigned.

AndroidForge v0.12.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 12:27

AndroidForge v0.12.0 — Truthful Verification & Automation Gap Closure

AndroidForge v0.12.0 is the first stable (pre-1.0) release. It closes the truth and automation gaps
found during the IronPulse 5.1.2 device campaign. The release theme is simple: do not report success
unless the device proves it.

Superseded by v0.12.1. A same-day RustSec advisory affected a transitive dependency in the
v0.12.0 desktop assets. Use v0.12.1 for the corrected build; the v0.12.0 feature notes remain below.

Stable status. This is a normal GitHub release, not a prerelease. It is still a pre-1.0 release:
Windows is the tested host, and physical devices, vendor ROMs, Maestro, instrumentation, snapshot
restore and root-only operations remain incompletely validated. See Known limitations below.

Highlights

Live install truth

session status and session inspect now re-read the live package path, version and base APK SHA-256
on every call. The refreshed identity is persisted, so an out-of-band adb install -r cannot leave a
stale install record behind.

New read-only verification commands answer "what is actually installed?" directly:

androidforge app verify-installed --apk .\app-debug.apk --session <ID> --json
androidforge app status com.example.app --expect-version-name 5.1.2 `
  --expect-version-code 512 --expect-apk-sha256 <64-hex> --session <ID> --json

app verify-installed pulls the installed base APK, hashes it, and compares package, version,
certificate and split identity without installing anything. A mismatch exits with
E_INSTALL_VERIFICATION_FAILED and a full diff.

--only-if-changed is byte-truthful

Installation is skipped only when package, version code, base APK SHA-256 and the sorted split hashes
all match. A same-version rebuild with different bytes is installed with reason:content_different.
Missing hashes are unknown and never safe to skip. This fixes a reported case where a rebuilt APK with
an unchanged version code was treated as unchanged.

Compose test tags

Selectors accept --test-tag as an alias for the accessibility resource id. If the tag is invisible,
the failure names the app-side requirement: the debug app must set
testTagsAsResourceId = true in its semantics. AndroidForge does not inject that setting and does not
claim tags exist when they do not.

Gestures, waits and assertions

androidforge ui long-press --text "Card" --duration 1200 --session <ID> --json
androidforge ui drag --from "text=Item" --to "tag=trash" `
  --duration 800 --hold-before 200 --capture-mid .\drag.png --session <ID> --json
androidforge ui wait --for-text-gone "Loading" --timeout 20 --session <ID> --json
androidforge ui wait --for-idle --timeout 10 --session <ID> --json
androidforge ui wait --for-stable --stable-for 2s --timeout 15 --session <ID> --json
androidforge ui assert-no-text --contains "Error" --timeout 5 --session <ID> --json
  • Long-press holds are configurable, with a safe 900 ms default.
  • Drags are real press-move-release gestures with optional before/after holds.
  • --capture-mid captures while the pointer is still down.
  • Text-gone waits report lingering matches and bounds on timeout.
  • Idle and stable waits use explicit hierarchy evidence rather than fixed sleeps.
  • assert-no-text fails with the matching nodes when text is present.

App data fixtures

androidforge app data export com.example.app .\data.tar --session <ID> --json
androidforge app data import com.example.app .\data.tar --session <ID> --yes --json
androidforge app data reset com.example.app --baseline .\seeded.tar `
  --backup-current .\before.tar --session <ID> --yes --json
androidforge app data seed com.example.app --file .\fixture.db `
  --remote databases/app.db --session <ID> --yes --json

Import always captures and registers a pre-import archive before restoring. Seed verifies the remote
SHA-256 through a run-as read-back. Export/import/seed require a debuggable app; physical devices
still require --allow-physical-mutation.

Reverse mappings and local mocks

androidforge network reverse add tcp:8080 --session <ID> --json
androidforge network mock serve --session <ID> --port 8080 `
  --route 'GET /health=200:{"ok":true}' `
  --route 'POST /login=401' --reverse --max-requests 2 --json

network mock serve binds loopback by default. Routes are exact method/path matches (* is a
wildcard), configured inline or with a JSON routes file. The server records bounded, redacted request
metadata to an NDJSON artifact and can add/remove an adb reverse mapping automatically. TLS uses a
local certificate/key pair; Android must trust it through its own network-security or user-CA setup. No
public CA trust is claimed.

Visual regression and tap evidence

androidforge capture screenshot --session <ID> --compare .\baseline.png `
  --region 0,120,1080,900 --max-diff-ratio 0.002 --diff-output .\diff.png --json
androidforge ui tap --text "Save" --capture-before .\before.png --capture-after .\after.png `
  --session <ID> --json

Screenshot comparison reports changed pixels, ratio, mean/maximum channel delta, region and changed
bounds. A diff PNG is stored as an artifact. Tap before/after captures are explicit because they add
device round-trips.

Session hygiene

androidforge session list --mine --active --json
androidforge session gc --reclaim --dry-run --json

List entries now distinguish active, busy, stale, released, failed and abandoned, with
heartbeat age and a reason. GC dry-run reports would_reclaim and the exact apply command while
leaving every session file untouched.

Fixed

  • session status stale installed-APK path and SHA-256 after an out-of-band install.
  • app install --only-if-changed skipping a same-version rebuilt APK.
  • Empty hashes being treated as comparable instead of unknown.
  • Reverse-list labeling an ADB transport id as a device serial.
  • Mock-serve accepting port 0 or invalid routes, and leaking an automatic reverse mapping.
  • null values in text-absence result payloads and session-list owner.
  • Visual-diff payload/schema mismatches.

Validation

  • cargo test --workspace: 347 passed / 0 failed / 0 ignored, 27 test executables.
  • cargo fmt --all -- --check and cargo clippy --workspace --all-targets -- -D warnings: clean.
  • Live install refresh after adb install -r passed on a disposable emulator.
  • A same-version signed rebuild with different bytes installed under --only-if-changed; the identical
    baseline skipped.
  • app verify-installed and app status --expect-apk-sha256 passed against live device state.
  • Long-press duration, drag/mid-capture, text-absence failure, idle/stable waits, app-data
    export/seed/import/reset, adb reverse, screenshot comparison and tap captures passed on the emulator.
  • Mock HTTP returned 200/401 and 404 fallback, honored the request budget, redacted authorization and
    wrote the request log. Self-signed TLS served successfully with curl -k.
  • Session hygiene was tested with fabricated fresh/stale/released/failed sessions, including dry-run
    immutability and reclaim-only-stale behavior.
  • No physical device was mutated; the disposable emulator was released and stopped.

Compatibility and upgrade

  • Workspace, CLI, desktop, installer and compatibility version are 0.12.0.
  • Report schema remains 1; v0.11.0 reports remain readable.
  • Command names, JSON envelopes, exit codes and session ownership behavior are preserved.
  • New JSON fields and schema files are additive.
  • --only-if-changed is stricter: a build that previously skipped on version metadata now installs
    when bytes or split hashes differ.
  • The desktop UI is unchanged from v0.11.0; the v0.11.0 screenshot gallery remains representative.
  • The desktop and CLI must be on the same 0.12.0 version line.

Known limitations

  • Physical-device installs and vendor ROM mutation paths remain incompletely validated. The physical
    Xiaomi device was present but not mutated.
  • Maestro and instrumentation execution remain optional/best-effort; a real Maestro flow and test APK
    were not exercised in this release.
  • Snapshot restore and root-only time changes remain incompletely validated.
  • Real Tesseract accuracy is engine- and language-data-dependent.
  • MCP is local stdio only; no HTTP/SSE transport is shipped.
  • macOS and Linux hosts are not validated.
  • Compose tags require the app-side testTagsAsResourceId setting.
  • TLS mock serving requires the app/device to trust the supplied certificate.
  • The desktop is Windows-focused; release binaries are unsigned.

Release assets

  • androidforge-cli-windows-x86_64.zip — standalone androidforge.exe.
  • androidforge-desktop-windows-x86_64.zip — portable CLI + desktop, license and documentation.
  • androidforge-windows-x86_64-setup.exe — per-user Windows installer.
  • SHA256SUMS.txt — checksums for the published assets.

Verify the published checksums before running downloaded files. Windows SmartScreen may warn because
the binaries are intentionally unsigned.

Documentation

AndroidForge v0.11.0 Beta

Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 06:25

AndroidForge v0.11.0 (Beta) — Desktop & Agent Onboarding

AndroidForge v0.11.0 is the desktop and agent-onboarding beta. The CLI contract is unchanged: the
command surface, JSON envelopes, report schema 1, selectors and session ownership semantics remain
compatible with v0.10.0. This release finishes the native cockpit and gives a completed setup a
ready-to-send prompt for the coding agent that will use AndroidForge.

Beta. The project has moved from the alpha line to a beta release line. Windows is the tested
host. Physical devices, vendor ROM installs, Maestro, real instrumentation, snapshot restore and
root-only operations remain incompletely validated. See Known limitations below.

Highlights

Setup now ends with an Agent Handoff page

The setup wizard has a new eighth and final step. It shows:

  • the full paths to AGENT_GUIDE.md, USER_GUIDE.md, CAPABILITIES.md, README.md,
    EXIT_CODES.md and PROJECT_ADAPTER.md;
  • the configured CLI executable and workspace;
  • the recommended agent loop (doctor, agent brief, session ensure, ui observe, ui tap,
    report explain, session release);
  • the safety rules for emulators, physical devices and --allow-physical-mutation.

The prompt can be copied in one click. The documentation folder and CLI path can also be opened or
copied separately. The footer shows Step 8 of 8 and Finish setup.

Setup section animation

Switching wizard sections now uses the same transition language as page changes: the content pane
fades and slides in, the active step highlight glides between rows, and the page scroll resets to the
top. Back/Continue, direct step clicks and whole-row activation all share the transition.

Complete desktop visual system

  • GitHub-dark and light palettes with theme-aware text.
  • Consistent card gutters and rounded corner radii.
  • Thin status pills with larger text.
  • Taller row tables with a visibly lighter raised card behind every row.
  • Solid right-side scrollbars instead of overlays.
  • Rounded secondary buttons, compact Copy/Open actions and a reusable path block.
  • Page slide-up/fade transitions and a gliding sidebar highlight.
  • Toast notifications at the top right with slide-in/out and close control.
  • Native Windows caption colors follow the active theme where DWM supports it.

Settings as a real page

Connection, workspace, owner, theme, accent, font, updates and about now live on one page:

  • Color wheel with a visible brightness slider.
  • 33-font catalog with embedded JetBrains Mono and installed Windows families.
  • Live Lorem Ipsum previews in the font picker.
  • Persistent theme, accent and font choices.
  • Left-aligned CLI path block with rounded Copy/Open buttons.
  • No forced-height cards or empty footers.

Recursive Inspector cards

The semantic hierarchy is now a nested card tree:

  • each main object is a rounded row card;
  • clicking anywhere on the row expands it into a card containing child row cards;
  • each child can expand into deeper cards;
  • the body slides open/closed, and collapsing returns to the initial state;
  • leaves remain selectable and still drive the device preview and node actions.

Row tables and topbar

  • Sessions, Ownership, Runs, Overview recent runs, Maintenance lists and Inspector use the same raised
    row card treatment.
  • Topbar Refresh is compact (98×37 px at the verified scale) with a painted circular arrow, hover
    highlight and UI Automation Invoke support.
  • The Online/Offline pill is height-matched to Refresh.
  • The bottom-left CLI card is compact, one accessible button, clips long paths inside the card, shows
    the full path in its tooltip, and opens a persistent cmd /K console running the CLI.

Resumable-run fix

run resume --from-checkpoint now preserves a failure_history record when the previous attempt was
finalized with run end --status failed (or another non-success terminal status) without a structured
step failure. The record carries the terminal status and exit code instead of losing the prior failure.

Screenshots

The full 16-image gallery is at
docs/screenshots/v0.11.0/
and is also attached to the release as androidforge-screenshots-v0.11.0.zip.

Page Screenshot
Setup / Welcome Setup
Setup / Agent Handoff Agent handoff
Overview Overview
Context Context
Devices Devices
Sessions Sessions
Ownership Ownership
Runs Runs
Triage Triage
Compare Compare
Matrix Matrix
Logcat Logcat
Inspector Inspector
Maintenance Maintenance
Settings Settings
Light mode Light mode

Release assets

Asset Contents
androidforge-cli-windows-x86_64.zip Standalone androidforge.exe for PATH and automation.
androidforge-desktop-windows-x86_64.zip Portable androidforge.exe + androidforge-desktop.exe, LICENSE, README.md, USER_GUIDE.md, CHANGELOG.md and PORTABLE.txt.
androidforge-windows-x86_64-setup.exe Per-user Windows installer with both executables, Start Menu shortcuts and uninstaller. User data outside the install directory is preserved on upgrade/uninstall.
androidforge-screenshots-v0.11.0.zip 16 PNG screenshots of the updated desktop UI.
SHA256SUMS.txt SHA-256 checksums for the CLI, portable desktop and installer assets.

Published checksums:

6e200c25093a1e1d089dc23b8cbef9688b258c5d0e9084f304882af147bb9a2b  androidforge-cli-windows-x86_64.zip
c4f08e41b3e7e20e568b815505a6f9e998f2c8c21852040124fd1d06a58bc7bf  androidforge-desktop-windows-x86_64.zip
67660a091905a1c69f19d651800d24a3e0ea7bbb18591de5064decf5e2f8b98d  androidforge-screenshots-v0.11.0.zip
c24b2d234546f2d37de58ca9a2dc56aaff6cfaa060681930bb5412e3b7a8076d  androidforge-windows-x86_64-setup.exe

All binaries are intentionally unsigned. Windows SmartScreen may warn on first launch. Verify the
published SHA-256 checksums before running downloaded files.

Compatibility and upgrade

  • Workspace, CLI, desktop, installer and compatibility version are 0.11.0.
  • Report schema remains 1; v0.10.0 reports remain readable.
  • Existing selector, JSON envelope, exit codes and session ownership behavior are unchanged.
  • Configuration lives outside the install directory and is preserved by the installer.
  • Local-only SPEC-v*.md draft files are no longer tracked in the public repository; they remain on
    the developer machine and are ignored by .gitignore.
  • The desktop must use a CLI on the same `0.11.0...
Read more

AndroidForge v0.10.0 - Agent Surface

Choose a tag to compare

@github-actions github-actions released this 18 Nov 14:24

AndroidForge v0.10.0 (Alpha) - Agent Surface

AndroidForge v0.10.0 is the agent-surface release. It adds the seven capabilities requested for the
next minor line: an MCP server with tool export, selector v2 with optional OCR, resumable runs with
NDJSON events, structured logcat query/watch, generic intents/deep links, network profiles/proxy and
device waiting with a parallel matrix.

Highlights

MCP server and tool export

androidforge mcp serve is a local stdio Model Context Protocol server using JSON-RPC
2025-06-18. It exposes 31 tools and 29 resources and deliberately shells out to the same
androidforge binary, so the CLI, JSON contract and MCP surface cannot drift into separate command
engines. Destructive tools (app uninstall, fresh installs) require confirm=true; uninstall also
gets --yes automatically only after that confirmation.

androidforge tools schema --format mcp|openai|json exports the same catalog for function-calling
clients that do not speak MCP.

The server is local only. There is no HTTP/SSE transport, account, key or network listener.

Selector v2 and optional OCR

Selectors now support semantic roles (--role), regular expressions (--text-regex), device-pixel
regions (--region) and relative bounds (--within, --above, --below, --left-of,
--right-of). All v1 selectors continue to work.

--ocr-fallback runs only when UIAutomator has no match. The default engine is tesseract;
ANDROIDFORGE_OCR_COMMAND overrides it. OCR accepts text, regex, region and index, and explicitly
refuses to pretend it can prove resource IDs, classes, roles or relative-node relationships. Images
stay on the local host.

Resumable runs and NDJSON events

run checkpoint <name> records a resume point. run resume --from-checkpoint <name> reopens a
terminal run, moves the previous failure into failure_history, increments resume_count and keeps
appending to the same report. run events [--follow] prints events.ndjson; the stream covers
run_started, step_started, step_finished, checkpoint, artifact, run_finalized and
resumed. report repro emits a PowerShell script from the run's exact recorded argv, or explains
which legacy run lacks it.

Logcat query and watch

diagnostics logcat query returns structured threadtime records with --level, --package,
--since, --until, --grep and --limit. diagnostics logcat watch streams NDJSON events with a
bounded --timeout, --max-events and optional crash/ANR filters. Watch output is raw NDJSON, not a
JSON envelope, so line-oriented consumers can read it directly.

Generic intents and deep links

app launch accepts --component, --action, --data, --mime-type, --category, --extra,
--flag, --wait and --force-stop. Extras use key:type:value with s, i, l, f, z, esa
and eia. app broadcast adds receiver permission and asynchronous delivery; app service starts or
stops a service intent. Package existence is validated when a package is supplied.

Network profiles and proxy

network proxy get|set|clear manages the global HTTP proxy. network profile list|apply provides
default, offline, wifi-only, data-only and no-proxy, and records the previous state in the
session. network restore restores it and removes the recorded entries. Profiles do not fake
latency, loss or bandwidth shaping.

Device waiting and parallel matrix

session ensure --wait --timeout retries while a device is busy and returns E_DEVICE_BUSY with the
elapsed wait when the deadline expires. agent matrix --parallel 1..32 runs one independent child
matrix per target. Port probing and session creation are serialized under a cross-process lock, live
session ports are treated as occupied, and each target gets its own child log/report. --fail-fast
is documented as best-effort because already-running targets finish.

Compatibility

  • Workspace, CLI, desktop, installer and compatibility version are 0.10.0.
  • Report schema remains 1; new run fields are additive and optional.
  • Existing selector, JSON envelope, exit codes and session ownership behavior are unchanged.
  • matrix.schema.json adds parallel and child_report.

Validation

  • MCP smoke: 10/10 PASS, 31 tools, 29 resources, protocol 2025-06-18, exit 0.
  • Selector/OCR: 21 UI tests pass; live OCR find/tap passed; missing engine returned E_TOOL_NOT_FOUND.
  • Runs: checkpoint, failure, resume, events and repro verified live.
  • Logcat: an injected sentinel was returned by query and watch.
  • Intents: action start, component start (with and without wait) and broadcast passed.
  • Network: proxy set/get/clear, wifi-only apply and restore passed.
  • Devices: busy wait returned E_DEVICE_BUSY after ~6.8s with a 6s timeout.
  • Matrix: two AVDs, --parallel 2, 2/2 passed in 7.2s with distinct serials and released sessions.
  • Full workspace fmt, clippy, tests and release build results are recorded in
    VERIFICATION.md.

Not validated

  • Real Tesseract recognition accuracy. OCR was exercised with a deterministic local test engine; the
    default tesseract binary was not installed on the verification host.
  • MCP over HTTP/SSE. Only local stdio is implemented.
  • Physical-device intent, network and matrix mutation paths beyond the existing read-only/safe-device
    policy.

AndroidForge v0.9.4 - Safety and Repeatability

Choose a tag to compare

@github-actions github-actions released this 18 Nov 06:33

AndroidForge v0.9.4 (Alpha) - Safety and Repeatability

AndroidForge v0.9.4 closes the one product finding from the independent v0.9.3 long-horizon
certification and adds the safety, repeatability and compatibility work recommended before final UI
polish.

The v0.9.3 run reported 209 PASS, 1 FAIL, 1 BLOCKED and 7 N/A. The failure was
app uninstall succeeding without --yes. The run also produced operational recommendations:
full-spectrum receipt effects, SystemUI overlay handling, a snapshot list/save race, and heartbeat
documentation. All are addressed here.

Uninstall confirmation

app uninstall now refuses to run without --yes:

E_INVALID_ARGUMENT: uninstalling an app is destructive; pass --yes

--dry-run remains available without confirmation and reports requires_confirmation: true.
This matches app clear-data and app data-restore.

Physical-device safety

Physical devices are no longer treated like disposable emulators. Data-changing commands return
E_PHYSICAL_DEVICE_MUTATION_BLOCKED unless --allow-physical-mutation is supplied. The guard covers:

  • app install, uninstall, clear-data, file-push and data-restore;
  • permission grant/revoke and AppOps set/reset;
  • Doze force/unforce, standby set, battery unplug/reset, network changes and time set/restore;
  • notification clear and JobScheduler run/cancel;
  • snapshot save/load/delete.

--dry-run still works and reports whether the mutation flag is required. The guard is a safety
default, not authentication; a deliberate test can opt in.

Receipt effects are no longer blind beyond the compact cap

Action receipts previously classified effects from the same compact 24-actionable/16-context lists
that the user sees. A text change outside that cap could therefore be reported as
no_visible_change even when the postcondition was satisfied.

Receipts now collect complete actionable and context lists for classification while still returning
the compact diff. A unit test covers a change at node 25 of 30.

SystemUI overlay handling

Fresh AVDs can show the SystemUI immersive "Viewing full screen / Got it" overlay before the app.
ui dismiss-overlays now:

  • finds only clickable com.android.systemui nodes labelled Got it, OK, Dismiss or Close;
  • supports --dry-run and --max;
  • reports dismissed and remaining overlays;
  • never taps app content or permission decisions.

Snapshot save/list race

Two snapshot defects were fixed:

  1. snapshot list only accepted plain-name output, but the emulator returns a table
    (-- name size date clock). The parser now handles the table and still accepts plain names.
  2. snapshot save returned a failure if the snapshot was not listed immediately. The emulator
    acknowledges the save before it is fully visible, so AndroidForge now polls for up to 30 seconds.

AndroidForge-launched emulators still default to -no-snapshot-save so test state is not silently
preserved. Pass session start|ensure --snapshot-save to allow manual snapshots. Save/load/delete
was verified on a disposable API 36 AVD.

Recording duration

capture record stop reported the time spent stopping and pulling the file as duration_ms. It now
reports the actual recording duration computed from the stored start timestamp; the stop operation
duration is kept separately in the recording metadata.

Crash-safe state writes

On Windows, replacing an existing state file used remove-then-rename, which left a window where a
crash could lose the old file. write_atomic now uses MoveFileExW with
MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH. Concurrent-write and truncated-JSON tests
cover the failure shape.

Privacy gate

report bundle --metadata-only emits the manifest, summary and explanation only. Every run artifact
is listed as excluded with the reason metadata-only bundle requested. This is the safe choice when
only workflow metadata can leave the machine.

Repeatable harnesses

The ad-hoc certification work is now reproducible:

  • tests/long-horizon.ps1 - sustained headless workload with screenshots, recording, health
    samples, performance, reports and a verified bundle;
  • tests/real-device.ps1 - read-only/safe physical-device pass with optional test-APK install;
  • tests/upgrade-rollback.ps1 - installer upgrade preserves state and uninstall leaves it intact;
  • tests/fault-injection.ps1 - stale locks, corrupt state, invalid config and concurrent writers;
  • tests/supply-chain.ps1 - license inventory, duplicates, wildcard scan and optional audit.

See tests/README.md and docs/ for usage and safety rules.

Supply chain

deny.toml defines the CI policy for advisories, licenses, wildcard dependencies and sources. The CI
workflow runs cargo deny check advisories bans licenses sources. Workspace crates now declare the
MIT license. Local inventory is 525 packages with 0 unlicensed entries.

Compatibility

  • Full JSON remains the default; existing fields are unchanged except the additive
    snapshot_save session field.
  • New error code: E_PHYSICAL_DEVICE_MUTATION_BLOCKED (exit 4, recoverable).
  • app uninstall now requires --yes; this is an intentional safety break.
  • --metadata-only and --allow-physical-mutation are additive.
  • session start|ensure --snapshot-save is additive; default behavior is unchanged.
  • Workspace, CLI, desktop, installer and compatibility version are 0.9.4.
  • v0.6.0-v0.9.3 releases, tags and assets remain untouched.

Validation

  • cargo fmt --check, clippy with -D warnings, full workspace tests and the release build passed.
  • Long-horizon harness: 0 failures with screenshots, a recording, performance samples and a
    checksum-verified bundle.
  • Real-device harness on Xiaomi HyperOS: 23 PASS, 0 FAIL, 1 N/A; debug install blocked by vendor
    policy and recorded as BLOCKED.
  • Upgrade/rollback from 0.9.2 to 0.9.4: state, config and run history preserved; uninstall clean.
  • Fault injection: stale locks, corrupt session/report JSON, invalid adapter fields and concurrent
    run writers all produced structured outcomes.
  • Exact commands and evidence are recorded in VERIFICATION.md.

AndroidForge v0.9.3 - Contract and Coverage

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:35

AndroidForge v0.9.3 (Alpha) - Contract and Coverage

AndroidForge v0.9.3 is the pre-UI hardening release. It delivers all eight agreed items together:
formal schema validation, the missing certification coverage, a clean-avd product pass, configurable
observation retention with cross-process locking, empty-hierarchy recovery, a desktop render gate,
exit-code drift protection, and an explicit physical-device record.

Physical-device validation is the one item that could not be completed: the Poco X4 GT / HyperOS 2
device was not connected. It is recorded as BLOCKED, not passed. Emulator results are not
presented as a substitute.

1. Schemas are now executable tests

The repository publishes JSON Schema documents, but nothing proved that the binary still emitted
payloads those schemas accepted. v0.9.3 adds crates/androidforge-cli/tests/schema_validation.rs:

  • every schema/*.schema.json document is compiled as Draft 2020-12 with the jsonschema crate;
  • context is validated in full, compact and brief profiles;
  • agent brief is validated against agent-brief.schema.json;
  • agent test --dry-run is validated in full, compact and brief profiles;
  • representative observation, action-receipt, UI-diff, performance, diagnosis and bundle payloads are
    validated, including their compact/brief projections.

The test found two real contract mismatches, both fixed:

  • agent-test.schema.json required run_id to be a string, but the product emits null before a run
    exists. The schema now allows null.
  • brief agent test removed the schema-required command_argv field. Brief stages now keep it as an
    empty array instead of dropping it.

2. The 26 certification gaps were exercised

The v0.9.1/v0.9.2 certification record left 26 checks as NOT RUN. v0.9.3 exercises all of them on
the clean API 36 AVD af_cert_clean:

Area Checks
Session SESS-10
Context CTX-07, CTX-09
Observation/actions OBS-33, OBS-35, ACT-07
Fixtures/conformance FIX-07, CONF-06, CONF-07
Diagnostics/performance DIAG-14, DIAG-15, DIAG-16, DIAG-17
Reporting REP-08, REP-14, REP-15, REP-16, REP-17, REP-18, REP-19, REP-24
Negative cases NEG-09, NEG-12, NEG-13
Matrix/soak MATRIX-05, SOAK-04

The run produced expected results for each check, including E_POSTCONDITION_TIMEOUT for a failed
postcondition, E_SELECTOR_NOT_FOUND for an impossible fixture selector, exit 7 for a failing JUnit
import, E_MATRIX_TARGET_INVALID for a missing matrix serial and 10/10 successful
force-stop/launch cycles. Three inputs needed correction during the run (the emulator's
"About emulated device" label, re-observing after text entry, and a valid conformance manifest
shape). NEG-12 exposed a real product gap: nested unknown adapter fields were accepted, which led to
the strict-field fix below.

3. Clean-device product pass

A fresh API 36 AVD (af_cert_clean) was created. CalcSuite debug was installed for the first time,
the second --only-if-changed install skipped with an explicit package/version/hash reason,
apk diff reported same with zero changed fields, and a brief agent test --dry-run planned all
12 stages. This replaces the earlier assumption that a reused AVD was sufficient.

4. Physical device: BLOCKED

adb devices showed only emulator-5554 and emulator-5556; no PnP Android/POCO device was
present. No physical-device behavior, vendor-ROM behavior, USB transport behavior or HyperOS-specific
UI behavior is claimed for v0.9.3. The procedure and evidence template remain in
VERIFICATION.md; the item must be run when the device is connected.

5. Configurable, race-free observation retention

Observation retention was a hard-coded constant of 20. v0.9.3 adds:

[storage]
observation_retention = 20

The default remains 20; the valid range is 2..=1000. The generated project and global config files
include the section, and schema/adapter.schema.json publishes it.

Token allocation, observation writes and pruning now run under a cross-process StateLock backed by
an exclusive file lock. Parallel CLI processes therefore cannot allocate the same token or prune
while another process is writing. Retention still evicts oldest-first and never evicts the record
just written.

6. Empty UIAutomator hierarchies are transient

A rapid screen transition can produce a well-formed but empty UIAutomator dump. The manager treated
that as a successful blank screen. v0.9.3 classifies an empty hierarchy as a transient capture
failure, retries it with the existing recovery path, and only returns a hierarchy with nodes.

7. Desktop render gate

desktop/tests/smoke.ps1 is a local release gate for the egui cockpit. It launches all 13 pages
(setup, overview, context, devices, sessions, matrix, ownership, runs, triage, compare, logcat,
inspector, maintenance), captures a screenshot per page, rejects blank or too-small renders, records
the Windows UI Automation tree and invokes the overview Refresh button. The release run passed 13/13
pages with UI Automation trees of 74-244 elements. It is intentionally not a headless CI test and
does not claim full interactive coverage; see desktop/tests/README.md.

8. Exit-code drift protection

EXIT_CODES.md is now checked against ErrorCode::ALL in cargo test --workspace: every documented
code, numeric exit code and recoverability flag must match the enum, and every enum variant must be
documented. The user and agent guides now state explicitly that session stop is owner-guarded and
is not --yes-guarded.

Compatibility

  • Full JSON remains the default; existing fields are unchanged.
  • New configuration section: [storage] with observation_retention (default 20, range 2-1000).
  • Nested adapter sections and hook entries now reject unknown fields. Configurations that previously
    relied on silently ignored typos will fail with E_CONFIG_INVALID naming the field.
  • agent-test brief stages retain command_argv: []; run_id may be null.
  • No destructive behavior, Gradle execution, cloud service or hidden retry was added.
  • Workspace, CLI, desktop, installer and compatibility version are 0.9.3.
  • v0.6.0-v0.9.2 releases, tags and assets remain untouched.

Validation

cargo fmt --check, clippy with -D warnings, the full workspace test suite and the release build
passed. Exact test counts, emulator evidence, desktop evidence and package hashes are recorded in
VERIFICATION.md.

AndroidForge v0.9.2 - Certification Follow-up

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:33

AndroidForge v0.9.2 (Alpha) - Certification Follow-up

AndroidForge v0.9.2 closes the actionable findings from the independent v0.9.1 certification run
against CalcSuite, IronPulse and DiscountHunter on API 36 and API 34 emulators.

The run reported 192 PASS, 6 FAIL, 3 BLOCKED, 9 N/A and 26 NOT RUN. Five failures were actionable
product or adapter defects; the sixth was a test expectation that contradicted the app's live
preview behavior. All five were fixed and rechecked.

Full-observation context refs

A context node that is actionable through a clickable ancestor carries
actionable_via: "ancestor". With --full, the same path also exists in the full-hierarchy node
list, where the marker was missing. Ref lookup preferred that copy, so ui tap --ref rejected a ref
that the compact observation advertised as usable.

v0.9.2:

  • propagates actionable_via to full-hierarchy and focused copies;
  • resolves refs from the compact context list before the raw hierarchy copy;
  • keeps the existing fail-closed identity and clickable-ancestor checks.

Validation: the CalcSuite = context ref el-b01e7ca30b3e from a 108-node --full observation
tapped successfully with used_clickable_ancestor:true and ancestor path
0.1.2.3.4.5.6.7.25.85.

Cross-project session safety

A session is project-bound. session ensure already refused mismatched projects, but context
loaded the session directly and silently combined a CalcSuite session with an IronPulse project.

v0.9.2:

  • CliContext::load_session returns E_SESSION_PROJECT_MISMATCH for a session bound to another
    project;
  • context ignores the foreign session, keeps the requested project, and returns an explicit
    warning plus session.available:false;
  • project-root comparison normalizes Windows separators, trailing slashes and case.

Validation: context --project IronPulse --session <CalcSuite session> returned the IronPulse
project with session.available:false and a warning; ui observe with the same mismatch returned
E_SESSION_PROJECT_MISMATCH.

Honest hook results

A shell hook can exit 0 while the app stays on the previous screen. v0.9.1 added UI verification,
but a hook without a verify block still looked like a successful app action.

v0.9.2:

  • hook run returns verified and verification_state (verified, unverified, failed,
    not_run);
  • an unverified hook adds an explicit note that success only proves the command exited 0;
  • the shipped IronPulse adapter verifies focus-streak with ui_text = "CURRENT STREAK" and
    open-profile with ui_text = "Appearance".

Validation: a hook with a declared positive UI postcondition returned verified:true; a hook with
no verify block returned verified:false and verification_state:"unverified"; a negative UI
postcondition failed with E_HOOK_VERIFICATION_FAILED. IronPulse focus-streak and open-profile
both passed with their new UI postconditions after onboarding.

Bounded logcat capture

diagnostics logcat start replayed the entire historical logcat buffer. On a busy emulator the
head -c byte cap was reached before the 400 ms liveness check, so the command reported
E_COMMAND_FAILED: logcat capture process exited immediately even though it had produced a full,
bounded capture. stop then had no state to finalize.

v0.9.2:

  • starts with logcat -T 1, following from the current buffer tail rather than replaying history;
  • treats a clean process exit at the byte cap as a completed capture, not a failure;
  • stores status: "completed" and completed_reason: "max_bytes";
  • reports the completion in status and finalizes it with stop;
  • skips the process kill for an already completed capture.

Validation: a 65,536-byte cap produced state:completed, reason:max_bytes, size 66,199 bytes,
and stop returned 66,199 raw bytes with the cap note.

Receipt evidence for no-op actions

CalcSuite previews the result live: pressing = after 7 + 8 changes neither the expression field
nor the displayed 15. The receipt correctly classified the action as no_visible_change, but the
report only showed an empty diff, which looked like missing evidence.

v0.9.2 adds an effect_evidence entry when a postcondition is satisfied and the semantic state is
unchanged:

postcondition satisfied; the semantic state was unchanged, so the expected value may already have
been visible before the action

The effect remains no_visible_change; reporting content_changed would be false.

Validation: before and after observations both contained editable 7+8 and visible 15; zero
added/removed/modified nodes is the correct result.

Compatibility

  • Full JSON remains the default; existing fields are unchanged.
  • New fields are additive: hook run verified/verification_state, logcat
    completed_reason, and receipt effect_evidence text.
  • New error code: E_SESSION_PROJECT_MISMATCH (exit 4, configuration).
  • No destructive behavior, uninstall, data clearing, Gradle execution, cloud service or hidden
    retry was added.
  • Workspace, CLI, desktop, installer and compatibility version are 0.9.2.
  • v0.6.0-v0.9.1 releases, tags and assets remain untouched.

Validation

Automated checks cover full-observation ref metadata, project-root normalization, hook verification
state, byte-cap completion classification, the new error code and the existing regression suite.
Real-emulator checks on API 36 and API 34 cover the five fixes above. Exact commands and evidence
are recorded in VERIFICATION.md.

The certification's 26 NOT RUN checks remain coverage gaps; they are not reclassified as passes.

AndroidForge v0.9.1 - Agent Mode Hardening

Choose a tag to compare

@github-actions github-actions released this 17 Nov 16:13

AndroidForge v0.9.1 (Alpha) - Agent Mode Hardening

AndroidForge v0.9.1 is a stability patch for the defects reported by the CalcSuite, DiscountHunter
and IronPulse agents that validated v0.9.0. It does not add a new workflow; it makes long agent runs
and failure evidence trustworthy.

Why this release exists

The v0.9.0 validation found five classes of problems that matter to unattended agents:

  1. A full observation store could delete the observation it had just written.
  2. Refs changed on every observation even when the screen did not change.
  3. A ref to text inside a clickable row was rejected as non-actionable.
  4. --clickable stopped matching a clickable ancestor.
  5. Failure, observation and bundle metadata could describe a different run or omit its identity.

These are fixed here, with regression tests and real-emulator checks.

Observation retention and durability

  • Retention is ordered by the stored observed_at, then file modification time, never by the random
    token filename.
  • The store makes room before writing and always preserves the observation just written.
  • Eviction failures return an explicit error instead of a token that cannot be used.
  • latest_observation uses the same recorded-time ordering.

Validation: 25 observations in one session retained at the cap, the final token existed on disk and a
subsequent ui wait --ref ... --expect-token matched. Five additional rapid observations all
persisted.

Stable refs

  • Ref material no longer contains the observation token.
  • An unchanged node keeps the same el-... ref across repeated observations.
  • A changed label, bounds, class or actionability produces a different ref.
  • Refs remain scoped to the observation token for action validation; there is still no text or
    coordinate fallback.

Validation: two observations with no action between them returned the same ref for every common node
(18/18 in the compact lists; 2/2 actionable), while the observation tokens differed.

Context refs and --clickable

  • Context text inside a clickable ancestor is marked actionable_via: "ancestor".
  • ui tap and ui long-press accept those refs and still re-check the current identity and
    clickable ancestor before dispatch.
  • --clickable matches a clickable ancestor, restoring the v0.4 behavior used by existing
    conformance scripts.
  • E_SELECTOR_NOT_FOUND puts the requested label (or labels containing it) first and reports
    visible_labels_total and visible_labels_truncated.

Validation: the Settings Search Settings context ref tapped through its clickable ancestor, and
ui find --text "Search Settings" --clickable returned the node with parent_clickable:true.

Failure diagnosis

Two categories are now first-class:

  • element_reference for E_ELEMENT_REF_UNKNOWN, E_ELEMENT_REF_STALE,
    E_ELEMENT_IDENTITY_CHANGED, E_ELEMENT_NOT_ACTIONABLE and E_ELEMENT_DEVICE_MISMATCH.
  • observation for E_OBSERVATION_NOT_FOUND, E_OBSERVATION_EXPIRED and
    E_OBSERVATION_SESSION_MISMATCH.

Both are high confidence with targeted ui observe next actions. Observation-store failures are
marked non-comparable in recurrence memory, so a later unrelated passing run cannot auto-resolve
them.

Report and bundle selection

  • report explain and report bundle now share one resolver.
  • latest is the newest completed run for the selected project.
  • latest-failure is the newest failed, partial, cancelled, interrupted or abandoned run.
  • Runs are filtered by their recorded project_root; a newer run from another app is never selected.
  • report explain latest on a passing run adds a latest-failure next action.

Evidence identity

  • ZIP bundle manifest.json records checksums_verified:true after the generated archive passes
    verification; the archive is rebuilt after the flag is set.
  • diagnostics performance returns run_id, run_dir and artifact paths in its result.
  • The brief performance summary includes the jank frame sample, for example
    jank 80.0% (4/5 frames).

Hook route verification

Hook verification supports three UI postconditions:

[hooks.focus-streak.verify]
ui_text = "CURRENT STREAK"
# ui_activity = ".MainActivity"
# ui_package = "com.example.app"

The UI hierarchy is polled until the label, activity or package matches. A shell hook that exits 0
while the app stays on the previous route now fails with E_HOOK_VERIFICATION_FAILED. The IronPulse
example hooks use ui_text.

Brief agent test

Brief agent test keeps compact stage entries (name, status, failure detail) and next_actions
instead of emptying both lists.

Compatibility

  • Full JSON remains the default and keeps the v0.9.0 fields.
  • v0.6.0-v0.9.0 releases, tags and assets are untouched.
  • No destructive behavior, uninstall, data clearing, Gradle execution, cloud service or hidden retry
    was added.
  • Workspace, CLI, desktop, installer and compatibility version are 0.9.1.

Validation

Automated checks cover retention beyond 20 observations, stable refs for unchanged nodes, context ref
metadata, clickable-ancestor selector matching, requested-label prioritization, new diagnosis
categories, recurrence non-resolution, project-scoped latest/latest-failure, bundle manifest
verification, performance identity and brief agent-test stages.

Real-emulator checks on Android 16 / API 36 cover observation retention at the cap, ref stability,
context ref tap through a clickable ancestor, --clickable matching, failure explanation and bundle
selection, performance run identity and hook UI postconditions. Exact commands and measurements are
recorded in VERIFICATION.md.