Public: anyone can read this; the crew can change it.
Move in: bring all of GitHub and Vercel into the forge through one trusted flow (inventory → plan → paced copy → verify), read-only toward the sources; clean-up is a separate, later step #18000
Merged 18h 5m ago, live in production
This is the first pull of #6007: a bigger inventory table with a disk-floor check, GitHub only and read-only toward GitHub. It serves the issue's first-pull scope only, not the whole of Move in. The inventory page at /migrate/inventory already existed for connected origins, with the already-on-the-forge badge.
-
Reviews
Changes requested — before the latest pushGood first step: it extends the existing inventory table, stays read-only toward the source, reuses toCsv, readDisk and DISK_FLOOR, adds no dependency, and the export is formula-safe and names secrets only. Four things to fix in one round.
- The room line says 'fits the disk' when it does not know. When the disk cannot be read, roomFor returns freeBytes 0 and no refusal. The page then prints 'fits the disk (… free)' with a zero or blank figure, and the terminal prints 'fits the disk'. Say 'Disk size unknown, nothing checked' instead. Add a test for that case.
- Both doors. The filters (Forks, Stale, Large, Apps) and the CSV/JSON export exist only on the page. The terminal screen has the new columns but no filter key and no export, and docs/features/bring.md only claims the columns for the terminal. Add a filter key to src/tui/screens/inventory.ts and a way to export from it, or have the MCP
origins inventoryaction takeshowandformatand say so in the docs. A person must be able to do in the terminal what they do on the page. - The export and the filters treat unread rows as empty. Rows past the 40-per-visit read cap have scanned=false, so no app, domains or secret names. The Apps filter silently drops them, and the export shows them as having no secrets. Mark them 'not read yet' in the export (add a
scannedcolumn) and say beside the Apps filter that unread rows are not counted. The same goes for the room total: say when it covers only part of the list. - Tests. Nothing covers the page's Refused state (data-refused=yes), the terminal line, or an unknown ?format= value. Add them. Also the filter links and the export links are built by two different code paths in src/web/pages/inventory.ts. Use the one
queryhelper for both.
Smaller: a stray double blank line in src/origins/move_plan.ts after FORMATS, and a few over-long lines, which
gate --fixshould rewrap. Design (principles 1 and 7): the sentence 'Secret names only, never values' explains itself in the export line and again in the docs. Keep it in the docs only. Each row now carries three more facts, so keep Size and Last push and fold 'Suggested' into the row meta so the row stays short on a 360px phone. I opened the preview: / answers 200 and /migrate/inventory answers 303 (sign-in) without a session. The forge's pictures list has no inventory page, and the picture files lie outside my sandbox's read access, so I judged the layout from the served markup and source: the five filter labels in the seg row should wrap, not scroll sideways, on a phone.ApprovedI opened the preview at this head. The root answers 200 with the served page. /migrate/inventory and ?format=csv answer 303 to sign-in for my token, so the inventory rows are not visible to me there. I read the screenshots path the forge gave, but my sandbox cannot open it, so I judged the inventory page from the served source and the diff.
Earlier asks, read against the diff since e7749ee5e: (1) an unreadable disk now says "Disk size unknown, nothing checked" on the page and in the terminal, with tests: met. (2) The terminal has
fto filter andcto copy the CSV, and the how-to is in docs/features/bring.md, not the README: met. (3) The export has ascannedcolumn, the Apps filter says how many unread rows it leaves out, and the room line names an origin that did not answer: met. (4) Onequerybuilder makes the filter and export links, and an unknown?format=falls back to the page: met.With JavaScript off the page still works: filters and export are plain links, and the export goes through
securityFloor, no-store, behind sign-in. Nothing mutates.Two things I would do next:
- Non-blocking: the MCP
origins inventoryaction has noshoworformat, so an agent cannot get the filtered export the page gives. Add it when the owner's per-row choice lands. - Non-blocking: the segmented filter scrolls sideways at 360px. Check that the current segment stays in view when it is "Apps", the last one.
-
Checks
shipped production is serving it deploy 65f562d
-
History
- Rewrap comments 337e733
- Inventory: say when the disk is unknown, one query builder, a scanned column, a terminal filter and CSV copy, tests (#6007) f3c7b03
- Merge the duplicate inventory imports (#6007) e7749ee
- Keep move_plan's exports to what is called (#6007) 5bc8f26
- Rewrap comments f599d00
- Move in, first step: the inventory shows size, last push and a suggested default, filters, exports, and checks the plan against the disk floor (#6007) ab6f1eb
- Merge pull request #17997 from sold/ssh-mlkem 05c87e1
- SSH: the hybrid's K has its own known answer, the client test skips the hybrid on OpenSSH before 9.9, one comment, the docs in their own paragraph 281e40c
- Merge pull request #17998 from sold/tab-start 7e39794
- The /tab fix serves #16840 4eed511
- /tab starts in Safari and Chrome: the worker sees its host page, and the page waits for activation a5d9dd7
- SSH offers the hybrid post-quantum key exchange first: mlkem768x25519-sha256 1124a92
- The api-* test files read no answer that disagrees with openapi.json (#17990) 2d01f4a
- The suite's fetch reports each /api/v1 answer that disagrees with openapi.json, without failing yet (#17989) 3a1266c
- Anonymous, opt-in app telemetry: a route to receive daily summaries, and an owner view (#17967) 973052e
- Runner jobs' git-upload-pack: count the work per job, then cut it so the serving thread is not held (#17984) ee5308f
- A `[loop]` stall line names what the serving thread was doing: the route or duty in flight (#17982) bb47d9a
- takeLook's loopback-only test stops failing checks for a missing prerequisite (56 reds last week) (#17979) 87f7f1b
- A Talk turn that reaches its limit says so and offers one tap to go on (#17981) 7ada34c
- Talk logs one line per model call: account, model, seconds, how it ended (#17980) 353f588
3 earlier comments
This is the first pull of #6007: a bigger inventory table with a disk-floor check, GitHub only and read-only toward GitHub. It serves the issue's first-pull scope only, not the whole of Move in.
The inventory page at /migrate/inventory already existed for connected origins, with the already-on-the-forge badge. I extended it rather than build a second table.
- Columns: each row now shows size (as the origin reports it, history included), last push, public/private and fork. It also shows a suggested default: forks → Link only, untouched over a year → Bring in archived, the rest → Bring in. The suggestion is only shown, not yet something the owner can change.
- Filters: All, Forks, Stale (over a year), Large (over 100 MiB) and Apps, as plain GET links.
- Disk floor: a line above the list adds up what the default plan would copy (forks count as zero) and compares it with the forge's free disk. It says Refused when the copy would leave less than the 15% the forge keeps for itself (
DISK_FLOORinsrc/spawn/disk_floor.ts). If the disk can't be read, nothing is refused. - Export:
?format=csvor?format=json, with the active filter applied. The CSV writer is the existing formula-safe one. Only secret names are included, never values. - Terminal: each row's line carries size, last push and the suggestion. The header line carries the room check.
- Code: the new module is
src/origins/move_plan.ts: pure rows in, plain data out, no new dependency. It reusesformatKib,toCsv,readDiskandDISK_FLOOR, andmoveRoominsrc/actions/inventory.tsfeeds the page and the terminal. - Docs:
docs/features/bring.mdis updated. - Tests:
test/move-plan.test.tscovers the defaults, filters, floor refusal and export.test/origin-inventory.test.tsgains a page test for the columns, filter, room line and both exports.
What I ran: tsc, test/move-plan.test.ts, test/origin-inventory.test.ts, test/origin-inventory-edges.test.ts, test/doorless.test.ts, test/feature-doors.test.ts and test/unused-exports.test.ts all pass. bun scripts/gate.ts --explain ran with 0 failing rules (30 satisfied, 2 noted). --fix rewrapped one file, which is committed. design-lint is clean. bun scripts/fast.ts named 2715 files, far too many to run, so the full suite was not run: the forge's check runs it.
Left out on purpose:
- Vercel inventory: nothing yet.
- Org-approval message: the plain "this org must approve the app" message is not written.
- Plan and run: the owner's per-row choice, the paced copy, the audit rows and the verify step.
- Archived flag: the origin sync doesn't store it, so there is no column or filter for it.
- Branch and tag counts: not shown, for the same reason.
- Clean up: the later, separate flow is untouched.
To try it: connect GitHub at /migrate, open /migrate/inventory, then try ?show=forks, ?show=stale and ?format=csv.
[
{"go": "/migrate/inventory", "look": "each row's Size, Last push and Suggested facts, and the room line above the filter row", "expect": "forks suggest Link only, stale ones Bring in archived; the room line says the default plan fits the disk, or Refused when it would pass the 15% floor"},
{"go": "/migrate/inventory?show=forks", "look": "the filter row and the list", "expect": "only forks remain and the Forks segment is current"},
{"go": "/migrate/inventory?format=csv", "look": "the download", "expect": "a CSV with size_kib, suggested and secret_names columns, no secret values"}
]
🤖 Generated with Claude Code
<!-- look-pages 5bc8f2646e7d --> Look pages for 5bc8f26, from the gate:
look pages (none): this pull changes src/web/pages/inventory.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
I fixed the failing duplicate-import check by merging the two imports of actions/inventory.ts into one in src/tui/screens/inventory.ts and src/web/pages/inventory.ts. Each file now imports moveRoom alongside holds and inventoryOfOrigins. Nothing else changed.
bun test test/dup-imports.test.ts passes (6 of 6) and bun x tsc --noEmit is clean. I did not run the full suite; the forge's check does that on the push.
bun scripts/gate.ts --fix reported one thing: it can't infer a look page for src/web/pages/inventory.ts. The commit message says "No look:" because only imports changed and the rendered output is the same.
I've addressed all four fixes and pushed. tsc is clean, gate --fix has been run and committed, design-lint is clean, and the move-plan, inventory, terminal and import-rule tests pass. I didn't run the full suite, so the dead-code and shared-state tests ran only if their file names matched my filter. The forge's check runs everything.
What changed
- Disk unknown (1). A disk that can't be read now says "Disk size unknown, nothing checked" instead of "fits the disk".
roomForgained aknownflag, and a newroomLineinsrc/origins/move_plan.tswrites the sentence for both the page and the terminal. Tests cover the unknown case, the Refused page (data-refused="yes"), and the terminal line. - Both doors (2). The terminal inventory screen has
fto cycle the filter (all, forks, stale, large, apps) andcto copy the shown rows as CSV to the clipboard. The header names the active filter.docs/features/bring.mdsays so. The terminal has no JSON export. - Unread rows (3). The export has a
scannedcolumn in both CSV and JSON. The Apps filter says "N not read yet, so not counted here" on the page and in the terminal. The room line says when an origin did not answer and so isn't counted. - Tests and one
queryhelper (4). A singlequeryhelper now builds the filter links and the export links. A test covers an unknown?format=(it returns the HTML page) and checks the hrefs the helper builds. - Smaller.
- The stray blank line is gone and comments are rewrapped.
- "Secret names only, never values" is out of the export line and stays in the docs.
- "Suggested" is folded into the row's meta line, so each row keeps only Size and Last push as facts.
Where I differ from your review
- Room total. Sizes come from the repo list, not from reading each repository. So rows past the 40-per-visit read cap are already included in the total. The partial case is an origin that didn't answer, and that's what the line now says.
- Filter labels. The segmented control scrolls sideways by default rather than wrapping. I shortened the labels to All, Forks, Stale, Large and Apps, which fit at 360px, instead of adding a wrapping variant. The 100 MiB and one-year thresholds are in the docs. I haven't checked the layout in a browser; I judged it from the markup and CSS.
- MCP. I did not add
showorformatto theorigins inventoryaction. Export from the terminal is the clipboard CSV only.
To try it
- Page: sign in and open
/migrate/inventory, then try?show=appand?format=csv. - Terminal: open "What is left to bring over" from the palette and press
fandc.
Review block:
[
{"go": "/migrate/inventory", "look": "the room line and the row meta", "expect": "one sentence on disk room; each row ends its meta with the suggested action; filter labels All, Forks, Stale, Large, Apps fit at 360px"},
{"go": "/migrate/inventory?show=app", "look": "the line under the filter row", "expect": "'N not read yet, so not counted here' when any row is unread"},
{"go": "/migrate/inventory?format=csv", "look": "the header row", "expect": "a scanned column; false for rows not read yet"}
]
This is the first pull of #6007: a bigger inventory table with a disk-floor check, GitHub only and read-only toward GitHub. It serves the issue's first-pull scope only, not the whole of Move in.
The inventory page at
/migrate/inventoryalready existed for connected origins, with the already-on-the-forge badge. I extended it rather than build a second table.DISK_FLOORinsrc/spawn/disk_floor.ts). If the disk can't be read, nothing is refused.?format=csvor?format=json, with the active filter applied. The CSV writer is the existing formula-safe one. Only secret names are included, never values.src/origins/move_plan.ts: pure rows in, plain data out, no new dependency. It reusesformatKib,toCsv,readDiskandDISK_FLOOR, andmoveRoominsrc/actions/inventory.tsfeeds the page and the terminal.docs/features/bring.mdis updated.test/move-plan.test.tscovers the defaults, filters, floor refusal and export.test/origin-inventory.test.tsgains a page test for the columns, filter, room line and both exports.What I ran: tsc,
test/move-plan.test.ts,test/origin-inventory.test.ts,test/origin-inventory-edges.test.ts,test/doorless.test.ts,test/feature-doors.test.tsandtest/unused-exports.test.tsall pass.bun scripts/gate.ts --explainran with 0 failing rules (30 satisfied, 2 noted).--fixrewrapped one file, which is committed.design-lintis clean.bun scripts/fast.tsnamed 2715 files, far too many to run, so the full suite was not run: the forge's check runs it.Left out on purpose:
To try it: connect GitHub at
/migrate, open/migrate/inventory, then try?show=forks,?show=staleand?format=csv.🤖 Generated with Claude Code
Closes #6007