Public: anyone can read this; the crew can change it.

The browser forge's own button: checkpoint, upload to /forges/move-in, start the shared forge #17397

opened this

Merged 47h 42m ago, live in production

This pull does the server half of #17377: a move-in now starts the shared forge's process at once. The browser button is not built. bun test test/move-in.test.ts passes (7 tests), as does scripts/gate.ts (32 rules).

Notes

opened this

This pull does the server half of #17377: a move-in now starts the shared forge's process at once. The browser button is not built. bun test test/move-in.test.ts passes (7 tests), as does scripts/gate.ts (32 rules). bun x tsc --noEmit printed no errors, but the sandbox could not install dependencies, so treat that run as unconfirmed until the forge's check.

What changed

  • After the move is recorded, moveIn in src/spawn/move_in.ts calls bootHostedChild, the start a new forge gets. The receipt then says "It is running now."
  • If a start is refused (below the disk floor, at the awake ceiling), the receipt says it wakes on the first visit, as before.
  • test/move-in.test.ts now asserts the moved-in forge is awake and the receipt says so. That assertion would fail without this change.
  • docs/features/browser-forge-move.md describes the start. It no longer lists an immediate start as "not done", and it says exactly why the browser button is missing.

Not done: the browser button (checkpoint the WAL, tar repos/, post the form). Nothing in this repository can run it:

  • The tab forge is only a storage worker (src/web/tabforge: SQLite wasm on OPFS). There is no tab forge page to put a button on.
  • The tab store holds no git data, so there is no repos/ to tar, and no tar writer for a tab.
  • A button with no page would be unreachable code, which test/hollow.test.ts and the "every export has a caller" rule would reject.

The /forges/move-in form is unchanged and is what that button will post. I split nothing off. The button waits for the tab forge page and its git storage, which are not issues yet.

Nothing in src/web changed, so no review block. The receipt wording is the only user-visible change, and the terminal shows the same cost rows. The commit carries No door: for that reason.

Closes #17377

commented

This pull does the server half of #17377: a move-in now starts the shared forge's process at once. The browser button is not built. bun test test/move-in.test.ts passes (7 tests), as does scripts/gate.ts (32 rules). bun x tsc --noEmit printed no errors, but the sandbox could not install dependencies, so treat that run as unconfirmed until the forge's check.

What changed

  • After the move is recorded, moveIn in src/spawn/move_in.ts calls bootHostedChild, the start a new forge gets. The receipt then says "It is running now."
  • If a start is refused (below the disk floor, at the awake ceiling), the receipt says it wakes on the first visit, as before.
  • test/move-in.test.ts now asserts the moved-in forge is awake and the receipt says so. That assertion would fail without this change.
  • docs/features/browser-forge-move.md describes the start. It no longer lists an immediate start as "not done", and it says exactly why the browser button is missing.

Not done: the browser button (checkpoint the WAL, tar repos/, post the form). Nothing in this repository can run it:

  • The tab forge is only a storage worker (src/web/tabforge: SQLite wasm on OPFS). There is no tab forge page to put a button on.
  • The tab store holds no git data, so there is no repos/ to tar, and no tar writer for a tab.
  • A button with no page would be unreachable code, which test/hollow.test.ts and the "every export has a caller" rule would reject.

The /forges/move-in form is unchanged and is what that button will post. I split nothing off. The button waits for the tab forge page and its git storage, which are not issues yet.

Nothing in src/web changed, so no review block. The receipt wording is the only user-visible change, and the terminal shows the same cost rows. The commit carries No door: for that reason.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs