census: plans 4d-1 overlay, the thirteen new units (a decision) and the card
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 files changed,
+114
−0
docs/superpowers/notes/census-proposal-plans-4d-lapse.md+59 −0internal/provision/testdata/plan14-root-reads-chain.tsv+2 −0internal/provision/testdata/plan14-root-reads-plans-4d-lapse.tsv+26 −0internal/provision/testdata/plan14-root-reads-plans-4d-units.tsv+27 −0
diff --git a/docs/superpowers/notes/census-proposal-plans-4d-lapse.md b/docs/superpowers/notes/census-proposal-plans-4d-lapse.md| new file mode 100644 |
| index 000000000..58bb58162 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-plans-4d-lapse.md |
| @@ -0,0 +1,59 @@ |
| +# Census approval: plans-4d-lapse |
| + |
| +Ruling `census-ruling-plans-4d-lapse`. Every change below keeps the disposition it already has, so it needs an approval, not a decision. |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/activator/activator.go` `type Service` | body | unchanged (0) | gains the disabledFor hook field beside maxRunFor (plans 4d). No read added. | |
| +| `internal/console/server.go` `NewServer` | body | unchanged (1) | registers GET and POST /a/{sqid}/plan/keep (the owner-only keep page, plans 4d) beside the account settings routes; no goroutine; read sites unchanged, offsets moved | |
| +| `internal/console/store.go` `Store.migrate` | body | unchanged (2) | adds the additive account_plans.lapse_since and account_plans.disabled columns and calls migratePlanLapse last, which creates the console's own plan_lapse_items table (plans 4d). No read added; the new store units are the plans-4d-units decision. | |
| +| `internal/console/templates/layout.html` `external` | body | unchanged (1) | the account layout renders a link to the keep page after the plan banner when PlanKeepURL is set (owners of a lapsed account, plans 4d). No read added. | |
| +| `internal/host/agent.go` `runAgent` | body | unchanged (5) | arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved | |
| +| `internal/host/plans_pass.go` `plansPass` | body | unchanged (3) | keeps each account's published turned-off host list (Record.Disabled, lower-cased) in the cache beside its limits and throttle, and carries the last good copy on a read error (plans 4d). The same bucket objects; no read added. | |
| +| `internal/activator/activator.go` `Service.ServeScheduled` | sites | +whole:Route | answers a scheduled request to a route the turned-off hook names with the maintenance response before serve (plans 4d). One more whole-row read: the row handed to the hook (a.disabled), as the fence and maxRunFor are asked. | |
| +| `internal/activator/activator.go` `Service.sweepOnce` | sites | +whole:Route ×3 | stops a live entry the turned-off hook names (never mid-command, never a probe), and skips such rows in the due loop and the always-on arm so they are not woken (plans 4d). Three more whole-row reads: the row handed to the hook (a.disabled), as idleFor and maxRunFor already are. Only stops or skips. | |
| +| `internal/activator/activator.go` `Service.wake` | sites | +whole:Route | cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses. | |
| +| `internal/edge/edge.go` `Edge.ServeHTTP` | sites | +whole:Route | calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here. | |
| + |
| +Envelopes re-pinned: `internal/activator`, `internal/console`, `internal/console/templates`, `internal/edge`, `internal/host`, `internal/plans`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Escalate if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. An escalation goes to the census owner as a decision. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/activator/activator.go` `type Service`: authority, task B,C,D,F,J4. Basis: rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added. |
| +- `internal/console/server.go` `NewServer`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console construction adds queue and notification state. The existing logs/data route literal moves; it is not a filesystem read.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets consoleNameCfg from Config.ConsoleName and the challengeSem send bound, and registers the four /auth/email routes; no goroutine; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets the forwarded db read's open-read limits (dbReads, held by each read's request) and its timing (dbf); no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-design-edge-rate-limit-358;basis=one route registered beside the gate's form: POST /a/{sqid}/apps/{app}/ratelimit to handleAppRateLimit, the Settings page's rate-limit form, member-gated like the gate; no read added, its one data-literal site unchanged (offset moved) |
| +- `internal/console/store.go` `Store.migrate`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=adds the sessions.method column (default keymail, the backfill) and calls migrateEmailSignin; SQLite DDL on CONSOLE_DB; the existing site moves;rev3=census-ruling-plans-4-notices-grace;basis=calls migratePlanGrace last, which creates the console's own plan_cap_state table (plans 4a). No read added here; the new store units are the plans-4a-store decision.;rev3=census-ruling-plans-4c-box-throttle;basis=adds the additive account_plans.throttle column (plans 4c). No read added. |
| +- `internal/console/templates/layout.html` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-console-switcher-filter;basis=Account switcher adds a client-side filter box and a scrolling list; whole embedded template remains frozen as legacy UI input.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=CSS only: email inputs styled as text inputs and sign-in form labels; whole embedded template remains frozen as legacy UI input;rev3=PROPOSED-console-brand-name;identity=the console (cmd/console serve under console.service, user carlos-console);basis=the tab title and header brand name the deployment ({{.Brand}}, CARLOS_CONSOLE_NAME); no new input.;rev3=census-ruling-plans-4-notices-grace;basis=the account layout renders .PlanNotices as banner lines above main content (plans 4a). No read added. |
| +- `internal/host/agent.go` `runAgent`: authority, task B,C,D,F. Basis: rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with wireSeedPlacement called in the activator start's Configure step, before armMovesPass, and the startup sweep's result stored for the import rollback in Recover; read sites unchanged, offsets moved; main's B,C,D,F authority retained PROPOSED E46: captured claim selection and root journal mutation; root RPC outside service host exclusion; SQL/route data never grants root authority. Executing identity: service controller; root for inventory/retirement callbacks.;rev3=PROPOSED-325;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=passes the agent's log sink to armRunsPass; reads unchanged;rev3=census-ruling-db-region-forward-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=arms the db-reads loop (armDBReads) beside armRunsPass in the activator start's Configure step; reads unchanged, offsets moved; main's authority retained;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=arms the change index (armChangeIndex) and starts the record view's backstop loop before the loops that read through it, and hands the edge the watch loader (edge.WithChangeWatch); read sites unchanged at the same offsets;rev3=census-ruling-edge-request-records;basis=builds the edge request recorder against the existing log sink and data dir (newRequestRecorder, passed os.Getenv and time.Now) and starts reqrecLoop on a minute ticker; no read added;rev3=census-ruling-design-edge-rate-limit-358;basis=arms the edge's plan rate-ceiling hook, e.SetRateCeilingFor(planRateCeilingFor), right after EnableUsage; read sites unchanged (5), offsets moved; no read added;rev3=census-ruling-edge-asset-cache-1;basis=starts edgesFileLoop with the activator's serving build (servingBuildOf(svc): ServingGen's build on a box with generations, nothing otherwise); read sites unchanged (5), none added;rev3=census-ruling-plans-4c-box-throttle;basis=arms svc.SetMaxRunFor(planMaxRunFor) beside SetIdleFor, and e.SetPlanThrottleFor(planThrottleFor), e.SetPlanGovernedFor(planGoverned) and the planAwakeThrottled close hook beside SetRateCeilingFor (plans 4c). No read added. |
| +- `internal/host/plans_pass.go` `plansPass`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-plans-2-box-limits;basis=root-route; the agent's plans pass, serialised by its own mutex, reads its own routes' accounts and two bucket objects (the plans marker, each account's limits record) into a cache; planIdleFor only narrows the activator's idle window. No root decision.;rev3=census-ruling-plans-4c-box-throttle;basis=keeps each account's published throttle from its limits record in the cache beside its limits, and tells planAwakeThrottled when an account first becomes awake-throttled (plans 4c). The same bucket objects; no read added. |
| +- `internal/activator/activator.go` `Service.ServeScheduled`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route |
| +- `internal/activator/activator.go` `Service.sweepOnce`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-seed;basis=census-ruling-FS-R6; registry remains legacy; PROPOSED-plans-2-box-limits: the sweep also narrows an entry's idle window to its account's plan idle through the SetIdleFor hook (never lengthens it; always-on workers and held probe entries are untouched; the hibernate, inflight and held-for-tick guards are unchanged).;rev3=census-ruling-plans-4c-box-throttle;basis=after the worker max_run branch, stops a non-worker entry past the plans continuous-awake ceiling (maxRunFor, passed the row), busy or not, never mid-command (plans 4c). One more whole-row read: the row handed to the hook, as idleFor already is. This bypasses the inflight and held-for-tick protections the idle stop keeps, on purpose: escalated by Astra and ACCEPTED by Paul (census owner), 2026-10-25. |
| +- `internal/activator/activator.go` `Service.wake`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added |
| +- `internal/edge/edge.go` `Edge.ServeHTTP`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here. |
| + |
| +Seal: `47e08d0f67e1a285d0f9443a96346ed878f77d299240ded8e11818bfbfd9b8e5` → `62a33b78a7e3fc5f13b3d0e1f8fa4bc4f551eee98309c98cdcc8880243e17208`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-plans-4d-lapse.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
| + |
| +## Decision (hand-written, census-ruling-plans-4d-units) |
| + |
| +The plan lapse adds thirteen new units. Each is a new unit, so each is a decision. They have their own overlay, `internal/provision/testdata/plan14-root-reads-plans-4d-units.tsv`, chained just before this one (seal → `47e08d0f…`). Each is classed `legacy`/`accepted-legacy`, the same way as its sibling: |
| + |
| +| unit | sibling | what it does | |
| +|---|---|---| |
| +| `internal/activator/activator.go` `Service.disabled` | the `maxRunFor`/`idleFor` hook calls | asks the turned-off hook about a row; true only refuses a wake or stops an entry, never a move's probe | |
| +| `internal/console/accountplans.go` `Store.MarkLapse` | `Store.SetAccountThrottle` (J4) | sets `lapse_since` on the account's own `account_plans` row | |
| +| `Store.ClearLapse` | `Store.SetAccountThrottle` (J4) | clears `lapse_since` | |
| +| `Store.SetAccountDisabled` | `Store.SetAccountThrottle` (J4) | stores the turned-off host list and bumps the revision | |
| +| `internal/console/planlapse_store.go` `Store.migratePlanLapse` | `Store.migratePlanGrace` (J4) | creates the console's own `plan_lapse_items` table | |
| +| `Store.LapseItems` | `Store.CapStates` (J4) | lists the account's lapse items | |
| +| `Store.claimRawPutLapseItem` | `Store.claimRawDoorKeyInsert` (J4) | upserts one item, admitted on its app through `withAutoAppSQL` | |
| +| `Store.claimRawDeleteLapseItem` | `Store.claimRawDoorKeyRevoke` (J4) | deletes one item, admitted the same way | |
| +| `Store.LiveAppsCreated` | `Store.AppsIn`, `Store.LiveAppCount` (J4) | lists live and restoring apps with their creation times | |
| +| `internal/console/templates/plan_keep.html` `external` | the other templates (J4) | the keep page | |
| +| `internal/edge/plandisabled.go` `Edge.planDisabledAdmit` | `Edge.importGateAdmit` | answers a turned-off route with a fixed 503 page built from constants; echoes nothing from the request | |
| +| `internal/host/plans_pass.go` `planDisabledFor` | `planThrottleFor` | whether the row's own host or the request host is on the row's own account's published turned-off list | |
| +| `planDisabledRoute` | `planMaxRunFor` | `planDisabledFor` for the row's own host, for the activator | |
| + |
| +Every one of them only turns off, stops or refuses what the account itself runs, or is console SQL on the console's own tables. The box side reads only the limits record every box already reads. None reads a path or value a tenant can name, and none grants anything. Only the route's own account's list can turn a route off, so one account cannot turn off another's host. |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 120ad9dbc..89d4bb715 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -32,3 +32,5 @@ plan14-root-reads-edge-asset-cache-1.tsv 1199c91ebbfb03869e89d06798176598526e818 |
| plan14-root-reads-hunt-account-root-hardening.tsv ed721c45bf1af12467439061137d8c7a0757bc5ca1c921616ff42d5a7672d743 |
| plan14-root-reads-plans-4c-units.tsv f6c05461d95d00fb468c5f580487de16370049b91963539546026cadadaa1c9d |
| plan14-root-reads-plans-4c-box-throttle.tsv c71b2974cd929122afc730f22cb53c63f3fdefdb4b26f7ca60db76fface906de |
| +plan14-root-reads-plans-4d-units.tsv 47e08d0f67e1a285d0f9443a96346ed878f77d299240ded8e11818bfbfd9b8e5 |
| +plan14-root-reads-plans-4d-lapse.tsv 62a33b78a7e3fc5f13b3d0e1f8fa4bc4f551eee98309c98cdcc8880243e17208 |
diff --git a/internal/provision/testdata/plan14-root-reads-plans-4d-lapse.tsv b/internal/provision/testdata/plan14-root-reads-plans-4d-lapse.tsv| new file mode 100644 |
| index 000000000..fab12846a |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-plans-4d-lapse.tsv |
| @@ -0,0 +1,26 @@ |
| +# Census overlay plans-4d-lapse, written by census-propose (#369). census-ruling-plans-4d-lapse, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-plans-4d-lapse.md. |
| +# 6 body, 4 sites, 6 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy aa100e04fba1bf66e57437f21dc1baad4455a42b2ea85094802a95ba43f5ba35 internal/console/server.go NewServer legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console construction adds queue and notification state. The existing logs/data route literal moves; it is not a filesystem read.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets consoleNameCfg from Config.ConsoleName and the challengeSem send bound, and registers the four /auth/email routes; no goroutine; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets the forwarded db read's open-read limits (dbReads, held by each read's request) and its timing (dbf); no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-design-edge-rate-limit-358;basis=one route registered beside the gate's form: POST /a/{sqid}/apps/{app}/ratelimit to handleAppRateLimit, the Settings page's rate-limit form, member-gated like the gate; no read added, its one data-literal site unchanged (offset moved);rev3=census-ruling-plans-4d-lapse;basis=registers GET and POST /a/{sqid}/plan/keep (the owner-only keep page, plans 4d) beside the account settings routes; no goroutine; read sites unchanged, offsets moved data-literal@9825 3d69a7865f93dc4cff178530a8a79457991802eeb1220844a3d8ecc51851cf10 |
| +@legacy 67df4d36ed485738c557f191079a61331a8a072b245a7fe35e779b59c72eacc0 internal/console/store.go Store.migrate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=adds the sessions.method column (default keymail, the backfill) and calls migrateEmailSignin; SQLite DDL on CONSOLE_DB; the existing site moves;rev3=census-ruling-plans-4-notices-grace;basis=calls migratePlanGrace last, which creates the console's own plan_cap_state table (plans 4a). No read added here; the new store units are the plans-4a-store decision.;rev3=census-ruling-plans-4c-box-throttle;basis=adds the additive account_plans.throttle column (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=adds the additive account_plans.lapse_since and account_plans.disabled columns and calls migratePlanLapse last, which creates the console's own plan_lapse_items table (plans 4d). No read added; the new store units are the plans-4d-units decision. file:Exec@12017,file:Exec@18552 74d230d6c73c6eb4284bd6b67bb0c0972b0dabb5240f2db119f2c388ae949636 |
| +@legacy c555b6f453d617e9a4d761dd3f2a684898f196393885a04239fa32b4d5d10072 internal/console/templates/layout.html external legacy accepted-legacy accepted-legacy;rev3=PROPOSED-console-switcher-filter;basis=Account switcher adds a client-side filter box and a scrolling list; whole embedded template remains frozen as legacy UI input.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=CSS only: email inputs styled as text inputs and sign-in form labels; whole embedded template remains frozen as legacy UI input;rev3=PROPOSED-console-brand-name;identity=the console (cmd/console serve under console.service, user carlos-console);basis=the tab title and header brand name the deployment ({{.Brand}}, CARLOS_CONSOLE_NAME); no new input.;rev3=census-ruling-plans-4-notices-grace;basis=the account layout renders .PlanNotices as banner lines above main content (plans 4a). No read added.;rev3=census-ruling-plans-4d-lapse;basis=the account layout renders a link to the keep page after the plan banner when PlanKeepURL is set (owners of a lapsed account, plans 4d). No read added. file:external@0 60bc5564ae574c6a11b1fa82ec526d0dc287254cd43d70367ec20ffcd9ab5d3a |
| +@legacy a56d080d74106055668ef3650c392322f52aa5a6941b0927605b0b20c3ca7c78 internal/host/plans_pass.go plansPass legacy accepted-legacy accepted-legacy;rev3=PROPOSED-plans-2-box-limits;basis=root-route; the agent's plans pass, serialised by its own mutex, reads its own routes' accounts and two bucket objects (the plans marker, each account's limits record) into a cache; planIdleFor only narrows the activator's idle window. No root decision.;rev3=census-ruling-plans-4c-box-throttle;basis=keeps each account's published throttle from its limits record in the cache beside its limits, and tells planAwakeThrottled when an account first becomes awake-throttled (plans 4c). The same bucket objects; no read added.;rev3=census-ruling-plans-4d-lapse;basis=keeps each account's published turned-off host list (Record.Disabled, lower-cased) in the cache beside its limits and throttle, and carries the last good copy on a read error (plans 4d). The same bucket objects; no read added. registry:Kind@859,whole:Route@845,whole:Route@928 c0ce6a03c6106d8724e1842ec828935369a6b652eedab9041bce82889e04e0a6 |
| +@legacy 112095a5dd29b44ac27078916b09213a0c767c594e226de6da126264feb72fa7 internal/activator/activator.go Service.ServeScheduled legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-plans-4d-lapse;basis=answers a scheduled request to a route the turned-off hook names with the maintenance response before serve (plans 4d). One more whole-row read: the row handed to the hook (a.disabled), as the fence and maxRunFor are asked. registry:Hibernate@148,registry:Kind@123,registry:Status@164,registry:Status@183,whole:Route@266,whole:Route@376 177816f752242093286a78636a3c80926a54d70702a804560032eb3384e7196a |
| +@legacy 75fe0f81e1ec0c01f7004515ee50bb186fcdff74f511c476f95716788c1c3e5e internal/activator/activator.go Service.sweepOnce legacy accepted-legacy accepted-legacy;rev3=PROPOSED-seed;basis=census-ruling-FS-R6; registry remains legacy; PROPOSED-plans-2-box-limits: the sweep also narrows an entry's idle window to its account's plan idle through the SetIdleFor hook (never lengthens it; always-on workers and held probe entries are untouched; the hibernate, inflight and held-for-tick guards are unchanged).;rev3=census-ruling-plans-4c-box-throttle;basis=after the worker max_run branch, stops a non-worker entry past the plans continuous-awake ceiling (maxRunFor, passed the row), busy or not, never mid-command (plans 4c). One more whole-row read: the row handed to the hook, as idleFor already is. This bypasses the inflight and held-for-tick protections the idle stop keeps, on purpose: escalated by Astra and ACCEPTED by Paul (census owner), 2026-10-25.;rev3=census-ruling-plans-4d-lapse;basis=stops a live entry the turned-off hook names (never mid-command, never a probe), and skips such rows in the due loop and the always-on arm so they are not woken (plans 4d). Three more whole-row reads: the row handed to the hook (a.disabled), as idleFor and maxRunFor already are. Only stops or skips. registry:Hibernate@13304,registry:Hibernate@22475,registry:Hibernate@5124,registry:Hibernate@7127,registry:Hibernate@9652,registry:Host@22544,registry:Host@22602,registry:Host@23069,registry:Host@23162,registry:Host@23897,registry:Host@23979,registry:Host@25044,registry:Host@25331,registry:Host@25380,registry:NextDue@23852,registry:Status@22491,whole:Route@10407,whole:Route@13306,whole:Route@15239,whole:Route@16949,whole:Route@17139,whole:Route@17432,whole:Route@17604,whole:Route@17751,whole:Route@21962,whole:Route@22651,whole:Route@23566,whole:Route@23906,whole:Route@23913,whole:Route@24859,whole:Route@25160,whole:Route@25364,whole:Route@5126,whole:Route@6960,whole:Route@7129,whole:Route@7563,whole:Route@9654 c70fbc09d51bf94c12302b08ae952108d9207c260bf44a03b47fc5b4194d9918 |
| +@legacy c6dfb67ca0ad20696fc836af7412d6db93e0b0e566e6bf3395e199136ba2c205 internal/activator/activator.go Service.wake legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses. registry:Socket@7139,registry:Socket@7300,whole:Route@2275,whole:Route@2332,whole:Route@5676,whole:Route@7092,whole:Route@7141,whole:Route@7302,whole:Route@8625,whole:Route@8646,whole:Route@922 ad2ca3730ed8b89616a5e87c99df4f61ac6267845ef9264163a61db7f9269a6b |
| +@legacy 0e4fbc0806f1dc0938faa98d8d306012b82550c081c8b1b943a110353d02c9a6 internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here. registry:Gate@13796,registry:Gate@13856,registry:Gate@13914,registry:Host@13899,registry:ImportGate@18109,registry:Kind@11979,registry:Kind@18080,whole:Route@10017,whole:Route@10209,whole:Route@11982,whole:Route@12540,whole:Route@12635,whole:Route@12711,whole:Route@12755,whole:Route@13799,whole:Route@13859,whole:Route@13902,whole:Route@13917,whole:Route@15550,whole:Route@18083,whole:Route@18112,whole:Route@19944,whole:Route@9805 fc3d83a038fe0662840aa5cab4ed073ce568c42750a03e6561b9168de48281a9 |
| +internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added. bde5e77cb4d5e25cec5474395e1caec6f37a0eb311b67681a91f7bf0b7fe463d |
| +internal/console/server.go NewServer legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console construction adds queue and notification state. The existing logs/data route literal moves; it is not a filesystem read.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets consoleNameCfg from Config.ConsoleName and the challengeSem send bound, and registers the four /auth/email routes; no goroutine; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets the forwarded db read's open-read limits (dbReads, held by each read's request) and its timing (dbf); no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-design-edge-rate-limit-358;basis=one route registered beside the gate's form: POST /a/{sqid}/apps/{app}/ratelimit to handleAppRateLimit, the Settings page's rate-limit form, member-gated like the gate; no read added, its one data-literal site unchanged (offset moved);rev3=census-ruling-plans-4d-lapse;basis=registers GET and POST /a/{sqid}/plan/keep (the owner-only keep page, plans 4d) beside the account settings routes; no goroutine; read sites unchanged, offsets moved data-literal@9825 3d69a7865f93dc4cff178530a8a79457991802eeb1220844a3d8ecc51851cf10 |
| +internal/console/store.go Store.migrate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=adds the sessions.method column (default keymail, the backfill) and calls migrateEmailSignin; SQLite DDL on CONSOLE_DB; the existing site moves;rev3=census-ruling-plans-4-notices-grace;basis=calls migratePlanGrace last, which creates the console's own plan_cap_state table (plans 4a). No read added here; the new store units are the plans-4a-store decision.;rev3=census-ruling-plans-4c-box-throttle;basis=adds the additive account_plans.throttle column (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=adds the additive account_plans.lapse_since and account_plans.disabled columns and calls migratePlanLapse last, which creates the console's own plan_lapse_items table (plans 4d). No read added; the new store units are the plans-4d-units decision. file:Exec@12017,file:Exec@18552 74d230d6c73c6eb4284bd6b67bb0c0972b0dabb5240f2db119f2c388ae949636 |
| +internal/console/templates/layout.html external legacy accepted-legacy accepted-legacy;rev3=PROPOSED-console-switcher-filter;basis=Account switcher adds a client-side filter box and a scrolling list; whole embedded template remains frozen as legacy UI input.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=CSS only: email inputs styled as text inputs and sign-in form labels; whole embedded template remains frozen as legacy UI input;rev3=PROPOSED-console-brand-name;identity=the console (cmd/console serve under console.service, user carlos-console);basis=the tab title and header brand name the deployment ({{.Brand}}, CARLOS_CONSOLE_NAME); no new input.;rev3=census-ruling-plans-4-notices-grace;basis=the account layout renders .PlanNotices as banner lines above main content (plans 4a). No read added.;rev3=census-ruling-plans-4d-lapse;basis=the account layout renders a link to the keep page after the plan banner when PlanKeepURL is set (owners of a lapsed account, plans 4d). No read added. file:external@0 60bc5564ae574c6a11b1fa82ec526d0dc287254cd43d70367ec20ffcd9ab5d3a |
| +internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with wireSeedPlacement called in the activator start's Configure step, before armMovesPass, and the startup sweep's result stored for the import rollback in Recover; read sites unchanged, offsets moved; main's B,C,D,F authority retained PROPOSED E46: captured claim selection and root journal mutation; root RPC outside service host exclusion; SQL/route data never grants root authority. Executing identity: service controller; root for inventory/retirement callbacks.;rev3=PROPOSED-325;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=passes the agent's log sink to armRunsPass; reads unchanged;rev3=census-ruling-db-region-forward-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=arms the db-reads loop (armDBReads) beside armRunsPass in the activator start's Configure step; reads unchanged, offsets moved; main's authority retained;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=arms the change index (armChangeIndex) and starts the record view's backstop loop before the loops that read through it, and hands the edge the watch loader (edge.WithChangeWatch); read sites unchanged at the same offsets;rev3=census-ruling-edge-request-records;basis=builds the edge request recorder against the existing log sink and data dir (newRequestRecorder, passed os.Getenv and time.Now) and starts reqrecLoop on a minute ticker; no read added;rev3=census-ruling-design-edge-rate-limit-358;basis=arms the edge's plan rate-ceiling hook, e.SetRateCeilingFor(planRateCeilingFor), right after EnableUsage; read sites unchanged (5), offsets moved; no read added;rev3=census-ruling-edge-asset-cache-1;basis=starts edgesFileLoop with the activator's serving build (servingBuildOf(svc): ServingGen's build on a box with generations, nothing otherwise); read sites unchanged (5), none added;rev3=census-ruling-plans-4c-box-throttle;basis=arms svc.SetMaxRunFor(planMaxRunFor) beside SetIdleFor, and e.SetPlanThrottleFor(planThrottleFor), e.SetPlanGovernedFor(planGoverned) and the planAwakeThrottled close hook beside SetRateCeilingFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved file:Exec@13802,file:Open@731,registry:App@10065,whole:Route@10057,whole:Route@23700 254a3e866e97299cecc9de4633520a6c6c89dcd0835c9057a11d3512de6f073e |
| +internal/host/plans_pass.go plansPass legacy accepted-legacy accepted-legacy;rev3=PROPOSED-plans-2-box-limits;basis=root-route; the agent's plans pass, serialised by its own mutex, reads its own routes' accounts and two bucket objects (the plans marker, each account's limits record) into a cache; planIdleFor only narrows the activator's idle window. No root decision.;rev3=census-ruling-plans-4c-box-throttle;basis=keeps each account's published throttle from its limits record in the cache beside its limits, and tells planAwakeThrottled when an account first becomes awake-throttled (plans 4c). The same bucket objects; no read added.;rev3=census-ruling-plans-4d-lapse;basis=keeps each account's published turned-off host list (Record.Disabled, lower-cased) in the cache beside its limits and throttle, and carries the last good copy on a read error (plans 4d). The same bucket objects; no read added. registry:Kind@859,whole:Route@845,whole:Route@928 c0ce6a03c6106d8724e1842ec828935369a6b652eedab9041bce82889e04e0a6 |
| +internal/activator/activator.go Service.ServeScheduled legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-plans-4d-lapse;basis=answers a scheduled request to a route the turned-off hook names with the maintenance response before serve (plans 4d). One more whole-row read: the row handed to the hook (a.disabled), as the fence and maxRunFor are asked. registry:Hibernate@148,registry:Kind@123,registry:Status@164,registry:Status@183,whole:Route@266,whole:Route@376 177816f752242093286a78636a3c80926a54d70702a804560032eb3384e7196a |
| +internal/activator/activator.go Service.sweepOnce legacy accepted-legacy accepted-legacy;rev3=PROPOSED-seed;basis=census-ruling-FS-R6; registry remains legacy; PROPOSED-plans-2-box-limits: the sweep also narrows an entry's idle window to its account's plan idle through the SetIdleFor hook (never lengthens it; always-on workers and held probe entries are untouched; the hibernate, inflight and held-for-tick guards are unchanged).;rev3=census-ruling-plans-4c-box-throttle;basis=after the worker max_run branch, stops a non-worker entry past the plans continuous-awake ceiling (maxRunFor, passed the row), busy or not, never mid-command (plans 4c). One more whole-row read: the row handed to the hook, as idleFor already is. This bypasses the inflight and held-for-tick protections the idle stop keeps, on purpose: escalated by Astra and ACCEPTED by Paul (census owner), 2026-10-25.;rev3=census-ruling-plans-4d-lapse;basis=stops a live entry the turned-off hook names (never mid-command, never a probe), and skips such rows in the due loop and the always-on arm so they are not woken (plans 4d). Three more whole-row reads: the row handed to the hook (a.disabled), as idleFor and maxRunFor already are. Only stops or skips. registry:Hibernate@13304,registry:Hibernate@22475,registry:Hibernate@5124,registry:Hibernate@7127,registry:Hibernate@9652,registry:Host@22544,registry:Host@22602,registry:Host@23069,registry:Host@23162,registry:Host@23897,registry:Host@23979,registry:Host@25044,registry:Host@25331,registry:Host@25380,registry:NextDue@23852,registry:Status@22491,whole:Route@10407,whole:Route@13306,whole:Route@15239,whole:Route@16949,whole:Route@17139,whole:Route@17432,whole:Route@17604,whole:Route@17751,whole:Route@21962,whole:Route@22651,whole:Route@23566,whole:Route@23906,whole:Route@23913,whole:Route@24859,whole:Route@25160,whole:Route@25364,whole:Route@5126,whole:Route@6960,whole:Route@7129,whole:Route@7563,whole:Route@9654 c70fbc09d51bf94c12302b08ae952108d9207c260bf44a03b47fc5b4194d9918 |
| +internal/activator/activator.go Service.wake legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses. registry:Socket@7139,registry:Socket@7300,whole:Route@2275,whole:Route@2332,whole:Route@5676,whole:Route@7092,whole:Route@7141,whole:Route@7302,whole:Route@8625,whole:Route@8646,whole:Route@922 ad2ca3730ed8b89616a5e87c99df4f61ac6267845ef9264163a61db7f9269a6b |
| +internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here. registry:Gate@13796,registry:Gate@13856,registry:Gate@13914,registry:Host@13899,registry:ImportGate@18109,registry:Kind@11979,registry:Kind@18080,whole:Route@10017,whole:Route@10209,whole:Route@11982,whole:Route@12540,whole:Route@12635,whole:Route@12711,whole:Route@12755,whole:Route@13799,whole:Route@13859,whole:Route@13902,whole:Route@13917,whole:Route@15550,whole:Route@18083,whole:Route@18112,whole:Route@19944,whole:Route@9805 fc3d83a038fe0662840aa5cab4ed073ce568c42750a03e6561b9168de48281a9 |
| +@coverage internal/activator a15879d1798dde41f5975581837543580917691b11e6c0935f6237e0fef54ff3 |
| +@coverage internal/console 79de6a04a125628589b13ae91a3936a43ffdf15d7c81be67edbad6989483a853 |
| +@coverage internal/console/templates d4a8b0c3d6912729aad5ef1b4f66107e9f9ce9fb9e2b8aeacea03f1867caca16 |
| +@coverage internal/edge 926b094159b7e7781cb1e4ee391bfbf848de0ef52215e7f4410a6485bf8786eb |
| +@coverage internal/host f26e97b13ad911d76d99c91529c9ca43acb319b703ebb2fb634fdb8df12b0b2f |
| +@coverage internal/plans f6351c4a24fb53dbc9bcf299d078ec8db4ca94ac1f9601962c0de20370117eb0 |
diff --git a/internal/provision/testdata/plan14-root-reads-plans-4d-units.tsv b/internal/provision/testdata/plan14-root-reads-plans-4d-units.tsv| new file mode 100644 |
| index 000000000..58bbd92ba |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-plans-4d-units.tsv |
| @@ -0,0 +1,27 @@ |
| +# Census overlay plans-4d-units, written by hand: thirteen new units of the plan lapse (plans 4d-1), a decision. census-ruling-plans-4d-units; the card is docs/superpowers/notes/census-proposal-plans-4d-lapse.md. |
| +@legacy 4c371d36da81a2d81ca51e95e96a9a78238d5f8625ebf457ea0df0fe26b81da3 internal/activator/activator.go Service.disabled legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), activator: asks the plans turned-off hook (planDisabledRoute, armed in runAgent, passed the row), as maxRunFor and idleFor are asked; true only refuses a wake or stops a live entry, never starts one, and never a move's probe (plans 4d). Only stops; no root decision. whole:Route@105 a9c107a685fb1fe8c6eed5127f6c19b7e3e1d9aeb09e53eedff742966db799a8 |
| +@legacy e9fb4f43985abe290bf0ead3d907d9531febe838325ec3c5393248d67e477d90 internal/console/accountplans.go Store.ClearLapse legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4); clears the account's lapse_since (plans 4d). Refuses nothing. file:Exec@63 682ebc7b21b6f218ffdc7b5e8dcb5a92806b7c81fe6b93d80969c7002e5c7104 |
| +@legacy e989e56f22736756b43d3f5165065231ede76041b542e6bb618610ad22933cc0 internal/console/accountplans.go Store.MarkLapse legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4); records when a paid account's limits fell (lapse_since, plans 4d). Refuses nothing. file:Exec@77 11419bb25dfd98da605ce42c8f30639a32281827d30a72d204af3bc66c5c9da6 |
| +@legacy f556578120aa6ada231523a7d2f2f705335c1c14603dc2be2a0bad1b068dfd27 internal/console/accountplans.go Store.SetAccountDisabled legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4); stores the turned-off host list and bumps the revision the publish pass reads, SetAccountThrottle's twin (plans 4d). file:Exec@187 70269f8e10dedae2c00c1f267c2d7132bf11112ea116075b637847ce588e05ed |
| +@legacy be2b3af8f810ff6d23df6d3e04d2f3383a413421c16a9871412e2c3668642993 internal/console/planlapse_store.go Store.LapseItems legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own plan_lapse_items table, as its store siblings (J4); lists an account's keep choices and what a lapse turned off (plans 4d). file:Query@81 024bd4d54b45d06d6ec6e02d4ca732013580cae0f83d33c60a4da5661ee8aa09 |
| +@legacy a8148e5c1719dbdad521946e40e17630614a74fdd9ae74025b41bba034a770aa internal/console/planlapse_store.go Store.LiveAppsCreated legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own apps table, as AppsIn and LiveAppCount (J4); lists the account's live and restoring apps with their creation times for the lapse inventory (plans 4d). file:Query@95 1d9367945ba641a12c76c3bc6df0e35ae86bc81aba4b58cd66b978620d5cae0d |
| +@legacy 7a4c286397177af63a2881502c3adee7e1e1fa02b57c1d15e507ab3296f88a73 internal/console/planlapse_store.go Store.claimRawDeleteLapseItem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own plan_lapse_items table, as its store siblings (J4); deletes one lapse item row, under withAutoAppSQL admission on its app (plans 4d). file:Exec@99 ae97c45a3d21ec7098a4e9e6a35d6381c5c885bb6e96710e80fd96aea9b2cf5a |
| +@legacy 5234ec2435e0b0dff07a9eb60b9792233915d858f9c0942ecbad668e5138f08e internal/console/planlapse_store.go Store.claimRawPutLapseItem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own plan_lapse_items table, as its store siblings (J4); upserts one lapse item row, under withAutoAppSQL admission on its app (plans 4d). file:Exec@109 b6d9a4328e16d1097d450cb2a318b37cdf2d230068d24b196b0c31051cfbde39 |
| +@legacy c9d0214f9283a03b19e9fe2b0bcad4793508f12039c57799380196644a7ac61d internal/console/planlapse_store.go Store.migratePlanLapse legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQLite DDL on CONSOLE_DB creating its own plan_lapse_items table, as migratePlanGrace (J4) (plans 4d). file:Exec@54 cb36f5f89756897d14db06e4d1dd0d81c2835025ab70f744884705491b7e3494 |
| +@legacy 69c51ed5208af55c5e8bb58cf392d90eb5a3e9faf8a0479ae912f3a6ebbc5c62 internal/console/templates/plan_keep.html external legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; the keep page template, embedded console UI like its sibling templates (J4); renders the console's own view model (plans 4d). file:external@0 f06d82139e0c666a10a4ee1be7d1c52d2d089a2ed2e70b6eac5ee3c0339487d9 |
| +@legacy af290deb158959f7ce33fe95e00451ecd4ae0353b40b04613932d8edab10230c internal/edge/plandisabled.go Edge.planDisabledAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), serving only: asks the plans turned-off hook (planDisabledFor, passed the row and the request host) and answers a turned-off route with a fixed 503 page rendered from constants, before the meter, gate, cache and activator; reads only the row's kind; echoes nothing from the request (plans 4d). registry:Kind@156,whole:Route@185 bcb473cc71c9bff46d523d97b1b1674e96cceeec6d63f18af592218be5356399 |
| +@legacy 5e3ff4424e8dba87ac59aabfc8f9b64f29e9422831e600eda1fa505f79c51b9c internal/host/plans_pass.go planDisabledFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), as a hook armed in runAgent: planThrottleFor's twin, it reads the row's account (release.RouteAccount) and host, the request host, and the plans pass's in-memory cache of the account's published turned-off list; only the route's own account's list counts. Only turns off; no root decision (plans 4d). registry:Host@233,whole:Route@166 b8e572f2403c7c3c284f4b94af68de19ae7b68e393ce39ed50fd5619efa3d953 |
| +@legacy 6c28c8ecd5144b55fc203238d319176fe9389891f0a222b94cac7dd606274a26 internal/host/plans_pass.go planDisabledRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), as a hook armed in runAgent: planDisabledFor asked about the row's own host, for the activator. Only turns off; no root decision (plans 4d). registry:Host@76,whole:Route@72 26f4415bbaeb6f8b39e22b7771105ebd58d01fb3d43761d1f4e1de322f9c3acc |
| +internal/activator/activator.go Service.disabled legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), activator: asks the plans turned-off hook (planDisabledRoute, armed in runAgent, passed the row), as maxRunFor and idleFor are asked; true only refuses a wake or stops a live entry, never starts one, and never a move's probe (plans 4d). Only stops; no root decision. whole:Route@105 a9c107a685fb1fe8c6eed5127f6c19b7e3e1d9aeb09e53eedff742966db799a8 |
| +internal/console/accountplans.go Store.ClearLapse legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4); clears the account's lapse_since (plans 4d). Refuses nothing. file:Exec@63 682ebc7b21b6f218ffdc7b5e8dcb5a92806b7c81fe6b93d80969c7002e5c7104 |
| +internal/console/accountplans.go Store.MarkLapse legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4); records when a paid account's limits fell (lapse_since, plans 4d). Refuses nothing. file:Exec@77 11419bb25dfd98da605ce42c8f30639a32281827d30a72d204af3bc66c5c9da6 |
| +internal/console/accountplans.go Store.SetAccountDisabled legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4); stores the turned-off host list and bumps the revision the publish pass reads, SetAccountThrottle's twin (plans 4d). file:Exec@187 70269f8e10dedae2c00c1f267c2d7132bf11112ea116075b637847ce588e05ed |
| +internal/console/planlapse_store.go Store.LapseItems legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own plan_lapse_items table, as its store siblings (J4); lists an account's keep choices and what a lapse turned off (plans 4d). file:Query@81 024bd4d54b45d06d6ec6e02d4ca732013580cae0f83d33c60a4da5661ee8aa09 |
| +internal/console/planlapse_store.go Store.LiveAppsCreated legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own apps table, as AppsIn and LiveAppCount (J4); lists the account's live and restoring apps with their creation times for the lapse inventory (plans 4d). file:Query@95 1d9367945ba641a12c76c3bc6df0e35ae86bc81aba4b58cd66b978620d5cae0d |
| +internal/console/planlapse_store.go Store.claimRawDeleteLapseItem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own plan_lapse_items table, as its store siblings (J4); deletes one lapse item row, under withAutoAppSQL admission on its app (plans 4d). file:Exec@99 ae97c45a3d21ec7098a4e9e6a35d6381c5c885bb6e96710e80fd96aea9b2cf5a |
| +internal/console/planlapse_store.go Store.claimRawPutLapseItem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQL on its own plan_lapse_items table, as its store siblings (J4); upserts one lapse item row, under withAutoAppSQL admission on its app (plans 4d). file:Exec@109 b6d9a4328e16d1097d450cb2a318b37cdf2d230068d24b196b0c31051cfbde39 |
| +internal/console/planlapse_store.go Store.migratePlanLapse legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; console SQLite DDL on CONSOLE_DB creating its own plan_lapse_items table, as migratePlanGrace (J4) (plans 4d). file:Exec@54 cb36f5f89756897d14db06e4d1dd0d81c2835025ab70f744884705491b7e3494 |
| +internal/console/templates/plan_keep.html external legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=root-input; the keep page template, embedded console UI like its sibling templates (J4); renders the console's own view model (plans 4d). file:external@0 f06d82139e0c666a10a4ee1be7d1c52d2d089a2ed2e70b6eac5ee3c0339487d9 |
| +internal/edge/plandisabled.go Edge.planDisabledAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), serving only: asks the plans turned-off hook (planDisabledFor, passed the row and the request host) and answers a turned-off route with a fixed 503 page rendered from constants, before the meter, gate, cache and activator; reads only the row's kind; echoes nothing from the request (plans 4d). registry:Kind@156,whole:Route@185 bcb473cc71c9bff46d523d97b1b1674e96cceeec6d63f18af592218be5356399 |
| +internal/host/plans_pass.go planDisabledFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), as a hook armed in runAgent: planThrottleFor's twin, it reads the row's account (release.RouteAccount) and host, the request host, and the plans pass's in-memory cache of the account's published turned-off list; only the route's own account's list counts. Only turns off; no root decision (plans 4d). registry:Host@233,whole:Route@166 b8e572f2403c7c3c284f4b94af68de19ae7b68e393ce39ed50fd5619efa3d953 |
| +internal/host/plans_pass.go planDisabledRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), as a hook armed in runAgent: planDisabledFor asked about the row's own host, for the activator. Only turns off; no root decision (plans 4d). registry:Host@76,whole:Route@72 26f4415bbaeb6f8b39e22b7771105ebd58d01fb3d43761d1f4e1de322f9c3acc |