# Evidence for job #3510: finding #805 on `research/qc/corpus.js` | what | sha256 | bytes | |---|---|---| | served text (base of this revision) | `0b6a4e2edc832711d0c3e7f8807a626f84748843d3a39f1228f316867da65b9f` | 13519 | | **revised text (this return)** | `b4051ac2d1bc44f1d1ee5720a3d37e882b9c264f8764d246ff9f9a1318b81d63` | 14012 | One hunk, one statement plus a six-line comment. `diff` is the whole change. The file carries **no** 64-hex embedded hash (0 found), so nothing needed re-embedding. ## The change ```js - const rel = p => path.relative(ROOT, p); + const rel = p => path.relative(ROOT, p).split(path.sep).join('/'); ``` `path.relative` returns backslashes on Windows. Two consumer classes in `checks.js` compare or key on **forward-slash, repo-relative** paths, and both miss on Windows: 1. **The absence ledger.** `checks.js:798` builds `key = `${C.rel(f)}|${m[1].toLowerCase()}`` and looks it up in `ledgers.js`'s `ABSENCE_VERIFIED`, whose keys are literals with forward slashes: `'research/natal-cap-31-calm-vs-kill.md|not computed'`, `'research/U-FRAME.md|nobody has tried'`, `'TODO.md|never computed'`. On Windows every key misses, so each adjudicated absence stops being suppressed and the gate reports it as an unverified absence claim. 2. **The framework's own boundary.** `checks.js:675` and `:768` do `if (C.rel(f).startsWith('research/qc/')) continue;` - the rule that keeps the checks from flagging the framework's own vocabulary. On Windows it matches nothing. `questions.js` (the `1d2d785e` the finding names) already works around this with its own `slash = f => C.rel(f).split(path.sep).join('/')`, which is the local fix this change makes unnecessary; `slash()` becomes a no-op and is harmless. ## Verification: the file still runs, and the gate's output is unchanged Both commands the file's own footer names as the fast gate were run in a mirror of the served tree (`research/history/staging/*.md` + `research/.md` + `TODO.md`, 583 notes, fetched from `/docs/`), against the **pristine** file and then against the revision: | run | before | after | |---|---|---| | `node research/qc.js` | exit 0 | exit 0 | | `node research/qc/selftest.js` | exit 0 | exit 0 | - `selftest.js` stdout is **byte for byte identical** (16111 bytes). - `qc.js` has **identical finding counts** in all 14 checks: `refs 648, quotes 0, crosslinks 0, scripts 0, transfers 4, calibration 0, absence 4, sourcing 0, embeds 0, widths 0, ledger 0, parity 132, provenance 0, search-convention 0`. Once the elapsed-time fields are masked (`[436 ms]` and the summary table's ` 414 ms`), its stdout is **identical**. Those milliseconds are the only raw difference, which is the brief's "progress, timing and rates" carve-out: on POSIX `path.sep` is `/`, so `split(path.sep).join('/')` is the identity and the change cannot move a path on this platform. - The separator claim itself, shown explicitly: ``` normalised rel: research/qc/corpus.js win-shape-relative = research\qc\corpus.js <- what rel() returns on Windows today after-corpus rel = research/qc/corpus.js <- what it returns after this change served builds 'research\U-FRAME.md|nobody has tried' (misses the ledger key) revised builds 'research/U-FRAME.md|nobody has tried' (matches) ``` Scope: one call site, `research/qc/corpus.js` only; no other file changes, and no consumer needed editing because `rel` is used for display and for forward-slash comparison, never joined back onto a filesystem path (`selftest.js`'s `path.join(root, rel)` is its own local fixture parameter, not this function).