Skip to content

AndroidForge v1.1.0

Latest

Choose a tag to compare

@JuggyBob JuggyBob released this 25 Nov 19:43
· 1 commit to main since this release

AndroidForge v1.1.0 — Verification primitives and safer agent evidence

AndroidForge v1.1.0 is an additive release on the 1.x stable line. It adds the primitives that were
missing from full Compose release verification: frame statistics, launch/first-frame capture, bounds
and colour assertions, deterministic fixture and network state, AVD capacity/ports, scenario files,
named screenshot baselines, accessibility/contrast audits, a build engine and a safer physical-device
capability split. It also closes the artifact-secret gap with scanning and forced bundle refusal.

The JSON envelope and run report schema remain 1. Existing commands keep their 1.0.0 behaviour when
the new flags are absent, and the 1.0.0 device alias for devices is retained.

Status: release gate complete for the supported scope. The host gate, delegated physical-device
campaigns and packaged assets are recorded in VERIFICATION.md and in the verification section
below. Items explicitly listed as NOT RUN are not claimed as verified.

Measured: 219 catalog commands, 221 MCP tools, 38/38 schemas; the full-workspace gate recorded
784 passed / 0 failed across 29 suites before the final two safety fixes, and the post-fix CLI gate
recorded 375 passed / 0 failed for the final code. Envelope and report schema stay at 1.

Closes: #1, #2, #3, #4.

Highlights

  • Build in one audited command: build runs an explicit argv-array [build.commands.<variant>]
    configuration, bounds and redacts logs, verifies APK identity, and optionally installs, launches or
    cold-launches through the fixed force-stop path. --dry-run executes nothing.
  • Frame and launch evidence: diagnostics frames reports frame counts, jank, percentiles, missed
    vsync/slow-UI/deadline counts and a histogram, with optional stored-baseline regression gates.
    capture launch samples repeated screencap PNGs and reports the first app frame, first-frame
    colour and splash/white/black frame counts without ffmpeg.
  • Layout, colour and accessibility assertions: ui bounds, ui assert-bounds,
    ui wait --for-bounds-stable, capture assert-color, capture contrast, ui audit a11y,
    ui observe --semantics and named capture baseline save/update/compare on the existing PNG diff.
  • Deterministic test state: declarative fixture prefs/history/installed_version state with
    explicit data consent; network mock scenarios newer-release, offline, bad-digest and no-APK;
    device night/locale/font/network scenarios; AVD images/create; doctor --capacity; ports list;
    and host device tags for matrix targeting.
  • Scenario files: scenario run/validate accepts JSON or TOML (YAML is intentionally unsupported),
    maps allowlisted steps to audited operations, and reports --repeat, per-step error policy, pass
    rate and duration variance. Runs are recorded as normal run steps.
  • Supply-chain safety: artifacts scan-secrets scans bounded artifact text and never prints matched
    values; diagnostics logcat --redact-patterns masks caller-supplied literal prefixes;
    report bundle --redact-secrets forces redaction and refuses to write a bundle if a suspected secret
    remains. Binary screenshots/recordings are disclosed as not pixel-redacted.
  • Fine-grained physical capabilities: Risk::{AppControl,Data,Network,Install,Input} with scoped
    --allow-physical-* flags, while --allow-physical-mutation remains the superset. devices shell --read-only uses an allow/deny prefix contract and needs no physical grant; devices input tap
    keeps the narrow Risk::Input gate. Both record run steps.
  • Reporting and agent output: run tags/metadata, --session/--tag/--since selectors, report
    budgets, retention --keep-tag, scoped app data export, --jsonl NDJSON, --fields result
    trimming and --stats exact stdout byte/token counts.

Compatibility and upgrade notes

  • No breaking changes. The envelope and report schema stay 1; new report/result fields are
    additive and defaulted. The 1.0.0 device alias for devices remains valid.
  • Both executables must be 1.1.0: the desktop requires an exact CLI version match.
  • Supported host: Windows 10/11 x86_64. Linux and macOS are not validated.
  • The per-user installer preserves configuration and artifacts outside {app}; the portable ZIP keeps
    the CLI and desktop binaries adjacent. No state-file migration is required.
  • --jsonl is a presentation mode; it implies --json and emits one minified object per line. The
    final line is the normal envelope. --fields only trims the top-level keys of the result object and
    never removes schema_version, status, command, exit_code, result or error. --stats
    writes one JSON line to stderr and leaves stdout unchanged.

Known limitations

  • run repeat --count is NOT RUN; flake detection is provided by scenario run --repeat, which
    records per-step results, pass rate and duration variance. A generic repeater would re-execute
    arbitrary commands outside the audited step model.
  • Cross-device geometry/colour comparison is NOT RUN; device tags and report metric comparison are
    shipped, but a normalised multi-device geometry collector is deferred.
  • logcat start --redact-patterns applies the prefixes when the capture is stopped, before artifact
    registration, because the detached capture stream has a fixed state schema. The active raw file is
    not guaranteed redacted until logcat stop.
  • Binary screenshots, recordings and other media are not scanned or pixel-redacted.
  • Scenario manifests support JSON and TOML only; YAML is unsupported by design.
  • Physical-device scope and every unchecked item are recorded in VERIFICATION.md; nothing is claimed
    as verified without recorded evidence.

Verification

Host gates

  • Full workspace gate (before the final two safety fixes): cargo fmt --all -- --check clean, strict
    workspace clippy clean, cargo test --locked --workspace 784 passed / 0 failed across 29 suites,
    and cargo deny check advisories bans licenses sources passed.
  • Post-fix CLI gate (authoritative for the final code): 375 passed / 0 failed — bin 244, cli 91,
    frames 3, safety 22, schema 15. CLI clippy was clean and cargo-deny passed again. The final fixes
    were that physical diagnostics performance now requires Risk::AppControl, and that
    diagnostics performance is classified device-mutation in the catalog and MCP with MCP
    confirm=true unless dry_run=true.

Physical campaigns (delegated)

  • Read-only campaign on the user-approved POCO X4 GT (DM9X8LFQYHSSQKIN, Android 14 / API 34),
    session ses-57fd8c88e1b3: 12/12 steps passed, no mutations and no NOT RUN. CalcSuite 3.1.0 /
    code 8 was foreground with PID 32318; 111 UI nodes were observed; ui observe --semantics
    reported 95 total / 64 capped nodes and CalcSuite exposes no Compose test_tag. Algebra bounds
    were [72,2185][206,2295]; ui bounds reported all eight fields and
    ui assert-bounds --bottom-y 2295 --tolerance 2 passed. Screenshot SHA-256
    b0fbed00b7098f97d23e16b58b4947a637b9c204a2fd0b9c2631a9d358e3a7d9 (2,772,973 bytes).
    ui audit a11y found 42 missing-content-description errors and no contrast, target or duplicate
    findings. The session was released and artifacts were cleaned.
  • Approved mutation campaign, session ses-8596811196fe: app launch com.calcsuite --force-stop --allow-physical-app-control yielded PID 32318 in the foreground with component
    com.calcsuite/.MainActivity and a run report that exited 0 / passed; devices input tap 279 2204 --allow-physical-input returned a dispatched receipt with Risk::Input and made the Algebra tools
    visible; ui back --allow-physical-input restored Home. The launch shell capture returned no
    stdout and exit 1, but the CLI run report and subsequent UI inspection both confirmed success.
    Only explicitly approved flags were used, and the session was released.

Packaged assets

Asset Bytes SHA-256
androidforge.exe (target\release) 23,362,560 6e49c9f995c35a2b5968fc2b5615677179b532663d590166b54742c5de852aa4
androidforge-desktop.exe 15,638,528 977cf28495aacb14f381af747c96add619ad9ae8147f707365e4ab4f227d24ad
androidforge-cli-windows-x86_64.zip 8,350,742 92bf048f0d0e022fbb947ba351314c5ff98ade4d45cc9d1a4b177133f8225a0b
androidforge-desktop-windows-x86_64.zip 15,241,545 7a8d2325aa416f701fbf27fc42cb3f926889a63359153a6c7174acf6a4157c90
androidforge-windows-x86_64-setup.exe 11,425,383 71dc973b084349d5c5676e96d3ca62971d566a166459bf3f627d287cc3b9ca5e

The CLI reports androidforge 1.1.0; the installer reports FileVersion / ProductVersion 1.1.0.
dist/SHA256SUMS.txt matches all five listed files. The desktop ZIP contains both EXEs, LICENSE,
README, USER_GUIDE, CHANGELOG, THIRD_PARTY_NOTICES and both font OFL files; the CLI ZIP contains only
androidforge.exe. The Scoop manifest hash is updated to the desktop ZIP hash. No screenshot ZIP was
produced. A silent install/uninstall cycle was NOT RUN: the installed Desktop release directory
was left untouched.

NOT RUN

  • Physical diagnostics performance (not approved) and the device night-mode scenario (not
    approved).
  • Silent install/uninstall (installed Desktop release directory untouched).
  • Standalone run repeat --count; scenario run --repeat is the supported flake-reporting path.
  • Cross-device geometry/colour comparison; the normalised multi-device geometry collector is
    deferred.
  • No v1.1.0 screenshot gallery was produced; the v1.0.0 gallery remains the representative one.
  • MCP interactive checks (handshake, confirm=true gating, physical flags stripped, unsafe commands
    excluded), desktop binary --version verification, other vendor ROMs, live update/repair against a
    published 1.1.0 release, macOS/Linux hosts, code signing and long-duration stress.

Verification checklist

  • Host gate: cargo fmt --all -- --check clean, strict workspace clippy clean, full
    cargo test --locked --workspace 784 passed / 0 failed across 29 suites, cargo deny check advisories bans licenses sources passed; cargo check --workspace clean and the rebuilt CLI
    reports androidforge 1.1.0.
  • Counts and schemas: catalog 219 commands, MCP 221 tools and 38/38 schemas; envelope
    and report schema remain at 1.
  • Post-fix CLI gate: 375 passed / 0 failed (bin 244, cli 91, frames 3, safety 22, schema 15),
    CLI clippy clean and cargo-deny passed; physical diagnostics performance gated by
    Risk::AppControl and classified device-mutation in catalog/MCP with confirm=true unless
    dry_run=true.
  • MCP surface: curated/generated tools, confirm=true gating, physical flags stripped, unsafe
    commands excluded. (Catalog/CLI evidence recorded; interactive MCP checks are NOT RUN.)
  • Physical Poco X4 GT campaigns: 12/12 read-only steps passed with no mutations, plus the
    explicitly approved launch/input/back mutations; both sessions released.
  • Packaged assets: ZIP/installer contents, version metadata, SHA-256 sums and the Scoop hash
    verified; silent install/uninstall is NOT RUN.
  • Documentation: README, CAPABILITIES, USER_GUIDE, AGENT_GUIDE, SCHEMA, COMPATIBILITY,
    VERIFICATION, CHANGELOG and COOKBOOK reconciled to the measured surface.