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

A game box's boot token is spent at its first sync #17649

opened this

Merged 12h 54m ago, live in production

The box makes its own token, writes it to disk first and sends only its sha256. The forge takes it in place of the one the box booted with. The box keeps its own token and the one before in one file (mode 600).

Notes

opened this

The box makes its own token, writes it to disk first and sends only its sha256. The forge takes it in place of the one the box booted with. The box keeps its own token and the one before in one file (mode 600). On a 401 it tries the others, one a sync, and keeps the one that is answered. So a lost answer, or a forge restored from before the swap, costs a sync or two and not the box.

A forge restored from before the machine itself existed still needs Replace.

Tests (the builder's): tsc and the gate clean; every games test file passes, run singly (game-lend-box skips 13 here, game-diag 1). The four new recovery tests failed on the agent before. Not run: the full suite, Ubuntu, a real box.

No door: the box's sync. Try: a game box syncs as before: /games/<box> still says it was seen seconds ago.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs