DRA-948 input-provenance review lessons
L1328 covers the input-identity slice. DRA-948 experimental acceptance remains pending. Run the pre-review command on an exact candidate before asking for independent review of a provenance packet.
tests/gates/pre-review.sh "$candidate" "$omega_source" evidence/dra-948/model-inputs/preflight.md
tests/gates/pre-review.sh --controls "$candidate" "$omega_source" tests/gates/provenance-fixture/preflight.md
candidate is a full commit, omega_source is a local omega-mv Git repository that contains the public main compiler commit, and the last argument is the checkout-relative packet document. The first form runs the no-Python guard, every repository gate in CI order, the packet's public and local evidence, its provider archives and its replay. The second form runs only the checker's own negative controls and mutants, with no gates, no network except the compiler head lookup and no packet replay. It never prints PASS complete. Run both on Spark with the locked Cargo dependencies cached. Supply the Input variables the packet declares.
Where the decisions are made
The policy is native Omega. tests/gates/provenance-check.om is built from the candidate's own source with the public omega-mv main compiler (read from a Git object, hash logged) and decides every accept or refuse: the document grammar, the public blob route, the identity of a public blob, a provider archive, a capture time, a whole-line match, a substring match, and which CI run steps the driver covers. tests/gates/pre-review.sh only runs external tools and requires their exit codes.
| Tool and version (logged on each run) | Role | Omega replacement and what blocks it |
|---|---|---|
Bash 5, tests/gates/pre-review.sh | Orders the steps; runs the documented block in a cleared environment | A native driver over execenv, fork and waitpid is possible and has not been written for this repository. Until it is, the shell only sequences the calls above and requires their exit codes |
| Git | Fresh local clone, exact checkout, compiler object, tracked-file test | None planned; Git is the repository |
| curl | Three unauthenticated HTTPS GET requests per public source | omega-mv has a TLS 1.3 client (om/tls) and seed/net/https.om. Composing them needs a CA store file and a multi-unit build. Not adopted here; replace curl first |
| jq | Turns JSON into tab-separated projections; builds provider mutations for controls | omega-mv has a strict reader, seed/json. A native projection would replace the filters |
| sha256sum, cmp, dd, od, wc, sort, sed | Digest check, byte compare, same-size byte damage, sizes, ordering, log formatting | Digest check could use the omega-mv SHA-256 unit |
the cargo gates (tests/gates/run.sh) | The repository's existing verification | Existing Rust tooling stays until a qualified replacement exists (AGENTS.md directive 2) |
The shell holds no grammar, no pattern for citations and no schema. Exit codes decide. The comparisons it keeps are string equality of external outputs: an HTTP status, the sorted provider and replay inventories, the sorted CI step set against the sorted manifest step set, and a clean git status.
The evidence format
A packet is one Markdown document in a package directory. Every line of it is exactly one of these forms. A line outside the grammar fails validation. Headings and nonempty reproduction lines appear in the unchecked output.
| Line | Meaning |
|---|---|
blank line, or a heading that starts with one to six # and a space | blank lines are layout. Heading text appears in the unchecked output |
Scope: input identities only. Evaluation status: NOT_RUN. | required once |
Unchecked: TEXT | narrative. It has no evidential weight, and the run logs every one. A reviewer reads them as claims nobody checked |
Checked public URL sha256 HEX :: LINE | the public file at the canonical immutable Interplane blob URL has bytes with that SHA-256 and contains LINE as a whole line |
Checked local FILE sha256 HEX :: LINE | the author-supplied file contains that line and matches the digest. Independent support requires separate evidence |
Copy URL sha256 HEX == FILE | the public file has that digest and equals the tracked package file byte for byte |
Provider capture FILE TIME curl -fsS 'URL' | the author declares the command and capture time. URL must equal the one the archive's id and revision imply, with ?blobs=true. TIME is a real UTC calendar time from 1970 that is not in the future |
Replay FILE | a tracked package payload the documented block reads. Pre-review changes a single byte at each of the first, middle and last distinct offsets on separate copies and requires the unchanged block to fail each time |
Input PREFLIGHT_INPUT_NAME | an environment variable the block needs; the caller must set it |
External-control FILE sha256 HEX | for external payloads: requires every provider payload to be absent from the package. A tracked receipt, pinned by digest, with the lines reproduction_sha256= (the hash of the block as extracted), payload_positive_exit=0 and same_size_payload_corruption_exit=1 |
a fence opened by three backticks and bash pre-review, closed by three backticks | the one documented block; each nonempty line is logged as unchecked, including comments |
A checked quotation row requires a quoted line, so a digest alone cannot support a statement. A statement is checked only when it is the quoted line itself: the row text after the double colon is a whole line of the digest-pinned source, compared byte for byte by provenance-check line. To support a sentence, quote the source line that states it. A packet gives Replay rows or one External-control row, never both and never neither. A free line longer than 524288 bytes is streamed to its end, including its final byte; a row that long is refused (a quote cannot exceed the 131071-byte argument limit of Linux, so no valid row is longer; the same boundary sizes the checker's buffers, and a control covers it).
What is enforced and what stays with the reviewer
| Property | Enforced by pre-review | Reviewer |
|---|---|---|
| Tracked Python | the no-Python guard runs first; a tracked Python file is a control | |
| Gate coverage | every CI run step is derived and checked against the manifests; an unrecognised run step is refused | The driver executes from the candidate. Compare driver, checker and CI against public main, then confirm each required gate ran |
| Language of new runner policy | the checks are Omega; the host tool table above names the rest | Whether the table stays true |
| Scope | the exact scope line is required; a missing or repeated one is a control | A contradiction inside an Unchecked line |
| Source reachability and identity | the immutable route, the HTML page, the JSON identity and the raw size must agree; an unpublished commit is a live 404 control | |
| Unsupported attribution | a checked statement must be a whole line of digest-pinned bytes; prose is Unchecked and listed; a digest-only row, a mutable ref and an unparsed sentence are refused | Whether a quoted line means what the packet needs |
| Provider capture trail | URL derived from the archive; capture time validated and not in the future | Refetching real provider records |
| Replay | one block, cleared environment; matching inventories, size and full provider Git blob ID or LFS SHA-256 for each local payload, followed by same-size damage at the first, middle and last byte of each nonempty payload (distinct offsets only); wrong blob, LFS, size controls | Host filesystem dependencies, the meaning of commands, and external payloads. The environment is cleared but the filesystem is shared |
| External payloads | absence of all provider payloads in the packet (including symlinks), and a receipt pinned by digest and bound to the block hash | That the receipt's experiment was run on disposable roots. Self-asserted by the packet author |
| The checker itself | targeted controls on the fixture packet and eighteen checker mutants and a separate external-inventory bypass |
Reviewer-only items are never claimed as enforced in a verdict or a receipt.
Rejection analysis (review ledger)
Twelve review sessions started before this correction. The ledger includes one credit-limit stop, seven earlier rejection verdicts, two interrupted sessions on 5e115f6d, and rejections on 7f9f334b and c660674b. Further paid review requires separate operator approval.
| Review | Head | Blocking or first finding |
|---|---|---|
| Packet 0 | no head recorded | Run stopped before any verdict: provider credit balance too low |
| Packet 1 | 1f52b4b9a5c6fefc05c895c4b212595206c466f9 | Tracked Python verifier; build identity |
| Packet 2 | b9e8340f0526aac6911e617a670eeeb39199fc50 | Runtime claims without a source; local commits cited |
| Packet 3 | 338e6d0b898443e08240f4cf2c17de02abf620b5 | Three immutable paths returned 404; receipt lacks the claimed limits |
| Corrective 1 | b8110ad56754217906f698fba5932dc2996c6230 | A citation outside the URL form passes |
| Corrective 2 | 3ad306760bb3a9023ba1e361f9af8c1fa700b6ef | Prose citation spellings pass; provider capture not required |
| Corrective 3 | 933242a00bcc50d02cb795e9011c2daebb6fa258 | A bare commit prefix in prose passes |
| Corrective 4 | da329ccd78fb0d52372fd7b9f28e12cb264e0b56 | New runner policy is not Omega; a statement backed only by a digest passes |
| Runs 9 and 10 | 5e115f6d | Both stopped before a verdict |
| Run 11 | 7f9f334b | Unsupported headings and undeclared provider payloads |
| Run 12 | c660674b | A local payload could use the external receipt route, and long narrative text was silently cut off in the log |
The earlier packet reviewers wrote no standalone verdict file, and the second and third did not verify their effort from inside the run. The corrective reviews are fresh Opus 5.5 medium runs with exact-head verdict files.
Root cause of the four corrective rejections, in one sentence: the instrument tried to recognise unsourced statements inside free prose with patterns (keywords, shorthand shapes, hex tokens, extension lists, path prefixes), and a pattern list can never be complete because the ways to phrase a citation or a claim are open. Each fix added patterns for the last reviewer's wording, and the next reviewer used other wording. The method is replaced, not extended. The new method does not recognise anything: the document is a closed list of line forms, every statement it can make is a row whose quoted line is verified against pinned bytes, and everything else is labelled Unchecked. It terminates because a line is either one of the finite forms, parsed completely by the checker, or refused. A second cause: the controls were written for the reviewer's example, so the instrument passed the example and failed its siblings. The controls now exist per kind, and the checker is mutated until its controls fail.
| Kind and findings | Why it was missed | Correction and where it lives |
|---|---|---|
| Repository policy and gate coverage. Packet 1 findings 1 and 9, packet 2 finding 5, corrective 2 F6, corrective 3 F3 | Standalone hashes said nothing about the guard; gate inputs were inferred | No-Python guard first with a tracked-file control. CI steps derived by the Omega checker and compared to the manifests. Changed-path mapping stays with the reviewer |
| Provenance against experimental acceptance. Packet 1 finding 2, packet 3 F6 | A correct input packet gives none of the experimental sign-off | The scope line is required. The reviewer reads the Unchecked lines for scope claims |
| Build identity and checkpoint provenance. Packet 1 findings 3 and 4, packet 3 F1 | A digest alone named no source; a local Git object stood in for a public file | A row must quote a line of public bytes. Whether the quoted line is the binding stays with the reviewer |
| Unsupported attribution. Packet 1 finding 6, packet 2 findings 1 and 2, packet 3 F2, corrective 1 F1, corrective 2 F1, corrective 3 F1, corrective 4 B2 and findings 1, 2 and 8 | Checks matched wording; a correct digest was accepted next to a false sentence | The closed grammar above. The false runtime-limit sentence is a control twice: refused as an unparsed line, and refused as a quoted line against the live receipt |
| Public citation coverage. Packet 1 finding 5, packet 2 finding 7, packet 3 F1, corrective 1 F1 | The first comparison had no source path; a public clone could report a commit while its file page answered 404 | The URL grammar is canonical and immutable; HTML, JSON and raw routes are checked per source. A live 404 on an unpublished commit is a control |
| Replay and exact input copy. Packet 1 findings 7 and 8, packet 2 findings 4 and 6, packet 3 F4, F5 and F7, corrective 1 F2, corrective 2 F5, corrective 3 F2 and F4, corrective 4 finding 5 | Scratch paths and inherited variables; metadata-only checks passed; external receipts are written by the author | Cleared environment, declared inputs, matching inventories, size and full provider Git blob ID or LFS SHA-256 for each local payload, followed by same-size damage at the first, middle and last byte of each nonempty payload (distinct offsets only), absence of all provider payloads in the packet (including symlinks), and a receipt pinned by digest and bound to the block hash. External experiments stay with the reviewer |
| Provider evidence trail. Packet 3 F3, corrective 2 F2, corrective 4 finding 4 | The endpoint options and capture time were not recorded | The capture row is mandatory; the archive derives the URL; invalid, future and pre-1970 times are controls |
| Separate missing checkpoint. Packet 1 finding 10, packet 2 finding 3, packet 3 F6 | An absent arm was named without a record | Omit it, or cite it with a row; the reviewer reads the Unchecked lines |
| An instrument claiming more than it runs. Corrective 1 findings 2, 3 and 4, corrective 2 F4, F5, F7 and F8, corrective 3 F5, corrective 4 findings 6 and 9 | Rows described a control that was manual, stubbed or unreachable | This table says Enforced or Reviewer for each property. Identity, size and page mismatches are offline controls on the production checker. The historical tracked Python head is not in this repository's objects, so its control is a synthetic tracked Python file, and the lessons say so |
Counterexamples from review 11
The first eight mutation controls were designed from the implementation. They missed ways to publish unchecked prose and omit files. The regression suite now exercises headings, comments, a comment-only block, duplicate external receipts, lowercase input names, next-day capture times, spaces in provider URLs, a missing HTML link, and missing or duplicate payload declarations. The six behavior-changing mutants from the independent review and mutations that suppress unchecked heading or block output are included. A local quotation proves only what the author placed in the packet. Independent review still owns the semantic claims, shared host dependencies and any change to this verifier.
Counterexamples from review 12
The earlier inventory covered the local replay route, leaving route selection itself unchecked. The earlier long-line control tested acceptance but never compared the complete output bytes. The new controls compare the emitted bytes through the final marker, refuse an external receipt when provider files exist in the packet, and reject mutations that disable either check. The verifier checks the complete local contents independently against each provider blob ID or LFS SHA-256. The documented replay is tested separately at distinct first, middle and last offsets. They do not establish a claim about every offset. A near-future capture control catches the one-hour tolerance mutation. A transient public-route error fails the run and is recorded as an infrastructure failure.
Before asking for review
- Run both commands above on the exact candidate. Keep the logs.
- Break the checker once: change it so it should stop refusing, and see its controls fail.
--controlsdoes this with eighteen native mutants and a separate external-inventory bypass. - Re-read the fix commit as the reviewer would: every digest, count and file it touches.
- Count the reviews of the change, including re-reviews and runs without a verdict, and write the count in the reviewer brief and the receipt. At the fifth review, stop and report the count and cost before starting it.