tools tier

tools-mutation-prove

HARVEST-PLAYBOOK Sec13.3 mutation proof: mutate -> must-go-red test -> byte-identical restore.

HARVEST-PLAYBOOK Sec13.3 mutation proof: mutate -> must-go-red test -> byte-identical restore.

Tiertools
Roleunclassified (baselined)
Pathcrates/tools/mutation-prove
Edition2021
Targetstools-mutation-prove
Public items1 across 0 modules
Tests15

What it is for

tools-mutation-prove -- HARVEST-PLAYBOOK Sec13.3 mutation proof, ported from scripts/harvest/tools-mutation-prove.sh.

Backs up FILE (never git checkout), applies a single-mechanism MUTATION, runs TEST, requires it to go RED (a surviving mutation = vacuous test = BLOCK), then restores FILE and verifies the restore is byte-identical (direct byte comparison).

Usage: tools-mutation-prove <file> <test-cmd> <mutate-cmd>

Exit codes (mirror the original bash script): 0 - mutation proven (test went red, file restored byte-identical) 1 - mutation survived (test stayed green) -- vacuous test, BLOCK 2 - usage error / target file does not exist 3 - mutate-cmd did not change the file (pattern did not match) 4 - restore did not come back byte-identical after a kill

Capabilities

RestoreGuard

tools-mutation-prove -- HARVEST-PLAYBOOK Sec13.3 mutation proof, ported from

Item
RestoreGuard :: fn drop(& mut self)

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
RestoreGuard :: fn drop(& mut self)

No pub use re-exports: every item above is declared in this crate.

Boundary

Depends on no other workspace tier.

Shares tier tools with 84 other crates: tools-advisory-reach, tools-archive-guard, tools-artifact-scaffold, tools-ask-ai-core, tools-ask-ais, tools-ask-gemini, tools-book, tools-book-report, … (84 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)tools
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/tools/mutation-prove
Vocabulary in force (lexicon)current

Dependencies

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
anyhow^1noalways

Development. None.

Build. None.

Depended on by. Nothing in this workspace.

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
bintools-mutation-prove`src/main.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests15
Integration tests0
Examples0
Doctests0

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc01
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 0
    "No rustdoc detected" : 1

Metrics

MetricValue
Rust source files1
Source lines384
Code lines284
Public API items1
Public modules0
Tests15
Examples0
Cargo features0
Direct runtime dependencies1
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "method" : 1
pie showData
    title Rust source composition
    "Code" : 284
    "Blank or comment" : 100

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All tools · Manual