# Verification scope

## Exact combinational-cycle participant diagnostics (R11)

The old CLI genuinely names a noncyclic tail in a self-loop error. Only the incomplete-topological-order diagnostic branch changes: private iterative component membership excludes blocked descendants/bridges and retains all true cyclic output tasks/instance order. No public signature/default success/report format, graph edges, earlier validation or timing math changes.21 complete named graphs and full before/after expected outputs were frozen before code; the initial primary repro and matching preparation captures are reused without repeating passed probes.3 healthy and3 earlier-error outputs remain byte-identical. Preparation failures (CRLF copy, illegal fixture name collision, old long Debug pretty formatting) are preserved and corrected before the freeze/fix; the collision input remains an unchanged-error control.

Generate interfaces/format, verify root public .mbti and JS adapter/default JSON remain byte unchanged, then one clean relevant all-target check/fmt,6 focused `cycle diagnosis*` tests on JS/Wasm-GC/native, release JS/public receiver build and `python3 tools/ci-cycle-diagnosis.py`.25 real processes check21 complete CLI pairs, a public package with21 typed cases/5 affected methods,4 additional existing JSON calls, exact distributed inputs and explicit setup-check failure. Normal graph results and unrelated errors use full original byte oracles. No old118 tests/320 configured receiver processes, scientific/reference or completed R06-R10 batches rerun locally.

Required fresh exact-head CI retains all existing steps/configured124 tests and adds the necessary cycle-diagnostic receiving gate once. Preserve actual streams/exits/copied inputs, all fresh compiled payload identities versus5 selected executed artifacts, canonical Git/blob/raw source, full current README/PROPOSAL and all-member source/compiled ZIP readback. No dependency/SDK/global identity/network change or external oracle. Freeze complete RESULT/REPORT and stop10/11 for independent root acceptance; no self count or R12.

## Distinct-endpoint setup priority query (R10)

One existing result/report query, no timing or default-input/report change. Group exact pins, select their minimum known edge with deterministic source-order ties and a nonnegative limit; preserve unknown/omission accounting and original source indices/paths.35 full hand-authored facts were frozen before implementation, including one fresh old CLI producer from a new fixed-delay design with independent hand order/indices/coverage. Synthetic report envelopes test the consumed endpoint view, not timing solutions or external adoption.

Generate interfaces/format, then one clean relevant local sequence: all-target check/fmt, new6 focused `setup priority*` tests on JS/Wasm-GC/native, release JS build and `python3 tools/ci-setup-priority.py`. The gate executes45 real processes, with11 public typed queries/complete original endpoint lookup,7 direct JSON setting queries, actual file/default/BOM/encoding/help/build/output failures and exact distributed data. One post-change original CLI call compares full bytes with the frozen fresh producer; the priority query itself never runs timing. Old112 tests/275 configured recipient processes and historical scientific/reference/setup-comparison/publication batches are retained and not rerun locally.

Exact-head required CI runs its complete configured118 tests and all retained gates plus the new necessary priority gate once remotely. Save real command stdout/stderr/exits, frozen full facts, actual input/output/compiled payloads, separate actually executed and other fresh compiler artifacts, and all-source/all-compiled ZIP member readbacks. A failed `moon ide doc '*sort_by*'` discovery is preserved as no-results; installed pinned core's builtin interface verifies Array::sort_by and Double::to_int instead. Do not treat failed discovery as an API verification or a product test failure. Complete current README/PROPOSAL and final REPORT/RESULT, then stop for independent root acceptance.

## Exclusive successful-analysis file save (R09)

This is Node IO only. It calls the unchanged original analyze_json on the same file formats and preserves every result byte, including negative/unconstrained successful reports. Five fresh original CLI cases produced byte oracles before writer code; ordinary redirection losing a prior good file on error is preserved as consumer-gap evidence, not an original CLI bug.

The relevant local sequence is `node --check tools/save-analysis.cjs` and `python3 tools/ci-save-analysis.py` on the actual Windows filesystem/Node runtime, using the accepted byte-identical compiled JS core. No MoonBit source/interface or compiler/dependency changes require new local builds or duplicated old112 tests/248 configured receivers. No old NLDM/scientific/setup-comparison trial is repeated.

The new gate uses27 actual processes. Five complete old report byte oracles, three valid state profiles, existing destination/input-path protection, encoding/input/build/parent/directory failures, BOM, source-only help/arguments and the distributed example are checked. Controlled partial write/fsync/close/link/cleanup errors preserve complete actual streams and filesystem evidence. A two-process barrier observes both full candidates before release and checks exactly one new destination publication. Post-publication cleanup/stdout failures explicitly retain a complete destination; controlled residue is not erased. Tests do not claim real disk exhaustion, power-loss durability or unsupported filesystem portability.

The required final-head quality job remains intact: its configured112 MoonBit tests/backends/builds and old gates run once remotely, plus one necessary exclusive-publication gate on Ubuntu. Local interpreted CLI source, the reused actually loaded compiled core, input/output copies and remote statuses are separate identities. Save all attempt streams/exits, frozen byte oracles, final sourceZIP/member identities and reports; stop after required verification/readback for independent acceptance.

## Existing-report setup regression comparison (R08)

Two fresh original CLI calls on new self-authored constant-delay models produced existing moonbit.sta.v1 files before comparison code. Both original checks returned Met/exit0; independent hand arithmetic fixes0.25ns slack loss. Reports and producer inputs/runtime/raw streams remain frozen. This is a new relative gate, not a bug claim about absolute checking, a new input format or a timing rerun feature.

All30 full existing-report input pairs and complete hand comparison facts were fixed before code. They cover finite strict/equal loss thresholds, all unknown/set changes, ordering/raw identity, no-data, finite huge/subtraction overflow, malformed identity/schema/slack/settings, null slack and exact original outputs. Synthetic endpoint-view states are not new physical timing solutions. Six focused tests additionally consume public typed results, preserve owned arrays and check absolute-Met versus relative-regression semantics.

```sh
moon check --target all --deny-warn
moon fmt --check
moon test --target js --deny-warn --filter 'setup comparison*'
moon test --target wasm-gc --deny-warn --filter 'setup comparison*'
moon test --target native --deny-warn --filter 'setup comparison*'
moon build --target js --release --deny-warn
python3 tools/ci-setup-comparison.py
```

The new gate runs46 real processes:30 frozen pair cases, one public package returning five typed comparisons, two exact distributed-report modes, source-only help, arguments/invalid option, both invalidUTF8 inputs, JSON/failed-analysis/missing-file errors, BOMs, three invalid thresholds and closed stdout. Every field/omission/order/exit is checked; raw streams and actual input copies are retained in `_build/setup-comparison-receipts` and `_build/ci-setup-comparison.json`. It does not rerun the old original analysis pair or old batches.

The first related clean passing sequence is sufficient. Do not repeat old106 tests/202 configured receiver processes locally or historical scientific generators. The retained required final-head quality job runs full112 tests (106 retained +6 new) on JS/Wasm-GC/native and all old gates plus one necessary setup-comparison gate. Keep failed attempts, Git object/blob/working/actual-input/local-compiled/remote-metadata identities distinct; read back all sourceZIP members. Success is the named relative comparison profile, not absolute compliance, model/constraint provenance or graph/PPA/signoff. Stop for independent acceptance once required checks/freeze pass.

## Scalar-reference preflight (R07)

Existing Library/Netlist inputs yield an independent complete scalar-name/reference report before SDC or timing models. The actual old structural checker accepts the frozen many-issue input as intended; this addition is a new workflow rather than a fabricated decoding bug. Existing graph/engine/SDC/math, R06 area source and public declarations remain intact.

The24-case catalog freezes complete independent counters and issue records before code: isolated name/cell/pin/net problems,14 concurrent findings with exact pointer order and first witnesses, Unicode/native JSON, empty/real-library designs, structural errors, ignored extensions and explicit driver/cycle/numeric/direction scope controls. Six focused tests cover both JSON and public typed usage, owned issues, first-match cell lookup and programmatic pin metadata.

```sh
moon check --target all --deny-warn
moon fmt --check
moon test --target js --deny-warn --filter 'reference check*'
moon test --target wasm-gc --deny-warn --filter 'reference check*'
moon test --target native --deny-warn --filter 'reference check*'
moon build --target js --release --deny-warn
python3 tools/ci-references.py
```

The receiving gate runs37 processes:24 full frozen cases, a separate public-package program producing five typed reports, both exact distributed examples, source-only help, arguments, both invalid UTF8 inputs, JSON/Liberty/schema errors, BOM, missing file and closed stdout. All fields/omissions/order, status/exits and actual input bytes are checked. Raw outputs and actual tested-copy identities survive failures in `_build/reference-receipts` and `_build/ci-references.json`. These are self-authored integrations, not external adoption.

One relevant local passing sequence is sufficient. The old100 tests/165 configured receiving processes are not separately rerun locally. The unchanged required quality job runs full106 tests (100 retained +6 new) on JS/Wasm-GC/native and all old gates plus the new necessary scalar-reference step on the exact final pushed head. No historical scientific/reference generator is repeated. Remote status/configuration evidence does not imply local/remote executable byte identity. Freeze sourceZIP every-member blob identity, actual working/test-copy/compiled/raw identities and all failure receipts; stop for independent acceptance once required checks pass.

## Earlier cell-usage scope (R06)

This addition accepts existing Liberty and flat Netlist JSON and reports declared cell usage without timing setup. It does not change timing/graph/SDC math, dependency versions, or existing report schemas. Complete means area coverage only.

The21-case catalog retains the original20 pre-implementation numeric, identity and row facts, including counts, grouping order, raw names/area, omitted fields, incomplete states, product/sum overflow, empty design, identity errors and an unchanged real Sky130 source. One mistaken expected library label was corrected directly from that file's header to sky130_sta_demo, with the original expectation/failure retained. A failed acceptance check exposed pinned upstream quoted non-BMP cell-name truncation. An explicit fixture revision uses the same legal bare identifier for positive cases and retains the exact original two-file input as case21 with an independently stated partial-binding expectation. No original input/failure evidence is discarded and no parser/dependency/census workaround is added. These expected area/count facts are not outputs of the census algorithm. The six focused MoonBit tests also call the typed API independently, check owned outputs, and exercise public programmatic Cell.area values.

The relevant local pass for this addition is:

```sh
moon check --target all --deny-warn
moon fmt --check
moon test --target js --deny-warn --filter 'cell usage*'
moon test --target wasm-gc --deny-warn --filter 'cell usage*'
moon test --target native --deny-warn --filter 'cell usage*'
moon build --target js --release --deny-warn
python3 tools/ci-cell-usage.py
```

`ci-cell-usage.py` runs21 real two-file processes and a separately compiled public-package recipient returning five typed reports. It compares every field/omission/order with frozen facts and also checks source-only help, arguments, both UTF-8 inputs, malformed JSON/Liberty/schema, BOM, missing files and a closed stdout receiver. All process stdout/stderr, actual input-copy hashes and exit codes survive failures under `_build/cell-usage-receipts` and `_build/ci-cell-usage.json`. These are self-authored integrations, not external adoption. Files use caller-relative Unicode names in a different cwd.

The existing required GitHub Actions quality job remains intact and must pass on the exact pushed final head. Once per final head, it runs its configured all-target check, formatting, full JS/Wasm-GC/native suites (94 existing +6 new tests), release builds and all old receiving gates plus the necessary new cell-usage step. A focused local run is not reported as a full suite. The old suites/133 recipients are not separately repeated locally for this addition; existing configured remote CI is the regression boundary. Historical OpenSTA/scientific generators and old batch reference samples are not rerun or counted as new evidence.

For delivery, retain failed attempts and one clean relevant pass, freeze the final-head tracked-source ZIP with every member read back, and distinguish Git object identity, blob-payload SHA256, working bytes, actual tested input copies, locally compiled artifacts and raw outputs. Remote CI source/status metadata does not establish byte identity with a local executable. Stop after these required checks; additional unrelated hardening or reference reruns need a concrete failure or a new request.
