Crashtest docs

Exit Rules

The exit contract is the CI interface. Three values, exactly:

Exit Reads as CI behavior
0 Nothing new weak, nothing old broke Pass
1 A NEW 🛡->⚡ change: either a fresh EXPLOITED finding, or a previously-REFUSED surface that regressed Fail the PR
2 Configuration problem (missing/bad config, unreachable handlers table) Fail loudly and visibly - it’s a real gap in adoption, not a “skip”

The delta principle

Your committed labs/crashledger.json is the baseline, not the goal. CI compares the fresh run against it:

Read-only diffs: run --expect-baseline <path>

By default crashtest run rewrites labs/crashledger.json + labs/hardening.md (that’s how you cut a baseline). In CI/hosted lanes the runner must be able to attack a repo it has no write access to:

crashtest run --config ../mytarget/crashtest.config.js \
              --expect-baseline ../mytarget/labs/crashledger.json

Why config errors exit 2, not 1

session: config file missing - exit 2 - the distinction matters: harness-wide faults report as findings on the attack level (loudly, with cause), but a misconfigured repo is not evidence about your code. It’s evidence about the run. Exit-2 keeps “your app is weak” semantically very far from “the run could not be trusted.”

The opt-in exception: --allow-vacuous (issue #37)

A repo in the pre-handler lifecycle state (a shell adopted the pinned install before it has handlers to attack) can keep its CI step LIVE instead of parking it behind hashFiles arm-gates:

Bounded verdicts

🔒 BOUNDED = “deliberate risk, named owner, explicit bound.” Without the owner/bound pair, the runner demotes it to EXPLOITED and surfaces the reason - an accepted risk with no accountability matrix is a finding (PRD principle 6).

The PASSED verdict (v1.2.0)

✅ PASSED = “the SAFE path was exercised and held end to end” - a positive probe, not a defense claim. It never joins the REFUSED baseline (the CI rule tracks defense regressions, not safe-path snapshots), it is never a finding, and it renders in its own report section when present. Two directions keep it honest:

A PASSED row that grades EXPLOITED later fails CI as a NEW finding - the safe path got struck. The family taxonomies carry the same bucket (eyestruct’s verdict ledger ships PASSED), so a PASSED row reads the same across hosts.

Same commit -> same findings

The seeded RNG and in-process transport make every run deterministic: gone is the flaky security suite. One surface cherry-ticks once, then holds its verdict across your CI forever.