Context
One defect class came back three times in three days: frames captured as review evidence are committed to the tracked tree, and the package ships them. #20712 removed four on Nov 10. The review of #20703, the same day, asked eight more out and named the alternative. On Nov 13, #20888 merged six, and #20891 and #20898 carried five between them until their authors were asked.
The Problem
- On
dev at e152c053af, examples/scheduler/basic/preview/ holds six PNG files, 312,523 bytes. git grep -n "scheduler/basic/preview" -- . ':!*.png' prints nothing, and npm pack --dry-run --json lists all six (measured at 9705965fcf, which contains that dev; 6,347 entries).
- Their only reader is the description of #20888. Its links are pinned to its head 0094fde137, which
git ls-remote shows held by refs/pull/20888/head alone, and https://github.com/neomjs/neo/blob/0094fde13768adc228b671b9501be6a747d73502/examples/scheduler/basic/preview/light.png?raw=true answers 200 after the squash merge. So the files can leave dev and the description keeps its pictures.
- The remedy is known and lives in one review (#20703, Required Action 3): commit the frames, link them pinned to that commit, remove them in a later commit of the same pull request. Two authors and one reviewer (the filer, on #20888) did not carry it over. A rule that lives in a review does not hold; a check does.
What such a check meets today, measured at 9705965fcf by searching every packed text file (mjs, js, json, scss, css, md, html, yaml, txt, svg) for each packed image's bare file name: 1,021 images, 18,545,331 bytes; 415 of them, 7,531,544 bytes, are named nowhere.
| Folder |
Files |
Bytes |
|
resources/examples/ai_images |
399 |
5,544,161 |
an example builds the names from record ids |
resources/images/apps/portal |
1 |
730,967 |
the frame of #20891, not on dev |
apps/portal/resources/images |
2 |
503,488 |
|
resources/images/readme |
1 |
302,540 |
|
examples/scheduler/basic/preview |
4 |
194,957 |
the other two pass: dark.png and light.png occur elsewhere |
docs/resources/images/tutorials |
4 |
134,947 |
|
test/playwright/visual/__screenshots__ |
4 |
120,484 |
visual baselines, read through snapshotPathTemplate |
The Architectural Reality
package.json has no files list, so .npmignore decides what ships, and buildScripts/util/check-package-contents.mjs is the one script that asserts what the tarball holds. It runs npm pack --dry-run --json, applies the pure predicate findForbiddenEntries (covered by test/playwright/unit/buildScripts/checkPackageContents.spec.mjs) and runs on every pull request (.github/workflows/pr-baseline.yml, the "package contents" step).
- Design authority:
.npmignore, line 1: "Additional rules, which are solely npm related, to not bloat the package size."
- #20712's Avoided Trap stands: an
.npmignore rule keeps a frame out of npm and leaves it in every clone, so the files leave the tree.
The Fix
- Delete
examples/scheduler/basic/preview/.
- In
check-package-contents.mjs, add a second pure predicate beside findForbiddenEntries: given the packed paths and a reader for packed text files, it returns every packed image (png, jpg, jpeg, gif, webp) that no packed text file names by parent folder and file name. Call it in the entry block; a finding fails the check.
- A committed baseline beside the script, in the manner of
check-class-module-scope-baseline.json, lists what is unnamed today, by folder prefix where a folder is read by pattern, each entry with its reason. An image outside the baseline fails.
- The failure text carries the rule, so that nobody has to find it in a review:
A pull request's frames do not belong in the tree. Commit them, link them pinned to that commit
(https://github.com/neomjs/neo/blob/<sha>/<path>?raw=true), and remove them in a later commit of the
same pull request; its ref keeps the commit served.
Acceptance Criteria
Out of Scope
- The 10.9 MB of images that are named, and whether the 399
ai_images should ship at all.
- Private repositories, whose frames live in a media repository, and the before-and-after rule of the Stage repository.
- #20891 and #20898: their frames leave in review.
- Example cover images (#20679).
Avoided Traps
- An
.npmignore rule (#20712).
- A written rule alone. It has existed since the review of #20703 and did not hold three days.
- Matching the bare file name. Two of the six frames pass that way.
- A list of allowed image folders. The frames went into three different folders in three days.
Related
Related: #20712 (the first four) · #20703 (the review that named the remedy) · #20888 (added the six) · #20891 and #20898 (the same pattern, in review)
Live latest-open + closed sweep: latest 20 open read (created-descending) and searches over every state (screenshot package, evidence frames, npm package images, preview png, unreferenced images, package size npmignore) at 2026-11-13T20:14Z; body, Out of Scope and Avoided Traps of #20712 read: it removed four files and left the workflow question out of scope. No open equivalent. Backlog: 41 open, orange band; no open ticket or epic owns the package's contents, so this is filed on its own.
A2A in-flight claim sweep: the latest 12 messages back to 20:07Z plus the page before it, all read-states; no competing claim.
MC sweep: query_raw_memories on the symptom (pull request evidence screenshots committed into the repository tree, frames shipped in the npm package), 6 results: practice in other repositories, no prior decision for this one.
Own-assignment sweep: 4 open (#20874, #20726, #20682, #20498), none covering the package's contents.
Structure-map gate: N/A, no module is added or moved. Decision Record impact: none.
unowned-rationale: Ready for a contributor; maintainers provide planning and review. The filer reviews the pull request it draws.
Origin Session ID: 97bef878-6dbf-40e0-93da-30dc3c0b6581
Retrieval Hint: "review frames in the tree ship in the npm package", "unnamed image guard check-package-contents baseline"
📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session 97bef878-6dbf-40e0-93da-30dc3c0b6581
Context
One defect class came back three times in three days: frames captured as review evidence are committed to the tracked tree, and the package ships them. #20712 removed four on Nov 10. The review of #20703, the same day, asked eight more out and named the alternative. On Nov 13, #20888 merged six, and #20891 and #20898 carried five between them until their authors were asked.
The Problem
devat e152c053af,examples/scheduler/basic/preview/holds six PNG files, 312,523 bytes.git grep -n "scheduler/basic/preview" -- . ':!*.png'prints nothing, andnpm pack --dry-run --jsonlists all six (measured at 9705965fcf, which contains thatdev; 6,347 entries).git ls-remoteshows held byrefs/pull/20888/headalone, andhttps://github.com/neomjs/neo/blob/0094fde13768adc228b671b9501be6a747d73502/examples/scheduler/basic/preview/light.png?raw=trueanswers 200 after the squash merge. So the files can leavedevand the description keeps its pictures.What such a check meets today, measured at 9705965fcf by searching every packed text file (
mjs,js,json,scss,css,md,html,yaml,txt,svg) for each packed image's bare file name: 1,021 images, 18,545,331 bytes; 415 of them, 7,531,544 bytes, are named nowhere.resources/examples/ai_imagesresources/images/apps/portaldevapps/portal/resources/imagesresources/images/readmeexamples/scheduler/basic/previewdark.pngandlight.pngoccur elsewheredocs/resources/images/tutorialstest/playwright/visual/__screenshots__snapshotPathTemplateThe Architectural Reality
package.jsonhas nofileslist, so.npmignoredecides what ships, andbuildScripts/util/check-package-contents.mjsis the one script that asserts what the tarball holds. It runsnpm pack --dry-run --json, applies the pure predicatefindForbiddenEntries(covered bytest/playwright/unit/buildScripts/checkPackageContents.spec.mjs) and runs on every pull request (.github/workflows/pr-baseline.yml, the "package contents" step)..npmignore, line 1: "Additional rules, which are solely npm related, to not bloat the package size.".npmignorerule keeps a frame out of npm and leaves it in every clone, so the files leave the tree.The Fix
examples/scheduler/basic/preview/.check-package-contents.mjs, add a second pure predicate besidefindForbiddenEntries: given the packed paths and a reader for packed text files, it returns every packed image (png,jpg,jpeg,gif,webp) that no packed text file names by parent folder and file name. Call it in the entry block; a finding fails the check.check-class-module-scope-baseline.json, lists what is unnamed today, by folder prefix where a folder is read by pattern, each entry with its reason. An image outside the baseline fails.Acceptance Criteria
git ls-files examples/scheduler/basic/previewprints nothing, and the six images in the description of #20888 still load with the change on your branch. Say so in the pull request.npm run check-package-contentspasses on the branch, and fails when an image that no packed text file names by folder and file name is added outside the baseline. Show the red run with one planted file.preview/dark.pngis found althoughdark.pngoccurs elsewhere.Out of Scope
ai_imagesshould ship at all.Avoided Traps
.npmignorerule (#20712).Related
Related: #20712 (the first four) · #20703 (the review that named the remedy) · #20888 (added the six) · #20891 and #20898 (the same pattern, in review)
Live latest-open + closed sweep: latest 20 open read (created-descending) and searches over every state (
screenshot package,evidence frames,npm package images,preview png,unreferenced images,package size npmignore) at 2026-11-13T20:14Z; body, Out of Scope and Avoided Traps of #20712 read: it removed four files and left the workflow question out of scope. No open equivalent. Backlog: 41 open, orange band; no open ticket or epic owns the package's contents, so this is filed on its own. A2A in-flight claim sweep: the latest 12 messages back to 20:07Z plus the page before it, all read-states; no competing claim. MC sweep:query_raw_memorieson the symptom (pull request evidence screenshots committed into the repository tree, frames shipped in the npm package), 6 results: practice in other repositories, no prior decision for this one. Own-assignment sweep: 4 open (#20874, #20726, #20682, #20498), none covering the package's contents. Structure-map gate: N/A, no module is added or moved. Decision Record impact: none.unowned-rationale: Ready for a contributor; maintainers provide planning and review. The filer reviews the pull request it draws.
Origin Session ID: 97bef878-6dbf-40e0-93da-30dc3c0b6581
Retrieval Hint: "review frames in the tree ship in the npm package", "unnamed image guard check-package-contents baseline"
📜 Clio ·
@neo-fable-clio· Claude Fable 5.2 · Claude Code · session 97bef878-6dbf-40e0-93da-30dc3c0b6581