| new file mode 100644 |
| index 000000000..e166daf4c |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-10-30-console-protection-tab-copy.md |
| @@ -0,0 +1,73 @@ |
| +# Console Protection tab: copy deck |
| + |
| +Every new user-facing string of the Protection tab plan |
| +(`2026-10-30-console-protection-tab.md`). The gate is |
| +`internal/console/approved_protection_copy_test.go` |
| +(`TestProtectionCopyDeckIsApprovedAndApplied`). |
| + |
| +Approved 2026-10-30 by Paul in copy review (copy-review skill), all 38 rows |
| +unchanged from the draft. The text below is the approved text, verbatim. |
| +There are no rows C07 to C09: Paul's ruling cut those strings. |
| + |
| +The rules (the same as the analytics on-ramp deck, |
| +`2026-10-26-analytics-onramp-copy.md`): |
| + |
| +- One table, columns `| id | where | old | new | checked by | status |`. A row |
| + is one line. |
| +- `where` is a path relative to `internal/console/`, then a short location |
| + note in parentheses. The gate searches the file named by the first token. |
| +- `new` is the approved text, used verbatim by the task that writes it. It is |
| + `(removed)` for a string that goes. `old` is `(new)` for a string that is |
| + new. |
| +- `checked by` is `gate` (a plain string the gate finds literally in the |
| + file, once the owning task lists its id in `protectionCopyBuilt`) or the |
| + name of the owning task's test, which the gate only checks exists. |
| +- `status` is `pending`, then `approved` or `removed`. No pending row may |
| + reach code or a template. |
| +- No em dashes in `new`. A full stop and a new sentence instead. |
| +- Human text only. Error fragments, diagnostics, JSON keys and URLs are not |
| + rows. |
| +- Placeholders in braces are filled by the template: `{days}` the range in |
| + days, `{caught}` `{blocked}` `{watched}` `{checked}` request counts, `{pct}` |
| + a percentage, `{apps}` an app count, `{fleets}` a list of fleet names. |
| + |
| +| id | where | old | new | checked by | status | |
| +| --- | --- | --- | --- | --- | --- | |
| +| PT-C01 | templates/appnav.html (tab) | (new) | Protection | gate | approved | |
| +| PT-C02 | templates/app_protection.html (watching headline) | (new) | In the last {days} days, {caught} requests to this app looked like attacks. Protection is recording them and letting them through while we check it never stops a real visitor. | TestProtectionTabRendersHeadline | approved | |
| +| PT-C03 | templates/app_protection.html (blocking headline) | (new) | In the last {days} days, protection blocked {blocked} requests to this app. | TestProtectionTabBlockingHeadline | approved | |
| +| PT-C04 | templates/app_protection.html (mixed headline) | (new) | In the last {days} days, protection blocked {blocked} requests to this app and recorded {watched} more. | TestProtectionTabMixedHeadline | approved | |
| +| PT-C05 | templates/app_protection.html (share) | (new) | That's {pct} of the {checked} requests protection checked. | TestProtectionTabRendersHeadline | approved | |
| +| PT-C06 | templates/app_protection.html (nothing caught) | (new) | Nothing in the last {days} days looked like an attack. | TestProtectionTabNothingCaught | approved | |
| +| PT-C10 | templates/app_protection.html (no counts yet) | (new) | No protection counts yet for this app. Counting starts once the servers that run it take the release that adds it, and only while protection is on. | gate | approved | |
| +| PT-C11 | templates/app_protection.html (bars heading) | (new) | Day by day | gate | approved | |
| +| PT-C12 | templates/app_protection.html (legend) | (new) | blocked | gate | approved | |
| +| PT-C13 | templates/app_protection.html (legend) | (new) | recorded | gate | approved | |
| +| PT-C14 | templates/app_protection.html (groups heading) | (new) | What they were after | gate | approved | |
| +| PT-C15 | templates/app_protection.html (logs link) | (new) | See these requests in Logs | gate | approved | |
| +| PT-C16 | templates/app_protection.html (range) | (new) | 7 days | gate | approved | |
| +| PT-C17 | templates/app_protection.html (range) | (new) | 30 days | gate | approved | |
| +| PT-C18 | protection.go (read error) | (new) | Protection counts could not be read just now. Try again in a moment. | gate | approved | |
| +| PT-C19 | templates/app_protection.html (logs note, 30-day view) | (new) | Logs keep these requests for 7 days, so older ones are counted here but no longer listed. | gate | approved | |
| +| PT-C20 | protectiongroups.go (group name) | (new) | Paths that try to climb out of the site's folder | gate | approved | |
| +| PT-C21 | protectiongroups.go (group name) | (new) | Secret files such as .env and .git | gate | approved | |
| +| PT-C22 | protectiongroups.go (group name) | (new) | Private keys and cloud credentials | gate | approved | |
| +| PT-C23 | protectiongroups.go (group name) | (new) | Database dumps | gate | approved | |
| +| PT-C24 | protectiongroups.go (group name) | (new) | Editor and backup copies of PHP files | gate | approved | |
| +| PT-C25 | protectiongroups.go (group name) | (new) | Admin pages | gate | approved | |
| +| PT-C26 | protectiongroups.go (group name) | (new) | Old CGI scripts and router pages | gate | approved | |
| +| PT-C27 | protectiongroups.go (group name) | (new) | Docker and CI config files | gate | approved | |
| +| PT-C28 | protectiongroups.go (group name) | (new) | Backup and dump files | gate | approved | |
| +| PT-C29 | protectiongroups.go (group name) | (new) | Java server pages and consoles | gate | approved | |
| +| PT-C30 | protectiongroups.go (group name) | (new) | Cloud server metadata | gate | approved | |
| +| PT-C31 | protectiongroups.go (group name) | (new) | PHP framework debug pages | gate | approved | |
| +| PT-C32 | protectiongroups.go (group name) | (new) | phpMyAdmin | gate | approved | |
| +| PT-C33 | protectiongroups.go (group name) | (new) | PHP scripts | gate | approved | |
| +| PT-C34 | protectiongroups.go (group name) | (new) | Server status pages | gate | approved | |
| +| PT-C35 | protectiongroups.go (group name) | (new) | WordPress logins and admin pages | gate | approved | |
| +| PT-C36 | protectiongroups.go (other) | (new) | Other | gate | approved | |
| +| PT-C37 | templates/app_logs.html (protection filter label) | (new) | protection matches | gate | approved | |
| +| PT-C40 | templates/fleet_protection.html (title) | (new) | Protection | gate | approved | |
| +| PT-C41 | templates/fleet_protection.html (headline) | (new) | In the last {days} days, {caught} requests across {apps} apps looked like attacks. | TestFleetProtectionListsApps | approved | |
| +| PT-C42 | templates/fleet_protection.html (table headings) | (new) | Account · App · Caught · Blocked · Share | TestFleetProtectionListsApps | approved | |
| +| PT-C43 | templates/fleet_protection.html (unreadable fleets) | (new) | These fleets' counts could not be read and are left out: {fleets}. | TestFleetProtectionNamesUnreadableFleet | approved | |