Skip to content

chore: scrub internal issue/PR numbers from operator-facing text (#755)#756

Merged
VijitSingh97 merged 3 commits into
developfrom
claude/issue-755-scrub-issue-numbers
Jul 24, 2026
Merged

chore: scrub internal issue/PR numbers from operator-facing text (#755)#756
VijitSingh97 merged 3 commits into
developfrom
claude/issue-755-scrub-issue-numbers

Conversation

@VijitSingh97

Copy link
Copy Markdown
Collaborator

Closes #755.

Internal GitHub issue/PR numbers ((#103), (#381), #168, …) were showing up in text an operator reads — warnings, errors, the apply preview, --help, and one dashboard tooltip. They mean nothing to the reader and just add noise. This strips them from user-facing product strings while keeping the explanatory prose, and adds a lint guard so they don't creep back.

What changed

  • pithead — removed #NNN from log/warn/error/info/echo messages, the --help command descriptions, and the describe_change msg= strings that show in the apply preview (and, via the Stack config editor: change any setting from the dashboard, applied via pithead (incl. P2Pool mode hot-swap) #33 control channel, the dashboard config editor). Grammar preserved; meaningful words kept — e.g. "deprecated alias for workers.list[] (#506, removed in v1.9)""… (removed in v1.9)". Also dropped a stale v1.6 reference in the Tari view-key error while there.
  • chart.mjs — the "Avg:" chart-control tooltip no longer ends in (#168).
  • Regression guardscripts/lint-operator-strings.sh, wired into make lint and CI, fails if a #NNN appears in a pithead operator message or a dashboard frontend user-visible string. It exempts comments and test labels, and avoids false positives on CSS hex colours (#3fb950). Documented in CONTRIBUTING.md.

Scope note

Telegram, webhook, and ntfy message bodies were already clean — issue refs there live only in docstrings, so nothing to do. Code comments and test-description labels keep their #NNN (developer-facing, correct).

Coordination with #754

PR #754 (remote Tari) deliberately followed the existing (#NNN) convention in its new strings rather than half-converting the file ahead of this cleanup. Once both land, whichever merges second will need a trivial rebase pass — and the new lint-operator-strings check makes any missed straggler a hard CI failure rather than a silent regression.

Testing

Stack suite 1622/0 (no test was coupled to a removed number), plus make lint-sh lint-js lint-md lint-docs-voice lint-operator-strings and test-compose green. No behaviour change — display text only.

🤖 Generated with Claude Code

VijitSingh97 and others added 3 commits July 23, 2026 13:38
Internal GitHub #NNN references carry no meaning for an operator reading a
warning, an error, the apply preview, or the dashboard — they read as noise.
Remove them from user-facing product strings while keeping the explanatory
prose intact. Comments and test labels keep their #NNN (developer-facing).

- pithead: strip #NNN from log/warn/error/info/echo messages, the --help command
  descriptions, and describe_change's msg= apply-preview text (which the #33
  control channel also renders in the dashboard config editor). Grammar
  preserved; load-bearing words kept (e.g. "removed in v1.9" stays, only the
  "#506," goes). Also dropped a stale "v1.6" reference while there.
- dashboard: chart.mjs "Avg:" control tooltip.
- Regression guard: scripts/lint-operator-strings.sh (wired into `make lint` and
  CI) fails if a #NNN reaches a pithead message or a dashboard frontend string;
  it exempts comments and CSS hex colours. Documented in CONTRIBUTING.md.

Telegram, webhook, and ntfy message bodies were already clean (issue refs there
live only in docstrings). No behaviour change. Stack suite 1622/0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The guard's frontend scanner is non-trivial awk (comment-stripping + CSS
hex-colour skip); a silent regression would make it stop catching leaks while
still exiting 0. Extract the two scanners into functions and add a `--self-test`
mode that drives fixtures through them — planted #NNN must be flagged, hex
colours and comments must not. Wired into the stack suite (make test-stack/CI).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@VijitSingh97
VijitSingh97 merged commit d656099 into develop Jul 24, 2026
16 checks passed
@VijitSingh97
VijitSingh97 deleted the claude/issue-755-scrub-issue-numbers branch July 24, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scrub internal issue/PR numbers from operator-facing messages (CLI, apply preview, dashboard tooltip)

1 participant