# Changelog

## Unreleased

### Added

### Changed

### Fixed

### Deprecated

### Removed

### Security

### Migration

## 0.5.1 - 2026-11-19

### Changed

- Update moonbitlang/async to 0.22.10 and moonbitlang/x to 0.5.7 in the root module; bump the async pin in the isolation and timeout fixtures to match. `moon fix` reports no source migrations needed under the latest stable toolchain.

## 0.5.0 - 2026-11-18

### Added

- `--in-diff FILE` validates represented new-side unified diff lines and restricts mutations to intersecting byte spans. Diff runs report their partial selection and preserve the baseline and target filters.

- Opt-in `boundary` operator group: `< -> <=`, `> -> >=`, `<= -> <`, and `>= -> >` mutants that only differ at the equality point. Enable it with `--operators boundary` or `operators = ["boundary"]` in `turtles.toml`; `comparison,boundary` generates both edits at each comparison. Reports keep `group: "boundary"`, and `--iterate` only reuses boundary rows whose identity matches.
- `fixtures/boundary` plus `scripts/verify-boundary.mbtx`, exercised in CI, pin the group's observable behavior: a default run emits no boundary row.

### Changed

- Source CI and future release builds follow the latest stable MoonBit toolchain. Update lexer to 0.4.5, parser to 0.4.9, moon_config to 0.4.6 and prettyprinter to 0.4.12; migrate manifest AST handling, formatting and deprecated APIs. Historical published-0.4.7 consumer checks retain their compatible toolchain pin.

- An unset operator list now resolves through an exhaustive `operator_group_default_enabled`, so a new group is opt-in by explicit decision instead of by falling through a "not `Body`" test. Behavior is unchanged: `comparison`, `boolean`, `arithmetic`, `literal`, and `condition` run by default.

### Fixed

- Preserve effective import aliases across supported modern and legacy manifests for survivor analysis and QuickCheck harnesses. Unresolved bindings fail closed rather than being inferred as pure local calls.

### Security

- Bound diff input to 64 MiB and 200,000 physical lines, validate paths and represented source content, and reject malformed or stale patches before baseline execution.
- Document that `--in-diff` path checks and reads are not atomic: concurrent symlink replacement can redirect a read even when later snapshot checks pass. Use a checkout protected from concurrent untrusted changes.

### Migration

- Use the latest stable MoonBit toolchain for 0.5.0; the older compiler pin used to install historical 0.4.7 is not the source-build baseline.
- Conditional imports remain conservative for purity inference (`effects-unknown`). Source tests recompiled with incompatible white-box import aliases can report `harness-error`; neither outcome is a successful witness.
- Reports now use schema 4 with explicit execution and selection metadata. `--iterate` does not reuse schema 3 reports; existing verdicts are classified again. The separate MoonBit verification profile remains pinned to its historical schema 3 executable.

## 0.4.7

### Fixed

- Resolve `prettyprinter@0.4.11` so Mooncakes CLI installation works with Moon 0.1.20261012, which rejects legacy `moon.mod.json` dependencies.
- Update source formatting and the prior-report test's JSON conversion for the current MoonBit toolchain and warning-free native checks.

## 0.4.6

### Fixed

- On macOS without GNU coreutils, supervise `moon` in a process group and terminate same-group descendants on timeout or cancellation instead of leaving compiler/test processes running.

## 0.4.5

### Fixed

- Give the bounded verification companion the same Windows process-tree timeout and cancellation ownership: launch suspended, assign a kill-on-close Job Object before resume, and wait for owned descendants to exit.

## 0.4.4

### Fixed

- Run Windows `moon.exe` commands in a scoped Job Object and terminate/wait for owned descendants on timeout or cancellation; surface cleanup errors.

## 0.4.3 (candidate for review)

### Improved

- Recognize Homebrew's `gtimeout` for process-group cancellation when it is installed.

### Fixed

- Continue with direct-process cancellation when neither `timeout` nor `gtimeout` is executable, instead of aborting while probing for a helper. This lets native macOS runs proceed without GNU coreutils.
- Classify GNU timeout's KILL expiry as `TIMEOUT` while preserving an ordinary child exit status of 137 as a command failure.

### Packaging

- Point the module metadata and GitHub install examples at the maintained `gpui-mbt/turtles.mbt` repository; the Mooncakes package remains `f4ah6o/turtles`.
- Run native check, unit-test, and mutation-fixture coverage on Apple Silicon macOS, including the no-GNU-timeout runner path.
- Verify that the Darwin release runner and packaged turtles executable are arm64 before uploading the artifact.

## 0.4.2

### Improved

- Normalize module-relative paths before package ownership and target-plan lookups so Windows separators do not hide nested packages.
- Exercise native Windows fixture mutation, parallel worker ordering, and target-aware filtering in CI.

### Packaging

- Publish and verify the `turtles-windows-x86_64.exe` native release asset.

## 0.4.0 (candidate for review)

### Added

- Target-aware mutation selection via `--target`, using Moon's own test dry-run plan to identify source files active for the selected backend. Target-inactive mutants are reported separately and excluded from the score.
- Opt-in survivor analysis with `--emit-properties`, `--pbt-witness`, and `--pbt-amplify` to suggest properties, search for differential QuickCheck witnesses, and rerun property tests with a larger budget.
- An experimental, bounded source-exact MoonBit verification companion and deterministic PBT regression/remutation tooling for a small profile of helpers. This remains separate from the default mutation-testing command and score.

### Improved

- `--iterate` now rejects stale verdicts when any source, test, package manifest, or configuration fingerprint changes, and does not reuse outcomes across targets or Moon versions.
- JSON reports remain schema 3 and now include target-inactive mutant details where applicable.

### Packaging

- Add `moonbitlang/moon_config@0.4.0` for Moon package configuration and target-plan support.
- Keep the default `turtles` run unchanged; all new analyses are opt-in.
