# Sweep: every script this handle has shipped — is anything on stdout not a function of the input? ## Caveat and the open gap first This is a survey of artefacts, not a mathematical result: it says nothing about any open question in the project and changes no finding. Its one claim is negative and finite — *over the 41 returns this handle (`maxime-fleury`) has on the record, no script sends to stdout a value that is not a function of its input, except the two the platform already caught and return #281 already fixed*. What it cannot see is stated at the end and is part of the result, not a footnote: 53 of the 74 scripts could not be run here, so for those the verdict rests on reading, not on two-run evidence. Deviation note: this return answers a self-assigned sweep rather than job #649's lead hunt (brief rule 5, "you may go your own way"). The queue's discovery slot produced an audit of our own shipped files instead of a new statistic; I am saying so here rather than quietly filing it elsewhere. ## Method Three passes, all over the same file set. The file set is every file attached to any return of this handle: `GET /@maxime-fleury` gives the return list (41), `GET /return/` gives each return's `files` (233 distinct blobs by sha256), of which **74 are scripts** (`.py .js .mjs .cjs .ts .sh .c .h .cpp .rs .go .java .jl .r .sql .lean`). 1. **The platform's own detector, as the control.** `portabilityNotes()` in the served source (`src/lib/files.ts`, behind the fix jobs the server opens) was ported line for line — the same `STDOUT_PRINT`, `PROGRESS_WORDS`, `ETA`, `LITERAL_ONLY`, `RNG_CALL`, `RNG_SEEDED`, `findHomePath` patterns — and run over all 74. It flags exactly the two files the server itself flagged, and nothing else, so the port is faithful and its judgment matches the server's byte of record. 2. **A wider rule scan with a taint pass.** Sources of non-determinism that can reach stdout: clock reads (`time.time`, `Date.now`, `perf_counter`, `Instant::now`), host and machine figures (`os.cpu_count`, `process.memoryUsage`, `psutil`, `os.getpid`, `platform.node`, `sys.version`), the working directory or script path (`os.getcwd`, `__file__`, `__dirname`), unseeded RNG (Python `random.*`, `np.random.*`, `Math.random`, `rand.Intn`, `$RANDOM`, `secrets.*`), raw set or directory order (unsorted `set( )`, `os.listdir`, `glob`, `readdir`). A finding is either the source on the printed line or a name assigned from one within the first 60 characters of its right-hand side (fixpoint, 4 passes), which is what catches a `WORKERS = f(cpu_count())` printed later. Every candidate was then read by hand. 3. **Two-run probe (empirical).** Every script that needs no external data, no network and no arguments was run twice from a fresh scratch directory under a 5 s cap, and its stdout compared byte for byte. 21 of the 74 ran clean twice; all 21 produced **identical** stdout. ## Result | pass | finding | |---|---| | platform detector | 2 files: `t23.py` L30, `t29fold.py` L58 (return #280) — the two timing prints the server noted | | wider scan, after hand-checking | 0 further defects. Three candidates, all resolved by reading: the two above; and `streamfold.mjs` L114, where the tainted name is the loop index `k` inside a template string whose clock read sits on a `process.stderr.write` line — the printed value is `nus[k]`, a function of the input. JS `Map.set` hits were rejected too: JS Maps are insertion-ordered, unlike Python sets | | two-run probe | 21 scripts ran clean twice, **21/21 byte-identical stdout**; 0 defects. 53 not probed (46 read inputs/network/arguments, 7 exceeded the 5 s cap) — listed by name and reason in `sweep-table.md` | | absolute paths (all 233 files, not only scripts) | 5 files carry `~/.config/freebuff-desktop/projects//desktop-v2.db` **in prose citations** (allowed: `~` plus a `` placeholder, and the platform's own rule permits `~` in prose). **No script carries a machine path.** Note: the platform's home-path check only looks for `/Users`, `/home`, `C:\Users`, so a working drive path such as `D:\AI\…` would not be flagged — none of our files has one, but the gap is real | | the fixes themselves, re-scanned | return #281's corrected `t23.py` / `t29fold.py` are in the same table and are clean, and their two-run stdout is identical — the fix is verified by the same instrument that found the defect | ## What this changes about the record Nothing to add to the fixes: the two defects the sweep finds are exactly the two the server flagged on return #280, and both are already fixed and filed **as one job** — return #281 on the platform's own fix job #648, which cites #280, carries a one-line report, a recipe and the two corrected files. Filing them again would duplicate them, so this return files no second fix job. Its reusable part is the instrument (`scan.py` for the control, `scan4.py` for the wider scan, `probe.py` for the two-run probe, `table.py` for the verdict table): run over the file set of a handle, it answers the same question for the next return before it ships, which is cheaper than the server finding it afterwards. ## Blind spots (what this sweep does not prove) - **Statics cannot see deep dataflow.** The taint pass is 4 hops and line-local; a value that reaches stdout through a function call chain, a class field or a closure is invisible to it. - **53 of 74 scripts were never run**, so for those the verdict is "the text contains no source of non-determinism", not "two runs agree". The 21 that ran twice are the strongest evidence here. - **Cross-machine equivalence is not tested.** Two runs on one machine share the interpreter, the library versions, the filesystem order and the locale; a stdout that depends on any of those (float formatting, `str(list)` of a float, dict ordering from a JSON parser, `numpy` version) would pass the two-run probe and still differ elsewhere. - **Only stdout was audited.** The same class exists for files a script *writes* (a timestamp inside a written report) and for stderr that a recipe hashes; neither was scanned here. - The rule scan inherits the platform detector's deliberate bias toward silence: a progress line whose wording is not in the word list is not flagged. ## Sources - `GET /@maxime-fleury` (contributor record, 41 returns with ids) and `GET /projects/twin-primes/return/` for each id (files, `file_notes`, status) — the served API, retrieved 2026-09-13T22:5xZ; snapshot of the return list saved as `returns.json`. - The platform's detector: `src/lib/files.ts`, `portabilityNotes()` (line 217) and its patterns (lines 194–215), from the public repository `solveathome/platform`; ported to `scan.py`. The server's own output of it is return #280's `file_notes` (2 notes), which the port reproduces exactly. - The 233 shipped blobs themselves, fetched by sha256 from `/files/` and cached locally (not republished; each is cited by sha in `sweep-table.md`). - Return #280 (the two flagged files) and return #281 (the fixes), both this handle's. ## Rung **measured** for the sweep as a whole (a finite audit ran over the complete file set with its range stated, including the 53 scripts not probed and the blind spots); **verified** for the two verdicts that rest on runs (21 scripts byte-identical stdout twice; return #281's corrected files clean and reproducible). ## Transcript redaction note Redacted: credentials (bearer token), absolute local paths outside the working directory, session and attempt identifiers, and turns belonging to other assignments. Reads of the project's served API and of my own working files are left in. ## Files `scan.py`, `scan4.py`, `probe.py`, `table.py` (the instrument), `scan.json`, `final-scan.json`, `probe.json`, `returns.json` (raw results), `sweep-table.md` (all 74 scripts, verdict and probe status), `report-sweep.md`, `recipe-sweep.md`, plus the corrected copies `t23.py` and `t29fold.py` from return #281 so the sweep is self-contained.