testdata: record the ops ha-generations golden cases
Recorded from 003e44ec (go test . -run TestCLIGolden -record -base 003e44ec): the twelve new ops ha-generations cases, and the ops usage cases whose text now lists the verb. No other line changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+26
−14
testdata/clireg-golden.jsonl+26 −14
CI failed — run details
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl| index 66a23d5e3..6e8de787b 100644 |
| --- a/testdata/clireg-golden.jsonl |
| +++ b/testdata/clireg-golden.jsonl |
| @@ -560,35 +560,47 @@ |
| {"case":"move | bare","argv":["move"],"exit":2,"stdout":"carlos move needs --host <host>.\n","stderr":""} |
| {"case":"move | help","argv":["move","help"],"exit":2,"stdout":"carlos move needs --host <host>.\n","stderr":""} |
| {"case":"move | zz-unknown","argv":["move","zz-unknown"],"exit":2,"stdout":"carlos move needs --host <host>.\n","stderr":""} |
| +{"case":"ops ha-generations list | --zz-unknown-flag","argv":["ops","ha-generations","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ha-generations list: flag provided but not defined: -zz-unknown-flag\nusage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n"} |
| +{"case":"ops ha-generations list | -h","argv":["ops","ha-generations","list","-h"],"exit":0,"stdout":"usage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n","stderr":""} |
| +{"case":"ops ha-generations point | --zz-unknown-flag","argv":["ops","ha-generations","point","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ha-generations point: flag provided but not defined: -zz-unknown-flag\nusage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n"} |
| +{"case":"ops ha-generations point | -h","argv":["ops","ha-generations","point","-h"],"exit":0,"stdout":"usage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n","stderr":""} |
| +{"case":"ops ha-generations verify | --zz-unknown-flag","argv":["ops","ha-generations","verify","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ha-generations verify: flag provided but not defined: -zz-unknown-flag\nusage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n"} |
| +{"case":"ops ha-generations verify | -h","argv":["ops","ha-generations","verify","-h"],"exit":0,"stdout":"usage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n","stderr":""} |
| +{"case":"ops ha-generations | --help","argv":["ops","ha-generations","--help"],"exit":0,"stdout":"usage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n","stderr":""} |
| +{"case":"ops ha-generations | --zz-unknown-flag","argv":["ops","ha-generations","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ha-generations: unknown subcommand \"--zz-unknown-flag\"\nusage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n"} |
| +{"case":"ops ha-generations | -h","argv":["ops","ha-generations","-h"],"exit":0,"stdout":"usage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n","stderr":""} |
| +{"case":"ops ha-generations | bare","argv":["ops","ha-generations"],"exit":2,"stdout":"","stderr":"usage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n"} |
| +{"case":"ops ha-generations | help","argv":["ops","ha-generations","help"],"exit":0,"stdout":"usage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n","stderr":""} |
| +{"case":"ops ha-generations | zz-unknown","argv":["ops","ha-generations","zz-unknown"],"exit":2,"stdout":"","stderr":"ha-generations: unknown subcommand \"zz-unknown\"\nusage: carlos ops ha-generations list <host>\n carlos ops ha-generations verify <host> --gen <g-N>\n carlos ops ha-generations point <host> --gen <g-N> --accept-loss-after <txid> [--yes]\n\nRestores a region HA host whose wake was refused (ha_generation_refused).\nlist and verify only read. point is a dry run unless --yes: it points the\nhost at a complete generation and gives up every transaction after <txid>,\nwhich must be that generation's newest L0 transaction.\n"} |
| {"case":"ops hibernate-verify | --zz-unknown-flag","argv":["ops","hibernate-verify","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos ops hibernate-verify [flags]\nflags:\n --budget <duration> how long one run may take; hosts it does not reach keep their previous verdict (default: 45m0s)\n --data <string> data directory (default $CARLOS_DATA_DIR or /data)\n --max <int> most replicas to restore in one run (0 = no cap)\n --registry <string> registry database (default <data>/registry.db)\n"} |
| {"case":"ops hibernate-verify | -h","argv":["ops","hibernate-verify","-h"],"exit":0,"stdout":"","stderr":"usage: carlos ops hibernate-verify [flags]\nflags:\n --budget <duration> how long one run may take; hosts it does not reach keep their previous verdict (default: 45m0s)\n --data <string> data directory (default $CARLOS_DATA_DIR or /data)\n --max <int> most replicas to restore in one run (0 = no cap)\n --registry <string> registry database (default <data>/registry.db)\n"} |
| -{"case":"ops host resolve -h | extra (host claim off)","argv":["ops","host","resolve","-h"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops host resolve -h | extra (host claim off)","argv":["ops","host","resolve","-h"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"ops host resolve -h | extra (host claim on)","argv":["ops","host","resolve","-h"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"unknown option \"-h\"\n"} |
| {"case":"ops host resolve | --zz-unknown-flag","argv":["ops","host","resolve","--zz-unknown-flag"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"unknown option \"--zz-unknown-flag\"\n"} |
| {"case":"ops host resolve | -h","argv":["ops","host","resolve","-h"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"unknown option \"-h\"\n"} |
| -{"case":"ops host | --help (when off)","argv":["ops","host","--help"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops host | --help (when off)","argv":["ops","host","--help"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"ops host | --help (when on)","argv":["ops","host","--help"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"usage: carlos ops host resolve <host> --declare-lost <box> [--yes] [--console <url>]\n"} |
| -{"case":"ops host | --zz-unknown-flag (when off)","argv":["ops","host","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops host | --zz-unknown-flag (when off)","argv":["ops","host","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"ops host | --zz-unknown-flag (when on)","argv":["ops","host","--zz-unknown-flag"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"usage: carlos ops host resolve <host> --declare-lost <box> [--yes] [--console <url>]\n"} |
| -{"case":"ops host | -h (when off)","argv":["ops","host","-h"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops host | -h (when off)","argv":["ops","host","-h"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"ops host | -h (when on)","argv":["ops","host","-h"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"usage: carlos ops host resolve <host> --declare-lost <box> [--yes] [--console <url>]\n"} |
| -{"case":"ops host | bare (when off)","argv":["ops","host"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops host | bare (when off)","argv":["ops","host"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"ops host | bare (when on)","argv":["ops","host"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"usage: carlos ops host resolve <host> --declare-lost <box> [--yes] [--console <url>]\n"} |
| -{"case":"ops host | help (when off)","argv":["ops","host","help"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops host | help (when off)","argv":["ops","host","help"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"ops host | help (when on)","argv":["ops","host","help"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"usage: carlos ops host resolve <host> --declare-lost <box> [--yes] [--console <url>]\n"} |
| -{"case":"ops host | zz-unknown (when off)","argv":["ops","host","zz-unknown"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops host | zz-unknown (when off)","argv":["ops","host","zz-unknown"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"host\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"ops host | zz-unknown (when on)","argv":["ops","host","zz-unknown"],"env":{"CARLOS_HOST_CLAIM":"1"},"exit":1,"stdout":"","stderr":"usage: carlos ops host resolve <host> --declare-lost <box> [--yes] [--console <url>]\n"} |
| {"case":"ops litestream | --zz-unknown-flag","argv":["ops","litestream","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos ops litestream [flags]\nflags:\n --allow-shrink permit a config that replicates FEWER databases than the one it replaces\n --bucket <string> S3 bucket receiving the replicas (required)\n --data <string> data directory holding the fleet's *.db files (default $CARLOS_DATA_DIR or /data)\n --litestream-bin <string> litestream binary to check the snapshot policy against (pinned release 0.5.15) (default: litestream)\n --memory-dropin <string> systemd drop-in that sets the replicator's memory cap from the database count (default /etc/systemd/system/carlos-litestream.service.d/50-memory.conf when --out is /etc/litestream.yml; \"none\" leaves the unit's cap alone)\n --out <string> config file to write (default: /etc/litestream.yml)\n --prefix <string> key prefix inside the bucket for this fleet (required)\n --region <string> S3 region for the replica stanza\n --registry <string> registry database (default <data>/registry.db)\n"} |
| {"case":"ops litestream | -h","argv":["ops","litestream","-h"],"exit":0,"stdout":"","stderr":"usage: carlos ops litestream [flags]\nflags:\n --allow-shrink permit a config that replicates FEWER databases than the one it replaces\n --bucket <string> S3 bucket receiving the replicas (required)\n --data <string> data directory holding the fleet's *.db files (default $CARLOS_DATA_DIR or /data)\n --litestream-bin <string> litestream binary to check the snapshot policy against (pinned release 0.5.15) (default: litestream)\n --memory-dropin <string> systemd drop-in that sets the replicator's memory cap from the database count (default /etc/systemd/system/carlos-litestream.service.d/50-memory.conf when --out is /etc/litestream.yml; \"none\" leaves the unit's cap alone)\n --out <string> config file to write (default: /etc/litestream.yml)\n --prefix <string> key prefix inside the bucket for this fleet (required)\n --region <string> S3 region for the replica stanza\n --registry <string> registry database (default <data>/registry.db)\n"} |
| {"case":"ops restore-verify | --zz-unknown-flag","argv":["ops","restore-verify","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos ops restore-verify [flags]\nflags:\n --config <string> generated litestream config to read the database set from (default: /etc/litestream.yml)\n --litestream-bin <string> litestream binary (pinned release 0.5.15) (default: litestream)\n"} |
| {"case":"ops restore-verify | -h","argv":["ops","restore-verify","-h"],"exit":0,"stdout":"","stderr":"usage: carlos ops restore-verify [flags]\nflags:\n --config <string> generated litestream config to read the database set from (default: /etc/litestream.yml)\n --litestream-bin <string> litestream binary (pinned release 0.5.15) (default: litestream)\n"} |
| -{"case":"ops zz | extra","argv":["ops","zz"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"zz\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| -{"case":"ops | --help","argv":["ops","--help"],"exit":0,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| -{"case":"ops | --zz-unknown-flag","argv":["ops","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"--zz-unknown-flag\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| -{"case":"ops | -h","argv":["ops","-h"],"exit":0,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| -{"case":"ops | bare","argv":["ops"],"exit":2,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| -{"case":"ops | help","argv":["ops","help"],"exit":0,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| -{"case":"ops | zz-unknown","argv":["ops","zz-unknown"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"zz-unknown\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops zz | extra","argv":["ops","zz"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"zz\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops | --help","argv":["ops","--help"],"exit":0,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops | --zz-unknown-flag","argv":["ops","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"--zz-unknown-flag\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops | -h","argv":["ops","-h"],"exit":0,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops | bare","argv":["ops"],"exit":2,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops | help","argv":["ops","help"],"exit":0,"stdout":"","stderr":"carlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| +{"case":"ops | zz-unknown","argv":["ops","zz-unknown"],"exit":2,"stdout":"","stderr":"ops: unknown verb \"zz-unknown\"\n\ncarlos ops — box-side operations verbs\n\n carlos ops litestream (re)generate the fleet litestream config from the\n registry + data dir; prints \"changed\"/\"unchanged\"\n so the caller knows whether to restart replication\n carlos ops restore-verify restore every configured replica from S3 and\n integrity-check each (run by the daily timer)\n carlos ops hibernate-verify\n the same drill for the replicas the config does\n NOT name: hibernating instances, whose\n replication the activator owns under its lease.\n Publishes a per-host verdict to the deployment\n bucket so the result is readable off-box.\n carlos ops ha-generations list|verify|point <host>\n restore by hand a region HA host whose wake was\n refused (ha_generation_refused): list its\n storage generations, verify one, or point the\n host at one. point gives up every transaction\n after the one you name, and writes nothing\n without --yes.\n\nNo verb for your task? Extend ops in a small PR — never a hand-run sequence\nreconstructed from docs.\n"} |
| {"case":"pipeline add | --zz-unknown-flag","argv":["pipeline","add","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos pipeline <command>\n\ncommands:\n show show an app's channels and any pending changes\n (this is also what a bare \"carlos pipeline\"\n runs)\n init --template edge-production|full-ladder\n replace the pipeline with a starter template\n set --channel <name> [--bake <dur>] [--passkey[=false]]\n [--promote-approvals N] [--change-approvals N]\n edit one existing channel's bake window or\n rules — flags not given are left as they were\n add --channel <name> [--after <name>] [--bake <dur>] [--passkey]\n [--promote-approvals N] [--change-approvals N]\n insert a new channel (default: appended at the\n end of the list; --after inserts right after\n that existing channel)\n remove --channel <name> drop a channel from the pipeline\n\nEvery command above also takes [--app <a>] [--account <sqid-or-name>]\n[--account-id <sqid>] [--console <origin>] — the same account/app resolution\nevery other API-mode verb uses (defaults apply when a flag is omitted and\nonly one candidate exists).\n\ncarlos pipeline works through a logged-in console (carlos auth login) —\nthere is no bucket-direct pipeline editor to fall back to; --bake, --passkey,\n--promote-approvals and --change-approvals set release.ChannelRules exactly as\nthe console's own pipeline settings page does. promote and rollback are\nunaffected in direct mode.\n\nset/add/remove all read the CURRENT channel list first and PUT the whole\nlist back — an edit that touches a channel the stored pipeline already\nguards with --change-approvals does not land from here: the console turns it\ninto a proposal instead (0 confirmations; finish with the printed console\nURL), exactly as it does for a guarded promote or rollback.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --after <string> insert immediately after this existing channel (default: append at the end)\n --app, -a <string> app name\n --bake <string> bake window before this channel is eligible to adopt (Go duration, e.g. 24h; \"\" clears it)\n --change-approvals <int> pipeline edits that touch this channel need this many console confirmations (0 clears the rule)\n --channel, -c <string> channel to add\n --console <string> console origin to work through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --passkey require a console passkey to promote into or edit this channel; --passkey=false clears it\n --promote-approvals <int> promotions into this channel need this many console confirmations (0 clears the rule)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| {"case":"pipeline add | -h","argv":["pipeline","add","-h"],"exit":0,"stdout":"","stderr":"usage: carlos pipeline <command>\n\ncommands:\n show show an app's channels and any pending changes\n (this is also what a bare \"carlos pipeline\"\n runs)\n init --template edge-production|full-ladder\n replace the pipeline with a starter template\n set --channel <name> [--bake <dur>] [--passkey[=false]]\n [--promote-approvals N] [--change-approvals N]\n edit one existing channel's bake window or\n rules — flags not given are left as they were\n add --channel <name> [--after <name>] [--bake <dur>] [--passkey]\n [--promote-approvals N] [--change-approvals N]\n insert a new channel (default: appended at the\n end of the list; --after inserts right after\n that existing channel)\n remove --channel <name> drop a channel from the pipeline\n\nEvery command above also takes [--app <a>] [--account <sqid-or-name>]\n[--account-id <sqid>] [--console <origin>] — the same account/app resolution\nevery other API-mode verb uses (defaults apply when a flag is omitted and\nonly one candidate exists).\n\ncarlos pipeline works through a logged-in console (carlos auth login) —\nthere is no bucket-direct pipeline editor to fall back to; --bake, --passkey,\n--promote-approvals and --change-approvals set release.ChannelRules exactly as\nthe console's own pipeline settings page does. promote and rollback are\nunaffected in direct mode.\n\nset/add/remove all read the CURRENT channel list first and PUT the whole\nlist back — an edit that touches a channel the stored pipeline already\nguards with --change-approvals does not land from here: the console turns it\ninto a proposal instead (0 confirmations; finish with the printed console\nURL), exactly as it does for a guarded promote or rollback.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --after <string> insert immediately after this existing channel (default: append at the end)\n --app, -a <string> app name\n --bake <string> bake window before this channel is eligible to adopt (Go duration, e.g. 24h; \"\" clears it)\n --change-approvals <int> pipeline edits that touch this channel need this many console confirmations (0 clears the rule)\n --channel, -c <string> channel to add\n --console <string> console origin to work through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --passkey require a console passkey to promote into or edit this channel; --passkey=false clears it\n --promote-approvals <int> promotions into this channel need this many console confirmations (0 clears the rule)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| {"case":"pipeline init | --zz-unknown-flag","argv":["pipeline","init","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos pipeline <command>\n\ncommands:\n show show an app's channels and any pending changes\n (this is also what a bare \"carlos pipeline\"\n runs)\n init --template edge-production|full-ladder\n replace the pipeline with a starter template\n set --channel <name> [--bake <dur>] [--passkey[=false]]\n [--promote-approvals N] [--change-approvals N]\n edit one existing channel's bake window or\n rules — flags not given are left as they were\n add --channel <name> [--after <name>] [--bake <dur>] [--passkey]\n [--promote-approvals N] [--change-approvals N]\n insert a new channel (default: appended at the\n end of the list; --after inserts right after\n that existing channel)\n remove --channel <name> drop a channel from the pipeline\n\nEvery command above also takes [--app <a>] [--account <sqid-or-name>]\n[--account-id <sqid>] [--console <origin>] — the same account/app resolution\nevery other API-mode verb uses (defaults apply when a flag is omitted and\nonly one candidate exists).\n\ncarlos pipeline works through a logged-in console (carlos auth login) —\nthere is no bucket-direct pipeline editor to fall back to; --bake, --passkey,\n--promote-approvals and --change-approvals set release.ChannelRules exactly as\nthe console's own pipeline settings page does. promote and rollback are\nunaffected in direct mode.\n\nset/add/remove all read the CURRENT channel list first and PUT the whole\nlist back — an edit that touches a channel the stored pipeline already\nguards with --change-approvals does not land from here: the console turns it\ninto a proposal instead (0 confirmations; finish with the printed console\nURL), exactly as it does for a guarded promote or rollback.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app name\n --console <string> console origin to work through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --template <string> starter pipeline: edge-production | full-ladder\n"} |