| new file mode 100644 |
| index 000000000..a15aa5680 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-10-25-operator-pages-copy.md |
| @@ -0,0 +1,261 @@ |
| +# Operator pages: copy record |
| + |
| +Every new or changed user-facing string of the operator pages plan |
| +(`2026-10-25-operator-pages.md`, spec `2026-10-25-console-ux-perf-design.md`, |
| +Part 3). The gate is `approved_operator_pages_copy_test.go` at the repo root. |
| +It reuses the moves gate's parser, so the format is the moves record's: one |
| +table per heading, columns id, file, text, status. |
| + |
| +Where the strings show. The pages are for the people who run the platform |
| +and nobody else; a person without the operator role sees the missing-route |
| +404. The bar and the rail (OPS-1 to OPS-19) are on every operator page. The |
| +rail's labels (OPS-8 to OPS-15) are also each page's `<h1>`, so a page's |
| +heading is not a separate row. The dashboard (OPS-20 to OPS-82) shows, top |
| +to bottom: the page subhead, the needs-attention callout, the headline |
| +numbers, the new-people chart, newest people, latest activity, boxes and |
| +background jobs. People and accounts, Activity, Boxes and the moved pages |
| +(OPS-103 to OPS-148) follow; the job names (OPS-83 to OPS-102 and OPS-149 to |
| +OPS-153) are labels on the dashboard and Boxes job lists. |
| + |
| +Strings that move unchanged from today's operator templates are not rows. |
| +OPS-131 to OPS-136 are stored in audit rows at the time of the action, so a |
| +later change to the text does not rewrite history. |
| + |
| +The rules: |
| + |
| +- A row is `pending` until the Luna pass (Paul delegated plan copy to it) or |
| + Paul approves it. The approved edits are applied to the text here verbatim |
| + and the row becomes `approved`. |
| +- No pending string reaches code or templates. The task that writes a row's |
| + text adds its id to `operatorPagesCopyBuilt` in the gate in the same |
| + commit, and from then on the gate fails unless the row is `approved` and |
| + its text is in the file it names. |
| +- The file cell is a path relative to `internal/console/`, optionally with a |
| + note after the path in parentheses (the note names the job a label is for, |
| + or where the string shows). The gate searches the path. Where another page |
| + shows the same words, it carries them too, unchecked. |
| +- In a Go file the text is one string literal, or one `fmt.Sprintf` format, |
| + equal to the row with a format verb where the row has a `<placeholder>`. |
| + No trailing newline inside the literal. In a template the fixed text |
| + between placeholders is present as written. |
| +- No em dashes. A full stop and a new sentence instead, continuing in lower |
| + case. |
| +- Human text only. Log lines, diagnostics, route patterns, rule and job |
| + identifiers, JSON keys and data values (box labels, load words from |
| + `fleet.json`) are not rows. |
| +- Neutral names only (shop, example.com). The brand is `<brand>`. |
| +- Ids are not renumbered. |
| + |
| +Placeholders: `<n>` a whole number (of 2 or more where a singular row |
| +exists); `<age>` a `humanAge` value such as `2 hours`; `<brand>` the |
| +console's name; `<box>` a box's label; `<service>` a service's name; `<rule>` |
| +an alert rule's name; `<job>` a background job's label from OPS-83 to OPS-102 |
| +or OPS-149 to OPS-153; `<kind>` an activity kind label (OPS-121 to OPS-125); |
| +`<account>` an account's name; `<address>` an email address; `<name>` an |
| +account's name; `<position>` a free tier position label. |
| + |
| +## The shell |
| + |
| +The bar and rail on every operator page. |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-1 | templates/opshell.html | CARLOS operator | pending | |
| +| OPS-2 | templates/opshell.html | Skip to content | pending | |
| +| OPS-3 | templates/opshell.html | Menu | pending | |
| +| OPS-4 | templates/opshell.html | Back | pending | |
| +| OPS-5 | templates/opshell.html | Customer console | pending | |
| +| OPS-6 | templates/opshell.html | Sign out | pending | |
| +| OPS-7 | templates/opshell.html (the rail's aria-label) | Operator pages | pending | |
| +| OPS-8 | opshell.go (the rail label; the page's h1 uses the same row) | Dashboard | pending | |
| +| OPS-9 | opshell.go (the rail label; the page's h1 uses the same row) | People and accounts | pending | |
| +| OPS-10 | opshell.go (the rail label; the page's h1 uses the same row) | Activity | pending | |
| +| OPS-11 | opshell.go (the rail label; the page's h1 uses the same row) | Boxes | pending | |
| +| OPS-12 | opshell.go (the rail label; the page's h1 uses the same row) | Metrics | pending | |
| +| OPS-13 | opshell.go (the rail label; the page's h1 uses the same row) | Storage requests | pending | |
| +| OPS-14 | opshell.go (the rail label; the page's h1 uses the same row) | Economics | pending | |
| +| OPS-15 | opshell.go (the rail label; the page's h1 uses the same row) | Architecture | pending | |
| +| OPS-16 | templates/ops_index.html | Pick a page from the list. | pending | |
| + |
| +## Shared parts |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-17 | templates/opparts.html (the search form's screen-reader submit) | Search | pending | |
| +| OPS-18 | templates/opparts.html | Clear the search | pending | |
| +| OPS-19 | templates/opparts.html (the pagination's aria-label) | Pages | pending | |
| + |
| +## Dashboard |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-20 | templates/ops_dashboard.html | Who is using <brand>, what they are doing, and whether everything is running. | pending | |
| +| OPS-21 | opdashboard.go | Everything is running. | pending | |
| +| OPS-22 | opdashboard.go | 1 thing needs attention | pending | |
| +| OPS-23 | opdashboard.go | <n> things need attention | pending | |
| +| OPS-24 | opdashboard.go | Box <box> has stopped reporting. | pending | |
| +| OPS-25 | opdashboard.go | The fleet summary is <age> old, so box readings may be out of date. | pending | |
| +| OPS-26 | opdashboard.go | The fleet summary could not be read. | pending | |
| +| OPS-27 | opdashboard.go | <service> is down. | pending | |
| +| OPS-28 | opdashboard.go | <rule> is firing on <box>. | pending | |
| +| OPS-29 | opdashboard.go | 1 storage request is waiting for approval. | pending | |
| +| OPS-30 | opdashboard.go | <n> storage requests are waiting for approval. | pending | |
| +| OPS-31 | opdashboard.go | <job> failed on its last run. | pending | |
| +| OPS-32 | templates/opparts.html (heading, and the link label on job items) | Background jobs | pending | |
| +| OPS-33 | opdashboard.go | People | pending | |
| +| OPS-34 | opdashboard.go | <n> active in the last 30 days | pending | |
| +| OPS-35 | opdashboard.go | New people this week | pending | |
| +| OPS-36 | opdashboard.go | New accounts this week | pending | |
| +| OPS-37 | opdashboard.go | +<n> on last week | pending | |
| +| OPS-38 | opdashboard.go | −<n> on last week | pending | |
| +| OPS-39 | opdashboard.go | same as last week | pending | |
| +| OPS-40 | opdashboard.go | Apps | pending | |
| +| OPS-41 | opdashboard.go | +<n> this week | pending | |
| +| OPS-42 | opdashboard.go | none new this week | pending | |
| +| OPS-43 | opdashboard.go | Deploys today | pending | |
| +| OPS-44 | opdashboard.go | across 1 app | pending | |
| +| OPS-45 | opdashboard.go | across <n> apps | pending | |
| +| OPS-46 | templates/ops_dashboard.html | New people, last 30 days | pending | |
| +| OPS-47 | templates/ops_dashboard.html (the hidden table's caption) | New people per day, last 30 days | pending | |
| +| OPS-48 | templates/ops_dashboard.html | Day | pending | |
| +| OPS-49 | templates/ops_dashboard.html | New people | pending | |
| +| OPS-50 | templates/ops_dashboard.html (the chart axis's last label; the first is the date, 2 Jan format) | Today | pending | |
| +| OPS-51 | templates/ops_dashboard.html | Newest people | pending | |
| +| OPS-52 | templates/ops_dashboard.html | All people | pending | |
| +| OPS-53 | templates/ops_dashboard.html | Person | pending | |
| +| OPS-54 | templates/ops_dashboard.html | Account | pending | |
| +| OPS-55 | templates/ops_dashboard.html | Joined | pending | |
| +| OPS-56 | templates/ops_dashboard.html (no account, no app; the People, Accounts and Activity pages reuse it) | none | pending | |
| +| OPS-57 | templates/ops_dashboard.html | Nobody has signed up yet. | pending | |
| +| OPS-58 | templates/ops_dashboard.html | Latest activity | pending | |
| +| OPS-59 | templates/ops_dashboard.html | All activity | pending | |
| +| OPS-60 | templates/ops_dashboard.html (Activity reuses it) | When | pending | |
| +| OPS-61 | templates/ops_dashboard.html (Activity reuses it) | Who | pending | |
| +| OPS-62 | templates/ops_dashboard.html (Activity reuses it) | What | pending | |
| +| OPS-63 | templates/ops_dashboard.html (Activity reuses it) | App | pending | |
| +| OPS-64 | templates/ops_dashboard.html | Nothing has happened yet. | pending | |
| +| OPS-65 | templates/ops_dashboard.html | All boxes | pending | |
| +| OPS-66 | templates/ops_dashboard.html | Box | pending | |
| +| OPS-67 | templates/ops_dashboard.html | Status | pending | |
| +| OPS-68 | templates/ops_dashboard.html | Region | pending | |
| +| OPS-69 | templates/ops_dashboard.html | Load | pending | |
| +| OPS-70 | templates/ops_dashboard.html (the dashboard's column; Boxes carries OPS-147) | Last report | pending | |
| +| OPS-71 | templates/ops_dashboard.html | No box has published a reading yet. | pending | |
| +| OPS-72 | opdashboard.go (status word) | Healthy | pending | |
| +| OPS-73 | opdashboard.go (status word) | Busy | pending | |
| +| OPS-74 | opdashboard.go (status word) | Silent | pending | |
| +| OPS-75 | opdashboard.go (status word) | Stale | pending | |
| +| OPS-76 | opdashboard.go (a box with no load word or region) | unknown | pending | |
| +| OPS-77 | templates/opparts.html | Job | pending | |
| +| OPS-78 | templates/opparts.html | Last ran | pending | |
| +| OPS-79 | templates/opparts.html | Note | pending | |
| +| OPS-80 | jobs.go (job status word) | OK | pending | |
| +| OPS-81 | jobs.go (job status word) | Failed | pending | |
| +| OPS-82 | jobs.go (job status word) | Not run yet | pending | |
| + |
| +## Job names, first set |
| + |
| +One label per background worker. The worker's name is in the file cell. |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-83 | jobs.go (StartHostReports) | Console report | pending | |
| +| OPS-84 | jobs.go (StartAlertWatcher) | Alerts | pending | |
| +| OPS-85 | jobs.go (StartGeoipJobs) | Location database | pending | |
| +| OPS-86 | jobs.go (PublishMovesConsole) | Moves record | pending | |
| +| OPS-87 | jobs.go (StartClaimRecoveryPass) | Claim recovery | pending | |
| +| OPS-88 | jobs.go (StartEconomicsPass) | Economics | pending | |
| +| OPS-89 | jobs.go (StartInfraPass) | Architecture inventory | pending | |
| +| OPS-90 | jobs.go (StartScanPass) | Virus scan | pending | |
| +| OPS-91 | jobs.go (StartScanDrain) | Virus scan queue | pending | |
| +| OPS-92 | jobs.go (StartExpiryPass) | Temporary app expiry | pending | |
| +| OPS-93 | jobs.go (StartPlanLimitsPass) | Plan limits | pending | |
| +| OPS-94 | jobs.go (StartPlanGracePass) | Plan grace periods | pending | |
| +| OPS-95 | jobs.go (PublishPlansMarker) | Plans marker | pending | |
| +| OPS-96 | jobs.go (StartRunSweep) | Run cleanup | pending | |
| +| OPS-97 | jobs.go (StartSeedsPass) | Seed cleanup | pending | |
| +| OPS-98 | jobs.go (StartRelay) | Relay | pending | |
| +| OPS-99 | jobs.go (StartMailEventPush) | Email event delivery | pending | |
| +| OPS-100 | jobs.go (StartDoorKeyResign) | Door key renewal | pending | |
| +| OPS-101 | jobs.go (ReportApexSquats) | Apex name check | pending | |
| +| OPS-102 | jobs.go (LogPlacementDiscrepancies) | Placement check | pending | |
| + |
| +## People and accounts |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-103 | templates/ops_people.html | Everyone who has signed in, and every account. | pending | |
| +| OPS-104 | templates/ops_people.html (the seg-tabs label) | Show | pending | |
| +| OPS-105 | templates/ops_people.html (the tab; the People tab reuses OPS-33) | Accounts | pending | |
| +| OPS-106 | templates/ops_people.html | Search people by address | pending | |
| +| OPS-107 | templates/ops_people.html | Search accounts by name or id | pending | |
| +| OPS-108 | templates/ops_people.html | Active today | pending | |
| +| OPS-109 | templates/ops_people.html | Active in the last 7 days | pending | |
| +| OPS-110 | templates/ops_people.html | Active in the last 30 days | pending | |
| +| OPS-111 | templates/ops_people.html | Last seen | pending | |
| +| OPS-112 | templates/ops_people.html (the column) | Accounts | pending | |
| +| OPS-113 | templates/ops_people.html | not yet | pending | |
| +| OPS-114 | templates/ops_people.html | Created | pending | |
| +| OPS-115 | templates/ops_people.html | Plan | pending | |
| +| OPS-116 | templates/ops_people.html | Members | pending | |
| +| OPS-117 | templates/ops_people.html | Nobody matches that search. | pending | |
| +| OPS-118 | templates/ops_people.html | No account matches that search. | pending | |
| + |
| +## Activity |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-119 | templates/ops_activity.html | Everything people have done, across every account, newest first. | pending | |
| +| OPS-120 | templates/ops_activity.html | Filter by kind: <kind> | pending | |
| +| OPS-121 | opactivity.go (activity kind) | Everything | pending | |
| +| OPS-122 | opactivity.go (activity kind) | Deploys | pending | |
| +| OPS-123 | opactivity.go (activity kind) | Sign-ins | pending | |
| +| OPS-124 | opactivity.go (activity kind) | Accounts and invites | pending | |
| +| OPS-125 | opactivity.go (activity kind) | Other changes | pending | |
| +| OPS-126 | templates/ops_activity.html | Showing <account> only. | pending | |
| +| OPS-127 | templates/ops_activity.html | Show every account | pending | |
| +| OPS-128 | templates/ops_activity.html | Newest | pending | |
| +| OPS-129 | templates/ops_activity.html | Older | pending | |
| +| OPS-130 | templates/ops_activity.html | Nothing matches these filters. | pending | |
| + |
| +## Stored audit text |
| + |
| +OPS-131 to OPS-136 are stored in audit rows at the time of the action, so a later change to the text does not rewrite history. |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-131 | opaudit.go (stored in the audit row) | Signed in for the first time | pending | |
| +| OPS-132 | opaudit.go (stored in the audit row) | Signed in | pending | |
| +| OPS-133 | opaudit.go (stored in the audit row) | Invited <address> | pending | |
| +| OPS-134 | opaudit.go (stored in the audit row) | Joined <account> from an invitation | pending | |
| +| OPS-135 | opaudit.go (stored in the audit row) | Created the account <name> | pending | |
| +| OPS-136 | opaudit.go (stored in the audit row) | Deleted the account <name> | pending | |
| + |
| +## Page subheads and the moved pages |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-137 | templates/ops_boxes.html | Every box, the apps on them, and the platform's background jobs. | pending | |
| +| OPS-138 | templates/store_approvals.html | Object storage applications waiting for a decision. | pending | |
| +| OPS-139 | templates/metrics.html | How each box is doing, and how fast this console answers. | pending | |
| +| OPS-140 | templates/economics.html | What the platform costs and earns. | pending | |
| +| OPS-141 | templates/economics.html (the seg-tabs label) | Economics sections | pending | |
| +| OPS-142 | templates/economics.html | Overview | pending | |
| +| OPS-143 | templates/economics.html (the tab) | Accounts | pending | |
| +| OPS-144 | templates/economics_accounts.html | Filter by free tier position: <position> | pending | |
| +| OPS-145 | templates/architecture.html | The deployment's parts and how they connect. | pending | |
| +| OPS-146 | templates/ops_boxes.html (the Hosts table's meter column) | Memory | pending | |
| +| OPS-147 | templates/ops_boxes.html | Last report | pending | |
| +| OPS-148 | templates/ops_activity.html (the Activity filter line's name for a deleted account) | <account> (deleted) | pending | |
| + |
| +## Job names, second set |
| + |
| +Labels for the five workers registered since the first set was drawn (2026-10-26). If registerClaimWorkers names another worker when Task 7 starts, add a row the same way and send it through the Luna pass before Task 7 writes it. |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| OPS-149 | jobs.go (StartBillingSyncPass) | Billing sync | pending | |
| +| OPS-150 | jobs.go (StartLifetimesCutoverWatch) | Lifetimes switch-over check | pending | |
| +| OPS-151 | jobs.go (StartLifetimeRecoveryPass) | Lifetime recovery | pending | |
| +| OPS-152 | jobs.go (StartIncarnationMigrationPass) | Incarnation migration | pending | |
| +| OPS-153 | jobs.go (StartEgressReport) | Egress report | pending | |