Observed exhibit / Value
Observed exhibit Value
Original input: empty string, space, tab ["", " ", "\t"]
Baseline failure IndexError: list index out of range at batch.py:32, _persist_usable
Corrected original replay {"status":"rejected","reason":"no_usable_records","stored":0,"skipped":3}
Reduced input: no elements [], with the same baseline exception/site/source identity
Corrected reduced replay {"status":"noop","first":null,"stored":0,"skipped":0}
Seed row after each corrected call [[1,"preexisting"]], each starting from its own fresh database

apply_batch_baseline attempts to read the first usable string before starting a transaction. Both inputs leave none, causing the recorded IndexError. apply_batch_corrected handles their required outcomes separately before storage. These are retained local observations: the suite catches the callable exception; a separate recorded child lets it escape and exits 1. Inspect the corrected replays and the uncaught traceback.

01 / The failure and the obligation

What should an escaped crash become?

An escaped-crash closure record connects the original failure, required behavior, implemented correction and supporting observations. It keeps wider recurrence questions open until their own evidence exists.

A crash signature identifies a failure mechanism; it does not decide whether the correct response is rejection, a no-op or completed work.

Confirmation testing revisits previously failing behavior after a correction. Regression testing examines adverse consequences of the change, with scope informed by impact analysis. Those activities can share tests while supporting different conclusions. ISTQB section 2.2.3

Question / Evidence to retain
Question Evidence to retain
Did this failure occur? Exact input/state, implementation, environment and observed signature.
Was its behavior corrected? Same-witness replay against an independently justified response/effect oracle.
Could the repair lose legitimate work? Applicable normal and mixed cases, plus a control the oracle must reject.
What supports wider closure? A defined scope of callers, states and assumptions, with their actual checks and remaining gaps.

02 / Start with a usable record

Free escaped-crash closure worksheet

Copy this record into an issue or repository document. Start with one failure and one named entrypoint. Keep unknowns explicit, and assign unresolved behavior to its actual decision owner. The filled record uses the same fields.

ESCAPED-CRASH CLOSURE RECORD

IDENTITY AND ORIGIN
Record ID / revision / decision this record supports:
Record owner / executor / reviewer / acceptance authority:
Origin: observed incident | observed teaching fixture | illustrative |
        unconfirmed report | plausible missing precondition
Source report and retained original evidence:
Observed impact / affected scope / unknown impact:
Evidence status: NOT RUN.
Instance decision: NOT ACCEPTED.
Wider-class decision: NOT ASSESSED.

PREREQUISITES AND ACTUAL BOUNDARY
Actual entrypoint / signature / callers / transitive call path:
Input representation and admitted domain:
Required incoming state and preconditions:
How preconditions are established; assumptions not enforced:
Dependencies, tools, runtime, configuration and access needed:
Starting-state fixture / reset procedure / effect containment:
Observation points and completion milestone:
Excluded interfaces/states and why they do not support this claim:

ORIGINAL FAILURE
Original revision/build and exact source identity:
Original input bytes/value/sequence and initial state:
Original command, working directory and environment:
Runtime/dependency versions, settings and relevant nondeterminism:
Expected behavior at the time and its authority:
Actual returned value or exception/signal/timeout:
Exception type/message/site and complete trace location:
Caught callable exception or uncaught process termination:
Raw stdout/stderr, exit code and what that exit means:
Evidence location, hashes and attempt/run identity:
If unreproduced: attempted conditions, actual observations and uncertainty:

REDUCTION
Original witness retained at:
Same-failure predicate, including signature/site/source and prerequisites:
Reduction method, exact candidate sequence and acceptance criterion:
Actually executed calls / retained reductions / rejected or unresolved steps:
Reduced witness and retained evidence:
Did reduction change the business scenario or required correct outcome?
Original regression expectation:
Reduced regression expectation:
Minimality claimed, and its exact search/operation boundary:

REQUIREMENT AND INDEPENDENT ORACLE
Requirement ID/revision, authoritative wording and source:
Required response, exact keys/types/values and error semantics:
Required complete state/effects, ordering and observation time:
Forbidden effects; preexisting state that must survive:
Literal expected values or independent derivation:
Oracle author/reviewer; independence from implementation outputs:
Unresolved policy question / authorized owner / decision needed:

IMPLEMENTATION AND HARNESS
Original implementation identity / actual callable:
Correction identity / actual callable / what changed:
Harness, adapter, case corpus and oracle source identities:
Evidence that the harness invokes the intended implementation:
Commands, working directories and output locations for each check:
Prerequisite failures, expected failures and passing-exit meanings:

CORRECTION, REPLAY AND CONTROLS
For EACH original/reduced/neighbor/control case:
  Case ID and purpose:
  Input/sequence and reset state:
  Literal expected response and complete state/effects:
  Candidate/source/runtime/configuration:
  Exact command and run identity:
  Raw actual response or exception; immediate and later state:
  Gate result, exit meaning, evidence reference:
Truly empty / all-invalid-after-filtering / mixed cases, if applicable:
Normal work-preservation cases and rationale:
Sensitivity control and the wrong behavior it must expose:
Scheduled / executed / distinct cases / repeated invocations:
Observed correction and same-witness replay conclusion:

BOUNDED CLOSURE
Instance claim supported, contradicted or unresolved:
Checked siblings/states and their evidence:
Wider failure-class definition and applicability rationale:
Unperformed checks, blockers and claims they leave open:
Disposition / decision maker / evidence basis / residual scope:
Merge or release authority, if separately granted:
Stale-evidence triggers: requirement/domain, code/callers, oracle/harness,
  runtime/dependencies, configuration/schema or state assumptions.
Accountable next action / named person or queue / due or decision trigger:
Reopen condition and location of the continuing record:

03 / An observed failure and an implemented correction

An allblank batch reaches a nonempty assumption

This is a newly authored fictional Python batch helper with an authored teaching policy and actual retained local executions. No customer incident or historical test suite is authenticated. In this kit, existing-populated names a newly authored selection of two populated cases. Origin

Name the interface before calling the input empty

The actual baseline entrypoint is apply_batch_baseline(db, batch); the correction is apply_batch_corrected(db, batch). Both are in the same frozen batch.py. There is no supplied pair of historical and fixing commits.

The direct-call preconditions are type(batch) is list, every element has exact type str, and the supplied SQLite connection has no active transaction. The harness checks the list/string fixture shape. This does not establish an upstream parser or validator.

The authored contract distinguishes three situations at that boundary:

Incoming batch / Required behavior
Incoming batch Required behavior
Truly empty [] Return the exact no-op response; preserve existing rows.
Nonempty, but all strings blank after classification Reject with no_usable_records and the skipped count; preserve existing rows.
At least one usable string, including a mixed batch Append every usable original string in order; report the first usable string and exact stored/skipped counts.

Here, “all-invalid-after-filtering” means all admitted strings classify as blank. It does not mean arbitrary malformed input. strip() is used only to classify blankness; " padded " must be stored with its original spaces. Contract · Python string semantics

Each invocation starts from a fresh on-disk database containing [[1,"preexisting"]]. The harness records the complete ordered rows before the call, immediately afterward and after closing and reopening the connection. Reopening observes stored state at that point; it is not a power-loss or crash-recovery test.

The original failure and the retained smaller witness

The baseline filters blanks and calls _persist_usable. That helper reads the first usable value to supply a real first INSERT, before inserting the remainder:

first = usable[0]
db.execute("BEGIN IMMEDIATE")

For ["", " ", "\t"], the filtered list is empty. The first line raises IndexError: list index out of range at batch.py:32 before the transaction begins. That is consistent with Python's out-of-range sequence-access semantics. Baseline source · IndexError

The suite records the caught exception, no returned response, unchanged rows and no open transaction. Separately, crash_child.py calls the byte-identical baseline without a catch. Its traceback runs through crash_child.py:10, batch.py:48 and batch.py:32, ending in the recorded IndexError and exit 1. Here, exit 1 means an unhandled Python exception; a suite gate's exit 1 means rejected observations. A generic setup error establishes neither. Caught observations · Child report

The actual first-element deletion sequence was:

["", " ", "\t"] → [" ", "\t"] → ["\t"] → []

Four calls retained three deletions. Every call preserved the exception type, message, file, function, line, source expression and batch.py SHA-256. This is one measured deletion sequence, not an execution of ddmin or a general delta-debugger, and not a global semantic-minimum claim. Reduction observations

Keep both witnesses. The original nonempty allblank batch must reject; the reduced empty list must no-op. Reduction isolated the same failing mechanism while changing the required successful outcome.

The implemented correction still performs valid work

The correction branches on raw emptiness and filtered emptiness separately, then uses the same persistence path:

def apply_batch_corrected(db, batch):
    if not batch:
        return {"status": "noop", "first": None, "stored": 0, "skipped": 0}
    usable = [body for body in batch if body.strip()]
    if not usable:
        return {"status": "rejected", "reason": "no_usable_records",
                "stored": 0, "skipped": len(batch)}
    first = _persist_usable(db, usable)
    return {"status": "applied", "first": first, "stored": len(usable),
            "skipped": len(batch) - len(usable)}

The seven corrected replays include both retained witnesses. cases.json supplies independent literal responses and complete row IDs/bodies. The strong gate checks exact keys, types and values, initial rows, absence of an unexpected exception, reopened rows and absence of an open transaction. Immediate rows are retained observations, not a separate comparison in that gate. Harness · Gate implementation

Five gates, with different meanings

Implementation and selection / Gate / Passed / calls / Child exit
Implementation and selection Gate Passed / calls Child exit
Baseline, existing-populated Response/state 2 / 2 0
Baseline, full-seven Response/state 4 / 7 1
Corrected, full-seven Response/state 7 / 7 0
Always-noop, full-seven No exception 7 / 7 0
Always-noop, full-seven Response/state 1 / 7 1

The deliberately wrong apply_batch_always_noop is a sensitivity control. Its six strong-gate failures comprise four populated/mixed cases that lose required stored work and two allblank cases with the wrong rejection response. The empty case alone meets its literal expectation. Control observations

The five gates make 30 exported-function calls; four reduction calls and one uncaught-child call bring the total to 35. Seven regression arrays plus two reduction intermediates give nine distinct arrays. Repeats add no unique cases. No class-closure denominator or mutation score was measured.

Filled escaped-crash closure record

The record below is self-contained. Kit file references use the extracted root; the original capture command is preserved separately.

ESCAPED-CRASH CLOSURE RECORD

IDENTITY AND ORIGIN
Record: empty-filtered-batch-teaching-v1 / frozen teaching evidence.
Decision: assess the implemented helper correction on the selected cases.
Origin: newly authored fictional implementation and policy; observed local
execution.
Impact observed: baseline raises on the three selected empty/allblank cases.
No production impact, customer incident or historical suite is authenticated.
Execution provenance: primary capture recorded in PROVENANCE.json.
Individual executor: not named in that public capture.
Policy authority: authored exercise contract in contract.json.
Project reviewer/acceptance owner: not assigned; no project approval claimed.
Evidence: OBSERVED. Instance: selected correction cases meet the oracle.
Wider class: NOT ESTABLISHED. Production/release acceptance: NOT ASSESSED.

BOUNDARY AND PREREQUISITES
Entrypoints: apply_batch_baseline(db, batch);
apply_batch_corrected(db, batch); control apply_batch_always_noop(db, batch).
All are exported functions in the same batch.py, not separate commit revisions.
Suite call path: reproduce.py → run_cases.py → harness.observe →
IMPLEMENTATIONS[implementation](db, batch) → selected exported function.
Valid work calls _persist_usable.
Domain: exact list; every element exact str.
Incoming state: supplied connection has no active transaction.
Harness checks list/string shape; no upstream validator is established.
Each call gets a fresh on-disk database:
  stored_records = [[1,"preexisting"]]
  in_transaction_before = false
observe_rows selects record_id, body ordered by record_id.
No external service, parser, queue or notification path is invoked.
Prerequisite: Python 3.10+ with standard-library sqlite3, writable temporary
storage and an absent/empty output directory. This is not a tested version matrix.

SOURCE AND HARNESS IDENTITIES
batch.py SHA256:
56400c302dcdb8df7121b1651216b8edd239d50b1a79aff3c172f9d90603711d
harness.py SHA256:
67f35658af6e0113f886c77831fd53bccce97fd57106b139185490159d5af88f
run_cases.py SHA256:
e3e3db1f018c9dda35966dcbca218b771e7c15d21db1a299d698fa20359f23cd
cases.json SHA256:
e3e15d59c6bb8f0c554e2ad1043ba75dd2e84ce73f9c9af5712ecf28d8c6af60
contract.json SHA256:
073b507b6cd5ac51ea41bcb5d3bc4e6d67e3f616db08e1114d871880164ba0dd
reproduce.py, minimize.py, crash_child.py and all raw-log identities:
manifest.json, SHA256SUMS and PROVENANCE.json.

ORIGINAL INPUT, ENVIRONMENT AND FAILURE
Original: ["", " ", "\t"].
Primary capture: 2026-10-28T12:54:40.172796+00:00 through
2026-10-28T12:54:40.574967+00:00.
Python 3.14.7; SQLite 3.53.4; optimize_flag 0.
Interpreter: /opt/homebrew/opt/python@3.14/bin/python3.14
Python build: 3.14.7 (main, Aug  5 2026, 10:29:49)
[Clang 21.0.0 (clang-2100.1.1.101)]
Connection: isolation_level=None; legacy transaction control explicitly pinned
where available. Observed autocommit_attribute=-1, journal_mode="delete",
synchronous=2 (FULL). Valid path: BEGIN IMMEDIATE, INSERT first/remainder, COMMIT.
The source has SQLite-error rollback handling; that branch was not exercised.

Original wrapper working directory: absolute path not separately recorded.
The command retains its original repository-relative paths; it is not a
kit-root recipe. Use the portable replay below.
Original capture command:
PYTHONDONTWRITEBYTECODE=1 python3 docs/research/remaining-library-refinement-2026-10-28/04-crash-suite-missed/research/fixture/reproduce.py --output-dir docs/research/remaining-library-refinement-2026-10-28/04-crash-suite-missed/research/captured/primary

Observed failure:
  type = IndexError
  message = list index out of range
  file/function/line = batch.py / _persist_usable / 32
  source_line = first = usable[0]
  source SHA = batch.py identity above
The failure precedes BEGIN and INSERT.
Caught-suite record: response=null means no response was returned, not a
successful None return; caught_exception contains the signature.
Before, immediate and reopened rows = [[1,"preexisting"]].
in_transaction_after=false.
Strong gate failures: unexpected_exception, response_mismatch.
Suite stderr is empty because the callable exception is caught and recorded.

Separate uncaught child:
  crash_child.py:10 → batch.py:48 apply_batch_baseline →
  batch.py:32 _persist_usable → IndexError: list index out of range
  stdout = {"action": "calling apply_batch_baseline", "batch": ["", " ", "\t"]}
  exit=1: actual unhandled Python exception termination, not an OS signal.
  Before and reopened rows = [[1,"preexisting"]].
Full traceback: observed/uncaught-child.stderr.txt.
Source copies are byte-identical to batch.py and crash_child.py.

REDUCTION
Executed first-element deletions:
["", " ", "\t"] → [" ", "\t"] → ["\t"] → []
Four calls, three retained deletions; no rejected step in this sequence.
Predicate: same exception type/message, file/function/line/source expression
and exact batch.py SHA. Each call resets the same starting state.
Original witness retained in cases.json as original-all-blank.
Reduced witness retained as minimal-empty.
Same mechanism, different policy: original must reject; reduced must no-op.
No general ddmin execution or globally minimal semantic case is claimed.

REQUIREMENT AND LITERAL INDEPENDENT ORACLE
Contract: empty-filtered-batch-teaching-v1.
Oracle authorship basis: authored exercise contract and literal cases.
Separate project oracle reviewer/sign-off: not recorded.
Blankness is classified with strip(); usable original text is preserved.
Raw empty no-ops; nonempty allblank rejects; usable strings append in order.
Exact response keys/types/values and ordered row IDs/bodies are required.
Every case starts from [[1,"preexisting"]]; no transaction may remain open.
The following are literal expectations from cases.json, not worker outputs.

minimal-empty
  input: []
  response: {"status":"noop","first":null,"stored":0,"skipped":0}
  rows: [[1,"preexisting"]]

original-all-blank
  input: [""," ","\t"]
  response: {"status":"rejected","reason":"no_usable_records","stored":0,"skipped":3}
  rows: [[1,"preexisting"]]

blank-singleton
  input: [""]
  response: {"status":"rejected","reason":"no_usable_records","stored":0,"skipped":1}
  rows: [[1,"preexisting"]]

single-valid
  input: ["alpha"]
  response: {"status":"applied","first":"alpha","stored":1,"skipped":0}
  rows: [[1,"preexisting"],[2,"alpha"]]

multiple-valid
  input: ["alpha","beta"]
  response: {"status":"applied","first":"alpha","stored":2,"skipped":0}
  rows: [[1,"preexisting"],[2,"alpha"],[3,"beta"]]

mixed
  input: ["","alpha"," \t","beta"]
  response: {"status":"applied","first":"alpha","stored":2,"skipped":2}
  rows: [[1,"preexisting"],[2,"alpha"],[3,"beta"]]

padded-valid
  input: [" padded "]
  response: {"status":"applied","first":" padded ","stored":1,"skipped":0}
  rows: [[1,"preexisting"],[2," padded "]]

All seven corrected responses and immediate/reopened row observations match
these literal values; caught_exception=null and in_transaction_after=false.
Strong gate asserts initial rows, no exception, exact typed response, exact
typed reopened rows and no open transaction. Immediate rows are recorded.
Unresolved policy: none inside the authored exercise.
Adoption into a real project needs that project's requirement owner; unassigned
here. This record establishes no policy for other representations or active
incoming transactions.

ACTUAL CORRECTION AND REPLAY
Correction: apply_batch_corrected tests raw emptiness, then filtered emptiness,
before using _persist_usable for all usable original strings.
Both original-all-blank and minimal-empty ran against baseline and correction.
single-valid/multiple-valid preserve ordinary work; mixed checks selective
storage; padded-valid checks that classification does not rewrite stored text.
All implementation variants coexist in the frozen file; no mid-run edit occurred.

CAPTURED CHILD COMMANDS
Captured child working directory: fixture root for suites and minimizer,
with the same file layout used at the extracted kit root.
/opt/homebrew/opt/python@3.14/bin/python3.14 -B -u run_cases.py --implementation baseline --selection existing-populated --gate response-state
/opt/homebrew/opt/python@3.14/bin/python3.14 -B -u run_cases.py --implementation baseline --selection full-seven --gate response-state
/opt/homebrew/opt/python@3.14/bin/python3.14 -B -u run_cases.py --implementation corrected --selection full-seven --gate response-state
/opt/homebrew/opt/python@3.14/bin/python3.14 -B -u run_cases.py --implementation always-noop --selection full-seven --gate no-exception
/opt/homebrew/opt/python@3.14/bin/python3.14 -B -u run_cases.py --implementation always-noop --selection full-seven --gate response-state
/opt/homebrew/opt/python@3.14/bin/python3.14 -B -u minimize.py

Uncaught child working directory: fresh temporary directory containing
byte-identical source copies and freshly seeded case.sqlite3.
/opt/homebrew/opt/python@3.14/bin/python3.14 -B -u crash_child.py case.sqlite3

OBSERVED RESULTS AND SENSITIVITY
baseline-existing-populated: response-state 2/2; exit 0.
baseline-full-seven: response-state 4/7; exit 1.
corrected-full-seven: response-state 7/7; exit 0.
always-noop-weak-no-exception: 7/7; exit 0.
always-noop-strong-response-state: 1/7; exit 1.
Baseline raw observations: minimal-empty, original-all-blank and
blank-singleton raise the signature above, return no response and preserve
the seeded rows. Its four usable-input cases match their literal responses
and immediate/reopened row values.
Always-noop raw observations: every case returns
{"status":"noop","first":null,"stored":0,"skipped":0};
immediate and reopened rows remain [[1,"preexisting"]];
caught_exception=null; in_transaction_after=false.
Four usable-input cases have response_mismatch and stored_rows_mismatch.
Two allblank cases have response_mismatch only. The weak gate checks setup
and absence of an exception.
Reduction: four calls / three retained deletions; exit 0.
Uncaught child: one exported-function call; signature matched; exit 1.
Total: five suite gates / 30 suite calls + four reduction calls + one child
call = 35 exported-function invocations. Seven regression arrays; nine
distinct arrays with two reduction intermediates. Repeats add no unique case.
Wrapper exit 0: expected passing AND failing observations reproduced.
It does not accept baseline, always-noop or every input in a failure class.

EVIDENCE AND PORTABLE REPLAY
Public base: /assets/crash-suite-missed/research-rerun/
Read README.md, contract.json, cases.json, batch.py, harness.py, run_cases.py.
Raw suite observations: observed/<run-name>.stdout.json and
observed/<run-name>.stderr.txt, using the five run names above.
Reduction: observed/reduction.stdout.json and observed/reduction.stderr.txt.
Child report: observed/uncaught-child-report.json.
Child stdout: observed/uncaught-child.stdout.txt.
Child traceback: observed/uncaught-child.stderr.txt.
Summary: observed/reproduction-summary.json.
Summary SHA256:
c9d48cc3bc5e57f26800b44bc0235c9729ae8df1575a7115ab48a8d7b279ea37

Download: /assets/crash-suite-missed/crash-suite-missed-evidence-kit.zip
ZIP: 33855 bytes; 29 regular members.
ZIP SHA256:
5a0c4a8c704f081dbd3b104c19a43c97e0829007579052bf5a7ca0a440127fe3
Matching checksum: same ZIP path with .sha256 appended.
Extract into a new directory; run from its root:
python3 reproduce.py
Default rerun-output/ must be absent/empty. Alternatively:
python3 reproduce.py --output-dir another-run
The selected output path must be absent/empty. Retain new observations
separately from observed/ and record the new runtime.

BOUNDED CLOSURE AND NEXT ACTION
Supported: this corrected function meets seven selected response/state cases
on the primary runtime, including both retained witnesses and valid-work cases.
Candidate wider question: which real callers rely on a nonempty usable-record
list, and can they reach the same assumption? Caller/state applicability is
unassessed. No class-closure denominator, mutation score or sibling sweep
was measured.
Not performed: SQL failure/lock, interrupted retry, duplicate/idempotency,
concurrency, restart, power-loss/crash-recovery, wider caller checks or a
Unicode-whitespace matrix. Unicode strings are within the declared str domain.
Outside this tested interface: None/absent/maps/bytes/nonstrings and upstream
adapter/parser contracts. No upstream-policy claim.
No Proof, solver, issue transition or ProblemReport closure was executed.

Freshness triggers: changed contract/domain; entrypoint/callers; filtering or
persistence; source, oracle or harness; runtime/dependencies; schema/settings;
incoming transaction or other state assumptions.
Next-action owner: adopting engineer, proposed and not yet assigned to a
real project. Action: assign a requirement owner and review the actual callers
before extending this record to project closure.
Trigger: before using this fixture as evidence for a real change.
Required result: a named caller/state scope, applicable checks and an accountable
person or queue for every remaining closure question.
No real-project owner is assigned by this fictional exercise.

Inspect the recorded evidence or reproduce the kit. Follow the README and replay both retained witnesses.

Follow the failure through the repair

Download the complete video transcript.

Read the complete video transcript

Start with the retained allblank input and the exact baseline helper. This is a fictional teaching implementation with observed local results, not a production incident. Keep its source identity, starting database, runtime and failure trace together. The two populated starter cases pass, but they never challenge the baseline's assumption that a usable record exists.

The baseline filters the batch, then indexes the first usable record before beginning a transaction. With the original allblank list, that access raises IndexError. The suite catches and records it. A separate child calls the same baseline without a catch and terminates with the retained exception signature and exit one.

The recorded reduction removes the first element three times. Four calls preserve the exception type, message, source site and file hash, ending at an empty list. Preserve the original too: the allblank batch must be rejected, while the empty batch must be a no-op. A shared failure mechanism does not make those contracts interchangeable.

The implemented correction separates those two outcomes before entering the existing storage path. Usable strings must still be stored in order, with their original text preserved. Literal expectations check the complete response and reopened database rows, including the preexisting row. All seven selected corrected cases pass without leaving a transaction open.

Challenge the repair evidence with the deliberately wrong always-noop helper. It passes all seven no-exception checks, yet only one response and state check. Four cases lose required stored work; two allblank cases return the wrong response. Those controls show why removing the exception cannot be the entire acceptance criterion for this correction.

Finish with a bounded conclusion and an accountable next action. The retained results support this correction on the seven selected cases. A sibling sweep, retry investigation and wider class closure were not performed. Before extending the claim, identify the actual callers and applicable state, assign an owner and collect the missing evidence.

Read the text walkthrough
  1. Start with the retained allblank input and the exact baseline helper. This is a fictional teaching implementation with observed local results, not a production incident. Keep its source identity, starting database, runtime and failure trace together. The two populated starter cases pass, but they never challenge the baseline's assumption that a usable record exists.

  2. The baseline filters the batch, then indexes the first usable record before beginning a transaction. With the original allblank list, that access raises IndexError. The suite catches and records it. A separate child calls the same baseline without a catch and terminates with the retained exception signature and exit one.

  3. The recorded reduction removes the first element three times. Four calls preserve the exception type, message, source site and file hash, ending at an empty list. Preserve the original too: the allblank batch must be rejected, while the empty batch must be a no-op. A shared failure mechanism does not make those contracts interchangeable.

  4. The implemented correction separates those two outcomes before entering the existing storage path. Usable strings must still be stored in order, with their original text preserved. Literal expectations check the complete response and reopened database rows, including the preexisting row. All seven selected corrected cases pass without leaving a transaction open.

  5. Challenge the repair evidence with the deliberately wrong always-noop helper. It passes all seven no-exception checks, yet only one response and state check. Four cases lose required stored work; two allblank cases return the wrong response. Those controls show why removing the exception cannot be the entire acceptance criterion for this correction.

  6. Finish with a bounded conclusion and an accountable next action. The retained results support this correction on the seven selected cases. A sibling sweep, retry investigation and wider class closure were not performed. Before extending the claim, identify the actual callers and applicable state, assign an owner and collect the missing evidence.

04 / The working method

Turn the next failure into retained repair evidence

  1. Freeze the original basis. Preserve the report, input or sequence, starting state, failing code/build, environment and raw trace. Separate observed impact from suspected consequences. Keep the failed evidence when a later run passes.

  2. Reproduce at the named boundary. Confirm that the harness reaches the intended implementation with the relevant preconditions. Record a returned failure, caught exception, uncaught termination, timeout or setup failure accurately. If the report does not reproduce, retain the attempt and the missing context.

  3. Reduce under an explicit criterion. Decide which signature, source site, state and behavior must survive. Record each candidate actually tried. Keep the original when deletion changes the business scenario, even if the exception stays the same. Reduction guarantees depend on the method and predicate used. Zeller

  4. Settle the missing obligation. Ask the authorized requirement owner what should happen, including complete state and effects. Write literal examples or another independent oracle. An unresolved policy remains an assigned decision.

  5. Implement and replay. Identify the correction, reset the original state and rerun the retained witnesses through the real entrypoint. Judge the required behavior, then exercise applicable neighbors and normal work. Use a plausible incorrect repair to test whether the observations can expose its mistake.

  6. Define the wider question. Inspect actual callers and shared assumptions. Choose additional states or interfaces because they can reach the mechanism or be affected by the correction. A retry check belongs here only if the real operation has a relevant retry contract.

  7. Record disposition and follow-up. State what the evidence supports, what remains open, who decides and what change makes the result stale. Give preventive actions an owner and a concrete completion criterion. Google SRE

05 / Before accepting the repair evidence

Escaped-crash closure checklist

  • Original input, state, implementation and raw trace are retained.
  • Reproduction reaches the intended callable; setup failures stay separate.
  • The same-failure criterion and actual reduction history are recorded.
  • Original and reduced cases retain their own required outcomes.
  • Response, stored state and relevant effects have independent expectations.
  • Normal-work and sensitivity controls challenge the proposed repair.
  • Each result names its source, command, runtime and evidence location.
  • Instance evidence, unperformed wider work and the acceptance decision are separate.
  • Remaining work has an accountable owner and a revisit trigger.

06 / Mistakes that erase the lesson

Repair the record as well as the code

Mistake / What it hides / Repair
Mistake What it hides Repair
Reimplement the suspect helper inside the test The test can pass while the real callable remains broken. Import or invoke the actual entrypoint and retain its identity.
Match any exception or any nonzero exit A missing fixture or import error can impersonate the failure. Match the intended signature and inspect the path that produced it.
Check only newly added rows A patch can erase preexisting data while satisfying the narrow check. Compare complete relevant state, including what must survive.
Declare an input out of scope after it fails An unenforced precondition can leave the real incoming path exposed. Trace callers and obtain authority for the boundary or its enforcement.
Replace the failed archive with the green run Later reviewers lose the causal evidence and exact failing basis. Retain both runs and connect them to the correction.
Count repeats as new scenarios Invocation totals look like broader failure-class evidence. Report calls, distinct inputs and assessed claims separately.

07 / Keep failure context connected

How Proof fits the closure record

Proof distinguishes unresolved findings from post-fix hardening records. The inspected implementation supports these choices; status bookkeeping does not execute or verify a repair.

Record or status / Appropriate use / Boundary
Record or status Appropriate use Boundary
KnownIssue, candidate An unconfirmed source report awaiting reproduction. Excluded from active audit/workflow gates and confirmed-finding counts in the inspected lifecycle.
KnownIssue, open or reviewed A confirmed failure still active in current code. Empty legacy status also counts as active. fixed and withdrawn do not state an active defect in that predicate; status alone verifies no repair.
ProblemReport / DEFECT Post-fix context and hardening evidence, after the fix has landed or is landing with the change. An open report means post-fix hardening remains underway. Do not use one to cover an unfixed issue.

For disposition covered_by_requirement, the corrective-reference checker resolves requirement IDs, attached obligations and regression references. A bare existing test-file path can resolve; a named test symbol is checked when supplied. That resolution does not run the regression.

For the same covered_by_requirement disposition, the class-mitigation checker can bind added-obligation metadata through a witness's requirement ID or configured signal-class mapping. A sibling_sweep record recognized as present clears an informational missing-sweep advisory. Neither mechanism establishes that the sweep ran, that the witness exercises the claimed class or that all sibling defects are prevented.

A Proof reproducer also needs an interpretable result. A bare nonzero exit or crash is insufficient. Record a supported signal or declared expectation for the intended issue, and state polarity when interpreting test exits: a red reproducer asserts correct behavior, while a declared green tripwire pins buggy behavior. A crash-specific expectation must name the signature and declare expect_crash: true. Timeout, terminating signal and declared-inconclusive handling take precedence; do not infer a verdict from a simplified exit-code rule.

This kit ran no Proof command, solver or issue transition. A local pass, model result or structural reference grants no merge/release authority; the configured project and provider permissions govern that decision.

08 / Choose the method for the question

Which workflow should you use next?

Your immediate need / Useful choice / What you must supply
Your immediate need Useful choice What you must supply
Replay a small callable failure The repository's ordinary test runner and a retained literal case. Python unittest can capture and inspect an expected exception. Real entrypoint, reset state, exact expectations and a distinction between reproducing the bug and accepting the repair. Assertion documentation
Observe process termination or persistent effects A process/state harness such as the inspectable one in this kit. Controlled setup, exit interpretation, raw trace and effect observations. A caught exception alone establishes no uncaught termination.
Understand a large witness Manual reduction or a reducer with an explicit retained-failure predicate. Candidate history, valid prerequisites and a bounded minimality claim. The published delta-debugging discussion explains the method; this fixture runs only its own deletion sequence. Zeller
Decide how far to extend regression work Change-impact review, followed by checks for the affected callers and states. A justified scope, required observations and owners for omitted work. ISTQB section 2.2.3

Choose by the observation you need. This is a method comparison, not a benchmark; the fixture uses plain comparisons, not unittest.

09 / Inspect and reproduce

Primary sources and reproducible evidence

Reproduce the recorded contrast

Download the evidence ZIP and its SHA-256 checksum. The archive is 33,855 bytes with 29 regular members. Read the README, extract into a new directory and run from the extracted root:

python3 reproduce.py

Use Python 3.10+ with standard-library SQLite. No package install, network service, Proof binary or account is required. The default rerun-output/ must be absent or empty; python3 reproduce.py --output-dir another-run selects another absent/empty destination.

Wrapper exit 0 requires the expected passing and failing child results, retained reduction and uncaught signature. Read reproduction-summary.json and raw logs in the selected output directory. Keep a fresh run's environment and observations separate from the primary capture, which used Python 3.14.7 and SQLite 3.53.4.

Evidence / What it establishes
Evidence What it establishes
Contract and literal cases The authored policy and independent expected values.
Source, harness and runner The actual functions, observation boundary and gate logic.
Primary summary Captured commands, versions, exits, counts and sensitivity checks.
Provenance, manifest and file digests Artifact identities and retained limits; hashes identify bytes, not semantic correctness.

Primary references and their scope

  1. ISTQB, Certified Tester Foundation Level syllabus v4.0.1, sections 2.2.3 and 5.4–5.5. Confirmation versus regression, configuration identity and reproducible defect reports. These are selected sections, not a claim that this worksheet satisfies a certification scheme.

  2. Andreas Zeller and contributors, Reducing Failure-Inducing Inputs. Author-hosted explanation of reduction and method-dependent minimality. No published ddmin implementation was run for this fixture.

  3. Google SRE, Postmortem Culture: Learning from Failure. Retained context, impact, causes and preventive follow-up. Practice guidance does not establish that recurrence is impossible.

  4. Python, IndexError and str.strip . Language behavior behind the selected failure and blankness classification; neither defines the application's required response.

  5. Python, SQLite transaction control. Under legacy transaction control, isolation_level=None permits explicit SQL transaction management. The fixture pins that policy where available; its selected failure precedes BEGIN. No SQL-error, locking or recovery campaign is implied.

  6. Python, unittest exception assertions. An optional way to retain and inspect an expected exception. The actual kit uses its own explicit typed comparator.

  7. Proof implementation basis. The inspected source at checkout head b566a01085f0233c0be2c71508a2d3caac0cf47a includes KnownIssueStatesDefect in pkg/model/relay.go, EvaluateReproducerRun in pkg/evidenceprofiles/reproducer_verdict.go, the fix-validation workflow, and ResolveHardening / ResolveClassMitigationEvidence in pkg/problemreports/. The matching docs/help/topics/known-issue-lifecycle.md and docs/help/topics/problem-reports.md support lifecycle eligibility. This is source inspection, not deployment verification or an executed Proof verdict.

The served Python reference pages identify documentation version 3.14.10. That documentation version does not change the recorded fixture runtime of 3.14.7.

10 / Two more decisions to make explicit

Two examples beyond the retained batch

These are illustrative contracts and proposed investigations. Neither was executed in the batch fixture.

1. The witness is a sequence

Suppose release_reservation(id) must return stock once, and a later release of the same reservation must reject without increasing stock again. The useful witness includes creation, the first release, the second release and their starting state.

Reducing the report to the final call against a new database can remove the completed-reservation state that matters. Preserve the original sequence, record the state before the final operation and define the permitted rejection and stock level. This investigation applies only to an operation with that lifecycle contract; it is not a claim about the batch helper.

2. A real caller owns the transaction

Suppose source inspection finds a caller that passes an already-active transaction to its storage helper. That caller is outside this fixture's declared incoming-state precondition.

Before using a local pass to close its report, identify the parent and helper entrypoints and settle who owns commit and rollback. Then prepare an integration witness that checks the parent's required final state as well as the helper's response. Merely adding an empty-list guard does not settle transaction ownership. No active-incoming-transaction case was run here.

11 / Questions that remain at closure

Escaped-crash questions, answered

What if I cannot reproduce the reported crash?

Retain the report and each attempted revision, input, state and environment. Say what differs from the reported conditions and what evidence is missing. Assign the next context-gathering or instrumentation step. “Not reproduced in these attempts” does not mean the report was false or the defect is fixed.

Should the repaired test still expect the old exception?

Keep the old signature as diagnostic evidence for the failing implementation. The repair check should assert the required corrected response and effects. A test deliberately pinning the bug needs a clearly declared purpose and polarity; it should not become the repair's acceptance oracle.

Can the requirement change instead of the implementation?

Yes, if the authorized owner decides the original requirement or reported expectation was wrong. Retain the previous expectation, the approved replacement, its rationale and affected callers. Then derive fresh checks from that decision. Changing an expected value solely because the implementation returns it leaves the policy question unanswered.

When is a smaller direct-call reproducer insufficient?

When the reported failure depends on an adapter, prior operation, deployment setting or external effect that the smaller test omits. Use the small reproducer to isolate the mechanism, and retain an integration check for the consequential boundary. Name both claims so a local result cannot silently stand in for the omitted context.