carlos / platform Public

group verb: CLI golden and census for the r1 fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude pushed by paul@keymail.dev ef855cfc121b0744674ed336470a3517547a1b13 parent 9760a92
4 files changed, +12 −12
  • docs/superpowers/notes/census-proposal-group-verb-followups.md +2 −2
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-group-verb-followups.tsv +3 −3
  • testdata/clireg-golden.jsonl +6 −6

CI passed — run details

diff --git a/docs/superpowers/notes/census-proposal-group-verb-followups.md b/docs/superpowers/notes/census-proposal-group-verb-followups.md
index 4e9ac937b..60f1b1c9b 100644
--- a/docs/superpowers/notes/census-proposal-group-verb-followups.md
+++ b/docs/superpowers/notes/census-proposal-group-verb-followups.md
@@ -6,7 +6,7 @@ Ruling `census-ruling-group-verb-followups`. The independent reviewer approves o
|---|---|---|---|
| `internal/grouproll/plan.go` `Engine.Plan` | body | unchanged (1) | a missing or unreadable provider-observation.json is refused as observation instead of passing the read error through (same file, same read) |
| `internal/grouprollaws/group.go` `Adapter.TemplateRelease` | body | unchanged (1) | the DescribeLaunchTemplateVersions read goes through readCall, which retries the same request while AWS throttles it (no new read) |
-| `system_group.go` `runSystemGroup` | body | unchanged (1) | an empty verb (the group fallback: bare, -h, unknown verb) prints the group help after the same root and box refusals; no new read |
+| `system_group.go` `runSystemGroup` | body | unchanged (1) | an empty verb (the group fallback: bare, -h, unknown verb) prints the group help first, before the root and box refusals: it reads no file, flag, environment or provider and changes nothing (Astra r1 P1); every other verb is unchanged |
Envelopes re-pinned: `.`, `internal/grouproll`, `internal/grouprollaws`.
@@ -18,6 +18,6 @@ Recorded dispositions, which each change must still satisfy:
- `internal/grouprollaws/group.go` `Adapter.TemplateRelease`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-group-roll-verb;basis=reads the launch template's user data from the EC2 answer (in memory, 4 MiB cap)
- `system_group.go` `runSystemGroup`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-group-roll-verb;basis=lstats /etc/carlos/host.env to refuse running on a carlos box (euid 0 is refused first); routes the roll, replace, remove, cancel-drain and probe verbs to the engine after refusing missing arguments
-Seal: `43260792034a1a20791d14c4e4476e762b40d7bcca64257ef2e9899da6af5df0` → `f850da881ad17825bf37da36ee32270db962379687654c59d276076d940197fe`.
+Seal: `43260792034a1a20791d14c4e4476e762b40d7bcca64257ef2e9899da6af5df0` → `a53b2aed26da8e8a46974ad982376e373762399e6cc92b43d7907ddc53f3971f`.
Overlay: `internal/provision/testdata/plan14-root-reads-group-verb-followups.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 99b87269b..e351bed39 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -165,4 +165,4 @@ plan14-root-reads-demo-terms-links.tsv c8e2c7ed3850823a8e379d880738982772b870ad8
plan14-root-reads-fix-silent-start-kill-861.tsv 733204d61bea49fe418d8ff0f1bfa20d77bdffb1f08a216d9de92923eea22557
plan14-root-reads-group-bucket-region.tsv 733204d61bea49fe418d8ff0f1bfa20d77bdffb1f08a216d9de92923eea22557
plan14-root-reads-w6-ingress-drain.tsv 43260792034a1a20791d14c4e4476e762b40d7bcca64257ef2e9899da6af5df0
-plan14-root-reads-group-verb-followups.tsv f850da881ad17825bf37da36ee32270db962379687654c59d276076d940197fe
+plan14-root-reads-group-verb-followups.tsv a53b2aed26da8e8a46974ad982376e373762399e6cc92b43d7907ddc53f3971f
diff --git a/internal/provision/testdata/plan14-root-reads-group-verb-followups.tsv b/internal/provision/testdata/plan14-root-reads-group-verb-followups.tsv
index c2fb0429c..af7aada8d 100644
--- a/internal/provision/testdata/plan14-root-reads-group-verb-followups.tsv
+++ b/internal/provision/testdata/plan14-root-reads-group-verb-followups.tsv
@@ -2,10 +2,10 @@
# 3 body, 0 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
@legacy 9c530988d2bca9a4191d94ff750147713395b6eea9039910e42c48fb68951198 internal/grouproll/plan.go Engine.Plan legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=reads provider-observation.json from the operator's own 0700 state directory;rev3=census-ruling-group-verb-followups;basis=a missing or unreadable provider-observation.json is refused as observation instead of passing the read error through (same file, same read) file:Read@2300 d5af13dbf8f6c1e41ddda5a0a764e54064f7319dd61a11cee1499ad0180d5197
@legacy 1f6ebe3fc5c4052f3e6287ed84760c0e462429f4c8a9fad8d1e9aee6e8b6e0ba internal/grouprollaws/group.go Adapter.TemplateRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=reads the launch template's user data from the EC2 answer (in memory, 4 MiB cap);rev3=census-ruling-group-verb-followups;basis=the DescribeLaunchTemplateVersions read goes through readCall, which retries the same request while AWS throttles it (no new read) file:ReadAll@1478 56a2ef9fac5343e9293b8756ca83d2df7eb06622bd6a5fcdfe7444b93a8ebfe2
-@legacy 07f38cbb515ea0afd8cc2ab71954de595c5fff37919a0221dbb6e485776ba57f system_group.go runSystemGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=lstats /etc/carlos/host.env to refuse running on a carlos box (euid 0 is refused first); routes the roll, replace, remove, cancel-drain and probe verbs to the engine after refusing missing arguments;rev3=census-ruling-group-verb-followups;basis=an empty verb (the group fallback: bare, -h, unknown verb) prints the group help after the same root and box refusals; no new read file:Lstat@245 2c361451223c4090b91f8a2c349972beb730766c35a13ba0d74a4e53e55644fb
+@legacy c3dda1ec61f3b43ea77f89972dcbb86fa8074f217b5980048e251c692c4b7750 system_group.go runSystemGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=lstats /etc/carlos/host.env to refuse running on a carlos box (euid 0 is refused first); routes the roll, replace, remove, cancel-drain and probe verbs to the engine after refusing missing arguments;rev3=census-ruling-group-verb-followups;basis=an empty verb (the group fallback: bare, -h, unknown verb) prints the group help first, before the root and box refusals: it reads no file, flag, environment or provider and changes nothing (Astra r1 P1); every other verb is unchanged file:Lstat@475 1594657edc9c96d5867dd5c300406e0f36eb4f4b5db7e84431c52afc768870f8
internal/grouproll/plan.go Engine.Plan legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=reads provider-observation.json from the operator's own 0700 state directory;rev3=census-ruling-group-verb-followups;basis=a missing or unreadable provider-observation.json is refused as observation instead of passing the read error through (same file, same read) file:Read@2300 d5af13dbf8f6c1e41ddda5a0a764e54064f7319dd61a11cee1499ad0180d5197
internal/grouprollaws/group.go Adapter.TemplateRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=reads the launch template's user data from the EC2 answer (in memory, 4 MiB cap);rev3=census-ruling-group-verb-followups;basis=the DescribeLaunchTemplateVersions read goes through readCall, which retries the same request while AWS throttles it (no new read) file:ReadAll@1478 56a2ef9fac5343e9293b8756ca83d2df7eb06622bd6a5fcdfe7444b93a8ebfe2
-system_group.go runSystemGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=lstats /etc/carlos/host.env to refuse running on a carlos box (euid 0 is refused first); routes the roll, replace, remove, cancel-drain and probe verbs to the engine after refusing missing arguments;rev3=census-ruling-group-verb-followups;basis=an empty verb (the group fallback: bare, -h, unknown verb) prints the group help after the same root and box refusals; no new read file:Lstat@245 2c361451223c4090b91f8a2c349972beb730766c35a13ba0d74a4e53e55644fb
-@coverage . 4e080ba3420f421d3b41498cc4ae30c1ddc7a3ccffb19e0b82d5046096e7d7c9
+system_group.go runSystemGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-group-roll-verb;basis=lstats /etc/carlos/host.env to refuse running on a carlos box (euid 0 is refused first); routes the roll, replace, remove, cancel-drain and probe verbs to the engine after refusing missing arguments;rev3=census-ruling-group-verb-followups;basis=an empty verb (the group fallback: bare, -h, unknown verb) prints the group help first, before the root and box refusals: it reads no file, flag, environment or provider and changes nothing (Astra r1 P1); every other verb is unchanged file:Lstat@475 1594657edc9c96d5867dd5c300406e0f36eb4f4b5db7e84431c52afc768870f8
+@coverage . f4324baa2bd966fbeaa2ce6d1ca03a665ce52650336818480e7cbbefc7cdf356
@coverage internal/grouproll 5ce096c6ea44070bebce2efa18e1ffa366ab7f593dfa3514d76d471fa9566daa
@coverage internal/grouprollaws e196214c4b5801a003f21d4f0eeef483bb8b2d0dd14c83a7b711b27ab99f120b
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl
index 1f73bf28f..26ec8d6a6 100644
--- a/testdata/clireg-golden.jsonl
+++ b/testdata/clireg-golden.jsonl
@@ -819,12 +819,12 @@
{"case":"system group roll | skipped","skipped":"refuses root and carlos boxes before it reads its arguments, -h included"}
{"case":"system group rollback | skipped","skipped":"refuses root and carlos boxes before it reads its arguments, -h included"}
{"case":"system group status | skipped","skipped":"refuses root and carlos boxes before it reads its arguments, -h included"}
-{"case":"system group | --help","argv":["system","group","--help"],"exit":0,"stdout":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n","stderr":""}
-{"case":"system group | --zz-unknown-flag","argv":["system","group","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n"}
-{"case":"system group | -h","argv":["system","group","-h"],"exit":0,"stdout":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n","stderr":""}
-{"case":"system group | bare","argv":["system","group"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n"}
-{"case":"system group | help","argv":["system","group","help"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n"}
-{"case":"system group | zz-unknown","argv":["system","group","zz-unknown"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n"}
+{"case":"system group | --help","argv":["system","group","--help"],"exit":0,"stdout":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n role <region> <default|legacy>\n","stderr":""}
+{"case":"system group | --zz-unknown-flag","argv":["system","group","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n role <region> <default|legacy>\n"}
+{"case":"system group | -h","argv":["system","group","-h"],"exit":0,"stdout":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n role <region> <default|legacy>\n","stderr":""}
+{"case":"system group | bare","argv":["system","group"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n role <region> <default|legacy>\n"}
+{"case":"system group | help","argv":["system","group","help"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n role <region> <default|legacy>\n"}
+{"case":"system group | zz-unknown","argv":["system","group","zz-unknown"],"exit":2,"stdout":"","stderr":"Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.\n\n plan Read readiness and list refusals. It changes no group or box state.\n roll Roll one member to the named artifact.\n replace Drain one member, terminate it and let the group launch its replacement.\n remove Drain one member and terminate it without a replacement (scale-in).\n rollback Restore this transaction's old artifact while in Standby.\n resume Resume from the durable journal and current provider state.\n return Return an already restarted and admitted member.\n status Read the saved journal without contacting AWS.\n abandon Close a transaction that has no group write intent.\n close-lost Close an active transaction after confirming that its member is gone. Record failure.\n cancel-drain End a failed drain of this member: drain --cancel on the box, which lifts the fence.\n probe Probe an unchanged member through Auto Scaling Standby under the group lock.\n role <region> <default|legacy>\n"}
{"case":"system group-maintenance | --zz-unknown-flag","argv":["system","group-maintenance","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"Usage: carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback|drain|fence-clear}\nRoot only, on a group member. Use through the attended Session Manager operator.\n prepare --sha256 <digest>\n Verify the configured signed pointer, cache its artifact and write a request.\n Check local restart configuration. No staging, repoint or restart.\n Makes cloud GETs only when attended and operator-invoked, never on a timer.\n The total prepare timeout is five minutes.\n previous_result reports the last outcome for this exact promotion.\n An applied, rolled-back or rollback-failed result leaves request_written false.\n apply Run the normal permit-gated apply using the checked local host.env.\n On a group member use carlos system group-maintenance apply, never bare\n carlos system apply.\n rollback Restore this member's previous artifact using an explicit rollback permit.\n Use the same transaction and old/new digests after revoking the apply permit.\n Local only. A consumed rollback permit cannot be replayed.\n permit Read at most 4096 bytes of permit JSON from stdin and install it.\n revoke Remove the permit. Keep all consumed-action records.\n drain --peers=<box,...> <transaction>\n Drain this member for a planned handover: withdraw it and wait for every\n listed box, and any other box with an edges file, to acknowledge, install\n the start fence for the transaction, then move every awake host away and\n drain the connections. --peers lists every other box the operator's\n floor counted (empty when it counted none). Print the agent's JSON\n report. Exit 0 only when the report's result is ok.\n drain --cancel <transaction>\n End the drain of the transaction and remove its start fence.\n fence-clear <transaction>\n Remove the start fence of the transaction. Another transaction's fence\n is refused.\n status Print one v1 JSON object, at most 8192 bytes. Make one local health GET.\nStatus includes edge.started_at in UTC at second precision, derived from kernel boot time and clock ticks.\nIt is a lower bound, up to two seconds early; compare with a generation at least two seconds later and check the edge identity has not changed.\nClock errors are in edge.started_at_error; edge.error describes the process.\naccepted means the guard's validators accept this permit now; it is not readiness: check the action and its consumed flag too.\nStatus is local evidence, not proof of fresh admission or role publication.\nPresent and accepted is still not authorization for the operator.\nThe cloud facts are the operator's.\nThe operator must also check the published edges object for this process.\nExit codes: 0 success or help, 1 refused or failed, 2 invalid arguments.\nErrors go to stderr, prefixed with \"group-maintenance:\". A held apply lock\nrefuses the command. Unknown status fields are null or state \"unknown\".\n"}
{"case":"system group-maintenance | -h","argv":["system","group-maintenance","-h"],"exit":0,"stdout":"Usage: carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback|drain|fence-clear}\nRoot only, on a group member. Use through the attended Session Manager operator.\n prepare --sha256 <digest>\n Verify the configured signed pointer, cache its artifact and write a request.\n Check local restart configuration. No staging, repoint or restart.\n Makes cloud GETs only when attended and operator-invoked, never on a timer.\n The total prepare timeout is five minutes.\n previous_result reports the last outcome for this exact promotion.\n An applied, rolled-back or rollback-failed result leaves request_written false.\n apply Run the normal permit-gated apply using the checked local host.env.\n On a group member use carlos system group-maintenance apply, never bare\n carlos system apply.\n rollback Restore this member's previous artifact using an explicit rollback permit.\n Use the same transaction and old/new digests after revoking the apply permit.\n Local only. A consumed rollback permit cannot be replayed.\n permit Read at most 4096 bytes of permit JSON from stdin and install it.\n revoke Remove the permit. Keep all consumed-action records.\n drain --peers=<box,...> <transaction>\n Drain this member for a planned handover: withdraw it and wait for every\n listed box, and any other box with an edges file, to acknowledge, install\n the start fence for the transaction, then move every awake host away and\n drain the connections. --peers lists every other box the operator's\n floor counted (empty when it counted none). Print the agent's JSON\n report. Exit 0 only when the report's result is ok.\n drain --cancel <transaction>\n End the drain of the transaction and remove its start fence.\n fence-clear <transaction>\n Remove the start fence of the transaction. Another transaction's fence\n is refused.\n status Print one v1 JSON object, at most 8192 bytes. Make one local health GET.\nStatus includes edge.started_at in UTC at second precision, derived from kernel boot time and clock ticks.\nIt is a lower bound, up to two seconds early; compare with a generation at least two seconds later and check the edge identity has not changed.\nClock errors are in edge.started_at_error; edge.error describes the process.\naccepted means the guard's validators accept this permit now; it is not readiness: check the action and its consumed flag too.\nStatus is local evidence, not proof of fresh admission or role publication.\nPresent and accepted is still not authorization for the operator.\nThe cloud facts are the operator's.\nThe operator must also check the published edges object for this process.\nExit codes: 0 success or help, 1 refused or failed, 2 invalid arguments.\nErrors go to stderr, prefixed with \"group-maintenance:\". A held apply lock\nrefuses the command. Unknown status fields are null or state \"unknown\".\n","stderr":""}
{"case":"system guard-arm | --zz-unknown-flag","argv":["system","guard-arm","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nUsage of system guard-arm:\n -console string\n \t\n -enrollment string\n \t\n -identity string\n \t\n -policy string\n \t\n"}