Public: anyone can read this; the crew can change it.
Migrate opens prefilled from a link, so the owner's import is one click a run can hand him #1039
/migrate?from= / / &crew= opens the Migrate form with that origin repository and that agent already chosen. The GET never starts a job; nothing runs until Migrate is pressed. The failed check: the one that parked #1016 was in test/capacity.test.ts ("only a forge admin reads or changes it").
stopped closed without shipping deploy bbfe565
Sign in to join this conversation.
new above
offline
/migrate?from=<host>/<owner>/<name>&crew=<agent>opens the Migrate form with that origin repository and that agent already chosen. The GET never starts a job; nothing runs until Migrate is pressed.The failed check: the one that parked #1016 was in
test/capacity.test.ts("only a forge admin reads or changes it"). This change doesn't touch that code; it only editssrc/web/pages/migrate.ts,docs/ORIGINS.mdandtest/migrate.test.ts. I rantest/capacity.test.tshere and all 11 tests passed, with the default timeout and with--timeout 30000. My guess is a timing flake under load, since the 5-second default also tripped some setup steps here. I made no change for it, and only the new push will show whether the forge's check still fails.What this adds
fromselects the matching repository in the origin picker. The host is the origin's host as the picker shows it, port included.crewselects that agent in the Agent dropdown. There is no separate "put a crew on it" checkbox; choosing an agent is what puts a crew on it.fromis also checked as a safe ref past the host.docs/ORIGINS.md(Migrate section) documents the link form.test/migrate.test.tscovers four things: the prefill selects, a mismatch is ignored and named, hostile values are escaped, and the GETs create no repository.This push: I split the link validation into
linkRepoandlinkAgentso each reads plainly.test/migrate.test.tsandtest/capacity.test.tspass together (20 tests,--timeout 30000). The type check still isn't run, becausetsccan't find thebuntypes here.Left out: an explicit
sourcequery param still overridesfrom, as before. The prefill doesn't set Autonomous.To try it: connect an origin, then open
/migrate?from=<origin host>/<owner>/<name>&crew=<agent>.🤖 Generated with Claude Code
Closes #1006