Skip to content

chore(vibe-risk): remediate findings to 91/100 (build green)#7

Merged
fmw666 merged 1 commit into
mainfrom
chore/vibe-risk-remediation-91
Jun 4, 2026
Merged

chore(vibe-risk): remediate findings to 91/100 (build green)#7
fmw666 merged 1 commit into
mainfrom
chore/vibe-risk-remediation-91

Conversation

@fmw666

@fmw666 fmw666 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

Workflow-orchestrated remediation (21-agent fan-out) + manual cleanup of the vibe-risk-analyzer findings. All legitimate findings resolved, 10/12 dimensions maxed, full build green. Score 87 → 91/100 EXCELLENT; Refactoring Risk 16→10, AI Extension Risk 10→7 (both MINIMAL).

Changes

  • fix(preview-site): break the circular dependency Nav → route-loaders → PlaygroundPage by relocating NAV_REGION_HEIGHT_REM into a dependency-free leaf nav-metrics.ts. madge now reports 0 cycles in all 3 packages.
  • refactor: split 13 god files, preserving public exports + import paths (no call-site changes):
    Footer 8904→3734, builder 6527→1157, index 5787→1613, e2e 10953→2726, plus Toolbar / FileExplorer / Hero / ScreenContent / handlers / simulate-strip / PlaygroundSection / ChangelogPage / apply-ui-snapshot / sync-ui-snapshots. Files >4000 tokens: 20 → 7.
  • chore: remove dead code — 4 genuinely-unused deps (@radix-ui/react-label, @tanstack/react-query, clsx, tailwind-merge) + 6 orphan files (device-mockups/*, nav/ThemeToggle); pnpm-lock.yaml synced.
  • docs: expand root AGENTS.md 39 → 129 lines (dev env, per-package conventions, the 12 structure scan tests, PR-NNN pointer, pitfalls); add preview-site/.agent/rules/00-structure.md (PR-PV-001..005 fence).
  • chore: record vibe-risk scan history (91/100 EXCELLENT).

Verification

pnpm verify:fastALL PASSED:

step result
typecheck ✅ 3 packages
test ✅ 707 passed (132 + 412/1-skip + 163)
lint --max-warnings 0, 3 packages
lockfile ✅ integrity ok
madge cycles ✅ 0 in all 3 packages
jscpd duplication 1.98%

Scope note (not a perfect 100, by design)

The remaining gap is Module SRP (6/14) and Type Safety (11/12). Closing them to a literal 100 would require fragmenting ~60 cohesive files (i18n translation tables, icon-path data, UI showcases) below 1200 tokens and stripping ~125 legitimate as assertions — both degrade maintainability. 91/EXCELLENT is the accepted healthy ceiling; no maintainability-damaging churn was made.

🤖 Generated with Claude Code

Workflow-orchestrated remediation + manual cleanup. All legitimate
vibe-risk findings resolved; 10/12 dimensions maxed; full build green.

- fix: break preview-site circular dep (Nav -> route-loaders ->
  PlaygroundPage) via leaf nav-metrics.ts; 0 cycles across all 3 packages
- refactor: split 13 god files, preserving public exports + import paths
  (Footer 8904->3734, builder 6527->1157, index 5787->1613, e2e 10953->2726,
  Toolbar/FileExplorer/Hero/ScreenContent/handlers/simulate-strip/
  PlaygroundSection/ChangelogPage/apply-ui-snapshot/sync-ui-snapshots);
  files >4000 tokens: 20 -> 7
- chore: remove 4 unused deps (@radix-ui/react-label, @tanstack/react-query,
  clsx, tailwind-merge) + 6 orphan files (device-mockups, ThemeToggle);
  pnpm-lock.yaml synced
- docs: expand root AGENTS.md 39->129 lines; add preview-site/.agent/rules
- chore: record vibe-risk scan history (91/100 EXCELLENT)

Verified: typecheck + 707 tests + lint (--max-warnings 0) + 0 madge cycles
in all 3 packages; jscpd duplication 1.98%.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@fmw666 fmw666 merged commit 15cb539 into main Jun 4, 2026
4 checks passed
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