instance policy docs: CLI reference, README rollout notes, approved decks (PM-1)
docs/site/cli.md gains the app policy (apps set --egress-allow/--size, instances set --size, apps show), the EGRESS column of instances list, and the SIZE and EGRESS columns of status --layout. The README's app policy entry gets the built writer lease (plan 1 Task 11b: a create takes the lease only when it must clear an earlier policy) and plans 2 and 3's rollout notes. All prose is the Luna pass's DOC-1 to DOC-17, approved by delegation. The three decks mark each row's approved text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+287
−208
README.md+8 −2docs/site/cli.md+24 −1docs/superpowers/notes/copy-instance-policy-plan1.md+123 −101docs/superpowers/notes/copy-instance-policy-plan2.md+100 −84docs/superpowers/notes/copy-instance-policy-plan3.md+32 −20
CI failed — run details
diff --git a/README.md b/README.md| index a28e54a07..555a4283e 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -520,9 +520,15 @@ This release adds the app policy (#328, #329). A system operator can let an app' |
| - egress allows are meant for boxes where every tenant runs nested: on a box still running flat tenants the platform refuses them, and until host claims are on that check is a safeguard rather than a boundary. |
| - roll boxes first, then consoles, and dev first, as always. |
| - every console that writes the deployment bucket must run this release before anyone grants the first policy. an older console leaves the policy in place when it purges an app or creates one, so a new app with an old app's name could inherit its egress allow and size. |
| -- one console per bucket writes policies. it holds a lease at `control/app-policy-lease/lock.json`, taken the first time it creates an app or changes a policy, and renewed every five minutes after that. a second console on the same bucket refuses both, and names the console that holds the lease and when it expires. |
| -- a console that stops cleanly gives the lease back. if it crashes, or its role may not delete objects in the bucket, the lease stays held for up to 15 minutes. until it lapses, the console that replaced it refuses app creates and policy changes. |
| +- one console per bucket writes policies. it holds a lease at `control/app-policy-lease/lock.json`, taken the first time it changes a policy and renewed every five minutes after that. an app create takes it too, but only when an earlier app's policy is still stored under the new name and has to be cleared first. a second console on the same bucket refuses those changes and creates, and names the console that holds the lease and when it expires. |
| +- a console that stops cleanly gives the lease back. if it crashes, or its role may not delete objects in the bucket, the lease stays held for up to 15 minutes. until it lapses, the console that replaced it refuses policy changes, and app creates that would have to clear an earlier policy. |
| - to roll a console back below this release once any policy exists, first delete everything under `control/app-policy/` in the deployment bucket. that removes every egress allow and size, so note them first and set them again once the console is back on this release. |
| +- every box must run this release before the first egress grant. a box that does not publish its addresses refuses every grant that adds one, and a box with no address list at all is named as not checked. |
| +- a revoke takes effect at once when `carlos-instances.slice` holds the resolver allow, the normal case. on a box where it holds none, or cannot be read, a revoke that empties a host's allow restarts that host's running units, and `carlos status --layout` says `revoked (restarted)`. |
| +- after every change to a host's allow, root writes an empty `IPAddressAllow=` on each running unit in the slice so the change reaches it. that leaves `/run/systemd/system.control/<unit>.d/50-IPAddressAllow.conf` until reboot. it is expected: the claim checks accept exactly that drop-in, so nothing needs clearing before claims are switched on. |
| +- under host claims root writes no allow, and `carlos status --layout` says `not yet supported under claims`. switching claims on resets every allow granted before, and restarts the running units of each host that held one. an allow is honoured only on a box where every row is nested; otherwise `box not wholly nested` names the first row that is not. |
| +- the console re-checks live allows against the boxes' addresses when a box's address list changes (with `CARLOS_CHANGE_INDEX=read`, and not under host claims), and otherwise every 30 to 33 minutes. it alerts through `CARLOS_ALERT_WEBHOOK` or `CARLOS_ALERT_SNS_TOPIC_ARN`, at most once a day per app and address. with neither set it only logs. |
| +- memory never changes on a running instance. a larger size's memory applies at the instance's next start or deploy, and a smaller size waits for a cold start. cpu and io change at once. a size above standard is refused when a box the app can run on reports no memory total, or when it is more than a quarter of the smallest such box's memory. |
| ## App config & secrets |
diff --git a/docs/site/cli.md b/docs/site/cli.md| index 3f0ebde27..f8791d355 100644 |
| --- a/docs/site/cli.md |
| +++ b/docs/site/cli.md |
| @@ -207,6 +207,25 @@ carlos apps set shop --instance-control updates,pin --default-updates manual |
| --instance-control names the settings an instance may change itself once instances can act for themselves. --default-updates and --default-major apply wherever an instance has not chosen; --default-channel is the channel new instances are created on. |
| +System operators can also set an app's instance policy: which private addresses its instances may reach and the size each instance runs at. `carlos apps show` reads it back. |
| + |
| +```sh |
| +carlos apps set shop --egress-allow 10.0.5.20,fd00:5::20 |
| +carlos apps set shop --size large |
| +carlos instances set shop-a.example.com --app shop --size xlarge |
| +carlos apps show shop |
| +``` |
| + |
| +An instance cannot reach a private address unless its app allows it. `--egress-allow` takes the app's whole list, comma-separated, and replaces the list before it. To drop one address, pass the list without it; `--egress-allow ""` removes them all. Each entry is a single IP address, with no range, port or zone. Public addresses are refused because instances can reach them already, and so are loopback, link-local, multicast and reserved addresses, the cloud metadata service and the NAT64 prefix. An app may allow at most 8. |
| + |
| +A change that adds an address is checked against the deployment's boxes. An address that belongs to one of them is refused, and so is any new address while a box does not publish its address list yet. Boxes that publish none at all are named after the change. An allow takes effect only on a box where every instance runs nested (see `carlos status --layout`). It does not take effect while host claims are on. If a box later takes an allowed address, the console sends an alert. |
| + |
| +The sizes are `small` (256 MiB of memory), `standard` (512 MiB), `large` (1 GiB) and `xlarge` (2 GiB), with CPU and IO to match. `carlos apps set --size` sets the app's size, and `--size default` goes back to the build's size. `carlos instances set --size` gives one instance a size of its own, and `--size default` makes it follow the app's size again. A size above `standard` is refused when it is more than a quarter of the memory on the smallest box the app can run on, or when one of those boxes reports no memory total. |
| + |
| +After a size change, the command prints each box's memory committed to awake instances, out of its total. CPU and IO change at once. A larger size's memory applies when an instance next starts or is deployed. A smaller size applies only when the instance starts cold. Restart it to apply the new memory now. `carlos status --layout` shows the size each instance runs at. |
| + |
| +The console records a change, and the app's boxes apply it. A box that follows the deployment's change index does so within seconds; any other box within about 33 minutes. `carlos apps show` prints the egress allow, the app's size, and every instance with a size of its own. A `!` before an address means one of the deployment's boxes now holds it. |
| + |
| ### carlos ship |
| Publishes a release. The artifact is hashed, stored under its content |
| @@ -867,6 +886,8 @@ every few minutes, and asleep instances are measured too. A dash means no box |
| has measured it: the instance is not running anywhere yet, it has not created |
| its database, or it keeps its data somewhere CARLOS does not manage. |
| +The `EGRESS` column lists the private addresses the instance may reach, or `-` for none. A word after `!` means the allow is not in force yet: `pending` until the instance next starts, `failing` while its box retries, or `not available` on a box that cannot apply it. The `REASON` column says why, after `egress:`. |
| + |
| `carlos instances list` shows two builds for each instance: the one installed |
| on its box, and the one serving its requests. They differ while a new build |
| rolls out, while an asleep instance waits for its next request, and after a |
| @@ -1027,7 +1048,7 @@ question through the console. |
| ### carlos instances set |
| -Sets how one instance takes new builds: auto or manual updates, the channel, a major version to stay on (stable only), or an exact build to pin. An empty value clears a setting, so the app's default applies again. |
| +Sets how one instance takes new builds: auto or manual updates, the channel, a major version to stay on (stable only), or an exact build to pin. An empty value clears an update setting, so the app's default applies again. System operators can also give the instance its own size with `--size`; `--size default` clears it. See [carlos apps](/docs/cli#carlos-apps). |
| ```sh |
| carlos instances set a.shop.example.com --updates manual |
| @@ -2277,6 +2298,8 @@ rows have paths the layout pass does not recognise and leaves alone, and |
| `external` rows are run by another supervisor. Like `--instances`, it goes |
| through the console and is operator only. |
| +The `SIZE` column is the size an awake nested instance runs at: `swap` while a deploy is swapping it, `?` when its box could not read it, and `-` for anything else. `standard>large` means it runs at standard and its policy asks for large; a note under the table says when that takes effect. The `EGRESS` column is the instance's egress allow as its box applies it. A `!` before an address means one of the deployment's boxes now holds it. A word after `!` means the allow is not in force: `failing`, `policy unreadable`, `policy unverifiable`, `policy expired`, `box not wholly nested`, `not yet supported under claims`, or `refused` when the box dropped an entry. `REASON` gives the detail after `egress:`. |
| + |
| A box that runs `nested` instances beside `flat`, `foreign` or `external` |
| ones gets a warning after the table. Each of those still shares the agent's |
| user and view of `/data`, so the nested ones on that box are not isolated |
diff --git a/docs/superpowers/notes/copy-instance-policy-plan1.md b/docs/superpowers/notes/copy-instance-policy-plan1.md| index 44c98749e..a6e0e3f36 100644 |
| --- a/docs/superpowers/notes/copy-instance-policy-plan1.md |
| +++ b/docs/superpowers/notes/copy-instance-policy-plan1.md |
| @@ -1,4 +1,4 @@ |
| -# Instance sizes and egress allows, plan 1: copy deck (pending review) |
| +# Instance sizes and egress allows, plan 1: copy deck (approved by delegation, Luna pass 2026-10-26) |
| Every user-facing string plan 1 (`2026-10-21-instance-policy-1-foundation`) |
| added or changed, for the one copy review that covers plans 1 to 3 before |
| @@ -30,22 +30,22 @@ Seen in two places: at the console door (`PUT .../policy`, the 400 body), and |
| client-side before any request as `apps set: --egress-allow: <text>` |
| (IP1-31). Plan 2's root report shows them again on the box. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-01 | internal/egressaddr/egressaddr.go:36 `msgEmpty` | an address is empty | door 400; `apps set` | 0 | |
| -| IP1-02 | internal/egressaddr/egressaddr.go:37 `msgRange` | %q is a range. Allow single addresses only | door 400; `apps set` | 0 | |
| -| IP1-03 | internal/egressaddr/egressaddr.go:38 `msgPort` | %q has a port. An allow opens an address, never a port | door 400; `apps set` | 0 | |
| -| IP1-04 | internal/egressaddr/egressaddr.go:39 `msgZone` | %q has a zone. Name the address without it | door 400; `apps set` | 0 | |
| -| IP1-05 | internal/egressaddr/egressaddr.go:40 `msgNotAddr` | %q is not an IP address | door 400; `apps set` | 1 (the fragment "is not an IP address" is also in internal/relay/serve.go, a separate literal) | |
| -| IP1-06 | internal/egressaddr/egressaddr.go:41 `msgLoopback` | %s is a loopback address | door 400; `apps set` | 0 | |
| -| IP1-07 | internal/egressaddr/egressaddr.go:42 `msgUnspecified` | %s is the unspecified address | door 400; `apps set` | 0 | |
| -| IP1-08 | internal/egressaddr/egressaddr.go:43 `msgMetadata` | %s is the cloud metadata service | door 400; `apps set` | 0 | |
| -| IP1-09 | internal/egressaddr/egressaddr.go:44 `msgLinkLocal` | %s is link-local | door 400; `apps set` | 2 (the fragment also appears in internal/provision/provision.go, a separate literal) | |
| -| IP1-10 | internal/egressaddr/egressaddr.go:45 `msgMulticast` | %s is a multicast address | door 400; `apps set` | 0 | |
| -| IP1-11 | internal/egressaddr/egressaddr.go:46 `msgReserved` | %s is in %s, a reserved range | door 400; `apps set` | 0 | |
| -| IP1-12 | internal/egressaddr/egressaddr.go:47 `msgNAT64` | %s is in the NAT64 prefix 64:ff9b::/96, which reaches any IPv4 address | door 400; `apps set` | 0 | |
| -| IP1-13 | internal/egressaddr/egressaddr.go:48 `msgPublic` | %s is a public address and is already reachable. No allow is needed | door 400; `apps set` | 0 | |
| -| IP1-14 | internal/egressaddr/egressaddr.go:49 `msgTooMany` | at most %d addresses per app (%d given) | door 400; `apps set` | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-01 | internal/egressaddr/egressaddr.go:36 `msgEmpty` | an address is empty | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-02 | internal/egressaddr/egressaddr.go:37 `msgRange` | %q is a range. Allow single addresses only | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26): %q is a range. allow single addresses only | |
| +| IP1-03 | internal/egressaddr/egressaddr.go:38 `msgPort` | %q has a port. An allow opens an address, never a port | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26): %q has a port. an allow opens an address, never a port | |
| +| IP1-04 | internal/egressaddr/egressaddr.go:39 `msgZone` | %q has a zone. Name the address without it | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26): %q has a zone. name the address without it | |
| +| IP1-05 | internal/egressaddr/egressaddr.go:40 `msgNotAddr` | %q is not an IP address | door 400; `apps set` | 1 (the fragment "is not an IP address" is also in internal/relay/serve.go, a separate literal) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-06 | internal/egressaddr/egressaddr.go:41 `msgLoopback` | %s is a loopback address | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-07 | internal/egressaddr/egressaddr.go:42 `msgUnspecified` | %s is the unspecified address | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-08 | internal/egressaddr/egressaddr.go:43 `msgMetadata` | %s is the cloud metadata service | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-09 | internal/egressaddr/egressaddr.go:44 `msgLinkLocal` | %s is link-local | door 400; `apps set` | 2 (the fragment also appears in internal/provision/provision.go, a separate literal) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-10 | internal/egressaddr/egressaddr.go:45 `msgMulticast` | %s is a multicast address | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-11 | internal/egressaddr/egressaddr.go:46 `msgReserved` | %s is in %s, a reserved range | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-12 | internal/egressaddr/egressaddr.go:47 `msgNAT64` | %s is in the NAT64 prefix 64:ff9b::/96, which reaches any IPv4 address | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-13 | internal/egressaddr/egressaddr.go:48 `msgPublic` | %s is a public address and is already reachable. No allow is needed | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26): %s is a public address and is already reachable. no allow is needed | |
| +| IP1-14 | internal/egressaddr/egressaddr.go:49 `msgTooMany` | at most %d addresses per app (%d given) | door 400; `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| ## 2. The policy writer lease (Task 8, `internal/console/policylease.go`) |
| @@ -55,13 +55,13 @@ body), and the console's New app form, where the text is the flash as it |
| is (lower case first letter, no full stop, unlike the other create |
| flashes). |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-15 | internal/console/policylease.go:80 `policyLeaseHeldMsg` | another console (%s) is the policy writer for this deployment until %s. Make the change there, or try again after that | 503 on a policy change or an app create while another console holds the lease; also the browser create flash. The first `%s` is the lock's owner, `<hostname>:<pid>`; the second is the expiry in UTC, RFC 3339 | 0 | |
| -| IP1-16 | internal/console/policylease.go:81 `policyLeaseHeldNoOwnerMsg` (new in Task 15) | another console is the policy writer for this deployment until %s. Make the change there, or try again after that | the same, when the lock names no owner. Proposed fallback, see "Task 8 item" below | 0 | |
| -| IP1-17 | internal/console/policylease.go:82 `policyLeaseUnavailableMsg` | could not take the policy writer lease. Try again | 503, same places; also while the console is shutting down | 0 | |
| -| IP1-18 | internal/console/policylease.go:83 `policyLeaseMissingMsg` | this console is not set up to write app policies (no writer lease). Deploy a console built from current main | 503, same places | 0 | |
| -| IP1-19 | internal/console/policylease.go:84 `policyLeaseLostMsg` | this console stopped being the policy writer during the change, so it may not have been published. Read the policy again before you retry | 503 on a policy change or create whose lease lapsed mid-write | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-15 | internal/console/policylease.go:80 `policyLeaseHeldMsg` | another console (%s) is the policy writer for this deployment until %s. Make the change there, or try again after that | 503 on a policy change or an app create while another console holds the lease; also the browser create flash. The first `%s` is the lock's owner, `<hostname>:<pid>`; the second is the expiry in UTC, RFC 3339 | 0 | approved by delegation (Luna pass, 2026-10-26): another console (%s) is the policy writer for this deployment until %s. use that console, or try again after that | |
| +| IP1-16 | internal/console/policylease.go:81 `policyLeaseHeldNoOwnerMsg` (new in Task 15) | another console is the policy writer for this deployment until %s. Make the change there, or try again after that | the same, when the lock names no owner. Proposed fallback, see "Task 8 item" below | 0 | approved by delegation (Luna pass, 2026-10-26): another console is the policy writer for this deployment until %s. use the console that holds the lease, or try again after that | |
| +| IP1-17 | internal/console/policylease.go:82 `policyLeaseUnavailableMsg` | could not take the policy writer lease. Try again | 503, same places; also while the console is shutting down | 0 | approved by delegation (Luna pass, 2026-10-26): could not take the policy writer lease. try again | |
| +| IP1-18 | internal/console/policylease.go:83 `policyLeaseMissingMsg` | this console is not set up to write app policies (no writer lease). Deploy a console built from current main | 503, same places | 0 | approved by delegation (Luna pass, 2026-10-26): this console is not set up to write app policies (no writer lease). deploy a console built from current main | |
| +| IP1-19 | internal/console/policylease.go:84 `policyLeaseLostMsg` | this console stopped being the policy writer during the change, so it may not have been published. Read the policy again before you retry | 503 on a policy change or create whose lease lapsed mid-write | 0 | approved by delegation (Luna pass, 2026-10-26): this console stopped being the policy writer during the change, so it may not have been published. read the policy again before you retry | |
| ### Task 8 item: a lock with no owner |
| @@ -81,20 +81,20 @@ only. The CLI checks addresses, sizes and preconditions before it sends, so |
| the rows marked "API only" are what a direct API caller reads; a CLI user |
| would only see them if the CLI and console disagreed. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-20 | internal/console/apipolicy.go:64 `policyNothingMsg` | nothing to set: send egress_allow, default_size or size | 400, API only (the CLI never sends an empty change) | 0 | |
| -| IP1-21 | internal/console/apipolicy.go:65 `policyDefaultSizeMsg` | default_size must be small, standard, large or xlarge, or empty for the build's size | 400, API only (`apps set --size` checks first, IP1-32) | 0 | |
| -| IP1-22 | internal/console/apipolicy.go:66 `policySizeMsg` | size must be small, standard, large, xlarge or default | 400, API only (`instances set --size` checks first, IP1-33) | 0 | |
| -| IP1-23 | internal/console/apipolicy.go:67 `policyNoInstanceMsg` | no instance %s in this app | 404, `instances set --size` on a host the app does not have | 0 | |
| -| IP1-24 | internal/console/apipolicy.go:68 `policyPreconditionMsg` | send If-Match with the policy's etag, or If-None-Match: * when there is none | 428, API only (the CLI always sends one) | 0 | |
| -| IP1-25 | internal/console/apipolicy.go:69 `policyChangedMsg` | the policy changed since it was read. Read it again and retry | 412 body, API only; the CLI replaces it with IP1-35 | 0 | |
| -| IP1-26 | internal/console/apipolicy.go:70 `policyRecordFailedMsg` | the change could not be recorded, so it was not made. Try again | 503 on `apps set` / `instances set` | 0 | |
| -| IP1-27 | internal/console/apipolicy.go:71 `policyAuditFailedMsg` | the change could not be audited, so it was not made. Try again | 503 on `apps set` / `instances set` when the audit row cannot be written (Astra plan R8-3) | 0 | |
| -| IP1-28 | internal/console/apipolicy.go:72 `policyUnpublishedMsg` | the change is recorded but not yet published. Run the command again to publish it now | 502 on `apps set` / `instances set` | 0 | |
| -| IP1-29 | internal/console/apipolicy.go:73 `policyReadFailedMsg` | could not read the policy. Try again | 502 or 503 on `apps show`, `apps set`, `instances set` | 0 | |
| -| IP1-30 | internal/console/apipolicy.go:74 `policyInvalidHostMsg` | invalid host | 400 on `instances set --size` with a malformed host | 15 (shared wording across ten files; this is its own literal, so a rewrite here changes only this door) | |
| -| IP1-45 | internal/console/apipolicy.go:74 `policyAppReplacedMsg` (new, final review finding 2) | the app was deleted, renamed or moved while the change was being made, so it was not made | 409 on `apps set` / `instances set` when the app the request found was trashed, purged, renamed or moved (and perhaps created again) before the write | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-20 | internal/console/apipolicy.go:64 `policyNothingMsg` | nothing to set: send egress_allow, default_size or size | 400, API only (the CLI never sends an empty change) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-21 | internal/console/apipolicy.go:65 `policyDefaultSizeMsg` | default_size must be small, standard, large or xlarge, or empty for the build's size | 400, API only (`apps set --size` checks first, IP1-32) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-22 | internal/console/apipolicy.go:66 `policySizeMsg` | size must be small, standard, large, xlarge or default | 400, API only (`instances set --size` checks first, IP1-33) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-23 | internal/console/apipolicy.go:67 `policyNoInstanceMsg` | no instance %s in this app | 404, `instances set --size` on a host the app does not have | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-24 | internal/console/apipolicy.go:68 `policyPreconditionMsg` | send If-Match with the policy's etag, or If-None-Match: * when there is none | 428, API only (the CLI always sends one) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-25 | internal/console/apipolicy.go:69 `policyChangedMsg` | the policy changed since it was read. Read it again and retry | 412 body, API only; the CLI replaces it with IP1-35 | 0 | approved by delegation (Luna pass, 2026-10-26): the policy changed since it was read. read it again and retry | |
| +| IP1-26 | internal/console/apipolicy.go:70 `policyRecordFailedMsg` | the change could not be recorded, so it was not made. Try again | 503 on `apps set` / `instances set` | 0 | approved by delegation (Luna pass, 2026-10-26): the change could not be recorded, so it was not made. try again | |
| +| IP1-27 | internal/console/apipolicy.go:71 `policyAuditFailedMsg` | the change could not be audited, so it was not made. Try again | 503 on `apps set` / `instances set` when the audit row cannot be written (Astra plan R8-3) | 0 | approved by delegation (Luna pass, 2026-10-26): the change could not be audited, so it was not made. try again | |
| +| IP1-28 | internal/console/apipolicy.go:72 `policyUnpublishedMsg` | the change is recorded but not yet published. Run the command again to publish it now | 502 on `apps set` / `instances set` | 0 | approved by delegation (Luna pass, 2026-10-26): the change is recorded but not yet published. run the command again to publish it now | |
| +| IP1-29 | internal/console/apipolicy.go:73 `policyReadFailedMsg` | could not read the policy. Try again | 502 or 503 on `apps show`, `apps set`, `instances set` | 0 | approved by delegation (Luna pass, 2026-10-26): could not read the policy. try again | |
| +| IP1-30 | internal/console/apipolicy.go:74 `policyInvalidHostMsg` | invalid host | 400 on `instances set --size` with a malformed host | 15 (shared wording across ten files; this is its own literal, so a rewrite here changes only this door) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-45 | internal/console/apipolicy.go:74 `policyAppReplacedMsg` (new, final review finding 2) | the app was deleted, renamed or moved while the change was being made, so it was not made | 409 on `apps set` / `instances set` when the app the request found was trashed, purged, renamed or moved (and perhaps created again) before the write | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| Reused unchanged, not new copy: `doorKeyNoBucketMsg` |
| (`internal/console/apidoorkeys.go:44`, "no deployment bucket on this host. |
| @@ -109,22 +109,22 @@ with `; `, then ` (cli)`. A request that changed nothing lists every part it |
| sent. Example: `egress allow: none -> 10.0.5.20; default size: the build's |
| size -> large (cli)`. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-A1 | internal/console/apipolicy.go:1103 | egress allow: %s -> %s | activity tab | 0 | |
| -| IP1-A2 | internal/console/apipolicy.go:1107 | default size: %s -> %s | activity tab | 0 | |
| -| IP1-A3 | internal/console/apipolicy.go:1118 | size of %s: %s -> %s (the host, then old and new) | activity tab | 0 for the part; "size of " alone is a common phrase (12 files) | |
| -| IP1-A4 | internal/console/apipolicy.go:1091 | none | activity tab, an empty allow | "none" is a common literal (107); this one is inline in the closure | |
| -| IP1-A5 | internal/console/apipolicy.go:1097 | the build's size | activity tab, no default size | 0 at base; now 5 uses, see "One term, five places" | |
| -| IP1-A6 | internal/console/apipolicy.go:1115 | the app default | activity tab, no override for the host | 13 (config uses the same words elsewhere, separate literals) | |
| -| IP1-A7 | internal/console/apipolicy.go:1124 | ` (cli)` suffix | activity tab | 93, the existing convention, unchanged | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-A1 | internal/console/apipolicy.go:1103 | egress allow: %s -> %s | activity tab | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-A2 | internal/console/apipolicy.go:1107 | default size: %s -> %s | activity tab | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-A3 | internal/console/apipolicy.go:1118 | size of %s: %s -> %s (the host, then old and new) | activity tab | 0 for the part; "size of " alone is a common phrase (12 files) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-A4 | internal/console/apipolicy.go:1091 | none | activity tab, an empty allow | "none" is a common literal (107); this one is inline in the closure | out of scope: shared literal `none`, not sent to the pass | |
| +| IP1-A5 | internal/console/apipolicy.go:1097 | the build's size | activity tab, no default size | 0 at base; now 5 uses, see "One term, five places" | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-A6 | internal/console/apipolicy.go:1115 | the app default | activity tab, no override for the host | 13 (config uses the same words elsewhere, separate literals) | approved by delegation (Luna pass, 2026-10-26): the app's size | |
| +| IP1-A7 | internal/console/apipolicy.go:1124 | ` (cli)` suffix | activity tab | 93, the existing convention, unchanged | out of scope: the existing ` (cli)` convention | |
| ## 4. App create (Task 11, `internal/console/server.go`) |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-40 | internal/console/server.go:4159 `appCreatePolicyClearMsg` | an earlier app's settings under this name could not be cleared, so nothing was created. Try again, or ask an operator to delete %s from the deployment bucket | 503 on `carlos apps create` and a temporary site create (`apicli.go:486`, `apitemporary.go:221`); `%s` is the key, `control/app-policy/<sqid>/<app>.json` | 0 | |
| -| IP1-41 | internal/console/server.go:4160 `appCreatePolicyClearFlash` | Could not clear an earlier app's settings under this name, so nothing was created. Please try again. | the New app form's flash (`server.go:4561`) | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-40 | internal/console/server.go:4159 `appCreatePolicyClearMsg` | an earlier app's settings under this name could not be cleared, so nothing was created. Try again, or ask an operator to delete %s from the deployment bucket | 503 on `carlos apps create` and a temporary site create (`apicli.go:486`, `apitemporary.go:221`); `%s` is the key, `control/app-policy/<sqid>/<app>.json` | 0 | approved by delegation (Luna pass, 2026-10-26): an earlier app's instance policy under this name could not be cleared, so nothing was created. try again, or ask an operator to delete %s from the deployment bucket | |
| +| IP1-41 | internal/console/server.go:4160 `appCreatePolicyClearFlash` | Could not clear an earlier app's settings under this name, so nothing was created. Please try again. | the New app form's flash (`server.go:4561`) | 0 | approved by delegation (Luna pass, 2026-10-26): Could not clear an earlier app's instance policy under this name, so nothing was created. Please try again. | |
| The lease refusals (IP1-15 to IP1-19) also answer a create: |
| `apicli.go:487`, `apitemporary.go:223`, and the flash at `server.go:4562`. |
| @@ -135,56 +135,56 @@ A rename, or a move of an app's record to another account, is refused when eithe |
| key, or a revision row in the console's table. The row outlives a cleared |
| policy, so these refusals do not tell the person to clear anything. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-46 | internal/console/appsettings.go:919 `renamePolicyFromMsg` | This app has had an instance policy set by an operator, so it cannot be renamed. Create a new app instead. | the rename form's flash (app settings, General) | 0 | |
| -| IP1-47 | internal/console/appsettings.go:920 `renamePolicyToMsg` | The name %s has had an instance policy set by an operator, so no app can be renamed to it. Choose another name. | the same flash; `%s` is the new name | 0 | |
| -| IP1-48 | internal/console/appsettings.go:921 `renamePolicyCheckMsg` | Could not check the instance policies, so nothing was renamed. Try again. | the same flash, when the bucket or the table cannot be read | 0 | |
| -| IP1-49 | internal/console/appsettings.go:927 `movePolicyFromMsg` | This app has had an instance policy set by an operator, so its record cannot be moved to another account. Ask an operator to move it. | the "Move to <account>" repair's flash (app settings, General) | 0 | |
| -| IP1-58 | internal/console/appsettings.go:928 `movePolicyToMsg` | An earlier app named %s in %s had an instance policy set by an operator, so this app cannot be moved there. Ask an operator to move it. | the same flash; the app's name, then the destination account's name | 0 | |
| -| IP1-59 | internal/console/appsettings.go:929 `movePolicyCheckMsg` | Could not check the instance policies, so nothing was moved. Try again. | the same flash, when the bucket or the table cannot be read | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-46 | internal/console/appsettings.go:919 `renamePolicyFromMsg` | This app has had an instance policy set by an operator, so it cannot be renamed. Create a new app instead. | the rename form's flash (app settings, General) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-47 | internal/console/appsettings.go:920 `renamePolicyToMsg` | The name %s has had an instance policy set by an operator, so no app can be renamed to it. Choose another name. | the same flash; `%s` is the new name | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-48 | internal/console/appsettings.go:921 `renamePolicyCheckMsg` | Could not check the instance policies, so nothing was renamed. Try again. | the same flash, when the bucket or the table cannot be read | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-49 | internal/console/appsettings.go:927 `movePolicyFromMsg` | This app has had an instance policy set by an operator, so its record cannot be moved to another account. Ask an operator to move it. | the "Move to <account>" repair's flash (app settings, General) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-58 | internal/console/appsettings.go:928 `movePolicyToMsg` | An earlier app named %s in %s had an instance policy set by an operator, so this app cannot be moved there. Ask an operator to move it. | the same flash; the app's name, then the destination account's name | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-59 | internal/console/appsettings.go:929 `movePolicyCheckMsg` | Could not check the instance policies, so nothing was moved. Try again. | the same flash, when the bucket or the table cannot be read | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| ## 5. The CLI (Task 12) |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-31 | apps_policy.go:39 `appsSetBadEgress` | apps set: --egress-allow: %v | `apps set`, before any request; `%v` is an IP1-01 to IP1-14 text | 0 | |
| -| IP1-32 | apps_policy.go:40 `appsSetBadSize` | apps set: --size is small, standard, large, xlarge or default, not %q | `apps set` | 0 | |
| -| IP1-33 | apps_policy.go:41 `instancesSetBadSize` | instances set: --size is small, standard, large, xlarge or default, not %q | `instances set` | 0 | |
| -| IP1-34 | apps_policy.go:42 `appsPolicyOldConsole` | not found: either %s is not an app in this account, you are not a system operator, or this console predates app policies (deploy a console built from current main) | `apps set`, `instances set`, `apps show` on a bare 404 | 0 (same shape as the approved `zdd.instances-retry.old-console`) | |
| -| IP1-35 | apps_policy.go:43 `appsPolicyChanged` | the policy changed while this ran. Run it again | a 412: someone changed the policy between the CLI's read and write | 0 | |
| -| IP1-36 | apps_policy.go:44 `appsSetEgressDone` | %s instances may reach %s | `apps set --egress-allow`, success; app, then the addresses joined with ", " | 0 | |
| -| IP1-37 | apps_policy.go:45 `appsSetEgressCleared` | %s instances have no egress allow | `apps set --egress-allow ""` | 0 | |
| -| IP1-38 | apps_policy.go:46 `appsSetSizeDone` | %s instances run at %s unless an instance has its own size | `apps set --size <size>` | 0 | |
| -| IP1-39 | apps_policy.go:47 `appsSetSizeCleared` | %s instances run at the build's size unless an instance has its own size | `apps set --size default` | 0 | |
| -| IP1-42 | apps_policy.go:48 `instancesSetSizeDone` | %s runs at %s | `instances set --size <size>`; host, then size | 0 | |
| -| IP1-43 | apps_policy.go:49 `instancesSetSizeDefault` | %s follows the app's size | `instances set --size default` | 0 | |
| -| IP1-44 | apps_policy.go:57 `appsShowDirectMode` | apps show works through a console, and this shell is in direct bucket mode (CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR is set). Log in instead: carlos auth login --console <url> | `apps show` in direct mode | 0 (same shape as the approved `zdd.apps-set.direct-mode`, which `apps set --egress-allow/--size` also shows) | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-31 | apps_policy.go:39 `appsSetBadEgress` | apps set: --egress-allow: %v | `apps set`, before any request; `%v` is an IP1-01 to IP1-14 text | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-32 | apps_policy.go:40 `appsSetBadSize` | apps set: --size is small, standard, large, xlarge or default, not %q | `apps set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-33 | apps_policy.go:41 `instancesSetBadSize` | instances set: --size is small, standard, large, xlarge or default, not %q | `instances set` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-34 | apps_policy.go:42 `appsPolicyOldConsole` | not found: either %s is not an app in this account, you are not a system operator, or this console predates app policies (deploy a console built from current main) | `apps set`, `instances set`, `apps show` on a bare 404 | 0 (same shape as the approved `zdd.instances-retry.old-console`) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-35 | apps_policy.go:43 `appsPolicyChanged` | the policy changed while this ran. Run it again | a 412: someone changed the policy between the CLI's read and write | 0 | approved by delegation (Luna pass, 2026-10-26): the policy changed while this ran. run it again | |
| +| IP1-36 | apps_policy.go:44 `appsSetEgressDone` | %s instances may reach %s | `apps set --egress-allow`, success; app, then the addresses joined with ", " | 0 | approved by delegation (Luna pass, 2026-10-26): egress allow for %s set to %s | |
| +| IP1-37 | apps_policy.go:45 `appsSetEgressCleared` | %s instances have no egress allow | `apps set --egress-allow ""` | 0 | approved by delegation (Luna pass, 2026-10-26): egress allow for %s cleared | |
| +| IP1-38 | apps_policy.go:46 `appsSetSizeDone` | %s instances run at %s unless an instance has its own size | `apps set --size <size>` | 0 | approved by delegation (Luna pass, 2026-10-26): default size for %s set to %s. instances with their own size are unchanged | |
| +| IP1-39 | apps_policy.go:47 `appsSetSizeCleared` | %s instances run at the build's size unless an instance has its own size | `apps set --size default` | 0 | approved by delegation (Luna pass, 2026-10-26): default size for %s set to the build's size. instances with their own size are unchanged | |
| +| IP1-42 | apps_policy.go:48 `instancesSetSizeDone` | %s runs at %s | `instances set --size <size>`; host, then size | 0 | approved by delegation (Luna pass, 2026-10-26): %s size set to %s | |
| +| IP1-43 | apps_policy.go:49 `instancesSetSizeDefault` | %s follows the app's size | `instances set --size default` | 0 | approved by delegation (Luna pass, 2026-10-26): %s size cleared. it follows the app's size | |
| +| IP1-44 | apps_policy.go:57 `appsShowDirectMode` | apps show works through a console, and this shell is in direct bucket mode (CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR is set). Log in instead: carlos auth login --console <url> | `apps show` in direct mode | 0 (same shape as the approved `zdd.apps-set.direct-mode`, which `apps set --egress-allow/--size` also shows) | approved by delegation (Luna pass, 2026-10-26): apps show works through a console, and this shell is in direct bucket mode (CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR is set). log in instead: carlos auth login --console \<url\> | |
| ### Help and usage |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-50 | apps_policy.go:34 `appsSetFlagEgress` | private addresses every instance of the app may reach, comma-separated, never a port. "" clears them. System operators only | `carlos apps set -h` | 0 | |
| -| IP1-51 | apps_policy.go:35 `appsSetFlagSize` | the size the app's instances run at: small, standard, large or xlarge. default goes back to the build's size. System operators only | `carlos apps set -h` | 0 | |
| -| IP1-52 | apps_policy.go:36 `instancesSetFlagSize` | this instance's size: small, standard, large or xlarge. default follows the app's size. System operators only | `carlos instances set -h` | 0 | |
| -| IP1-53 | apps_policy.go:37 `appsSetPolicyUsage` | Only system operators may pass --egress-allow or --size. A change reaches<br>the app's boxes within seconds once they run a release that applies it. | `carlos apps set -h`, the last paragraph before the flag list | 0 | |
| -| IP1-54 | apps_policy.go:50 `appsShowUsage` | usage: carlos apps show <app> [--account <sqid\|name>] [--account-id <sqid>] [--console <origin>] | `carlos apps show -h`, and a bad call | 0 | |
| -| IP1-55 | apps.go:89 (in `appsUsage`) | ` show <app> the app's egress allow and sizes. System operators only.` | `carlos apps -h` | 0 | |
| -| IP1-56 | apps.go:37 (first line of `appsUsage`; approved as `zdd.apps.usage-line`) | usage: carlos apps <create\|place\|build-probe\|set\|show\|delete\|restore\|ttl\|keep\|list> [flags] <app> | `carlos apps -h` | 0. Changed from the approved `usage: carlos apps <create\|place\|build-probe\|set\|delete\|restore\|ttl\|keep\|list> [flags] <app>` (1 at base): `show` added | |
| -| IP1-57 | apps_swap.go:41 `appsSetNothing` (approved as `zdd.apps-set.nothing`) | apps set: nothing to set. Pass --swap, --swap-concurrency, --egress-allow or --size | `apps set` with no flags | 0. Changed from the approved `apps set: nothing to set. Pass --swap, --swap-concurrency, or both` (1 at base) | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-50 | apps_policy.go:34 `appsSetFlagEgress` | private addresses every instance of the app may reach, comma-separated, never a port. "" clears them. System operators only | `carlos apps set -h` | 0 | approved by delegation (Luna pass, 2026-10-26): private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; "" clears it. system operators only | |
| +| IP1-51 | apps_policy.go:35 `appsSetFlagSize` | the size the app's instances run at: small, standard, large or xlarge. default goes back to the build's size. System operators only | `carlos apps set -h` | 0 | approved by delegation (Luna pass, 2026-10-26): the size the app's instances run at: small, standard, large or xlarge. default uses the build's size. system operators only | |
| +| IP1-52 | apps_policy.go:36 `instancesSetFlagSize` | this instance's size: small, standard, large or xlarge. default follows the app's size. System operators only | `carlos instances set -h` | 0 | approved by delegation (Luna pass, 2026-10-26): this instance's size: small, standard, large or xlarge. default follows the app's size. system operators only | |
| +| IP1-53 | apps_policy.go:37 `appsSetPolicyUsage` | Only system operators may pass --egress-allow or --size. A change reaches<br>the app's boxes within seconds once they run a release that applies it. | `carlos apps set -h`, the last paragraph before the flag list | 0 | approved by delegation (Luna pass, 2026-10-26): Only system operators may pass --egress-allow or --size. A change reaches<br>the app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box. | |
| +| IP1-54 | apps_policy.go:50 `appsShowUsage` | usage: carlos apps show <app> [--account <sqid\|name>] [--account-id <sqid>] [--console <origin>] | `carlos apps show -h`, and a bad call | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-55 | apps.go:89 (in `appsUsage`) | ` show <app> the app's egress allow and sizes. System operators only.` | `carlos apps -h` | 0 | approved by delegation (Luna pass, 2026-10-26): ` show <app> the app's egress allow and sizes. system operators only` | |
| +| IP1-56 | apps.go:37 (first line of `appsUsage`; approved as `zdd.apps.usage-line`) | usage: carlos apps <create\|place\|build-probe\|set\|show\|delete\|restore\|ttl\|keep\|list> [flags] <app> | `carlos apps -h` | 0. Changed from the approved `usage: carlos apps <create\|place\|build-probe\|set\|delete\|restore\|ttl\|keep\|list> [flags] <app>` (1 at base): `show` added | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-57 | apps_swap.go:41 `appsSetNothing` (approved as `zdd.apps-set.nothing`) | apps set: nothing to set. Pass --swap, --swap-concurrency, --egress-allow or --size | `apps set` with no flags | 0. Changed from the approved `apps set: nothing to set. Pass --swap, --swap-concurrency, or both` (1 at base) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| `apps show` output (`appsShowRun`, apps_policy.go:307). Two lines, then |
| one per instance with its own size: |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-60 | apps_policy.go:51 `appsShowEgress` | `egress allow %s` | `apps show` | 0 | |
| -| IP1-61 | apps_policy.go:52 `appsShowDefault` | `default size %s` | `apps show` | 0 | |
| -| IP1-62 | apps_policy.go:53 `appsShowOverride` | `size %s %s` (host, then size) | `apps show`, one per instance with its own size | 0 | |
| -| IP1-63 | apps_policy.go:54 `appsShowNone` | none | `apps show`, no allow | (see IP1-A4) | |
| -| IP1-64 | apps_policy.go:55 `appsShowBuildSize` | the build's size | `apps show`, no default size | (see IP1-A5) | |
| -| IP1-65 | apps_policy.go:56 `appsShowStale` | ` (not in force. The instance was deleted or recreated)` | appended to an override line | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-60 | apps_policy.go:51 `appsShowEgress` | `egress allow %s` | `apps show` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-61 | apps_policy.go:52 `appsShowDefault` | `default size %s` | `apps show` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-62 | apps_policy.go:53 `appsShowOverride` | `size %s %s` (host, then size) | `apps show`, one per instance with its own size | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-63 | apps_policy.go:54 `appsShowNone` | none | `apps show`, no allow | (see IP1-A4) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-64 | apps_policy.go:55 `appsShowBuildSize` | the build's size | `apps show`, no default size | (see IP1-A5) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP1-65 | apps_policy.go:56 `appsShowStale` | ` (not in force. The instance was deleted or recreated)` | appended to an override line | 0 | approved by delegation (Luna pass, 2026-10-26): ` (not in force. the instance was deleted or recreated)` | |
| Example: |
| @@ -207,16 +207,16 @@ includes the ones an operator acts on. These are the ones plan 1 added that |
| tell an operator something to do or check. The other new log lines are |
| diagnostics and are left out. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP1-L1 | internal/release/trash.go:310 | release: purge %s/%s: policy object %s not deleted (%v); the purge retries until it can be removed | console log, a purge whose policy delete is refused (the flagship's `s3:DeleteObject` Deny) | 0 | |
| -| IP1-L2 | internal/console/apipolicy.go:894 | console: app policy %s/%s: not re-signing an object that does not verify; an operator write repairs it | console log, the re-sign pass | 0 | |
| -| IP1-L3 | internal/console/apipolicy.go:713 | console: app policies: not re-signing; %s | console log; `%s` is a lease refusal, IP1-15 to IP1-19 | 0 | |
| -| IP1-L4 | internal/console/apipolicy.go:719 | console: app policies: stopped re-signing at %s/%s; the writer lease was lost | console log | 0 | |
| -| IP1-L5 | internal/provision/apppolicy_reconcile.go:186 | provision: %s/%s: policy %s: %v (`%s` is `unreadable`, `unverifiable` or `expired`) | box log, once per app per pass | 0 | |
| -| IP1-L6 | internal/provision/apppolicy_reconcile.go:175 | provision: %s/%s: policy read failed: %v | box log | 0 | |
| -| IP1-L7 | internal/provision/apppolicy_cache.go:253 | provision: app policies: listing failed, retried next pass: %v | box log | 0 | |
| -| IP1-L8 | internal/console/apipolicy.go:381 | console: app policy %s/%s: the app was deleted, renamed or moved during the request; nothing written | console log, with IP1-45 | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP1-L1 | internal/release/trash.go:310 | release: purge %s/%s: policy object %s not deleted (%v); the purge retries until it can be removed | console log, a purge whose policy delete is refused (the flagship's `s3:DeleteObject` Deny) | 0 | out of scope: log line | |
| +| IP1-L2 | internal/console/apipolicy.go:894 | console: app policy %s/%s: not re-signing an object that does not verify; an operator write repairs it | console log, the re-sign pass | 0 | out of scope: log line | |
| +| IP1-L3 | internal/console/apipolicy.go:713 | console: app policies: not re-signing; %s | console log; `%s` is a lease refusal, IP1-15 to IP1-19 | 0 | out of scope: log line | |
| +| IP1-L4 | internal/console/apipolicy.go:719 | console: app policies: stopped re-signing at %s/%s; the writer lease was lost | console log | 0 | out of scope: log line | |
| +| IP1-L5 | internal/provision/apppolicy_reconcile.go:186 | provision: %s/%s: policy %s: %v (`%s` is `unreadable`, `unverifiable` or `expired`) | box log, once per app per pass | 0 | out of scope: log line | |
| +| IP1-L6 | internal/provision/apppolicy_reconcile.go:175 | provision: %s/%s: policy read failed: %v | box log | 0 | out of scope: log line | |
| +| IP1-L7 | internal/provision/apppolicy_cache.go:253 | provision: app policies: listing failed, retried next pass: %v | box log | 0 | out of scope: log line | |
| +| IP1-L8 | internal/console/apipolicy.go:381 | console: app policy %s/%s: the app was deleted, renamed or moved during the request; nothing written | console log, with IP1-45 | 0 | out of scope: log line | |
| Status words, set by plan 1 for plan 2's report and not yet shown to anyone: |
| `policy unreadable`, `policy unverifiable`, `policy expired` |
| @@ -279,3 +279,25 @@ after the review). `TestZeroDowntimeCopyIsApplied` stays red on |
| the review approves their new text in |
| `docs/superpowers/plans/2026-10-07-zero-downtime-deploys-6-copy.json`. |
| `approved_instance_policy_copy_test.go` is written after the review. |
| + |
| +## 10. Approval (PM-1, 2026-10-26) |
| + |
| +Approved by delegation (Luna pass, gpt-5.6-luna, 2026-10-26) under Paul's |
| +standing rule for platform copy decks: brief |
| +`docs/superpowers/specs/LUNA-COPY-BRIEF-INSTANCE-POLICY.md`, result |
| +`docs/superpowers/specs/LUNA-COPY-RESULT-INSTANCE-POLICY.md`, applied |
| +verbatim. Each row's last column holds its approved text. Luna flagged |
| +nothing for a human. |
| + |
| +- The §8 gaps were fixed in the same pass: `settings.cli.set-usage` (GAP-1) |
| + lists `--size` and says an empty value clears an update setting; |
| + `zdd.apps-set.usage`'s first line (GAP-2) lists `--egress-allow` and |
| + `--size`; `zdd.apps-set.flag-app` (GAP-3) reads "app whose swap or |
| + instance policy to set". Their records changed with them. |
| +- §9: `zdd.apps.usage-line` and `zdd.apps-set.nothing` now hold IP1-56 and |
| + IP1-57 in `docs/superpowers/plans/2026-10-07-zero-downtime-deploys-6-copy.json`. |
| +- §7: the README lease bullets were corrected to the built lease (Task 11b: |
| + a create takes the lease only when it must clear an earlier policy), and |
| + plans 2 and 3 added their bullets (DOC-10 to DOC-17 in the result). |
| +- Every approved string is pinned by `approved_instance_policy_copy_test.go` |
| + through `docs/superpowers/plans/2026-10-21-instance-policy-copy.json`. |
diff --git a/docs/superpowers/notes/copy-instance-policy-plan2.md b/docs/superpowers/notes/copy-instance-policy-plan2.md| index f3ac491a5..564e50a65 100644 |
| --- a/docs/superpowers/notes/copy-instance-policy-plan2.md |
| +++ b/docs/superpowers/notes/copy-instance-policy-plan2.md |
| @@ -1,4 +1,4 @@ |
| -# Instance sizes and egress allows, plan 2: copy deck (pending review) |
| +# Instance sizes and egress allows, plan 2: copy deck (approved by delegation, Luna pass 2026-10-26) |
| Every user-facing string plan 2 (`2026-10-21-instance-policy-2-egress`) |
| added or changed, for the one copy review that covers plans 1 to 3 before |
| @@ -39,32 +39,32 @@ Who sees what: |
| ## 1. The EGRESS column and its words (Task 12) |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-01 | status_instances.go:256 | `BOX HOST LAYOUT EGRESS REASON` | `carlos status --layout` heading. Changed from the approved `BOX HOST LAYOUT REASON` (isolated-exec layout copy; pinned by `status_instances_test.go:68`). Plan 3 makes it `BOX HOST LAYOUT SIZE EGRESS REASON` | 0 (old heading: 1) | |
| -| IP2-02 | instances_cli.go:543 `instancesListHeader` | `HOST\tREGION\tCHANNEL\tPOOL\tINSTALLED\tSERVING\tHEALTH\tUPSTREAMS\tDB\tEGRESS\tCREATED\tBY\tREASON` | `carlos instances list` heading. Changed from the approved `zdd.list.header` (no `EGRESS`) | 0 | |
| -| IP2-03 | instances_cli.go:497, :499 | `-` | the EGRESS cell when nothing is held, or no box reported (an older console) | common literal | |
| -| IP2-04 | instances_cli.go:505 | `!` before an address | `status --layout` EGRESS cell: a fleet box now holds this allowed address (the console's report). Never in `instances list` | 0 | |
| -| IP2-05 | instances_cli.go:508 | `,` (no space) between addresses | EGRESS cell | n/a | |
| -| IP2-06 | instances_cli.go:516, :518 | ` !<word>` after the addresses | EGRESS cell, when the allow is not simply in force | 0 | |
| -| IP2-07 | instances_cli.go:486 `egressRefusedWord` | refused | EGRESS cell (` !refused`), when the box dropped an entry and no state is set | 21 (common literal) | |
| -| IP2-08 | instances_cli.go:487 `egressReasonLabel` | `egress: ` | REASON cell prefix, in both tables; its entries are joined with `; ` (instances_cli.go:539), and it follows any other reason after `; ` (status_instances.go:238, instances_cli.go:658) | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-01 | status_instances.go:256 | `BOX HOST LAYOUT EGRESS REASON` | `carlos status --layout` heading. Changed from the approved `BOX HOST LAYOUT REASON` (isolated-exec layout copy; pinned by `status_instances_test.go:68`). Plan 3 makes it `BOX HOST LAYOUT SIZE EGRESS REASON` | 0 (old heading: 1) | superseded by plan 3's IP3-04 | |
| +| IP2-02 | instances_cli.go:543 `instancesListHeader` | `HOST\tREGION\tCHANNEL\tPOOL\tINSTALLED\tSERVING\tHEALTH\tUPSTREAMS\tDB\tEGRESS\tCREATED\tBY\tREASON` | `carlos instances list` heading. Changed from the approved `zdd.list.header` (no `EGRESS`) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-03 | instances_cli.go:497, :499 | `-` | the EGRESS cell when nothing is held, or no box reported (an older console) | common literal | approved by delegation (Luna pass, 2026-10-26), unchanged (reviewer item 1 and IP3-08) | |
| +| IP2-04 | instances_cli.go:505 | `!` before an address | `status --layout` EGRESS cell: a fleet box now holds this allowed address (the console's report). Never in `instances list` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-05 | instances_cli.go:508 | `,` (no space) between addresses | EGRESS cell | n/a | out of scope: punctuation (`,` between addresses) | |
| +| IP2-06 | instances_cli.go:516, :518 | ` !<word>` after the addresses | EGRESS cell, when the allow is not simply in force | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged (reviewer item 1 and IP3-08) | |
| +| IP2-07 | instances_cli.go:486 `egressRefusedWord` | refused | EGRESS cell (` !refused`), when the box dropped an entry and no state is set | 21 (common literal) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-08 | instances_cli.go:487 `egressReasonLabel` | `egress: ` | REASON cell prefix, in both tables; its entries are joined with `; ` (instances_cli.go:539), and it follows any other reason after `; ` (status_instances.go:238, instances_cli.go:658) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| ### State words (`egressStateWords`, instances_cli.go:473) |
| The word after ` !` in the EGRESS cell. A code the CLI does not know is |
| shown as sent. |
| -| id | where | code | text | seen | base | |
| -|---|---|---|---|---|---| |
| -| IP2-10 | instances_cli.go:474 | `failing` | failing | both tables: root could not write the allow, or it did not hold | 2 (unrelated JSON keys) | |
| -| IP2-11 | instances_cli.go:475 | `unreadable` | policy unreadable | `status --layout` | 1 (a comment); see "Plan 1's status words" below | |
| -| IP2-12 | instances_cli.go:476 | `unverifiable` | policy unverifiable | `status --layout` | 2 (an error in apppolicy, a comment) | |
| -| IP2-13 | instances_cli.go:477 | `expired` | policy expired | `status --layout` | 2 | |
| -| IP2-14 | instances_cli.go:478 | `not_nested` | box not wholly nested | `status --layout` | 0 | |
| -| IP2-15 | instances_cli.go:479 | `under_claims` | not yet supported under claims | `status --layout`. The same words are root's Detail (IP2-46), so the row reads `- !not yet supported under claims` and REASON `egress: not yet supported under claims` | 0 | |
| -| IP2-16 | instances_cli.go:481 | `pending` | pending | `instances list` (member). Root does not emit it today; kept so the word exists if it lands | 34 (common literal) | |
| -| IP2-17 | instances_cli.go:482 | `not_available` | not available | `instances list` (member): every state other than failing and pending | 10 (common phrase) | |
| +| id | where | code | text | seen | base | approval | |
| +|---|---|---|---|---|---|---| |
| +| IP2-10 | instances_cli.go:474 | `failing` | failing | both tables: root could not write the allow, or it did not hold | 2 (unrelated JSON keys) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-11 | instances_cli.go:475 | `unreadable` | policy unreadable | `status --layout` | 1 (a comment); see "Plan 1's status words" below | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-12 | instances_cli.go:476 | `unverifiable` | policy unverifiable | `status --layout` | 2 (an error in apppolicy, a comment) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-13 | instances_cli.go:477 | `expired` | policy expired | `status --layout` | 2 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-14 | instances_cli.go:478 | `not_nested` | box not wholly nested | `status --layout` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-15 | instances_cli.go:479 | `under_claims` | not yet supported under claims | `status --layout`. The same words are root's Detail (IP2-46), so the row reads `- !not yet supported under claims` and REASON `egress: not yet supported under claims` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-16 | instances_cli.go:481 | `pending` | pending | `instances list` (member). Root does not emit it today; kept so the word exists if it lands | 34 (common literal) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-17 | instances_cli.go:482 | `not_available` | not available | `instances list` (member): every state other than failing and pending | 10 (common phrase) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| Examples, built from the formats above (`TestEgressCellTable` and |
| `TestStatusLayoutShowsEgress` pin the cell and row shapes): |
| @@ -80,21 +80,21 @@ Examples, built from the formats above (`TestEgressCellTable` and |
| The fixed reasons a member reads in `instances list`'s REASON cell, as |
| `egress: <reason>`. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-20 | internal/console/apiinstances.go:241 `memberEgressPendingReason` | the allow takes effect when the instance next starts | `instances list`, with `!pending` | 0 | |
| -| IP2-21 | internal/console/apiinstances.go:242 `memberEgressFailingReason` | the box could not apply the allow, and tries again | `instances list`, with `!failing` | 0 | |
| -| IP2-22 | internal/console/apiinstances.go:243 `memberEgressNotAvailableReason` | the allow is not in force on this box | `instances list`, with `!not available` | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-20 | internal/console/apiinstances.go:241 `memberEgressPendingReason` | the allow takes effect when the instance next starts | `instances list`, with `!pending` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-21 | internal/console/apiinstances.go:242 `memberEgressFailingReason` | the box could not apply the allow, and tries again | `instances list`, with `!failing` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-22 | internal/console/apiinstances.go:243 `memberEgressNotAvailableReason` | the allow is not in force on this box | `instances list`, with `!not available` | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| Example row cells: `10.0.5.20 !failing` and REASON |
| `egress: the box could not apply the allow, and tries again`. |
| ## 3. `apps set` and `apps show` (Task 12) |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-30 | apps_policy.go:47 `appsSetEgressNotChecked` | Not checked against these boxes, which publish no address list: %s. | `apps set --egress-allow`, after IP1-36, only when the reply's `not_checked` is non-empty; the box names joined with `, ` | 0 | |
| -| IP2-31 | apps_policy.go:327 | `!` before a configured address | `apps show`'s `egress allow` line (IP1-60): a fleet box now holds this address, per the console's last report pass | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-30 | apps_policy.go:47 `appsSetEgressNotChecked` | Not checked against these boxes, which publish no address list: %s. | `apps set --egress-allow`, after IP1-36, only when the reply's `not_checked` is non-empty; the box names joined with `, ` | 0 | approved by delegation (Luna pass, 2026-10-26): not checked against these boxes, which publish no address list: %s | |
| +| IP2-31 | apps_policy.go:327 | `!` before a configured address | `apps show`'s `egress allow` line (IP1-60): a fleet box now holds this address, per the console's last report pass | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged (reviewer item 1 and IP3-08) | |
| Example: |
| @@ -108,23 +108,23 @@ Example: |
| Only a grant that adds an address is checked. Seen as `apps set: <text>` |
| and as the API's error body. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-40 | internal/console/egressfleet.go:43 `egressFleetHeldMsg` | %s is an address of box %s. An egress allow cannot open a box of this fleet. | 409; the address, then the box | 0 | |
| -| IP2-41 | internal/console/egressfleet.go:44 `egressFleetUnreadableMsg` | Box %s's address list could not be read. Try again in a minute. | 503; the box is its edges file's name, `control/edges/` and `.json` removed | 0 | |
| -| IP2-42 | internal/console/egressfleet.go:45 `egressFleetOlderBoxMsg` | Box %s does not publish its addresses yet. Upgrade it before granting an egress allow. | 409, a box on a release from before plan 2 | 0 | |
| -| IP2-43 | internal/console/egressfleet.go:46 `egressFleetListMsg` | The fleet's address lists could not be read. Try again in a minute. | 503, the edges listing failed (Task 9's own draft; the brief gave none) | 0 | |
| -| IP2-44 | internal/console/egressfleet.go:47 `egressFleetBoxesMsg` | The fleet's list of boxes could not be read. Try again in a minute. | 503, the box list is incomplete (Task 9's own decision and draft) | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-40 | internal/console/egressfleet.go:43 `egressFleetHeldMsg` | %s is an address of box %s. An egress allow cannot open a box of this fleet. | 409; the address, then the box | 0 | approved by delegation (Luna pass, 2026-10-26): %s is an address of box %s. an egress allow cannot open a box of this fleet | |
| +| IP2-41 | internal/console/egressfleet.go:44 `egressFleetUnreadableMsg` | Box %s's address list could not be read. Try again in a minute. | 503; the box is its edges file's name, `control/edges/` and `.json` removed | 0 | approved by delegation (Luna pass, 2026-10-26): box %s's address list could not be read. try again in a minute | |
| +| IP2-42 | internal/console/egressfleet.go:45 `egressFleetOlderBoxMsg` | Box %s does not publish its addresses yet. Upgrade it before granting an egress allow. | 409, a box on a release from before plan 2 | 0 | approved by delegation (Luna pass, 2026-10-26): box %s does not publish its addresses yet. upgrade it before granting an egress allow | |
| +| IP2-43 | internal/console/egressfleet.go:46 `egressFleetListMsg` | The fleet's address lists could not be read. Try again in a minute. | 503, the edges listing failed (Task 9's own draft; the brief gave none) | 0 | approved by delegation (Luna pass, 2026-10-26): the fleet's address lists could not be read. try again in a minute | |
| +| IP2-44 | internal/console/egressfleet.go:47 `egressFleetBoxesMsg` | The fleet's list of boxes could not be read. Try again in a minute. | 503, the box list is incomplete (Task 9's own decision and draft) | 0 | approved by delegation (Luna pass, 2026-10-26): the fleet's list of boxes could not be read. try again in a minute | |
| ## 5. The fleet-address alert (Task 10, `internal/console/egressfleet.go:165`) |
| Paged through the console's armed sinks (webhook or SNS), at most once a day |
| per app and address, per console process. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-50 | internal/console/egressfleet.go:166 | Egress allow %s is now a fleet box's address | alert subject; the address | 0 | |
| -| IP2-51 | internal/console/egressfleet.go:167 | App %s in account %s may reach %s, and box %s now holds that address. The allow is still in force. Remove it with carlos apps set %s --egress-allow, or move the address off the box. | alert body; app, account, address, box, app. The account is the sqid, not the account's name | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-50 | internal/console/egressfleet.go:166 | Egress allow %s is now a fleet box's address | alert subject; the address | 0 | approved by delegation (Luna pass, 2026-10-26): Egress allow %s is now a fleet box's address. | |
| +| IP2-51 | internal/console/egressfleet.go:167 | App %s in account %s may reach %s, and box %s now holds that address. The allow is still in force. Remove it with carlos apps set %s --egress-allow, or move the address off the box. | alert body; app, account, address, box, app. The account is the sqid, not the account's name | 0 | approved by delegation (Luna pass, 2026-10-26): App %s in account id %s may reach %s, and box %s now holds that address. The allow is still in force. Set the whole list again without that address by running carlos apps set %s --egress-allow, or move the address off the box. | |
| ## 6. Root's report Detail and refusals (`status --layout` REASON) |
| @@ -136,34 +136,34 @@ What root says about one host's allow. `status --layout` shows it after |
| Each refusal is `<entry>: <reason>`, or egressaddr's own text (IP1-01 to |
| IP1-14, which already name the address). |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-60 | internal/instancectl/egress.go:620 | %s: an address of this box (%s) | the entry, then the box prefix that holds it | 2 (the resolver allow's separate literal `%s is an address of this box (%s)`, hardening.go:209, and a comment) | |
| -| IP2-61 | internal/instancectl/egress.go:616 | %s: this box's addresses could not be read | every entry, when root cannot read the box's addresses | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-60 | internal/instancectl/egress.go:620 | %s: an address of this box (%s) | the entry, then the box prefix that holds it | 2 (the resolver allow's separate literal `%s is an address of this box (%s)`, hardening.go:209, and a comment) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-61 | internal/instancectl/egress.go:616 | %s: this box's addresses could not be read | every entry, when root cannot read the box's addresses | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| ### Closed and unreadable details |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-45 | internal/instancectl/egress.go:626 | the policy has more than %d addresses (%d); every one is closed | with `!policy unreadable`; the limit (8), then the count | 0 | |
| -| IP2-46 | internal/host/egress_source.go:367 `claimsEgressDetail` | not yet supported under claims | with `!not yet supported under claims`, on every host with an allow while host claims are on (ruling 9 fixes its sense) | 0 | |
| -| IP2-47 | internal/host/egress_source.go:241 | no expiry recorded | with `!policy expired` (Task 5) | 0 | |
| -| IP2-48 | internal/host/egress_source.go:251 `expiredDetail` | the policy expired at %s | with `!policy expired`; the time in UTC, RFC 3339 | 0 | |
| -| IP2-49 | internal/instancectl/egress.go:147 `egressRestarted` | revoked (restarted) | after a revoke that closed its address by restarting the instance's running units; appended after `; ` to another detail (`not yet supported under claims; revoked (restarted)`) | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-45 | internal/instancectl/egress.go:626 | the policy has more than %d addresses (%d); every one is closed | with `!policy unreadable`; the limit (8), then the count | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-46 | internal/host/egress_source.go:367 `claimsEgressDetail` | not yet supported under claims | with `!not yet supported under claims`, on every host with an allow while host claims are on (ruling 9 fixes its sense) | 0 | approved by delegation (Luna pass, 2026-10-26): host claims are on, so this box did not apply the allow | |
| +| IP2-47 | internal/host/egress_source.go:241 | no expiry recorded | with `!policy expired` (Task 5) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-48 | internal/host/egress_source.go:251 `expiredDetail` | the policy expired at %s | with `!policy expired`; the time in UTC, RFC 3339 | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-49 | internal/instancectl/egress.go:147 `egressRestarted` | revoked (restarted) | after a revoke that closed its address by restarting the instance's running units; appended after `; ` to another detail (`not yet supported under claims; revoked (restarted)`) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| ### Why a box is not wholly nested (Task 5, `boxWhollyNested`) |
| With `!box not wholly nested`. Each names the first row that fails, which |
| may be another tenant's host and unit (operator views only). |
| -| id | where | text | base | |
| -|---|---|---|---| |
| -| IP2-70 | internal/host/egress_source.go:59 | %s is a sidecar member, which runs flat | 0 | |
| -| IP2-71 | internal/host/egress_source.go:64 | %s runs as %s, whose user could not be read: %v (host, unit, an internal error) | 0 | |
| -| IP2-72 | internal/host/egress_source.go:67 | %s runs as %s, which runs as the agent's user (host, unit) | 0 | |
| -| IP2-73 | internal/host/egress_source.go:72 | %s has backing %q, which this check does not know | 0 | |
| -| IP2-74 | internal/host/egress_source.go:76 | %s is a %q row, which this check does not know (host, kind) | 0 | |
| -| IP2-75 | internal/host/egress_source.go:83, :85 | %s is %s: %s / %s is %s (host, the layout word, then `activator.Classify`'s reason) | 0. The layout words (`flat`, `fenced`, `foreign`, `conflict`) and Classify's reasons are the isolated-exec layout's approved copy, reused | |
| +| id | where | text | base | approval | |
| +|---|---|---|---|---| |
| +| IP2-70 | internal/host/egress_source.go:59 | %s is a sidecar member, which runs flat | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-71 | internal/host/egress_source.go:64 | %s runs as %s, whose user could not be read: %v (host, unit, an internal error) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-72 | internal/host/egress_source.go:67 | %s runs as %s, which runs as the agent's user (host, unit) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-73 | internal/host/egress_source.go:72 | %s has backing %q, which this check does not know | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-74 | internal/host/egress_source.go:76 | %s is a %q row, which this check does not know (host, kind) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP2-75 | internal/host/egress_source.go:83, :85 | %s is %s: %s / %s is %s (host, the layout word, then `activator.Classify`'s reason) | 0. The layout words (`flat`, `fenced`, `foreign`, `conflict`) and Classify's reasons are the isolated-exec layout's approved copy, reused | out of scope: reuses the isolated-exec layout's approved words | |
| ### Failing details (operator diagnostics, Tasks 2, 13, 14, 15) |
| @@ -171,23 +171,23 @@ With `!failing`. They mix fixed words with systemctl's output and Go |
| errors. Listed so the review can decide whether to word them; the fixed |
| parts are below, the `%v` and systemctl tails are diagnostics. |
| -| id | where | text | |
| -|---|---|---| |
| -| IP2-80 | internal/instancectl/egress.go:265 | read back: %v; nothing written | |
| -| IP2-81 | internal/instancectl/egress.go:273 | ...; refusing the start: %s (why: IP2-90 to IP2-92) | |
| -| IP2-82 | internal/instancectl/egress.go:300, :307 | set-property: %s: %v; the slice now holds %s | |
| -| IP2-83 | internal/instancectl/egress.go:304, :311 | ...; read back: %v; %s / read back after the write: %v; %s (then IP2-93 or IP2-94) | |
| -| IP2-84 | internal/instancectl/egress.go:315 | after the write the slice holds %s, not %s (`nothing` when empty, :725, :730) | |
| -| IP2-85 | internal/instancectl/egress.go:358, :411 | granted, but applying it to the slice's running units failed: %s | |
| -| IP2-86 | internal/instancectl/egress.go:377, :381, :387 | with no cgroup root the slice's running units cannot be found to apply it to them / the slice's running units could not be read to apply it to them: %v / the slice runs something that is not a service, so it cannot be applied to it (each after `granted, but `) | |
| -| IP2-87 | internal/instancectl/egress.go:401 | %s holds an allow of its own (%s) (unit, its allow) | |
| -| IP2-88 | internal/instancectl/egress.go:443, :447, :454 | revoked, but with no cgroup root the slice's running units cannot be found to restart them / revoked, but the slice's running units could not be read to restart them: %v / revoked, but the slice runs something that is not a service, so it cannot be restarted | |
| -| IP2-89 | internal/instancectl/egress.go:484 | revoked, but restarting the slice's units failed: %s | |
| -| IP2-90 | internal/instancectl/egress.go:535 | this control service saw the slice hold an allow, or owes it a change | |
| -| IP2-91 | internal/instancectl/egress.go:540, :542 | its runtime allow drop-in could not be read: %v / its runtime allow drop-in sets an allow | |
| -| IP2-92 | internal/instancectl/egress.go:544 | nothing is wanted and no allow is known or on disk (logged only, on a start that goes ahead) | |
| -| IP2-93 | internal/instancectl/egress.go:564 | what the slice holds is as read before the write and may have changed | |
| -| IP2-94 | internal/instancectl/egress.go:566 | what the slice holds is not known | |
| +| id | where | text | approval | |
| +|---|---|---|---| |
| +| IP2-80 | internal/instancectl/egress.go:265 | read back: %v; nothing written | out of scope: diagnostic | |
| +| IP2-81 | internal/instancectl/egress.go:273 | ...; refusing the start: %s (why: IP2-90 to IP2-92) | out of scope: diagnostic | |
| +| IP2-82 | internal/instancectl/egress.go:300, :307 | set-property: %s: %v; the slice now holds %s | out of scope: diagnostic | |
| +| IP2-83 | internal/instancectl/egress.go:304, :311 | ...; read back: %v; %s / read back after the write: %v; %s (then IP2-93 or IP2-94) | out of scope: diagnostic | |
| +| IP2-84 | internal/instancectl/egress.go:315 | after the write the slice holds %s, not %s (`nothing` when empty, :725, :730) | out of scope: diagnostic | |
| +| IP2-85 | internal/instancectl/egress.go:358, :411 | granted, but applying it to the slice's running units failed: %s | out of scope: diagnostic | |
| +| IP2-86 | internal/instancectl/egress.go:377, :381, :387 | with no cgroup root the slice's running units cannot be found to apply it to them / the slice's running units could not be read to apply it to them: %v / the slice runs something that is not a service, so it cannot be applied to it (each after `granted, but `) | out of scope: diagnostic | |
| +| IP2-87 | internal/instancectl/egress.go:401 | %s holds an allow of its own (%s) (unit, its allow) | out of scope: diagnostic | |
| +| IP2-88 | internal/instancectl/egress.go:443, :447, :454 | revoked, but with no cgroup root the slice's running units cannot be found to restart them / revoked, but the slice's running units could not be read to restart them: %v / revoked, but the slice runs something that is not a service, so it cannot be restarted | out of scope: diagnostic | |
| +| IP2-89 | internal/instancectl/egress.go:484 | revoked, but restarting the slice's units failed: %s | out of scope: diagnostic | |
| +| IP2-90 | internal/instancectl/egress.go:535 | this control service saw the slice hold an allow, or owes it a change | out of scope: diagnostic | |
| +| IP2-91 | internal/instancectl/egress.go:540, :542 | its runtime allow drop-in could not be read: %v / its runtime allow drop-in sets an allow | out of scope: diagnostic | |
| +| IP2-92 | internal/instancectl/egress.go:544 | nothing is wanted and no allow is known or on disk (logged only, on a start that goes ahead) | out of scope: diagnostic | |
| +| IP2-93 | internal/instancectl/egress.go:564 | what the slice holds is as read before the write and may have changed | out of scope: diagnostic | |
| +| IP2-94 | internal/instancectl/egress.go:566 | what the slice holds is not known | out of scope: diagnostic | |
| All new in plan 2 (base 0), except `nothing written` as a fragment (22 |
| other literals). |
| @@ -197,13 +197,13 @@ other literals). |
| As in plan 1's deck: the lines that tell an operator something to do or |
| check. The other new lines are diagnostics and are left out. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP2-L1 | internal/instancectl/egress.go:988 | egress: %s: no host for this slice; its allow is closed | root's instance-control log (the brief places it in `carlos logs`); the slice name | 0 | |
| -| IP2-L2 | internal/instancectl/egress.go:1012 | egress: %s: failing for %d sweeps in a row: %v | the same log, from the third failing sweep | 0 | |
| -| IP2-L3 | internal/instancectl/egress.go:481 | egress: %s: restarted %s to close its revoke | the same log; slice, unit. Says why an instance restarted | 0 | |
| -| IP2-L4 | internal/console/egressfleet.go:352 | console: egress report: not checked, the recorded policy does not open: %s | console log; `<sqid>/<app>` list | 0 | |
| -| IP2-L5 | internal/console/egressfleet.go:362 | console: egress report: unreadable edges files, their addresses not checked: %s | console log; edges keys | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP2-L1 | internal/instancectl/egress.go:988 | egress: %s: no host for this slice; its allow is closed | root's instance-control log (the brief places it in `carlos logs`); the slice name | 0 | out of scope: log line | |
| +| IP2-L2 | internal/instancectl/egress.go:1012 | egress: %s: failing for %d sweeps in a row: %v | the same log, from the third failing sweep | 0 | out of scope: log line | |
| +| IP2-L3 | internal/instancectl/egress.go:481 | egress: %s: restarted %s to close its revoke | the same log; slice, unit. Says why an instance restarted | 0 | out of scope: log line | |
| +| IP2-L4 | internal/console/egressfleet.go:352 | console: egress report: not checked, the recorded policy does not open: %s | console log; `<sqid>/<app>` list | 0 | out of scope: log line | |
| +| IP2-L5 | internal/console/egressfleet.go:362 | console: egress report: unreadable edges files, their addresses not checked: %s | console log; edges keys | 0 | out of scope: log line | |
| ## 8. Left out, and why |
| @@ -310,3 +310,19 @@ Per C13 no approved-copy record is edited before the review. |
| - **IP2-51 and IP1-37.** The alert tells the operator to remove the |
| address with `carlos apps set <app> --egress-allow`, which takes the full |
| list, not one address to drop. |
| + |
| +## 12. Approval (PM-1, 2026-10-26) |
| + |
| +Approved by delegation (Luna pass, gpt-5.6-luna, 2026-10-26), applied |
| +verbatim: brief `docs/superpowers/specs/LUNA-COPY-BRIEF-INSTANCE-POLICY.md`, |
| +result `docs/superpowers/specs/LUNA-COPY-RESULT-INSTANCE-POLICY.md`. Each |
| +row's last column holds its approved text. Luna flagged nothing for a |
| +human. On the §11 items: `!` keeps both meanings (position tells them |
| +apart; the docs explain both); the door strings are lower case like plan |
| +1's; root's claims detail (IP2-46) now says "host claims are on, so this |
| +box did not apply the allow", so a row no longer says the state word twice; |
| +the alert names the account as "account id" and tells the operator to set |
| +the whole list again without the address. The status words keyed in |
| +`internal/host/egress_status.go` were not changed, so that switch needs no |
| +edit. `zdd.list.header` now holds IP2-02. §10's docs are in |
| +`docs/site/cli.md` and the README (DOC-8, DOC-9, DOC-12 to DOC-16). |
diff --git a/docs/superpowers/notes/copy-instance-policy-plan3.md b/docs/superpowers/notes/copy-instance-policy-plan3.md| index c65d563d2..17e47a53a 100644 |
| --- a/docs/superpowers/notes/copy-instance-policy-plan3.md |
| +++ b/docs/superpowers/notes/copy-instance-policy-plan3.md |
| @@ -1,4 +1,4 @@ |
| -# Instance sizes and egress allows, plan 3: copy deck (pending review) |
| +# Instance sizes and egress allows, plan 3: copy deck (approved by delegation, Luna pass 2026-10-26) |
| Every user-facing string plan 3 (`2026-10-21-instance-policy-3-sizes`) |
| added or changed and that still exists, for the one copy review that covers |
| @@ -36,29 +36,30 @@ caller reads in the response body. |
| A size above `standard` is checked against every box the app can run on. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP3-01 | internal/console/policysize.go:39 `sizeQuarterMsg` | %s is more than a quarter of the memory on %s (%d MiB). Choose a smaller size. | 409 on `apps set --size` / `instances set --size`; the size, the smallest box, its memory total | 0 | |
| -| IP3-02 | internal/console/policysize.go:40 `sizeNoTotalMsg` | %s does not publish its memory total, so only small and standard can be set. Upgrade the box, then try again. | 409; the box. A platform box on a release from before plan 3, or a box with no total from its edges file, headroom or its own fresh status report (Task 9 fix round: a fleet box takes its total from its status report, so it is refused only when all three are missing) | 0 | |
| -| IP3-03 | internal/console/policysize.go:41 `sizeUnreadMsg` | Could not read every box's memory total, so only small and standard can be set. Try again in a minute. | 503 (C7b): the box listing or a fleet roster could not be read | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP3-01 | internal/console/policysize.go:39 `sizeQuarterMsg` | %s is more than a quarter of the memory on %s (%d MiB). Choose a smaller size. | 409 on `apps set --size` / `instances set --size`; the size, the smallest box, its memory total | 0 | approved by delegation (Luna pass, 2026-10-26): %s is more than a quarter of the memory on %s (%d MiB). choose a smaller size | |
| +| IP3-02 | internal/console/policysize.go:40 `sizeNoTotalMsg` | %s does not publish its memory total, so only small and standard can be set. Upgrade the box, then try again. | 409; the box. A platform box on a release from before plan 3, or a box with no total from its edges file, headroom or its own fresh status report (Task 9 fix round: a fleet box takes its total from its status report, so it is refused only when all three are missing) | 0 | approved by delegation (Luna pass, 2026-10-26): %s does not publish its memory total, so only small and standard can be set. upgrade the box, then try again | |
| +| IP3-03 | internal/console/policysize.go:41 `sizeUnreadMsg` | Could not read every box's memory total, so only small and standard can be set. Try again in a minute. | 503 (C7b): the box listing or a fleet roster could not be read | 0 | approved by delegation (Luna pass, 2026-10-26): could not read every box's memory total, so only small and standard can be set. try again in a minute | |
| ## 2. `carlos status --layout` (Task 10, `status_instances.go`; Task 7, `internal/host/sizestatus.go`) |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP3-04 | status_instances.go:159 `statusLayoutHeading` | `BOX HOST LAYOUT SIZE EGRESS REASON` | the heading. Replaces plan 2's `BOX HOST LAYOUT EGRESS REASON` (IP2-01), itself a change to the isolated-exec layout's approved `BOX HOST LAYOUT REASON` | 0 (plan 2's heading: 1) | |
| -| IP3-05 | internal/host/sizestatus.go:95 | swap | SIZE cell: a swap holds the instance's parent slice at the overlap size | 8 (common literal) | |
| -| IP3-06 | internal/host/sizestatus.go:97 | ? | SIZE cell: the size in force could not be read | 23 (common literal) | |
| -| IP3-07 | internal/host/sizestatus.go:101 | `<in force>><wanted>`, e.g. `standard>large` | SIZE cell: the instance runs at one size and its policy wants another; the wanted one takes effect later (IP3-09) | 0 | |
| -| IP3-08 | internal/host/sizestatus.go:114, :118; status_instances.go:256 | - | SIZE cell: a row that is not nested, or not awake, or a box that reports no sizes | 102 (common literal) | |
| -| IP3-09 | status_instances.go:160 `statusLayoutSizePending` | A size after > takes effect when the instance next starts cold. Restart the instance to apply it now. | printed once after the table when any SIZE cell holds `>`, before the box warnings | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP3-04 | status_instances.go:159 `statusLayoutHeading` | `BOX HOST LAYOUT SIZE EGRESS REASON` | the heading. Replaces plan 2's `BOX HOST LAYOUT EGRESS REASON` (IP2-01), itself a change to the isolated-exec layout's approved `BOX HOST LAYOUT REASON` | 0 (plan 2's heading: 1) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP3-05 | internal/host/sizestatus.go:95 | swap | SIZE cell: a swap holds the instance's parent slice at the overlap size | 8 (common literal) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP3-06 | internal/host/sizestatus.go:97 | ? | SIZE cell: the size in force could not be read | 23 (common literal) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP3-07 | internal/host/sizestatus.go:101 | `<in force>><wanted>`, e.g. `standard>large` | SIZE cell: the instance runs at one size and its policy wants another; the wanted one takes effect later (IP3-09) | 0 | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP3-08 | internal/host/sizestatus.go:114, :118; status_instances.go:256 | - | SIZE cell: a row that is not nested, or not awake, or a box that reports no sizes | 102 (common literal) | approved by delegation (Luna pass, 2026-10-26), unchanged | |
| +| IP3-09 | status_instances.go:160 `statusLayoutSizePending` | A size after > takes effect when the instance next starts cold. Restart the instance to apply it now. | printed once after the table when any SIZE cell holds `>`, before the box warnings | 0 | approved by delegation (Luna pass, 2026-10-26): A size after > is the wanted size. A larger size takes effect at the instance's next start or deploy; a smaller size waits for a cold start. Restart the instance to apply the new memory size now. | |
| +| IP3-12 | status_instances.go:276 (was `dashIfEmpty`, routes_cli.go:128) | — | REASON cell when the row has no reason | 8 calls of `dashIfEmpty` in 3 files (shared; the change is local to this table) | approved by delegation (Luna pass, 2026-10-26): - | |
| ### Reviewer items for this section |
| - **`-` beside `—`.** An empty SIZE or EGRESS cell is `-` (hyphen), but an |
| empty REASON cell is `—` (an em dash glyph, from `dashIfEmpty`, |
| - routes_cli.go:128, shared with `carlos routes` and `carlos restart` in 5 |
| - files at base). A row with nothing to say reads `nested - - —`. Choose |
| + routes_cli.go:128, shared with `carlos routes` and `carlos restart`: |
| + 8 calls in 3 files at base). A row with nothing to say reads `nested - - —`. Choose |
| one glyph for this table; a change can be local to `status --layout` |
| (status_instances.go:276) without touching the shared helper. |
| - **The `>` footnote.** It prints after the table and before the `WARNING:` |
| @@ -79,10 +80,10 @@ After a successful `apps set --size` (set or `default`) or `instances set |
| --size` (set or `default`), the CLI prints IP1-38/IP1-39 or IP1-42/IP1-43, |
| then one IP3-10 line per box the console checked, then IP3-11. |
| -| id | where | text | seen | base | |
| -|---|---|---|---|---| |
| -| IP3-10 | apps_policy.go:110 `sizeCommittedLine` | %s: %d MiB committed to awake instances, of %d MiB. %d MiB free. | stdout, one per box; box, committed, total, free | 0 | |
| -| IP3-11 | apps_policy.go:115 `sizeTakesEffectLine` | The new memory size applies when an instance next starts or is deployed. CPU and IO apply now. | stdout, after the committed lines (ruling 12, string 7) | 0 | |
| +| id | where | text | seen | base | approval | |
| +|---|---|---|---|---|---| |
| +| IP3-10 | apps_policy.go:110 `sizeCommittedLine` | %s: %d MiB committed to awake instances, of %d MiB. %d MiB free. | stdout, one per box; box, committed, total, free | 0 | approved by delegation (Luna pass, 2026-10-26): %s: %d MiB committed to awake instances, of %d MiB. %d MiB free | |
| +| IP3-11 | apps_policy.go:115 `sizeTakesEffectLine` | The new memory size applies when an instance next starts or is deployed. CPU and IO apply now. | stdout, after the committed lines (ruling 12, string 7) | 0 | approved by delegation (Luna pass, 2026-10-26): the new memory size applies at the next start. a larger size also applies at the next deploy; a smaller size waits for a cold start. CPU and IO apply now | |
| Example: |
| @@ -114,3 +115,14 @@ Example: |
| `status_instances_test.go` pins it. |
| - None of `zdd.*` beyond plan 2's `zdd.list.header`: plan 3 leaves `SIZE` |
| out of `instances list`. |
| + |
| +## 6. Approval (PM-1, 2026-10-26) |
| + |
| +Approved by delegation (Luna pass, gpt-5.6-luna, 2026-10-26), applied |
| +verbatim: brief `docs/superpowers/specs/LUNA-COPY-BRIEF-INSTANCE-POLICY.md`, |
| +result `docs/superpowers/specs/LUNA-COPY-RESULT-INSTANCE-POLICY.md`. Each |
| +row's last column holds its approved text. Luna flagged nothing for a |
| +human. The reviewer items: the empty REASON cell in `status --layout` is |
| +now `-` like SIZE and EGRESS (IP3-12; local to that table, `dashIfEmpty` |
| +is unchanged); the `>` footnote stays under the table and now says which |
| +size is wanted and that a deploy also applies a larger size (IP3-09). |