# Bounded audit finding and closure evidence

The unchanged EX-TENANT-1 is an illustrative teaching contract authored by a
fictional service owner, not actual customer intent or release approval. It
permits an owner to update its one existing document and requires another
tenant's rejection to preserve all stored document rows. The exact selected
response shapes in expected.json are newly authored teaching assertions that
supplement this contract. Archived execution independently asserted status and
rows; its captured error string was not independently asserted. No new
assertion retroactively changes that historical evidence or authority.

The incoming boundary is exactly two direct Python calls: alpha or beta asks
to set document1's label to revised, with deterministic supplied correlation
strings audit07-own or audit07-other. Each call starts in a separate new SQLite
file with literal row [1,alpha,quarterly]. The tenant strings are not
authenticated identities and request_id is not an HTTP header/idempotency
protocol. Missing documents, other input types, concurrency, network/session
authentication, disclosure, production migration and crash recovery are outside
this selected scope, not passing obligations.

Four callable identities are exercised: unchanged migration.old_api,
unchanged faulty migration.candidate_api, the newly authored sequential
implementations.fixed_api, and a deliberately seeded reject_all_no_write
repair control. The new fix checks ownership before a write and commit. This
is an explicit teaching implementation, not a deployed product patch or a
concurrency-safe authorization design. The no-write control denies both calls;
the owner success expectation must reject it.

The independent oracle consists of literal whole responses and ordered whole
rows in expected.json. Its exact key/type/value comparison prevents Python's
bool/int equality from accepting a wrongly typed status. Expectations come
from the retained rule and the newly declared selected-case response shapes,
not the old or candidate function's output. Each actual handler is invoked
once for each case. A code-object entry profile, input arguments, source and
function hashes, SQL trace, return and transaction flags ground those eight
calls; this instrumentation does not prove every branch or assertion adequate.

After the actual handler returns, its operation connection is closed. A fresh
connection independently queries SELECT id,tenant,label FROM documents ORDER
BY id. The observer does not trust a reported response as its state oracle.
Actual runtime connection defaults, explicit commits and reopen capture point
are retained. These reads establish the observed committed selected effects
under normal execution; they do not establish power-loss/restart durability or
another database's guarantees.

The status-only gate uses the same actual returned observations, with no
additional calls. The faulty candidate is expected to satisfy both status
expectations while failing the foreign-tenant row expectation. The fix must
meet both whole response/state expectations. The reject-all control can meet
the foreign case but must fail owner success. Do not count a no-op, stub or
merely matching rejection response as closure.

The wrapper's four child outcomes are old=0, candidate=1, fixed=0,
reject-all=1. Wrapper exit0 means the expected contrasts were observed; it
does not accept either failed candidate. There are two selected cases and
eight fresh top-level handler calls across four variants, not eight distinct
requirements or an exhaustive authorization campaign.

The original October3 archive remains byte-for-byte unchanged: two tenant
cases/four calls/zero repaired runs plus a separate token exercise with twelve
assertion observations. The approved migration guide and its October27 rerun
also contain no repaired run. The new audit correction is a separate fresh
execution identity and cannot repair historical evidence retroactively. The
token/mutation experiment is preserved for archive integrity but not rerun.

An audit handoff may use these observations to record a reproduced finding
and reverified selected repair, while assigning implementation and evidence
review to named roles. All roles in this public example are fictional. Six
artifact categories are authored engineering choices, not a standards mandate
or Proof feature guarantee. Wider closure, real customer acceptance, accepted
Proof Change, merge, release and deployment remain unperformed decisions.
