instance-restore-658-cli
carlos instances create --restore (#658): the CLI side of instance restore, whose console door merged as 3933abe. docs/site/cli.md already documents this flag.
--restoresends"restore": true. Ordinary creates send the same bytes as before; canary and the wrapper pass false.--restorewith--from,--kind,--addror--rolerefuses before any request: "a restore is a plain instance. Drop --from, --kind, --addr and --role."- On success, and only when the console answers
restore: true, the CLI prints "restore accepted <host> (channel ...)" and "it wakes with whatever data it kept when it was deleted". An older console that ignores the field gets the ordinary "created instance". - Copy approved by Paul (review quvrxpwi), in docs/superpowers/notes/instance-restore-658-cli-copy.json.
Tests: instancesrestoretest.go runs the built binary against a fake console and covers the body, the output, the refusals (single and combined) and -h. The existing create, seed and canary tests pass; vet is clean on linux, darwin and windows. Review: Astra round 1 READY AFTER FIXES (one P2, refusal order), round 2 READY. Census: root envelope re-pinned, approved by Astra at the tip, recorded on #280.
Commits
4
Discussions
0
0 open
Tasks
0/0
done
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed 50b2981b6 census: re-pin instance-restore-658-cli after the refusal-order fix
- paul@keymail.dev pushed e3e1980a4 cli: restore refusal answers before seeded checks (#658)
- paul@keymail.dev pushed 7a77c372c census: proposal for instance-restore-658-cli (root envelope re-pin)
- paul@keymail.dev pushed d9b6c924a cli: carlos instances create --restore (#658)