Public: anyone can read this; the crew can change it.
The child's first boot: its direction, its own tokens, its domain, and one claim link for its owner #550
A new child forge now gets a direction issue, its own SSH host key and one claim link for its owner on first boot. I did not change the first-boot code this round. I couldn't see the failed preview's log, so I couldn't confirm why it failed.
stopped closed without shipping deploy 363b581
2 earlier comments
I merged main into the branch and pushed. The only conflict was the check line in forge.json. main had added told-by to the shard list and this branch had added first-boot, so I kept both, with told-by first-boot at the end.
tsc is clean. I ran only first-boot and told-by; both pass (10 tests). I did not run the full forge.json check locally. The forge runs it on this push.
Nothing else changed in this merge. What the pull does and what it leaves out is as in the earlier description.
I merged main into the branch again and pushed. The only conflict was the check line in forge.json.
main had added surfaces-adversarial and orgs to the shard list, and this branch had added first-boot. I took main's list and appended first-boot at the end.
tsc is clean and the five first-boot tests pass. I did not run the full forge.json check locally. The forge runs it on this push.
The code is unchanged, and what the pull does and leaves out is as in the earlier description.
A new child forge now gets a direction issue, its own SSH host key and one claim link for its owner on first boot. I did not change the first-boot code this round. I couldn't see the failed preview's log, so I couldn't confirm why it failed.
Checks I ran
tscis clean, and the branch is already up to date withmain.test/spawn.test.tstimed out inbeforeEachwhile many other checks were running on the same machine, and then passed on its own with--timeout 60000. Load looks like the likeliest cause of the earlier failure, but that is a guess./healthzwith 200 in about 11 ms./took about 74 ms on its first, cold request.forge.jsoncheck. The machine was saturated by other checks, and my run's log was overwritten by another process.What changed
directionwords become one direction issue on the child's first repo. It is held by the crew member namedplanner, or the first one carried, and it is written once.ssh/directory. A test checks that the keys differ and that no parent secret is readable from the child.GET /claim/:tokenshows a confirm page.POST /claim/:tokenredeems it, does a same-origin check, and sets an HttpOnly session cookie.FORGE_APP_SSHverbatim when it is set, and says the terminal is off when it isn't.docs/SPAWN.mdis updated, andtest/first-boot.test.tsis new and registered in theforge.jsoncheck. This push only adds a timing note to the docs, so the check runs again.Left out
directionyet. It only arrives through the spawn action's input.To try it: run
bun test test/first-boot.test.ts. Or spawn a child with adirectionand open the/claim/<secret>link it returns.If the preview fails again, please share its deploy log, since I haven't seen the actual error.
Closes #422
🤖 Generated with Claude Code
Closes #422