carlos / platform Public

docs: only an owner revokes holding account tokens

codex agent, operated by paul@keymail.dev pushed by claude agent, operated by paul@keymail.dev b7386da09beacfc90022c0e256bff1d3ccc0b9f2 parent 3d5eba7
2 files changed, +2 −2
  • README.md +1 −1
  • internal/console/demo_members.go +1 −1

CI passed — run details

Intent

Human

<task-notification> <task-id>a16f081174d6f78d4</task-id> <tool-use-id>toolu_012V3kHus2Rouw5hPbiuT9i6</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/cd1b6de2-ac77-426f-a77d-fc5436969c88/tasks/a16f081174d6f78d4.output</output-file> <status>completed</status> <summary>Agent "Scoped re-review of holding fix" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>- **P2-1 ADDRESSED.** Before removing the last owner, `internal/console/demo_members.go:84-108` reads every unrevoked token, expired ones included. It uses the same filter as admission and runs inside the same membership transaction. It refuses and lists the token IDs, and revokes nothing. Those IDs are the ones the service-page revoke accepts, and revoke has no expiry filter, so expired tokens can still be cleared. `README.md:622` now has the operator revoke tokens before removing members. Tests are `internal/console/member_demo_test.go:211` and `cmd/console/member_demo_test.go:29-31`. - **P2-2 ADDRESSED.** `internal/console/member_demo_test.go:170` has one case per ops check. Deleting the early check at `demo_members.go:26` fails the "public method" case. Deleting the ops clause at `demo_members.go:65` fails the "transaction callback" case. - **P2-3 ADDRESSED.** The copy-pass result file `docs/superpowers/specs/LUNA-COPY-RESULT-DEMO-HOLDING.md` matches `README.md:622`, `cmd/console/member.go:232` and `internal/console/demo_members.go:102`. The test strings were updated to match. - **New issues:** no P1 or P2. The focused tests pass. - P3, a fact error with no trust boundary crossed: `README.md:622` says "Only a member can revoke them" and the comment at `demo_members.go:90` says "a member". In fact only an owner can revoke (`svcpage.go:214/255`, `apiservices.go:132`). The code already gates on the last owner, so it behaves correctly. Only the statements are wrong. - The round-1 P3 list is still open. The review is in `/home/paulca/.cache/tmp/claude-1001/agent-start-demo-1/holding-review-r2.md`. **Verdict: READY**</result> <usage><subagent_tokens>67395</subagent_tokens><tool_uses>12</tool_uses><duration_ms>126863</duration_ms></usage> </task-notification>

Attributed to this commit: 91.1 g CO₂e (12,073,957 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on demo-holding-last-owner, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/README.md b/README.md
index 4f034d088..1ba228d94 100644
--- a/README.md
+++ b/README.md
@@ -619,7 +619,7 @@ Set these variables on the console:
| `CARLOS_DEMO_CREATE_GLOBAL_DAY` | Positive integer. Default `100`. |
| `CARLOS_DEMO_MAX_LIVE` | Positive integer. Default `20`. Failed and retiring demos keep their place until cleanup completes. |
-Create the holding account and its demo fleet. Revoke all of the account's CLI and service tokens through its service pages, including expired tokens. Only a member can revoke them, so do this before removing the last owner. Then run `console member -remove <address> "$CARLOS_DEMO_ACCOUNT"` on the console box for each member, leaving the owner until last. Use the console's environment with valid demo settings. You can leave `CARLOS_DEMO_APPS` unset while preparing the account. Only the configured holding account can lose its last owner. It must own `CARLOS_DEMO_FLEET`. The command refuses to remove the last owner while any tokens remain unrevoked and lists them. It reports when no members remain.
+Create the holding account and its demo fleet. Revoke all of the account's CLI and service tokens through its service pages, including expired tokens. Only an owner can revoke them, so do this before removing the last owner. Then run `console member -remove <address> "$CARLOS_DEMO_ACCOUNT"` on the console box for each member, leaving the owner until last. Use the console's environment with valid demo settings. You can leave `CARLOS_DEMO_APPS` unset while preparing the account. Only the configured holding account can lose its last owner. It must own `CARLOS_DEMO_FLEET`. The command refuses to remove the last owner while any tokens remain unrevoked and lists them. It reports when no members remain.
Put each demo box's settings in its root-owned `/etc/carlos/host.env`. Set `CARLOS_DEMO_BOX=1` and the same `CARLOS_DEMO_ACCOUNT`, `CARLOS_DEMO_FLEET` and `CARLOS_DEMO_DOMAIN` tuple as the console. Keep the box's existing `CARLOS_FLEET`, box identity, tunnel credentials and release public key consistent with that fleet. These are per-box authority settings. Preserve them through host.env rewrites, using the same per-box mechanism as `CARLOS_FLEET`; do not deliver them through shared or regional parameters.
diff --git a/internal/console/demo_members.go b/internal/console/demo_members.go
index 044292e7a..1b3748cc2 100644
--- a/internal/console/demo_members.go
+++ b/internal/console/demo_members.go
@@ -87,7 +87,7 @@ func removeDemoHoldingMemberWrite(accountID int64, address string, cfg demo.Conf
return err
}
if owners == 1 {
- // Keep a member who can revoke credentials through the service
+ // Keep an owner who can revoke credentials through the service
// pages. Count expired but unrevoked tokens, as admission does.
rows, err := tx.Query(accountCLITokensSQL, accountID)
if err != nil {