Skip to content

refactor(renderer): remove retired trust badge utilities - #1040

Merged
antropos17 merged 3 commits into
masterfrom
codex/renderer-utils-cleanup-20261020
Oct 20, 2026
Merged

antropos17 merged 3 commits into
masterfrom
codex/renderer-utils-cleanup-20261020

Conversation

@antropos17

@antropos17 antropos17 commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

The retired trust-badge-utils.ts is imported only by its own test suite. Observatory renders risk bands through frontend/observatory/runtime/radar.ts; its current consumers include the radar, inspector, roster and risk explanation.

Remove the unused helper and its obsolete badge styling/dimension tests. Preserve the useful low/medium/high boundary and out-of-range checks against Observatory's actual riskBand function, and retain the score-60 regression: grade D must still produce a medium-risk group. Update the stale classifier reference in the trust-grade documentation and the derived utility count in the architecture inventory. Production function bodies, styles and policy behavior are unchanged.

Validation:

  • Baseline: 3 focused suites, 50 tests passed before removal.
  • After cleanup: all 43 renderer suites, 518 tests passed on Windows with Node 24.19.0.
  • Repeated renderer tests and project type checks after merging current master and installing its updated locked dependencies: passed.
  • npm run build:renderer, npm run typecheck, npm run format:check and npm run lint passed. Lint reports 59 warnings outside the changed code and no errors.
  • Remaining legacy symbol/path references were checked across source, frontend, scripts, tests and tools.
  • npm run counts:check passed: retained renderer utility count is 13 and all declared counters agree.
  • Final head 9091a651: full CI passed build, lint, Svelte/type checks, coverage, both mutation gates, derived counts and the production dependency audit. The separate development-tools check also passed.

This is a five-file maintenance change. No dependency, lockfile, workflow or settings changes relative to current master. No bundle-size or CI-speed improvement is claimed.

@antropos17
antropos17 merged commit a013b5a into master Oct 20, 2026
6 checks passed
@antropos17
antropos17 deleted the codex/renderer-utils-cleanup-20261020 branch October 20, 2026 16:54
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.

1 participant