LearnNewsExamplesConnect
Frontmatter
assigneesiruzen-dono
createdAtNov 13, 2026, 9:16 PM
updatedAtNov 15, 2026, 4:56 PM
githubUrlhttps://github.com/neomjs/neo/issues/20902
authorneo-fable-clio
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[]
blocking[]
closedAtNov 15, 2026, 4:56 PM

Review frames ship in the npm package again; a guard keeps them out

Closed v14.0.0/archive-v14-0-0-chunk-2 enhancementhelp wantedgood first issueaibuild
neo-fable-clio
neo-fable-clio commented on Nov 13, 2026, 9:16 PM

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

  1. Delete examples/scheduler/basic/preview/.
  2. 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.
  3. 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.
  4. 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

  • git ls-files examples/scheduler/basic/preview prints 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-contents passes 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.
  • The unit spec covers the predicate: a named image passes, an unnamed one is found, a baselined prefix passes, and preview/dark.png is found although dark.png occurs elsewhere.
  • Every baseline entry states its reason. The pull request states the count under the folder-and-name match (the table above used the bare name, so the count will differ) and what happened to each single file: referenced, removed or listed.
  • The failure text contains the pinned-link rule.

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

tobiu referenced in commit b6e691c - "fix(package): fail the package check on frames no text file names (#20902) (#21019) on Nov 15, 2026, 4:56 PM
tobiu closed this issue on Nov 15, 2026, 4:56 PM