carlos / platform Public

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.

  • --restore sends "restore": true. Ordinary creates send the same bytes as before; canary and the wrapper pass false.
  • --restore with --from, --kind, --addr or --role refuses 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