Skip to content

Main documentation · Source commit e61817fe71ac90275c1173b66681cbe17ce034ad.

Compatibility and change notices

hoimin is a 0.x CLI for local, short-lived mutation-testing work with an agent. Its design does not assume integration into users' CI pipelines, stable external JSON readers, or long-term storage of plans and reports. Backward compatibility across releases is not a development requirement, including within a minor series.

Maintain one current CLI and saved-format contract. Do not add legacy readers, aliases, fallback paths, or data migrations solely to preserve older behavior. Regenerate plans, rerun reports, or start a new session when an older artifact is no longer accepted. Schema and fingerprint checks still prevent invalid inputs or unrelated results from being used; they do not promise cross-version support. This policy does not authorize automatic deletion or rewriting of existing files.

The release-floor rules below follow this policy. Earlier change notices record past decisions; their minor-version increases and preservation guidance are not requirements for future work. Repository test and release CI continues to validate the current implementation.

Standard-library contract mutations

Fresh runs and plans enable additional Unicode, string, iterator, encoding, URL, numeric, heap and serialization mutations. Each new ID supports individual opt-out with --exclude-operators ID. The existing encoding_errors_ignore operator also accepts more policy argument forms. See the operator reference for the specific contracts and applicability.

These additions can change candidate counts and the prefix retained under a candidate cap. Generate a fresh plan to investigate them; existing plans retain their recorded operator sets. Candidate and saved-plan schemas are unchanged. Explicit Boolean literal options continue to use boolean_literal; new policy operators add coverage for omitted defaults and dynamic option values.

URL replacements prefer an existing proven alias or module over an import fallback. A different replacement spelling can change its candidate ID; use a fresh plan when comparing discovery after this update. Sharing omitted-keyword layout preserves the existing edit ranges and selection anchors.

Behavioral mutation coverage

At that change, fresh runs and plans selected 136 runtime operators from 155 catalog IDs. Fifteen new IDs cover augmented assignment, unpacking targets, return values, comparison directions, else suites, zip strictness, range bounds, regex quantifiers and alternatives, format options, context exits and individual yields. Each is enabled by default and can be disabled with --exclude-operators ID.

Existing index/slice neighbors, tuple return swaps and Boolean clause deletion also cover more sites. Discovery deduplication now distinguishes different edit lengths at the same position, so distinct alternative deletions are retained. Create a fresh plan to discover these candidates; saved plans retain their recorded sets. See the operator reference for applicability and effects.

Language-reference mutation coverage

Fresh runs and plans select 121 runtime operators from 140 catalog IDs. Fourteen additions cover floating-point and bytes literals, formatted strings, conditional expressions, awaiting, dictionary unpacking, deletion, exception dispatch and patterns. Existing integer, string-segment, conversion and exception operators also cover more sites. Pass an individual ID to --exclude-operators to disable it.

Saved plans keep their recorded operator sets and candidate identities. Create a fresh plan to see the expanded defaults. A candidate cap can retain a different prefix when discovery includes more operators. See the operator catalog for applicability and selectors.

Additional behavioral defaults (Issues 1126, 1127, 1128 and 1131)

Fresh runs/plans add dataclass_factory_share, sort_key_swap, lambda_capture_late and encoding_errors_ignore (82 default runtime IDs, 101 total IDs). Each supports individual opt-out with --exclude-operators. Existing selector families, saved schemas and ranking version are unchanged; new candidates can change counts and capped prefixes. These extend the three operators below in the same PR, rather than closing the other issues without implementation. See current scope.

Behavioral research defaults (Issues 1125, 1129 and 1130)

Fresh runs and plans now enable continue_remove, comparison_not_implemented and exception_cause_remove (then 78 default runtime IDs, 97 total IDs). Use --exclude-operators for individual exclusions. These do not expand existing selector families. Candidate counts and capped prefixes can change; explicit selections remain explicit. Create a new plan to inspect the new defaults. No saved schema, ranking rule version, dependency or Python support change is included. See applicability and the seven-issue evaluation.

Slice-bound and division defaults (Issues 1121 and 1124)

New runs and plans enable binary_div_floor, structure_slice_bound_omit and structure_slice_bound_move by default (then 75 default runtime IDs, 94 total IDs). Use --exclude-operators to exclude individual IDs; structure_ops includes both slice operators. Candidate counts and capped prefixes can change.

Saved plans retain their concrete operator sets. Create a new plan to investigate these new default mutations; existing artifacts require no conversion or new session solely for this addition. Schemas, ranking rule version and version floor are unchanged. See the current usage for applicability.

Default missing-value and shared-state mutations

At that change, fresh runs selected 72 operators from 91 catalog IDs. The eleven additions were none_truthiness, mutable_default_share, nonlocal_remove, yield_from_to_yield, mapping_setdefault_to_get, bisect_boundary_swap, deepcopy_to_copy, deque_popleft_to_pop, gather_return_exceptions, itertools_take_drop_swap and fstring_conversion_swap. The following exclusions described the preceding 61-operator selection at that revision; the newer slice/division defaults above are additional:

--exclude-operators none_truthiness,mutable_default_share,nonlocal_remove,yield_from_to_yield,mapping_setdefault_to_get,bisect_boundary_swap,deepcopy_to_copy,deque_popleft_to_pop,gather_return_exceptions,itertools_take_drop_swap,fstring_conversion_swap

Each is individually excludable. Explicit operator sets and saved plans keep their selections. Fresh candidate counts/rankings/capped prefixes can change. See eligibility and behavior. No parser, dependency, schema or supported-Python-range change is included.

Default generator behavior mutations

The generator operators are list_comprehension_to_generator, generator_return_insert, generator_skip_first and generator_empty. They can be excluded individually or together.

Fresh candidate counts, rankings and capped prefixes can change. Explicit sets and saved plans retain their recorded selections. Generator-return insertion retains original yield source; skip/empty wrappers preserve construction without fully draining an input. See generator behavior. No schema, parser, dependency or supported-Python-range change is included.

Default iterator stop insertion

iterator_stop_insert and async_iterator_stop_insert add entry exhaustion candidates for eligible iterator methods. Use --exclude-operators iterator_stop_insert,async_iterator_stop_insert to disable these two operators. Explicit selections and saved plans retain their recorded operators and candidates. Counts, rankings and capped prefixes of fresh default plans can change. See early iterator exhaustion.

Default loop break insertion

loop_break_insert is enabled by default. It adds one candidate for each eligible for, async for, or while body. Candidate counts, ranking and prefixes retained under a cap can therefore change. Use --exclude-operators loop_break_insert to disable this operator. Explicit --operators sets and saved plans retain their recorded operators and candidates; loading a plan does not add this operator. Existing break_continue keeps its swap behavior. See premature loop exit.

Reduced CLI and logging features

CLI help and errors use plain text. Automatic color and spelling suggestions for unknown commands or arguments are removed; help, usage and error context remain.

RUST_LOG accepts default levels and module/target levels, including comma-separated combinations such as warn,hoimin_cli=debug. Advanced span and field filtering is outside the supported syntax. Replace such directives with level/module filters. Logging remains opt-in JSON Lines on stderr, with bounded records/queue and a finite shutdown wait; an invalid filter disables tracing.

The optional Rust contracts feature remains available and tested in hoimin's own CI. It now uses repository macros without the external contracts crate. Budget invariants and reserve accounting checks cover successful and error results. These feature changes require no saved-artifact regeneration.

Local execution without CI gates

run and verify return 0 for a complete run, including one with surviving mutants. Exit 1 for survivors is removed. Statuses, counts, mutation scores, history and review data remain available in structured output. Infrastructure errors return 2, baseline failures 3, incomplete runs 4 and cancellation 130.

progress --fail-on-regression is removed without an alias or fallback. Valid comparisons return 0 for every comparison state; inspect latest.state in JSON. Input, validation and output failures return 2. Resource controls and hoimin's own development and release CI remain required. Users' CI integration and mutation-score or regression gates are outside the intended product scope.

Agent-oriented output (#1100–#1103)

Run and verify emit JSONL event streams and reject every --format option. Aggregate JSON execution reports are removed; progress and review accept only JSONL execution streams. Plan, verify dry-run, progress, review and metrics retain their single JSON documents. Progress and review also reject --format. Their comparison/history behavior and JSON schemas are unchanged. Update command invocations; no old-format alias or fallback is provided.

Terminal progress lines, TTY-based logging format selection and the periodic refresh timer are removed. Optional RUST_LOG tracing always uses JSON Lines. Logging remains off by default with bounded records/queue and finite shutdown waiting. JSONL execution events remain available for observing results as they arrive. Help, concrete errors, failed-test logs, history and saturation decisions remain available. Plain-text errors/help still escape external control characters.

Dependency reduction (#1096–#1098)

hoimin completions and shell-script generation are removed. Use the current CLI help and reference; no command alias or replacement generator is provided. File locking now uses Rust's standard library instead of fs2.

Managed-workspace coordinators use schema 2 with full BLAKE3 slot digests instead of CRC32. New workspaces use hoimin-workspaces-v2 under the temporary parent. The old hoimin-workspaces-v1 directory is neither read, migrated nor reclaimed by this version. It may be removed manually after all older hoimin processes using it have exited and any retained artifacts are no longer needed. Unsupported coordinator files placed in the new namespace are rejected without rewriting them. Plan, report, review and session schemas are unchanged.

Existing journal/WAL/SHM entries must be regular, non-symlink files with a single hard link before any file-backed SQLite connection. Shared files now fail session admission even when the database is missing, empty, current, foreign or unsupported; source and session artifacts remain untouched. Nonregular, inaccessible and symlink entries also fail inspection before SQLite can create the database. Ordinary single-link sessions and resume remain supported. Choose a different session destination for a rejected alias; hoimin does not delete or repair it. No schema, CLI option, dependency or package-floor change is introduced.

Fixed-capacity JSON mutant serialization (#1092)

Each JSON mutant record now uses a record-local 8 KiB buffer rather than a whole-record Vec. Large records may require multiple spool writes; small records still use one write. Explicit flush completes before acknowledgement, and any write or flush failure poisons the report without a Drop retry. This flush does not promise durable storage. Final JSON bytes, schema, CLI options and dependencies are unchanged. Run/baseline metadata retains its separate owned buffers.

Borrowed complete descriptor comparisons (#1089)

Verify, worker mutation and review comparison/source-validation paths use borrowed candidate metadata. Full descriptor fields, error precedence, stable IDs, encoding and output/persistence schemas retain their existing contract. Review source validation reuses the ID already returned by core validation. No artifact regeneration or migration is introduced by this ownership change.

Existing session DBs with multiple hard links are now rejected before file-backed SQLite access or ownership lock creation. This includes current sessions opened through intentional hardlink aliases. Choose a new session path; aliases are not removed or converted. New paths and single-link empty/current sessions remain supported. This admission rule does not change session schema 5.

Token discovery borrows parser storage, and current review rows borrow plan candidates through rendering. Stale review descriptors remain owned. CLI output, candidate IDs, wire schemas and dependencies do not change.

Copy membership, finite mutation reads and borrowed identity (#1081–#1083)

Verify preparation and dry-run determine fingerprint copy membership without reading/hash-checking every copied asset. Empty fingerprint inputs skip that walk. Actual copying/preflight retains independent snapshot and fingerprint checks; incidental content failures can surface there instead of during preparation. Dry-run does not validate every copied asset body.

Mutation reads reject descriptor-size mismatch before allocation and use a finite expected-length read plus a growth probe before permissions or writes. Review identity checks use existing borrowed fields. There is no new fixed source limit, option, format, compatibility adapter or migration.

Review journal admission and source ownership (#1077–#1079)

Review rejects SQLite WAL/non-DELETE headers before ordinary SQLite access, including read-only list/show, to avoid creating companions for a rejected closed database. Current DELETE stores remain supported. No journal conversion, repair, migration or sidecar deletion is added; concurrent foreign writers and SQLite crash recovery remain outside this check.

Review rendering borrows already loaded history. Mutation application reuses its validated hash and owned source buffer, retaining independent original evidence only for enabled runtime contracts. Candidate validation, error precedence, encoding, original-file protection and JSON/human output remain. No public option, wire format, dependency or package-floor change is introduced.

Session database admission and internal ownership (#1073–#1075)

Only a new path or a genuinely empty SQLite database with version and application ID zero is initialized. Existing sessions must match the current schema-5 DDL, including the required positive budget. Foreign, unsupported and earlier nullable schema-5 databases are rejected before session configuration. Start a new session at another path; no migration, compatibility reader or repair is provided. Closed-database tests cover bytes, rows, journal mode and companion files; this is not a general SQLite crash-recovery or concurrent foreign-writer guarantee.

Exception hierarchy loading summarizes one borrowed source at a time rather than retaining the entire project's text. Input limits, fingerprint checks, candidate semantics and input-error priority remain. Run identity now has one internal owner distinguishing generated IDs from established session IDs. No CLI option, wire schema, dependency or package-floor change is introduced.

Original-manifest reads and review-store creation (#1070–#1071)

Original workspace manifest and snapshot reads now reject growth or truncation relative to the opened descriptor's initial length, including preflight rechecks, original verification and duplicate includes. Existing copy/owned-disk limits remain. Stable files have no new cap; this does not provide atomic snapshots, same-length rewrite detection or arbitrary filesystem I/O time bounds.

First review-store creation completes initialization privately before publishing without replacing an existing destination. Retrying an interrupted initialization can create the destination; existing empty, corrupt, foreign or unsupported stores remain rejected without repair. Forced termination may leave a private .hoimin-review-* directory beside the store. Later invocations do not adopt or delete such remnants. This is not a power-loss durability guarantee.

No CLI option, dependency, schema or package-floor change is introduced. Plans and sessions do not need regeneration for these fixes.

Source and fingerprint read boundaries (#1066)

Source reads and hashes, including plan source validation and fingerprint inputs, now reject growth or truncation relative to the opened descriptor's initial length. Stable large files remain supported without a new fixed-size cap. This bounds bytes consumed, not arbitrary filesystem I/O time, and does not detect same-length rewrites or provide an atomic snapshot. Root-relative, no-follow and regular-file checks remain in place. No schema, CLI option, compatibility reader or migration is added.

Prepared symbol selection and finite report confirmation (Issues #1060–#1063)

Analyzer symbol admission prepares per-file membership once and preserves the existing line intersection, nested-symbol boundaries and module-qualified API semantics. Selector options, ranking rules, candidate identities and schemas retain their existing meanings.

Progress's optional byte comparison for duplicate reports now uses each opened file's initial length as a read budget, matching report decoding. Observed growth/truncation omits the duplicate annotation without adding an input failure or changing improvement/saturation results. Same-length in-place rewrites remain outside this check; no fixed size cap or atomic snapshot is added.

Review decodes its current typed JSON document directly. Old report shapes remain rejected, but they no longer receive a guaranteed unsupported-schema diagnostic before typed shape errors. Current schema/configuration checks still precede project-root access; progress retains streaming JSONL decoding and review's 64 MiB input limit remains unchanged. Rerun with this version when an old report is rejected.

Internal atomic updates use try_update under the existing Rust 1.99.0 floor. There is no new dependency, migration, public format or package-floor change.

Bounded Git capture and streaming artifact reads (Issues #1054–#1056)

Target-inspection Git commands reject stdout above 64 MiB without accepting a partial selection. Stderr retains its first 64 KiB plus a truncation marker and drains the remainder. The output bounds apply to rename/unmerged whole-repository inspection too; no temporary spool or new CLI setting is introduced.

Verify streams the current typed plan once; it no longer probes and reparses the JSON to prioritize regeneration guidance for obsolete shapes. Unsupported versions and obsolete fields still fail, but the first diagnostic may change. Current schema-first and schema-last encodings remain accepted.

Progress streams JSONL without whole-document or physical-line byte buffers. Verify and progress use the opened file's initial length as their read budget and reject observed append/truncation rather than accept a valid prefix. This does not provide an atomic snapshot or detect all in-place rewrites. There is no fixed plan/report size cap added here; review's existing 64 MiB limit is unchanged. Decoded candidate/event payloads and comparison state still consume memory. Plan schema 10, report schema 10 and the package floor remain unchanged; no migration or fallback reader is added. Event kind discriminators require strings; object forms such as {"baseline_finished": null} are rejected before enum dispatch.

Review source boundary and internal ownership cleanup (Issues #1050–#1053)

Review source inspection now uses the same root-relative, no-follow file reader as plan/verify. Internal and external symlink/reparse-point components are not followed; these sources produce source_unavailable. This replaces review's previous acceptance of internal links and its special input error for a resolved external link. Invalid relative candidate paths remain errors. Missing, unreadable, oversized and nonregular sources remain unavailable, with the 64 MiB source limit and nonblocking FIFO rejection preserved. Symlinks to regular plan/report artifacts retain their existing input policy.

Review histories and revisions remain enabled. Selected review operations still validate the entire store, while retaining only the requested history. Worker candidate ownership and execution-finalization bookkeeping change internally; result classification, output/persistence acknowledgement, cleanup safety and shutdown deadlines retain their existing contracts. There is no new option, configuration file, compatibility adapter or migration. Report/event schema 10, plan schema 10, review schema 2, session schema 5, fingerprint schema 13 and the 0.14.0 package floor are unchanged.

Resolved individual mutant timeout (report schema 10)

JSON/JSONL report schema 10 adds the required nullable run_finished.resolved_mutant_timeout field. JSON places it in summary; JSONL places it in the final run_finished event. A resolved value is an exact { "secs": N, "nanos": N } duration copied from the individual process request. null means no mutant process request was constructed in this run, including baseline failure, empty selections and runs that only reuse stored results. The human summary prints the same cap without truncating to whole seconds.

This is the requested individual cap, not measured elapsed time, proof that a process started, or the remaining run-wide deadline. The total deadline can interrupt a process earlier. Timeout calculation, classification and exit codes are unchanged. There are no new timeout settings or saved-plan migrations.

Progress/review readers accept the current report format directly. Older report versions are not supported by the current reader; rerun when a current result is needed. The package floor remains 0.14.0; plan schema 10, session schema 5, fingerprint schema 13 and progress output schema 3 are unchanged.

Single progress output schema

progress emits schema 3 with or without --details. The required details field is null when details were not requested; a requested object retains available: false when the final adjacent pair cannot be compared. The single current definition is progress-result.schema.json. The separate v2 schema and the flag-dependent v1/v2 output contract are removed.

Read details == null as no request, and inspect details.available only for an object. The old output shapes are removed without a compatibility path. The package floor remains 0.14.0; this format change does not require a new minor series.

Display limits still affect only listed transitions. Comparison counts and stalled/saturated decisions retain their comparison rules. For current exit codes, see local execution without CI gates. Progress accepts only current report/event schema 10; plan schema 10, SQLite session schema 5, fingerprint schema 13, ranking rule 4, candidate schema 1 and mutant-ID v1 retain their formats.

Structured startup cleanup in 0.14.0

Report schema 9 introduced the structured startup fields below; current schema 10 retains them. The required nullable disk.janitor field replaces disk.stale_roots_reclaimed. A null means no janitor observation is available; it is different from an observed empty scan. Read schema-8 reports with their producing binary or rerun with this version. Changing only a saved report's version number does not convert it.

Schema 9 also requires derived status on JSON mutants[] records and JSONL mutant_finished events. Consumers can read the seven canonical verdicts without reclassifying process termination. Strict Rust readers check that status agrees with outcome, discard the received projection, and return exit 2 on a mismatch. An Exit(1) with close_timed_out output is error, not killed. JSON Schema validates status presence and enum membership; generic schema-only validation does not establish its semantic consistency with outcome. Update custom report producers to include the matching field. Human completion rows now include the full candidate ID together with location, operator, expressions and verdict.

run and verify include bounded details for ordinary startup retention (young roots, active leases and retain markers), failures and incomplete cleanup. The --verbose flag has been removed. Details retain at most 256 records, with at most 4096 UTF-8 bytes per message; failures take priority over ordinary holds. Capacity losses and message truncations remain explicit, and detail_omissions.suppressed_normal_details has been removed. Cleanup classifications and exit codes are unchanged. Plan schema 10, session schema 5, fingerprint 13, candidate schema 1 and mutant-ID v1 retain their formats.

Janitor reports inspected, reclaimed, already absent, preserved and unresolved roots separately. Deleted-entry counts include acknowledged marker, child and root deletions even before a later failure. On Windows an acknowledgement may still be delete-pending. These numbers do not measure freed physical bytes or the population remaining in the workspace directory. Selection is bounded to 256 candidates; scan interruption, postponed observed entries, uninspected selected roots and bounded-detail loss are reported separately. Unknown scan tails stay unknown. This notice supersedes earlier current report-version and package-floor statements below.

Rust execution callers no longer pass a ReportPresentation argument to run_loop, run_loop_with_control or VerifiedPlan::execute; the presentation type and argument have been removed. Migrate callers directly.

Rust callers construct or edit RunConfigData, then use RunConfig::try_from to obtain immutable checked execution settings. Shared reads remain available; semantic edits consume into_data() and require checking again. PlanConfig::into_run_config now returns a Result. The checked type guarantees the existing semantic rules, including cross-field limits and normalized import roots; filesystem freshness and destination safety remain preparation concerns. Strict review rejects invalid settings before project I/O, while progress keeps its opaque configuration contract.

New exception-hierarchy analysis excludes eager-import cycle members and applies a deterministic SCC-weighted depth bound of 256 to other modules. This can exclude candidates that the previous name-order-dependent traversal missed, including conservative bounds through large cyclic components. The separate class-ancestry limit is unchanged. Existing plan, fingerprint and candidate-ID formats are retained; saved-plan verification does not recompute candidates under the new graph rule. Regenerate a plan to analyze its sources with the new rule.

Report identity validation introduced before 0.14.0

Current JSON and JSONL report readers reject a candidate whose saved ID disagrees with its identity fields, including path, source hash, operator, span and replacement. Progress and review return exit 2 for this malformed input. Display line, column and symbol are not identity fields. Valid schema-8 writer output and mutant-ID v1 bytes are unchanged; no report conversion, schema change or new fingerprint version is required. This corrects invalid-input acceptance under the existing patch policy; the package compatibility floor remains 0.13.0.

Internal Rust callers now construct checked RunSelection values through all, explicit, or ordered and pass them to RunState::with_selection. The former filter constructors and later verification-metadata setter have been removed. Migrate callers directly; execution IDs and verification provenance are validated together at construction.

Early copy-budget admission

Known --max-copy-size exhaustion is rejected before snapshot content writes and may be reported before later source-content errors. Copy equality remains accepted. Rejection returns exit 2 without starting the baseline; the run summary is incomplete after cleanup. An authorized metrics sidecar can describe completed target discovery and cleanup, with no completed preflight or execution stages. Existing metrics destination protections remain enforced before admission.

Baseline restoration and result reuse in 0.13.0

After a successful baseline, hoimin restores the worker to its preflight snapshot before dispatching any mutant. Files created by the baseline are removed and modified files are restored. Restoration failure stops execution. Previously, the first mutant could inherit baseline changes and receive a different result from later mutants or a separate verify invocation. Correcting that behavior can change reported mutation scores.

Fingerprint schema 13 prevents results produced under the previous baseline policy from being reused. A fresh baseline alone would not repair a stored killed or survived result: compatible resume skips its execution. If no compatible incomplete run exists and the latest incomplete history uses an old fingerprint schema, --resume returns session.resume.incompatible. Use a new --session PATH, or deliberately start a new run without --resume. Existing databases and outcomes are retained without conversion or deletion. A compatible current run still takes precedence; completed old history retains fresh-run behavior.

The package compatibility floor is 0.13.0 because published v0.12.0 used fingerprint schema 12. Plan schema 10, report/event schema 8, SQLite session schema 5, ranking rule 4, candidate schema 1 and mutant-ID v1 remain unchanged. Existing valid plans need no regeneration for this change. The fingerprint field framing is unchanged apart from its version byte; discovery timeout remains outside execution compatibility. This notice supersedes older current fingerprint-version and release-floor statements below.

Discovery timeout ownership in 0.12.0

--analyzer-timeout is now a plan option. Remove it from direct run commands. Plans require normalized_config.discovery.analyzer_timeout; verify uses that saved deadline with no override. Runtime limits, recorded run configuration and execution fingerprints no longer contain this setting. The deadline remains cooperative across the complete discovery phase and cannot forcibly interrupt synchronous source reads or parsing.

Plan schema is 10, report/event schema is 8 and fingerprint schema is 12. Regenerate schema-9 and older plans with the intended original options and update report consumers to schema 8. Read old reports with their producing binary or rerun with this version. Keep old artifacts as needed; do not hand-edit schema numbers. Typed current-schema readers reject the obsolete runtime timeout field and missing discovery settings.

Two successful discoveries of the same inputs with different ample timeouts produce the same ordered candidates and candidate IDs. Their saved plan bytes differ, while their schema-12 execution fingerprints agree. Schema-11 fingerprint bytes are deliberately incompatible. An older incomplete fingerprint history can return session.resume.incompatible; use a new --session PATH in that case. Completed history retains the existing fresh-run behavior. SQLite session schema remains 5; no database migration or deletion is performed. Candidate schema 1, mutant-ID v1 and ranking rule 4 are unchanged.

The package compatibility floor is 0.12.0, after published v0.11.10. This notice supersedes the current version and release-floor statements in older notices below.

Single normalized project root in 0.11.0

Plan schema 9 and report schema 7 store the project root only at normalized_config.selection.root (under run in JSON reports). The former normalized_config.root field is rejected by plan and typed report readers even when it agrees with the selection root. Custom producers must remove that field; there is no fallback, alias or automatic conversion. Rust callers use config.selection.root; standalone Selection retains the same root field.

Regenerate schema-8 and older plans using the intended project, environment, original arguments and resource limits. Use the newly generated candidate IDs:

hoimin plan --root . --source src --fingerprint-file pyproject.toml -- python -m pytest -q > plan-v9.json
hoimin verify plan-v9.json --candidate '<ID_FROM_PLAN_V9>'
hoimin review list plan-v9.json --store reviews.sqlite3

Update JSON/JSONL report consumers to schema 7. Progress and review reject older reports; read them with their producing binary or rerun with this version. Plan regeneration cannot reconstruct old run results. Keep original files if needed and do not hand-edit schema numbers. Progress continues treating normalized configuration as opaque; review retains strict typed configuration validation.

Selection, path spelling, fingerprint schema 11 and fingerprint bytes are unchanged. Session schema 5, ranking and candidate identities are unchanged. The incompatible saved configuration shape raises the minimum release version to 0.11.0. The notices below describe earlier changes; this notice supersedes their current plan/report version and release-floor statements.

Single saved fingerprint input list in 0.10.0

Plan schema 8 stores fingerprint input records only in normalized_config.fingerprint_inputs. The former top-level fingerprint_inputs field is rejected. sources continues to record mutation targets separately. Verify compares current files with the nested list, and review protects those same files from review-store aliases. Missing lists, duplicate paths, invalid hashes and invalid paths remain rejected.

Regenerate schema-7 and older plans with this version, the intended project, environment and original plan arguments, then use the newly generated candidate IDs for verify or review. Both commands reject old schemas with regeneration guidance before decoding their old fields. For example:

hoimin plan --root . --source src --fingerprint-file pyproject.toml -- python -m pytest -q > plan-v8.json
hoimin verify plan-v8.json --candidate '<ID_FROM_PLAN_V8>'
hoimin review list plan-v8.json --store reviews.sqlite3

Retain platform-specific options and resource limits from the original invocation (including --allow-best-effort-memory when required on macOS). Keep old files if needed; hoimin does not convert, overwrite or delete them automatically. Do not hand-edit schema numbers. Report, session, ranking and fingerprint formats and fingerprint bytes remain unchanged. The minimum release version is 0.10.0 because v0.9.4 was already published when this incompatible plan change was prepared.

Duplicate report configuration fields

Review rejects repeated known fields in a current-schema report's run.normalized_config, including nested fields, regardless of their order or whether their values agree. Custom report producers must emit each known configuration field once. Required arrays, null rejection and unknown-field rules continue to apply to typed run configuration.

This corrects acceptance of invalid input. Current writers emit each field once, so their output needs no regeneration. Report schema 6, the 0.10.0 release floor, and other saved formats remain unchanged. Progress still accepts configuration as an opaque object or null in both JSON and JSONL, without applying review's configuration or project-root checks. No old-schema adapter or automatic file conversion is added. See the implementation and verification record.

Required saved configuration arrays in 0.9.0

Normalized saved configurations require explicit import_roots and fingerprint_files arrays. Run configuration no longer fills in missing import_roots, and plan configuration no longer fills in missing fingerprint_files. Missing and null arrays are rejected; empty arrays ([]) and nonempty arrays remain supported. Typed run-event readers and review's report reader enforce the run configuration contract. Verify rejects affected plans before running a baseline. Progress continues to treat normalized_config as an opaque object or null.

Regenerate plans missing either array. Read reports missing import_roots with their producing binary, or rerun to obtain current output. The array requirement alone needs no regeneration for data whose writers already include these arrays. That change retained plan schema 7; the schema-8 change above independently requires regeneration of old plans. Files are not converted or deleted automatically. Raw CLI defaults, optional fields, report schema 6, session schema 5, fingerprint schema 11 and fingerprint bytes were unchanged. The minimum release version for that change was 0.9.0 because v0.8.12 was already published when it was prepared.

Typed mutation outcomes in 0.8.0

Report schema 6 replaces independently stored mutation status and optional evidence with outcome: executed results require termination, output state, output, and elapsed time; reused results permit only killed or survived; not_run means no classified completed result is available and does not imply the process never started. Status derives from the outcome. Diagnostics do not reconstruct state. See Mutation result outcomes.

Update report consumers to schema 6. Read schema-5 and older reports with their producing binary, or rerun with the intended version. Session schema 5 stores the typed outcome directly and rejects initialized schemas 1-4 and unsupported future versions. Preserve old databases and choose a different --session PATH for a new run. There are no compatibility adapters or automatic file conversions. Mutation outcomes do not change the current plan format or fingerprint schema 11. The 0.8.0 floor covers these incompatible saved formats because the 0.7.x line has already shipped.

Review references and stores in 0.8.0

Review JSON and SQLite review stores use version 2. Plan references contain only path/hash metadata; report references contain that metadata under artifact and a required run_id. A review without a report retains report: null. Version-1 stores and old reference shapes are rejected without conversion or fallback. The 0.8.0 floor reflects this incompatible public review format after the released 0.7 series.

Update strict review JSON consumers to schema 2 and its nested report reference. Keep old review stores with their producing binary when their history is needed; record new reviews at a different --store PATH. Existing stores are not converted, overwritten, or deleted automatically. CLI arguments/defaults and independent report, plan and session formats do not change for this review refactor; no OS support or package layout change is introduced. See review reference and store usage for the command contract and the review schema for fields.

Environment snapshots in 0.7.0

Plan schema 7 and report schema 6 retain the environment snapshot introduced in plan schema 6 and report schema 5, replacing the independent environment-name and optional-hash fields. Untracked inputs use {"state":"untracked"}; captured inputs include state, canonical nonempty names, and a lowercase 64-hex digest. Captured values remain absent from output. The 0.7.0 floor reflects this incompatible saved-format and report-reader change.

Regenerate schema-6 and older plans with the intended environment. Update strict report consumers to schema 6; read schema-5 and older reports with their producing binary or rerun with this version. Existing files are not automatically converted, deleted, or replaced. Fingerprint schema 11 and its bytes are unchanged, so the environment representation change alone does not invalidate compatible sessions; the typed-outcome session schema change described above independently requires a new database. If a run is rejected for another compatibility reason, choose a different --session PATH. See Explicit inherited environment fingerprints.

Saved changed selection in 0.8.0

The release floor is 0.8.0 because this saved-format and public report-reader redesign is incompatible with the published 0.7 series. The latest stable release checked for this change was v0.7.3.

Plan schema 7 and report schema 6 encode normalized changed as null when disabled, or as an object containing context and optional diff_base when enabled. The former boolean changed and sibling changed_context / diff_base fields are rejected. Regenerate plans containing the former representation. Read historical reports with their producing binary, or rerun to obtain current output; regenerating a plan does not recover a past report. Files are not automatically converted or deleted. CLI flags, Git comparison semantics, and effective target fingerprints retain their meaning.

Typed session intent in 0.8.0

Report schema 6 replaces normalized session/resume pairs with one session object. Disabled sessions use {"mode":"disabled"}. Fresh and resumed sessions use {"mode":"fresh","config":{"path":"..."}} and {"mode":"resume","config":{"path":"..."}}. The raw CLI options remain --session and --resume. Normalized inputs reject old session pairs and the obsolete resume field; no conversion is attempted. Read older reports with their producing binary or rerun with this version. The minimum release version is 0.8.0: the 0.7 series is already published, so this incompatible report/configuration change starts a new minor series. Regenerate saved plans with the intended binary and inputs; update report readers to schema 6. Runtime session intent remains absent from plan schema 7; typed outcomes require session database schema 5. Existing session compatibility checks still apply; choose a new session path if those checks reject an old session.

Validated verification selection in 0.8.0

Verification metadata retains its current JSON shape and schema numbers. Readers now reject known fields that disagree: mode/policy/scope mismatches, sampling on non-sampled selections (including null), missing sample evidence, truncated sample populations, zero requests, selected counts above requests, and empty, duplicate or oversized sample IDs. A sample's selected count must equal its ID count. Reports continue to accept non-sample selected=0 and additional outer metadata. The nested sampling object retains its documented closed shape.

Correct writer-produced data needs no conversion. For contradictory hand-built metadata, regenerate the report or correct the producer; readers do not guess or repair provenance. Current preview/report schemas express the mode relationships; Rust additionally checks cross-field counts. The existing 0.8.0 release floor is unchanged. Internal Rust callers use validated VerificationSelection constructors and read-only accessors instead of public struct fields.

Required session budgets in 0.8.0

New session databases require a non-NULL positive eight-byte BLOB mutant budget. An existing schema-5 database with valid budgets still opens and resumes without DDL conversion. A NULL budget in a current database created with earlier, nullable DDL now produces session.corrupt instead of the former budget-specific session.resume.incompatible. Invalid rows are rejected without repair; preserve the database for inspection and choose a different --session PATH for a fresh run.

Normal stored bytes, session schema 5, CLI behavior and the 0.8.0 release floor remain unchanged. No migration is needed for valid current databases. Unsupported schemas 1–4 remain rejected; this change does not restore legacy migration paths.

Public interfaces

Interface Maintenance rule User action when it changes
CLI arguments, defaults and exit codes Document and test the current behavior. Cross-version invocation compatibility is not required. Use the current help and usage guide.
JSONL execution reports Maintain one current schema. Progress and review accept only report schema 10, matching the writer. Rerun to obtain current output when needed.
Saved plan, ranking and candidate IDs These are checked execution inputs, not timeless interchange formats. Changes to schema, ranking, identity, source or fingerprints can invalidate a plan. Regenerate the plan with the intended version and inputs. Do not hand-edit versions or IDs to bypass validation.
Session database and resume Resume requires the implementation's current schema and fingerprint checks. Historical database migration is not required. Start a new session when an older database is rejected.
Default operators, profiles and selection Changes can alter candidate count, runtime and the population behind a score. Review the operator set and budget; use matching candidates and validation settings for comparisons.
Supported Python, OS and architecture Document current requirements and validate supported targets. Use an environment supported by the current release.
Archive and wheel layout, installation and runtime dependencies Document and test the current package layout and installation procedure. Follow the current installation instructions.
Internal Rust APIs, caches and diagnostic logs No independent stability guarantee. Versioned reports are distinct from diagnostic output. Use the documented CLI and report schemas; do not parse log wording as a stable protocol.

See the usage guide for runtime contracts and the generated CLI reference for argument definitions. This policy does not make a newer binary accept an older schema or weaken input validation.

Session load outcomes in 0.7.0

The 0.7.0 floor removes the fallback report reason no_compatible_run. Report schema 6 retains the six reasons produced by session selection; the removed reason described only externally supplied legacy completion events. Read reports containing that reason with their producing binary, or rerun with this version.

Rust event callers construct SessionLoaded { id, outcome } with SessionLoadOutcome::Resumed(SessionResumeRef) or Fresh(ResumeFreshReason). The old resume/fresh_reason fields and missing outcomes are rejected. Update event producers; no compatibility adapter supplies a reason. This changes no SQLite, fingerprint or plan format, so this change alone requires no new session or plan regeneration. Existing schema/fingerprint compatibility checks still apply. Existing files are retained without automatic conversion.

Report reader support in 0.6.0

The 0.6.0 version floor removes progress support for schema-2 JSON and schema-3 JSON/JSONL. Schema-4 JSON and JSONL remain supported. Keep the old binary with historical reports or rerun with the intended version; do not hand-edit schema numbers. This is a reader-support removal; report output remains schema 4.

Canonical saved enum names in 0.7.0

Saved typed configurations accept only auto / fixed, unix / windows, and type_dict_mapping. The former aliases Auto, Fixed, Unix, Windows and type_mapping are rejected. Regenerate plans containing old names; do not hand-edit saved inputs to bypass validation. Read historical reports with their producing binary or rerun to obtain current output. Plan regeneration alone does not recover past reports. Canonical output shapes are unchanged.

Choosing the release floor

The manifests contain a minimum version, not the next exact patch number. Release automation chooses the higher of that floor and the next patch after the highest stable tag, with the existing history and atomic reservation checks. Changing the floor must keep Cargo.toml, pyproject.toml, Cargo.lock, uv.lock and fuzz/Cargo.lock consistent.

Keep the current floor unless a release decision explicitly selects a new series. Changes to CLI arguments, defaults, exit codes, schemas, saved inputs or package layout do not by themselves require a minor-version increase. Describe the current behavior and any necessary plan regeneration, new session or installation change. Do not design compatibility support or reader migration around hypothetical consumers.

For example, with a highest tag of v0.3.9, a floor of 0.3.0 yields v0.3.10; a floor of 0.4.0 yields v0.4.0. If v0.4.0 already exists, that floor yields the next patch in that series. Merely updating the floor does not migrate saved data. Never rewrite published tags or replace published files to repair a release.

Current operator selection API

The internal Rust helper MutationOperatorSelection::all_legacy() is removed. Callers use MutationOperatorSelection::default() for the current defaults, or specify the exact operators they intend to select in configuration. The current default remains the same 54 operators; serialized explicit subsets do not gain operators automatically. Selector families and the full operator catalog retain their separate meanings.

This internal source migration adds no compatibility adapter and requires no independent version-floor increase. The combined release floor is 0.13.0 for the baseline restoration change above. CLI defaults, saved formats, fingerprints and candidate identities are unchanged by this API cleanup. Existing valid plans need no regeneration for this change.

Owned Rust writer APIs

The internal Rust entry run_with_io is replaced by run_with_writers, which accepts owned Write + Send + 'static outputs. Shell run entry points and VerifiedPlan::execute require the same ownership. Shared collecting writers can supply snapshots after execution. Shell errors have already been reported; callers must not print them again. See the developer migration.

This internal Rust source migration does not require a version-floor increase. CLI arguments, exit codes, report schemas, plans and sessions do not change; existing files require no conversion or deletion.

Report-reader and source-access boundaries (PR #1105)

This internal cleanup changes neither CLI arguments, JSON/JSONL schemas, exit policy nor saved plans/sessions. Existing valid artifacts need no regeneration for this change, and no version-floor increase is included.

Shared report-input diagnostics now use neutral report wording, including when review reads them. Review performs project-root resolution and its complete-run/ passing-baseline checks after structural validation. If a report has both an invalid structure and an unavailable project root, the structural error takes precedence. Root-resolution errors identify the report and requested project.

For Rust callers, progress::read_report returns ReportReadError for input failures. ProgressError wraps input errors and owns progress output serialization/write failures. Source reads within the CLI use source_file without depending on workspace lifecycle types. See the developer boundary description.

PR and release notices

Fill in the PR template's usage and format section before merging. Describe:

  • which public interfaces change, or why there is no user-visible impact;
  • the current commands/formats and any need to regenerate a plan or start a session;
  • a version-floor change only when the PR deliberately changes it;
  • changed defaults, support requirements and score-comparison limits.

The existing workflow generates GitHub release notes from merged PRs. Use a clear PR title and description; when editing the generated release description, organize the relevant entries under Added, Fixed, and Usage and format changes. The generated notes describe the current release; they do not promise compatibility with earlier releases. PyPI publication continues through the existing TestPyPI gate.

An illustrative notice for a future change is:

## Added
- Added an explicitly selected operator `example_operator`.

## Fixed
- Stopped proposing invalid candidates in a documented unsupported context.

## Usage and format changes
- The default profile now includes `example_operator`.
- Recreate saved plans to use the new default population. Compare scores only
  after matching candidate selection and validation settings.
- Start a new session if an older session is rejected.

The operator and changes above are examples, not claims about a shipped release.

Before merging a release-affecting PR

  1. Classify the interfaces and default behavior affected by the final diff.
  2. Check the version floor and all five manifests/lockfiles if it changes.
  3. Describe current usage and link the updated usage/schema documentation.
  4. Run checks for the changed contract; reuse existing tests rather than adding wording checks or a separate documentation E2E suite.
  5. Preserve the existing validated-artifact, provenance and TestPyPI/PyPI gates. A failed check must not be bypassed to ship a compatibility change.

This is a review checklist, not a claim of formal compatibility verification. No retrospective rewrite of reports, session databases or old release notes is required. Revisit the policy before a 1.0 release or a new distribution interface.

Session initialization change (Issue 882)

Issue 882 originally raised the release floor to 0.6.0 by removing automatic upgrades from schemas 1-3. At that revision, new databases received schema 4 and existing schema-4 databases reopened. The typed-outcome schema-5 contract above supersedes that schema-4 policy: initialized versions 1-4 are now rejected. Keep old databases with their producing binary, and choose a different --session PATH for a new run. hoimin does not transform, remove or replace the old database. See Sessions and resume.