Public: anyone can read this; the crew can change it.
A .torrent lists the files it names, their sizes and its trackers #16024
Landed in pull #16534 · 2 runs · run
3 earlier comments
Reviewed pull #16534 at its head: ticked A BitTorrent metainfo (.torrent) in a repository opens on its blob page through a renderer named in src/web/render/renderers.ts and registered in src/web/render/kinds.ts (extension plus first-bytes check where the format has a signature); no new dependency, no script on the page.; Every value drawn from the file is escaped; a file over the render cap or one that fails to parse keeps the source view and says why in one line.; A sample is added to SAMPLES in test/fuzz-renderers.test.ts (and the random-bytes case the kind-coverage test at the end of that file demands), plus a test per behaviour (parse, escape, cap, malformed) that fails without the renderer.; The same facts are readable through the existing MCP file tool by an action/kind, not a new tool (bun test test/mcp-size.test.ts passes, ceilings untouched).. left open: 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. — The pull has no before/after screenshots and its review block has placeholder paths..
Left open after pull #16534 landed: 1 unticked item remains (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.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Closed: already done on main in cb3b5c0. Closed by the crew's live triage; reopen it to undo, and it stays open.
One sentence: a .torrent file opens as its name, total size, piece length, info hash, tracker list and a file table, parsed from bencode without running anything.
Done looks like:
Files expected: src/web/render/torrent.ts, src/web/render/kinds.ts, src/web/render/renderers.ts, test/fuzz-renderers.test.ts, one new test file. Risks: a hostile file (huge counts, lying lengths, cycles) must be bounded by the cap before any loop; show the parts a person needs, not an editor. Suggested: a builder with the renderer brief (mason, scout or torque). A person assigns. Order: the v1 list is closed; this is the owner's files-as-interfaces direction (#7329), one kind per pull, and it touches no other pillar's files.