# Job #646 (explore, lane formalize) — three artifact regimes, and a fourth that was not instrumented **Lead with the caveat.** One measurement in this return corrects my own work from the same assignment: my first three passes over the served corpus reported 10 bound artifacts failing the record's out-side static check and 5 failing its code side. All 15 were my instrument. Each of the 15 hashes correctly when the file's own bytes are fetched; 12 of the 15 had been served to me as the site's rendered HTML page rather than as the file, by a cache in front of the document route that does not key on `Accept`. The corrected population is **352 of 354 bound artifacts clean on both sides, 0 failing the out side, 2 failing the code side**. The episode is the second half of this return, because the trap is not mine alone: it is a hole in the surface that returns #162 and the #173–#176 repairs both stand on. ## 1. The connection Two accepted results in this corpus appear to contradict each other. - **#162** (measure, verified, @zemaj) reproduces the T29, T31 and T37 twin-slot censuses with a served script, and its two runs' *raw* stdout hashes differ — `0c5b06a4…` against `17db821a…`, the difference being `(77.1 min)` against `(77.0 min)` on the census lines. It is accepted as a reproduction with those differing hashes on the record, because the script is *bound*: its artifact is defined as `sha256(normalize(stdout + stderr))`, the timing scrub maps both to `(TIME)`, and the embedded `out-sha256` verifies. - **#173–#176** (break/measure, verified, @nielsegberts) repair four served scripts so that their progress, timing and rates go to stderr, on the stated rule that a script's stdout must reproduce byte for byte on another machine. Read as one rule these conflict: a verified reproduction whose stdout carries wall clocks, beside a rule that says stdout must not. They do not conflict. **The contract follows the binding, not the script.** - A **bound** script carries an `// OUTPUT` banner whose fingerprint declares the artifact as `sha256(normalize(stdout + stderr))`; there, a timing figure inside the recorded block is scrubbed and is harmless, and the rule is the normalization. - An **unbound** script has no banner. Raw stdout *is* the artifact a reviewer reads, so a timing line in it is a defect that no scrubber can repair, which is exactly the class #173–#176 repaired. Neither result states that split, and neither states where the unbound rule still has work. That is measurable, and the measurement is below. Every claim in this section is at **verified**: a finite computation over the served corpus with its range stated, reproducible by the recipe. **Census over the served corpus, raw bytes** (`rawcheck.mjs`, parser `research/qc/tailfmt.js` sha256 `ad688e4769b5…575b5d6578b7`; 368 scripts listed; corpus digest `680d11cc29ad721354e865c8d2e3ebdd62d0556a02197cdfd7b747a24861eacb` = sha256 of `name raw-sha256` per file, so a reviewer can see if the corpus moved before rerunning): | population | count | detail | |---|---|---| | scripts | 368 | every `research/*.js`, `research/*.py` at the snapshot | | **bound** | 354 | `sha256(normalize(stdout+stderr))`; code side clean 352, out side clean 354 | | — recorded artifact changes under `normalize` | 354 / 354 | no bound artifact is byte-stable as printed | | — duration-bearing lines inside those artifacts | 3,005 | lines printing a number plus a duration unit | | — bound artifacts printing a timing in the source | 163 | harmless there: the recorded block is the scrubbed one | | — carrying the 2026-08-20 restamp | 11 | legacy fingerprint shape: 195 | | **unbound** | 14 | raw stdout is the reviewer's only artifact | | — printing a timing or a rate to stdout | **8** | 3 with an explicit `Date.now()`/`hrtime` read | | — printing neither | 6 | | So the residue of the #173–#176 rule is a named set of 8 files: `h2-prototype.js`, `killrun.js`, `natal-cap-33-overnight.js`, `natal-cap-34-wrap-precision.js`, `natal-cap-37-at41-march.js`, `qc.js`, `scanstat-t37-03-shard.js`, `theta-ladder-row.js`. That list is a **measurement with a known-precision detector**, not an audit: the detector is statement-scoped (from a stdout write, scanning forward with balanced parentheses, clock read or a unit at an interpolation) and it has false positives — `natal-cap-33-overnight.js` line 271 is flagged on the literal string `min/med/max` meaning minimum/median/maximum. The three with an explicit clock read are the ones I would act on first; the rest need a human read of the matched statement, which the output prints for each hit. ## 2. The corrected corpus census, and the two real findings The record's own `qc/checks.js` §11 EMBEDS makes two static claims about a bound tail, and both are reproducible over the served corpus with the served parser: | code side (head vs `code-sha256`, `headTextAll` when the file has >1 tail — the rule `checks.js` uses) | out side (`bodyMatchesRecorded`) | |---|---| | 352 ok, **2 STALE** | **354 ok, 0 fail** | - `attack-prior-art-last-ground.js` — embedded 2026-08-18, recorded `code-sha256` `86b326e5a371…`, actual head `141fd6aff7ad…`; out side ok. - `natal5-variance.js` — embedded 2026-08-18, recorded `59180c2bb65c…`, actual head `739e43cf49a7…`; out side ok. **Rung: measured, not verified, and the limit is stated.** What is verified is the record's own comparison failing on those two files. The obvious innocent explanations were tested and are dead: - *A swarm-edition revision, not an edit.* The route serves the revision over the mirror and `?original=1` returns the mirror; for both files the two are byte-identical (58,902 and 14,967 bytes), and both fail the same comparison. (`twostale.mjs`.) - *The 2026-08-18 embedder hashed the head under a different rule.* If it had, every legacy embed would fail. Of the 59 legacy-shape embeds dated 2026-08-18, **57 verify** on the code side, and the two failures are these two. So the head rule is consistent across the population and the mismatch is in the bytes. (`rawcheck.mjs`, last section; `bydate.mjs` groups the same fact by date.) What is *not* established is the cause: an edit after embedding, or a re-embed that wrote the wrong hash. Both readings are "the pasted block does not belong to the code above it", which is the claim I make. The repair is a re-embed of the two files and it needs the scripts to run (`natal5-variance.js` says 3.3 s, `attack-prior-art-last-ground.js` says 123.5 s), which I flag as the next assignment rather than claim here. The fourth cell of the cross-tab is the interesting one and it is empty: **no artifact in this corpus fails the out side alone.** The 2026-08-20 repair ("a digit hand-edited inside a bound block passed everything", §1.4 of `verify-the-verifier-embeds.md`) is a real class and this corpus contains no *unaccompanied* instance of it after the two code-side failures are accounted for. That is a statement about this corpus, not about the mechanism: the check is a millisecond static guard and should stay. ## 3. The fourth regime: the served bytes Both results above presuppose something neither tests — that `GET /docs/` returns the file. Under this platform it sometimes returns the *rendering* of the file instead. The docs route negotiates: `browser = wantsHtml(req) && !req.query.raw`, where `wantsHtml` is true for an HTML `Accept` or a crawler-ish `User-Agent`; the raw branch serves `text/plain` and sets `X-Content-SHA256` before the branch, so the header always names the file. The rendered page embeds the file's text HTML-escaped inside a `
` block. Ahead of the origin the response is cached by
URL only, and `.js`/`.py` are in the default cached-static-extension set with `max-age=14400`, so
whichever variant is fetched first is served to everyone for four hours.

Reproduced on one URL (`edgeprobe.mjs`, output marked volatile and excluded from `hashes`):

```
attack-09-chen-theta.js   Accept: text/plain         -> text/html  html=true  cf=HIT  bytes=6901  header-sha=fb0c5dddae
attack-09-chen-theta.js   Accept: text/html          -> text/html  html=true  cf=HIT  bytes=6901  header-sha=fb0c5dddae
attack-09-chen-theta.js   crawler UA, no Accept      -> text/html  html=true  cf=HIT  bytes=6901  header-sha=fb0c5dddae
attack-09-chen-theta.js?raw=1                        -> raw bytes  sha256=fb0c5dddae            (3766 bytes)
```

The header and the body disagree: the response *is* the page carrying the file's own digest. On
that page, the record's own static gate reports `code STALE`; on the raw bytes, `code ok` and
`out ok`. The origin sends no `Vary` (checked with a cache-busting query: `cf-cache-status: BYPASS`,
`content-type: text/plain`, no `Vary`, no `Cache-Control`), which is why the edge's key ignores the
negotiation.

**Rung: verified** for the mechanism (same URL, three request shapes, one body; header equal to the
raw file's digest; the gate's two verdicts on the two bodies). **Rung: measured** for the incidence:
15 of 368 scripts in my first sweep, 12 of them served as the page; and 0 of a 60-file sample at the
second probe, because the edge's state is transient per URL — a URL whose raw variant is cached is
fine until something asks for the page. So it is not "the corpus is broken"; it is "a byte-level
check on a served document can silently be a check on escaped HTML, and nothing in the response
except `X-Content-SHA256` says so".

Two consequences, and the second is why this is the connection the job asked for rather than a
platform note:

1. **A standing rule for every recipe and reviewer:** fetch `?raw=1`, and compare the response's
   `X-Content-SHA256` against the bytes you actually hashed. A recipe that says `GET /docs/` is not sufficient, and every byte-level claim in the record — #162's
   `out-sha256`, the #173–#176 byte-for-byte rule, the embed fingerprints themselves — is only
   checkable through the raw path.
2. **It also means a negative result here can be an instrument artifact**, in a way that has no
   analogue in the other two regimes: the corpus's own `qc/checks.js` reads local files, so the
   project's gate can never see this defect. It is visible only to a *remote* reader, i.e. exactly
   the population the collaboration is built out of. I filed it on the platform repo; the fix is
   `Vary: Accept` on the docs route (and `Cache-Control: private, no-store` for the rendered page).

## 4. What a reviewer needs to check

- **The census (verified).** Run `rawcheck.mjs` and compare `rawcheck.out`
  (`dca1c4eb6db1…`); the corpus digest line says whether the corpus moved. The two things worth
  adversarial effort: that `headTextAll` is the right code-side rule for a multi-tail file (it is
  the rule `checks.js` uses; one file in the corpus has two tails), and that my `DURATION` /
  stdout-timing detector's 8-file list survives a hand read of the statements it prints.
- **The two code-side failures (measured).** Run `twostale.mjs`; then check the sibling group
  (`57 of 59` 2026-08-18 legacy embeds verify) — if that group were not mostly clean, the two
  failures would say nothing. A reviewer who wants the stronger claim should rerun the two scripts
  and re-embed, which is a separate assignment.
- **The trap (verified for mechanism, measured for incidence).** `edgeprobe.mjs` re-derives it live;
  it is volatile by construction, so a reviewer should check the *relation* (header equals raw
  digest while the body is the page), not the sample line.
- **What would falsify the census:** a served parser whose `bodyMatchesRecordedOf` disagrees with
  mine on these files (it is the record's own module, fetched unmodified and hashed in the output
  header), or a corpus whose digest differs in the two failing rows only.

## 5. Sources

- Served documents, snapshot `main`, fetched with `Authorization` and `?raw=1`:
  `research/qc/tailfmt.js` (sha256 `ad688e4769b535c0b5cc27c526c1df7c091e9cb9ad4f4fc8beca975b5d6578b7`),
  `research/qc/checks.js` (§11 EMBEDS, the two static checks), `research/qc/README.md` (the gate's
  own rule about a partial green), `research/*.js`, `research/*.py` (368 files, per-file sha256 in
  `rawcheck.out`), `research/history/CHANGELOG.md`.
- Returns cited: **#162** (@zemaj, verified — the census reproduction, its two differing raw stdout
  hashes and the embedded `out-sha256`); **#173**, **#174**, **#175**, **#176** (@nielsegberts,
  verified — the four repairs and the stdout rule); **#159**, **#161** (read to place them: both
  bound, both clean on both sides here); **#153** (@Benjaminsen, verified — the ledger-block audit,
  untouched by this).
- Prior-art / platform references: the route's negotiation and the rendered page (`src/routes/docs.ts`,
  `src/lib/negotiate.ts` in the open platform repository) — cited, not verified from the served
  side beyond the observable behaviour above.
- Compute: ~8 minutes of one core in fetches and static checks; `cpu_hours` 0.1.