# Requirements to an independent oracle and a real call

This kit preserves the original reservation teaching evidence and adds one
separately dated, bounded Python/SQLite execution. It uses no network, Proof
binary, external package or customer data for the new reproduction.

## Reproduce the new execution

Use CPython3.12 or newer with its standard-library sqlite3 module. The primary
run used CPython3.14.7 and SQLite3.53.4 on Darwin/arm64. From the extracted kit:

```sh
python3 -B reproduce.py --output /tmp/requirements-oracle-new-run
```

Choose a new output directory. The command refuses to overwrite observations.
It creates four child reports and a summary. Its own exit0 means the expected
child outcomes occurred; it does not mean the defective B configuration passed.
This new wrapper needs no Git. The optional original historical runner is
retained under `historical/`; that different runner needs Git, and its optional
Proof mode needs a matching separately built Proof binary.

| New child | Retention | Draft-requirement results | Other rows | Exit |
| --- | --- | --- | --- | --- |
| A,honest |24h|5pass,0fail|2unresolved characterizations|0|
| B,honest |12h|2pass,3fail|2unresolved characterizations|1|
| C,honest |24h|5pass,0fail|2unresolved characterizations|0|
| B at12h,skip-retry control |12h|Invalid harness evidence|Business observations look correct; retry call absent|1|

The new source is the exact retained `reservation.py`. A/B/C are new runs with
configuration labels24/12/24, not three new code revisions. Restoring the
retention configuration is the correction. The fresh wrapper records22
scenario executions:21 honest executions plus1 designed bad-harness control.
It observes43 actual `reserve` invocations:42 honest setup/retry calls plus
the control's1 setup call. There are7 distinct selected retry times, not43
independent input values or a coverage percentage.

## Read the requirement before declaring a pass

The author supplied draft SW-REQ-241 revision1. No customer approval is claimed.
It promises the original reservation and no second reservation before24
elapsed hours. The literal five-case oracle covers0,1,12,23,23.5 hours. B
returns ID2 and rows `[[1],[2]]` at12,23,23.5; A/C return ID1 and rows `[[1]]`
for all five. Exact integer result/row types are checked.

At24 and24.5 the new report records what happened but marks the oracle
unresolved. All three configurations happen to return ID2 and have two rows
there. That is implementation behavior, not permission derived from the
BEFORE24 promise. No newly approved expiry policy is invented. The selected
23.5/24/24.5 examples do not define clock granularity or exhaustive boundary
coverage. Internal retry-key metadata is diagnostic, not an added requirement.

## Check the harness as well as its result

`harness.py` imports and invokes the exact retained callable. A single-thread
profile hook matches its actual code object and records phase, key, clock
arguments and returned value. Source/function/bytecode fingerprints accompany
each row. An honest case records setup at0 and retry at the selected time.

The deliberately wrong `skip_retry` control calls setup and then returns the
cached original ID without invoking retry. Direct database reads still show
one row, so a business-outcome comparison alone looks green. The independent
call observer rejects the missing retry. Honest B at12 really enters retry,
creates a second reservation and fails the requirement oracle. This designed
control establishes one observer sensitivity, not that all dishonest harnesses
are detectable or that entry-point coverage validates assertion semantics.

All state reads use the same live in-memory connection. Actual transaction
defaults are recorded: primary run autocommit=-1 (legacy control),
isolation_level="" (DEFERRED alias), and no active transaction after commit.
The unchanged source did not explicitly pin these defaults. No disk/reopen,
restart, concurrency, payload conflict, HTTP Idempotency-Key, network retry,
production clock or SQL-failure atomicity behavior was tested.

## Preserve the original evidence as original

`historical/` contains44 byte-identical files copied from the published
evidence-walkthrough fixture. Its actual execution summary is dated
2026-10-03T09:32:03.416073+00:00, with its own Git commits, hashes and pinned
Proof source/binary identity. Synthetic Git author/committer dates are not run
timestamps. Its five cases include four inside the promise and a fifth
implementation-derived expectation at24. Historical A/B/C counts5/3/5 are
therefore different units from the new five-case requirement denominator.

The historical selected Proof check was tests_pass, not a full audit. Its
packages keep A/C `not_assessed`, B `blocked`, and empty evidenceRecords.
The new local call traces do not fill that historical package's missing
per-requirement execution records or make a Change accepted. Neither the
historical Proof commands nor the original historical runner ran again here.

`observed/` contains the fresh raw child stdout/stderr and wrapper summary,
with actual timestamps, versions, input hashes and exit meanings. Reruns will
have their own timestamps/runtime/bytecode fingerprints. `PROVENANCE.json`
separates source/history and new evidence. `manifest.json` lists bytes/hashes;
`SHA256SUMS` covers every other kit file, including that manifest. The separate
download checksum covers the real ZIP bytes. The ZIP does not contain itself.
