Repository source: docs/plans/cockpit_prod_feedback/cockpit_prod_feedback_one_shot.md
Cycle: v3/cockpit_prod_feedback; Mode: one-shot; Record/index: this file, plans index; predecessors operator_cockpit (PR #506) and cockpit_copy_trim (PR #507), both merged
Debug mode: enabled
Effort study: railspike-effort / v3/cockpit_prod_feedback; host ledger cockpit_prod_feedback.md. Standing P2 enrollment; parent v3/operator_cockpit.
Extended estimates: enabled
Cycle estimate: 0.25
Status: implemented and committed; next permitted action: push and PR, then the maintainer's review in production.
Original request (2026-12-01, the maintainer's Stage 7 check of item 1 on zenmemes.com, with an iPhone SE screenshot): the header pill shows on Board, "and the menu extends much wider than the rest of the page, causing vertical scroll and other visual issues"; "high traffic mode doesn't seem to have an indicator when turned on"; "saying 'in user access' is unhelpful for the todo pill if we can just link to it without that text at all"; "only operators should see the todo pill in the header, it's otherwise distracting, also it should say something else than to do". Earlier in the same conversation Claude proposed fixing a slow first Deploy run here unless he objected; he didn't.
Authorization: the request above. It also answers the epic's item 1b (header audience): operators only. The new word for todo was not named by him; Claude chose "Advisory" (the cockpit's third light after Warning and Caution) and flags it in the PR as easy to change.
Outcome and work type: application change to the cockpit. Boundary: src/ForumRewrite/Cockpit/, TemplateRenderer and Application::renderer() (operator list), templates/partials/app_header.php, templates/partials/annunciator.php, public/assets/operator_status.js, public/assets/site.css, tests, the status_check concept entry, item 1's Step 4 summary and the epic checklist.
Approach and risks:
Operators only: each page carries the active operators' fingerprints in
data-operatorson the header status; the pre-paint script andoperator_status.jsact only for a browser whose saved key (with its private key) is listed. This is User Access's and Tag Unlocks' existing test. Risks: the list is public (it already is, in approval seeds and on User Access); a page cached by high-traffic mode keeps the list from when it was built, so a newly granted operator sees the pill once pages are rebuilt. Non-operators no longer fetch/tools/status.txt, which removes the per-visitor board run Stage 6 flagged.Phone panel: it hung from the pill's left edge at up to 22rem, past the right edge of a 375 px screen. Under 640 px it now hangs from the header and spans it.
Links:
StatusModulesgives each module a page (Keys → User Access, Staged →/staged/, Traffic → Visitor Statistics, or Operations while high-traffic mode is on; Tests has none). The text form gains alink=line; the header panel and the annunciator link the module name. Keys' "In User Access." and Staged's "At /staged/." go.Traffic is advisory while high-traffic mode is on, value "high traffic on", visits as the reason.
Deploy: a 1000 ms limit for that module only. Its first run on prod took 333 ms and read "check failed", which also writes two history blocks.
Reuse decisions: the operator test from user_access.php and tag_unlocks.php; ApprovalPolicy::activeOperatorFingerprints(); the existing pill, panel and level styles; no new component.
Completion conditions: on a phone the open panel stays on screen with no sideways scroll; a browser without an operator key shows no header status and makes no status request; an operator's browser shows "Advisory" and module links; Traffic lights while high-traffic mode is on; Deploy's first run no longer fails at 333 ms. Recovery unchanged: a failed fetch keeps the last status; 404 hides it.
Concepts touched: status check (changed: Advisory, links, Traffic rule, Deploy limit, header audience).
Starting revision and branch: deef67d5 on fix/cockpit_prod_feedback.
Dated execution history:
2026-12-01: Checked prod before asking the maintainer: flag on, 9 of 10 modules with a source,
/tools/about 110 ms over a static file, cached Board (x-v3-high-traffic: hit) carries the header markup, Deploy failed once at 333 ms then read "current" ten times,/tools/status.txtalso getsmax-age=172800from the host (not the repository;no-storestill wins in browsers).2026-12-01: The maintainer's checks and screenshot (request above). Implemented the five changes.
2026-12-01: The browser test's fixture seeded no operator for alice; it now passes her as
canonical_identity, which writes her approval seed.
Outcome: header status for operators only, with "Advisory" and linked modules; phone panel on screen; Traffic lit in high-traffic mode; Deploy's limit 1000 ms. Verification:
./v3 test OperatorCockpitTest: 13 run, 13 passed. New: per-module limit, header markup carries the operator list only with the flag and says Advisory, links in the text form and the annunciator, Traffic lit, no location reasons../v3 test --smoke OperatorCockpitTest AppNavigationPlacementTest FastNavigationLayoutTest StagedPageTest: 515 run, 515 passed.tests/browser/operator_status.mjs(local playwright-core): ok. Adds a 375×667 visitor without a key (no status, no request) and, for the operator, the open panel inside the screen with no overflow at 1280 and 375.Screenshots of
/tools/at 1280×900 and 375×667: linked module names, Tests unlinked, Warning pill unchanged. Advisory uses the existingtodostyles, so it was not seen lit in the fixture.Not replayed: an iPhone SE in Safari (Chromium at 375×667 stands in); the panel uses
:has()to position the header, which Safari has had since 15.4.Full suite not run.
Final review: diff within the boundary; no new component.
Commit/merge/publication status: completion commit on fix/cockpit_prod_feedback; push and PR next.
— Claude · 2026-12-01 UTC · Model: Claude Opus 5.5