Public: anyone can read this; the crew can change it.
A Blender .blend shows the version and the data blocks it holds #16536
Check · Review · Land · Live done — Landed and live in production.
A .blend now opens on its blob page as its Blender version, pointer size, byte order, block count and a table of block codes with counts. I haven't captured screenshots, and nothing here shows the page in a browser.
shipped production is serving it deploy 7d09344
7 earlier comments · 2 events
No defect found and nothing changed, so I pushed nothing. No check of the head is recorded as failed, so the red verdict came from the forge cutting the check or re-running it, not from a test. The forge will check the head again by itself. If that run is red on a named test, send me its assertion and I'll fix it.
I merged main into the branch and pushed it. The merge conflicted in two files, not the two the forge named. I ran the six test files that cover the change, plus the tsc check, and they passed. I did not run the full suite.
- Conflicts:
scripts/kinds-guide.tsandsrc/http/mcp/tools/read_file.ts. In both I kept the.blendentry from this branch and the.torrententry frommain. - Not conflicted:
src/web/render/torrent.tsandtest/render-torrent.test.tsmerged without conflict. - Gate: the merge commit message carries the
Direction: … (#16023)andNo door:lines that the gate's "name the issue" and "both doors" rules asked for. TheNo door:reason is that the terminal has no file-open screen for this. The gate's remaining output after that was similarity notes. It flagsblendNote,blendandasciias close to existingxcfandbinary-factscode. I did not merge them. - Not run:
scripts/fast.tsfound the diff too broad to name tests. A run on all of them was estimated at over five hours, so I started it and then ran only the six files above.
<!-- look-pages 83d0aabc0afd --> Look pages for 83d0aab, from the gate:
look pages (inferred): this pull changes src/web/render/binary-facts.ts, src/web/render/blend-read.ts, src/web/render/blend.ts and 2 more; the forge pictures / (src/web/render/binary-facts.ts), /docs (src/web/render/binary-facts.ts), /explore (src/web/render/binary-facts.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
I made no change and pushed nothing. That comment is the gate's automatic list of look pages, not a review finding. It only names the pages that could change, and it lists 31 of them because this pull touches src/web/render/binary-facts.ts, which many routes import.
The visible change is the .blend file view, which needs a .blend file in a repository to show. None of the listed pages (/, /docs, /explore and the rest) renders one. If a reviewer wants the list narrowed, a Looks: <path> or No look: <why> line in a commit message overrides it. I did not pick a path because I have no .blend file in a repository on the forge to point at.
I merged main into the branch and pushed it. The merge conflicted only in src/http/mcp/tools/read_file.ts.
I kept both sides there. The imports now include this branch's blend-read.ts and main's m3u.ts. The tool's doc string lists .blend, .torrent and .m3u.
bun x tsc --noEmit came back clean, and the five test files I ran passed (195 tests: mcp-read-file, render-blend, render-kinds, kinds-guide, fuzz-renderers). I did not run scripts/fast.ts or the full suite. The forge runs the full check on this push.
The merge commit message again carries the Direction: … (#16023) and No door: lines for the gate.
<!-- look-pages 32754b1a9117 --> Look pages for 32754b1, from the gate:
look pages (inferred): this pull changes src/web/render/binary-facts.ts, src/web/render/blend-read.ts, src/web/render/blend.ts and 2 more; the forge pictures / (src/web/render/binary-facts.ts), /docs (src/web/render/binary-facts.ts), /explore (src/web/render/binary-facts.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The reader is sound: lengths are bounds-checked, the code table is capped, codes are sanitised and values are escaped. Three things to fix in one round.
- Box 5 is not met. There are no before/after screenshots, and the
reviewblock has no pictures. The pull says none were taken. Push a real.blendto a repo on the preview, take both views (a readable file, and the source-view fallback), and attach them. - There is no
docs/features/blend.md. The only how-to for.blendwas deleted frombinary-facts.md. Add one in the format of the neighbouring pages (front mattertopicandrow), covering the page rows, the terminal note, the MCPaboutfields, the 5 MB cap, and that compressed files stay binary. Keep it out of README. - Principle 1: the page explains itself twice. See the comment on
blend.ts.
Also reuse the status-rows and dl markup as it stands, but drop the borrowed psd-view wrapper class. Use a neutral wrapper or none.
I fixed points 2 and 3 and pushed. Point 1, the screenshots, is not done: there are still no before/after pictures and the review block still has none.
tsc, design-lint and the render-blend, render-kinds, docs-index and docs-link tests pass. I did not run the full suite.
- Docs (point 2): I added
docs/features/blend.mdwith the front matter and the layout ofpsd.md. It covers the page rows, the terminal note and the MCPabout: {version, codes}fields. It also covers the 5 MB cap, the 64-code cap, and that gzip/zstd-compressed files stay binary. Nothing was added to the README. - Page (point 3): in
src/web/render/blend.tsI removed the "block contents are not opened" footnote and kept the "no closing block" line. I also replaced thepsd-viewwrapper with a plain<div>. Thestatus-rowsanddlmarkup is unchanged. - Screenshots (point 1): I can't push a
.blendfile to a repository on the preview, and I have no browser to take the two views. The commit message has aNo look:line giving that reason. To finish it, someone can push a real.blend(and a compressed one for the source-view fallback) to a repository on the preview and attach both views. - Look pages: the gate's inferred list comes from
binary-facts.ts, which many routes import. No listed page shows a.blend, which is why I usedNo look:.
Earlier asks: docs/features/blend.md is added and README is untouched (met). The psd-view wrapper and the second footnote are gone from the page (met). Before/after screenshots are still missing, and torque says no .blend can be pushed to the preview from here. Non-blocking: attach a before/after of a real .blend and one compressed-file fallback once someone can push one.
I read the reader again. The walk checks every block length against the bytes left, steps at least 20 bytes a turn, caps distinct codes at 64, and escapes codes and names. The renderer is registered by extension plus signature, with a 5 MB cap. MCP read_file carries about, and the terminal has its own note. Tests cover parse, escape, cap, malformed and a code flood, and the fuzz sample is added. No new dependency. No security findings.
Left #16023 open: 1 unticked item remain (The new test file is found by the gate list; bun scripts/design-lint.ts is clean; the pull carries a review block with before/after screenshots.).
A
.blendnow opens on its blob page as its Blender version, pointer size, byte order, block count and a table of block codes with counts. I haven't captured screenshots, and nothing here shows the page in a browser. I rantsc,gate.ts --fix,design-lintand the covering tests (417 pass, includingtest/mcp-size.test.tswith the ceilings untouched), but not the full suite.What changed
blend: registered inkinds.tsby extension plus theBLENDERsignature, with a 5 MB render cap, and drawn byrenderers.ts.blend-read.tshandles the old 12-byte header (4- or 8-byte pointers, either byte order) and the Blender 5 17-byte header with 32-byte block headers.blend.tsshows a codes table such as "Objects (OB)", with every value escaped and no script on the page. It reads only the file and block headers, never block contents.read_filetool carriesabout: {kind: "blend", version, pointerSize, endian, blocks, codes, other, says}. No new tool.blend-note.ts.SAMPLESentry intest/fuzz-renderers.test.ts, which also satisfies the random-bytes case.test/render-blend.test.tscovers parse, escape, cap, malformed, a hostile flood of distinct codes, and the terminal note.read_fileabout,render-kindsanddocsguards.test/helpers/blend.tsbuilds sample files.bun scripts/similar.tswas not run. I copied the shape of the GIMP (.xcf) renderer, including itsstatus-rowsmarkup and thepsd-viewclass.Moved, not extended:
.blendleft the CAD header-facts kind, sobinary-facts.tsnow covers only.dwgand.fbx. Their tests and docs were updated.Left out
.blendfiles are not decompressed and stay plain binaries.Pre-push hook: it required a
Try:commit, so one empty commit carries it.To try: push a
.blend(for exampleBLENDER-v404plus blocks) to a repository and open it on its blob page.🤖 Generated with Claude Code
Closes #16023