# Acceptance matrix

[中文](ACCEPTANCE_zh.md) | [Project](../README.md)

Status: **the 0.1.0 candidate passed local checks on MoonBit 1.0.0-rc1 on 2026-11-28**. The GitHub repository is public under Apache-2.0. Hosted checks for this candidate and Mooncakes publication remain pending.

## Verification snapshot

| Check | Verified result | Evidence |
| --- | --- | --- |
| 2026-11-28 MoonBit 1.0 RC | `moonc` 1.0.0-rc1+3c0520448. Local strict checks, 134 wasm-gc, 137 JS, 134 Windows native and 20 frontend tests pass. Both CLIs pass the fixture corpus and eight total stress cases. The browser ESM check and static build pass. | [CI commands](../.github/workflows/ci.yml), [README example](../README.md#run-the-cli) |
| 2026-11-18 CLI JSON validation and workbench toolchain selection | 134 wasm-gc, 137 JS, 134 Windows native, 20 frontend tests. Both CLI corpora, strict checks/build, and browser ESM sandbox pass locally | [`verify_cli.py`](../scripts/verify_cli.py), [workbench checks](DEMO.md) |
| 2026-11-11 CLI intents and workbench formatting | 133 wasm-gc, 136 JS, 133 Windows native, 20 frontend tests; strict checks/build, both CLI corpora, browser sandbox, selected-format export and pretty-budget recovery pass locally | [Local verification](../evidence/verification-2026-11-11.json); hosted CI/Pages remain at the historical revision below |
| Local suite after two development rounds | 130/130 on wasm-gc and Windows native; 133/133 on JavaScript; 18/18 frontend tests; strict TypeScript/build and browser sandbox pass | [Two-round verification](../evidence/verification-two-rounds.json) |
| Hosted suite and Pages at `ef6591b` | Linux/Windows each pass 130 wasm-gc, 133 JS, 130 native, and 18 frontend tests; compact/pretty CLI corpus, browser sandbox, and eight stress cases per host pass. Deployed search, full reference download, and source selection verified | [CI](https://github.com/LING71671/moonbit-axml/actions/runs/41406894685), [Pages](https://github.com/LING71671/moonbit-axml/actions/runs/41406894944), [two-round evidence](../evidence/verification-two-rounds.json) |
| Browser workbench at `8dffd5b` | 12 frontend tests, strict TypeScript/build, isolated ESM checks, local browser flows and subpath loading | [Workbench verification](../evidence/verification-workbench.json), [demo guide](DEMO.md) |
| Hosted suite at `b1dd568` | Linux and Windows each pass 114 wasm-gc, 117 JS, 114 native, and 12 frontend tests; full CLI corpus, browser sandbox, and eight stress cases per host | [CI](https://github.com/LING71671/moonbit-axml/actions/runs/41399307068), [hosted workbench evidence](../evidence/verification-workbench-hosted.json) |
| GitHub Pages workbench | Build/deploy succeeded; hosted samples, local Unicode input, reference selection, and exact XML download verified | [Live workbench](https://ling71671.github.io/moonbit-axml/), [deployment](https://github.com/LING71671/moonbit-axml/actions/runs/41399307093) |
| CLI corpus | 19 fixture hashes, 7 XML semantic trees, 3 manifest records, menu statistics, exact typed-reference origins, 12 malformed-input fixtures | `scripts/verify_cli.py`, `fixtures/manifest.json` |
| CLI hosts | Node.js, Windows native, Linux native | Same extended corpus; [per-host results](../evidence/verification-extension.json) |
| Independent references | aapt2 2.20-13193326, Android Build Tools 36.0.0 / android-36, androguard 4.1.3 | `fixtures/reference/`, [reproduction instructions](../fixtures/README.md) |
| Bounded Windows benchmarks | Four cases, JS/native, three measured runs per case; all 24 pass | [Method and results](BENCHMARKS.md), [raw evidence](../evidence/benchmark.json) |
| Hosted stress correctness | Four cases × JS/native on Linux and Windows; all 16 pass | [CI and log verification](../evidence/verification-extension.json); no timing thresholds |

The earlier 46-test Linux snapshot ran as a native executable inside Debian on WSL2. It is distinct from hosted CI and does not cover subsequent APIs. Evidence files identify their toolchain versions and source hashes; new code changes require rerunning the relevant checks.

## Format and behavior

- [x] Decode all MVP chunk kinds, UTF-8/UTF-16 pools, namespaces, resource maps, CDATA, and raw/typed attributes; validate indices, chunk bounds, and document scopes.
- [x] Preserve raw values, typed payloads, and unresolved resource IDs. Resource references remain numeric; no ARSC lookup is implied.
- [x] Render escaped XML with equivalent expanded names and values. Independent ElementTree comparison uses normalized semantic trees, including namespace shadowing and Unicode cases.
- [x] Offer opt-in `to_xml_pretty` / `decode --pretty`, preserving compact text-bearing and `xml:space="preserve"` subtrees. Pretty output adds whitespace nodes; compact remains the default. Seven fixture trees pass compact and pretty comparison; see [rendering rules](RENDERING.md).
- [x] Extract package/version, SDK declarations, permissions, application attributes, and components; compare three owned compiled manifests against independent references.
- [x] Reject malformed input with byte offsets. Twelve invalid fixtures plus whitebox truncation, Unicode, namespace, limits, and single-byte mutation tests pass; this is bounded testing, not exhaustive fuzzing.
- [x] Inspect explicit intent-filter declarations, summarize document statistics, inventory located resource/theme references, and expose encoded dimension/fraction units. These APIs retain raw data and do not apply Android runtime intent matching, resource lookup, or display metrics.

## End-to-end workflows

- [x] Build-check scenario: decode and inspect extracted compiled manifests; package, SDK, permissions, and component records match references locally.
- [x] Catalog scenario: `LING71671/axml/catalog` processes named byte inputs in order, retaining successes and stage/offset diagnostics for individual failures. Tests cover mixed batches, custom limits, duplicate labels, and non-manifest XML; see [the API](CATALOG.md).
- [x] Resource XML scenario: compiled menu AXML renders into independently parsed, namespace-aware XML with equivalent semantics.
- [x] Workbench search: filter Structure and References locally by protocol fields and decimal/hex values; keep 50-row pages, clear Structure filters for source jumps, and leave exports unaffected. A 1,210-event input verifies the 1,000-event preview boundary; see [the search guide](DEMO.md#filter-events-and-references).
- [x] Export intent-filter JSON through `axml intents`, comparing three manifests with independent compiled XML trees and checking source headers. Non-manifest XML and all twelve malformed fixtures fail without partial JSON on both CLI hosts.
- [x] `axml validate --json` reports valid inputs, decode/render errors with exact byte offsets, and read errors with a null offset. The verifier checks exit codes and output streams on both CLI hosts.
- [x] Select compact/pretty XML in the workbench without another Worker; copy/download follow the selected format. Independent output budgets preserve compact XML when indentation alone exceeds the pretty limit.

The CLI accepts extracted AXML files, one per invocation, with help/version flags, opt-in `decode --pretty`, and a literal-file `--` terminator. The batch library performs no I/O and does not cap aggregate retained data. APK extraction and a persistent catalog application are not implemented.

## Limits and reproducibility

- [x] Defaults enforce 16 MiB input, 100,000 strings, depth 256, 500,000 events, 65,535 attributes per element, and 4 Mi aggregate decoded UTF-16 string units; configurable-limit tests exercise rejection.
- [x] XML output defaults to 32 Mi UTF-16 units, including pretty indentation and separators. Pretty rendering checks a default depth of 256 before expansion. Output-limit tests and shared-string/style-offset cases guard expansion; a 32,768-unit whitebox string and 33,000-unit corpus string exercise extended UTF-16 lengths.
- [x] Owned fixtures include origins, licenses, hashes, source XML, reference outputs, and generation scripts. No third-party APK is redistributed; the library itself needs no Android/JVM runtime.
- [x] Measure large-pool, maximal-depth, repeated-reference, and malformed-input time/memory benchmarks on Windows JS/native. Independent expected XML hashes and exact malformed offsets are checked; see [BENCHMARKS.md](BENCHMARKS.md). Results are bounded observations, not portable throughput, memory, or zero-copy guarantees.
- [x] Commit the implementation, evidence, licenses, and reproducibility material together. Initial commit `087beb9` was cloned into a clean checkout; formatting, all-backend checking, 46 JavaScript tests, CLI build, and the complete corpus verifier passed with a clean working tree.

## Release gates

- [x] Build and inspect the 0.1.0 package using the pinned compiler. Run the README Manifest example from the unpacked archive.
- [ ] Push the 1.0 RC candidate to GitHub and verify hosted Linux/Windows CI and Pages for its revision.
- [x] Hosted Linux/Windows verification and Pages deployment passed for `ef6591b`, including both development rounds; the table above and linked evidence identify exact runs. Subsequent documentation/evidence commits do not change the tested source.
- [x] Historical hosted Linux and Windows verification passed for `6bc076b`: 114 tests per backend, complete extended JS/native CLI corpus, and eight bounded stress cases per host. [GitHub Actions run](https://github.com/LING71671/moonbit-axml/actions/runs/41392861059), [recorded results](../evidence/verification-extension.json).
- [x] Historical hosted snapshots remain available: `61279a8` ran 75 tests per backend ([CI](https://github.com/LING71671/moonbit-axml/actions/runs/41391697996), [evidence](../evidence/verification-development.json)); `19c2e11` ran 46 ([CI](https://github.com/LING71671/moonbit-axml/actions/runs/41377746057), [evidence](../evidence/verification-hosted.json)). Both hosts passed their corresponding format/interface/check/build/test and CLI-corpus checks; those snapshots do not cover later APIs.
- [ ] Confirm publication authorization and validate the saved Mooncakes credentials against the registry using the [repository account wrapper](ACCOUNTS.md).
- [ ] Publish the approved Mooncakes release and verify installation from the registry. Current status remains unpublished.
