docs: Luna's approved owner step for the held-promise runbook
Applies Luna's two owner-step paragraphs verbatim to docs/site/cli.md and the plan's copy table, marked approved (owner step), and updates TestApprovedPlatformAccountsCopy to pin them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+6
−6
approved_platform_accounts_copy_test.go+2 −2docs/site/cli.md+2 −2docs/superpowers/plans/2026-11-19-platform-accounts-1-platform-layer.md+2 −2
CI failed — run details
diff --git a/approved_platform_accounts_copy_test.go b/approved_platform_accounts_copy_test.go| index 180dd31ef..ef247b7b5 100644 |
| --- a/approved_platform_accounts_copy_test.go |
| +++ b/approved_platform_accounts_copy_test.go |
| @@ -166,8 +166,8 @@ func TestApprovedPlatformAccountsCopy(t *testing.T) { |
| {"docs.held_promise.read", "docs/site/cli.md", "Read the promise and account from the console’s database first:"}, |
| {"docs.held_promise.manifest_key", "docs/site/cli.md", "The account’s manifest is `accounts/<sqid>/account.json` in the deployment bucket."}, |
| {"docs.held_promise.no_manifest", "docs/site/cli.md", "**The account has no manifest, or the create’s manifest is at its id.** The reason is `is in this console with no manifest in the bucket` or `is another account in this console`. Check that the manifest is missing, or that its `platform_mint` is the mint id and the account row’s `platform_mint` is not the mint id. Then restore the account’s manifest. Write `accounts/<sqid>/account.json` from the row: `id`, `sqid`, `name` and `created_at` as an RFC 3339 UTC time. Add `platform`, `platform_ref` and `platform_mint` when the row has them. Add `deleted_at` as an RFC 3339 UTC time when the row’s value is not 0."}, |
| - {"docs.held_promise.owner", "docs/site/cli.md", "If the row has no `platform`, also add `owner`: the account’s first owner, from the console’s memberships table. Find it with this query:"}, |
| - {"docs.held_promise.owner_stop", "docs/site/cli.md", "If the query returns no address, stop and escalate. Do not write the manifest: a rebuilt console would give the account no owner. A customer account with a `platform` has no owner until someone claims it, so leave `owner` out for it."}, |
| + {"docs.held_promise.owner", "docs/site/cli.md", "If the row has no `platform`, also add `owner`, using the account’s first owner from the console’s memberships table. Find it with this query:"}, |
| + {"docs.held_promise.owner_stop", "docs/site/cli.md", "If the query returns no address, stop and escalate. Do not write the manifest. A rebuilt console would give the account no owner. For an account with a `platform`, leave `owner` out. It has no owner until someone claims it."}, |
| {"docs.held_promise.no_manifest_end", "docs/site/cli.md", "This replaces the create’s manifest if one is present. The platform’s next request creates the customer with a new id."}, |
| {"docs.held_promise.ref", "docs/site/cli.md", "**Another live customer holds the ref.** The reason starts with `holds ref` or `would take ref`. Check which account holds it:"}, |
| {"docs.held_promise.ref_repair", "docs/site/cli.md", "If it is the customer the platform intended, the promise is stale. Search the bucket’s account manifests for `\"platform_mint\":\"<mint id>\"`. If one has that value, add `deleted_at` with the current UTC time. Do not delete the manifest: an account id is never given out twice. Then remove the promise:"}, |
diff --git a/docs/site/cli.md b/docs/site/cli.md| index bc3e21af9..832988434 100644 |
| --- a/docs/site/cli.md |
| +++ b/docs/site/cli.md |
| @@ -2663,13 +2663,13 @@ The account’s manifest is `accounts/<sqid>/account.json` in the deployment buc |
| **The account has no manifest, or the create’s manifest is at its id.** The reason is `is in this console with no manifest in the bucket` or `is another account in this console`. Check that the manifest is missing, or that its `platform_mint` is the mint id and the account row’s `platform_mint` is not the mint id. Then restore the account’s manifest. Write `accounts/<sqid>/account.json` from the row: `id`, `sqid`, `name` and `created_at` as an RFC 3339 UTC time. Add `platform`, `platform_ref` and `platform_mint` when the row has them. Add `deleted_at` as an RFC 3339 UTC time when the row’s value is not 0. |
| -If the row has no `platform`, also add `owner`: the account’s first owner, from the console’s memberships table. Find it with this query: |
| +If the row has no `platform`, also add `owner`, using the account’s first owner from the console’s memberships table. Find it with this query: |
| ```text |
| SELECT address FROM memberships WHERE account_id = <id> AND role = 'owner' ORDER BY added_at, address LIMIT 1; |
| ``` |
| -If the query returns no address, stop and escalate. Do not write the manifest: a rebuilt console would give the account no owner. A customer account with a `platform` has no owner until someone claims it, so leave `owner` out for it. |
| +If the query returns no address, stop and escalate. Do not write the manifest. A rebuilt console would give the account no owner. For an account with a `platform`, leave `owner` out. It has no owner until someone claims it. |
| This replaces the create’s manifest if one is present. The platform’s next request creates the customer with a new id. |
diff --git a/docs/superpowers/plans/2026-11-19-platform-accounts-1-platform-layer.md b/docs/superpowers/plans/2026-11-19-platform-accounts-1-platform-layer.md| index 97f891895..4d822b1ba 100644 |
| --- a/docs/superpowers/plans/2026-11-19-platform-accounts-1-platform-layer.md |
| +++ b/docs/superpowers/plans/2026-11-19-platform-accounts-1-platform-layer.md |
| @@ -1399,8 +1399,8 @@ Cap names in usage reuse the approved `cliPlanCopyLimit*` labels (apps and insta |
| | docs.held_promise.read | Read the promise and account from the console’s database first: | approved (Luna pass 2026-11-19) | |
| | docs.held_promise.manifest_key | The account’s manifest is `accounts/<sqid>/account.json` in the deployment bucket. | approved (Luna pass 2026-11-19) | |
| | docs.held_promise.no_manifest | **The account has no manifest, or the create’s manifest is at its id.** The reason is `is in this console with no manifest in the bucket` or `is another account in this console`. Check that the manifest is missing, or that its `platform_mint` is the mint id and the account row’s `platform_mint` is not the mint id. Then restore the account’s manifest. Write `accounts/<sqid>/account.json` from the row: `id`, `sqid`, `name` and `created_at` as an RFC 3339 UTC time. Add `platform`, `platform_ref` and `platform_mint` when the row has them. Add `deleted_at` as an RFC 3339 UTC time when the row’s value is not 0. | approved (Luna pass 2026-11-19) | |
| -| docs.held_promise.owner | If the row has no `platform`, also add `owner`: the account’s first owner, from the console’s memberships table. Find it with this query: | approved (Luna pass 2026-11-19; the owner step was added by the fix wave in the same voice, after the pass) | |
| -| docs.held_promise.owner_stop | If the query returns no address, stop and escalate. Do not write the manifest: a rebuilt console would give the account no owner. A customer account with a `platform` has no owner until someone claims it, so leave `owner` out for it. | approved (Luna pass 2026-11-19; the owner step was added by the fix wave in the same voice, after the pass) | |
| +| docs.held_promise.owner | If the row has no `platform`, also add `owner`, using the account’s first owner from the console’s memberships table. Find it with this query: | approved (Luna pass 2026-11-19 (owner step)) | |
| +| docs.held_promise.owner_stop | If the query returns no address, stop and escalate. Do not write the manifest. A rebuilt console would give the account no owner. For an account with a `platform`, leave `owner` out. It has no owner until someone claims it. | approved (Luna pass 2026-11-19 (owner step)) | |
| | docs.held_promise.no_manifest_end | This replaces the create’s manifest if one is present. The platform’s next request creates the customer with a new id. | approved (Luna pass 2026-11-19) | |
| | docs.held_promise.ref | **Another live customer holds the ref.** The reason starts with `holds ref` or `would take ref`. Check which account holds it: | approved (Luna pass 2026-11-19) | |
| | docs.held_promise.ref_repair | If it is the customer the platform intended, the promise is stale. Search the bucket’s account manifests for `"platform_mint":"<mint id>"`. If one has that value, add `deleted_at` with the current UTC time. Do not delete the manifest: an account id is never given out twice. Then remove the promise: | approved (Luna pass 2026-11-19) | |