# Verification evidence

Local date: 2026-12-01. Windows x64, native backend, MSVC, MoonBit
`moonc v1.0.0-rc1+3c0520448`, `moon 0.1.20261126`.
Isolated toolchain was installed alongside the checkout. Global toolchain was
not replaced. MQTT 0.3.17 needs the newer `#derive` syntax.

Only focused tests and necessary checks were run, as requested. No unfiltered
`moon test`, coverage campaign or long soak run was performed.

| Command / scenario | Observed result |
| --- | --- |
| `moon test transport --target native` | 2 TCP fragmentation/deadline cases passed |
| `moon test probes --target native` | 2 MQTT/Modbus native wire probes passed |
| `moon test model --target native` | 2 zero/missing/invalid payload cases passed |
| `moon test adapter/adapter_test.mbt --target native` | lifecycle/registry isolation passed |
| `moon test adapter/mqtt/mqtt_test.mbt --target native` | repeated readings have distinct sequences; frame cap and pre-SUBACK retained delivery passed |
| `moon test adapter/mqtt/rejection_test.mbt --target native` | invalid topics, refused connection/subscription, wrong SUBACK, malformed lengths and payloads passed |
| `moon test adapter/modbus/modbus_test.mbt --target native` | codec and loopback collection passed; partial response timeout and disconnect both close the stream |
| `moon test adapter/modbus/boundary_test.mbt --target native` | truncated/mutated headers, FC04 and non-finite float rejection passed |
| `moon test transform --target native` | mapping, scaling and missing data passed |
| `moon test validation --target native` | required fields, zero and freshness passed |
| `moon test rules --target native` | typed comparisons and boolean composition passed |
| `moon test buffer --target native` | wrap, overflow, closure and retry cap passed |
| `moon test router --target native` | healthy output delivered while failed output stopped after 3 attempts |
| `moon test config --target native` | invalid config and environment-only secrets passed |
| `moon test runtime --target native` | offline device isolated; healthy device delivered 3 events |
| `moon test integration/gateway_test.mbt --target native` | 6 real TCP events normalized and appended as valid JSONL |
| `moon test integration/recovery_test.mbt --target native` | reconnect, 100 devices/200 events and deadline cleanup passed |
| CLI basic configuration | 5 events received and delivered, no errors or drops |
| multi-protocol example | 3 MQTT + 3 Modbus events; both memory and console delivered 6 |
| Independent MQTT broker | Aedes CLI 1.0.2, loopback TCP 18884, native subscriber received published 25.6 |
| `moon check --target native --deny-warn` | passed |
| `moon run tools/check-key.mbtx` | selected checks, native build, integration and demo passed locally |
| GitHub Actions Ubuntu native | [focused CI passed on the initial delivery](https://github.com/mik1e80/moonedge/actions/runs/46642808136); follow-up results are on the Actions page |

Continuous operation spot check:

```text
moon run benchmarks/soak --target native --release -- 120
```

On Windows x64, the gateway received and delivered 1106 sequential FC03
readings on one loopback TCP connection. Device errors, sink failures, retries,
drops and processing errors were all zero. The fixture observed EOF after the
runtime deadline. The sink retains only the last sequence number. The optional
duration argument accepts 1–14400 seconds. This run validates bounded-duration
delivery and disconnection. It does not measure heap or descriptor trends.

Independent broker reproduction (two terminals):

```text
npm exec --yes --package=aedes-cli@1.0.2 -- aedes --host 127.0.0.1 --port 18884
moon run examples/external_mqtt --target native -- 18884
```

Stop the broker with Ctrl+C afterwards. Aedes is test tooling only; no Node.js is
required to build or run the gateway. The embedded examples use original minimal
wire peers; they must not be described as independent production brokers.

Benchmark: `moon run benchmarks/pipeline --target native --release`.
100,000 events, 126 ms, capacity 256, checksum 2560000.000004825 (floating-point
accumulation). This measures transform + validation + rule + ring operations,
excluding network, JSON encoding and disk I/O. One local timing is not a latency,
throughput or production capacity guarantee.

Not measured: 30-minute/4-hour resource stability, sustained network throughput,
real industrial hardware, TLS, crash recovery, delivery durability. Future work
must retain this distinction instead of treating these checks as completed.
