Skip to content

feat(tier-3): code hardening (G-24 through G-28) - #120

Merged
dmuhoro merged 4 commits into
mainfrom
feat/tier-3-hardening
Dec 1, 2026
Merged

dmuhoro merged 4 commits into
mainfrom
feat/tier-3-hardening

Conversation

@dmuhoro

@dmuhoro dmuhoro commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Tier 3 — Code hardening (G-24 through G-28)

Gate-safe engineering only; no content imported, no version bump, no tag/release.

G-24 — Reduce any sites (58 → 48)

  • lib/supabase.ts: replaced 5 any with unknown + SupabaseError interface for type-safe narrowing (payload, parsePayload return, redactPayload param/return, normalizeError param/return, parsedError variable)
  • lib/normalize.ts: replaced 5 any with unknown + type guard functions (isObject, isString, isNumber, isBoolean, isArray) in normalizeProfile and normalizeRoadmap

G-27 — Replace TODO stubs with fail-closed implementations

  • src/runtime/runtimeScheduler.ts: getMemoryPressure() now derives pressure from memoryClass/memoryTotal instead of hardcoded 0.5 mock
  • src/runtime/executionBudgetManager.ts: getCurrentResourceUsage() now reads from DeviceProfiler instead of hardcoded mock data
  • src/runtime/cognitiveExecutionGraph.ts: executeCloud() now throws [RUNTIME ERROR] Cloud execution not implemented instead of simulating success
  • src/runtime/inferencePolicyEngine.ts: getNetworkStatus() now reads network type/speed/metered from DeviceProfiler instead of assuming online/good conditions

G-28 — Fix ESLint warnings (131 → 121)

  • Removed unused imports (Alert in AgeGate, ScrollView in explore, RetentionProfileStore in recommendations, useState/Badge/EmptyState/Skeleton in progress, useActiveProfileStore in roadmapStore)
  • Removed unused eslint-disable directives (useConnectionStatus.ts, setupTests.ts)

G-25 — Hardcoded hex to design tokens (already complete)

  • No hardcoded hex values outside tokens.ts and legacyPalette.ts — all colors use COLORS.X references

G-26 — i18n migration (partial)

  • 44 files import t from locales; i18n check passes: 87 screens scanned, 0 user-visible literals outside t()

Red and green control

  • Full local gate green: typecheck 0, lint 0 errors (121 pre-existing warnings), 132 files / 738 tests, boundaries 0 violations, i18n 87 screens, no-raw-hex 330 files, architecture audit 0 violations, QA all systems verified, web export exported, audit 0 critical, guard:secrets passed, guard:public-env passed, guard:dist passed.

Owner gate

No owner input required for Tier 3. All changes are code hardening only.

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
easytutor Ready Ready Preview Dec 1, 2026 8:45pm UTC

@dmuhoro
dmuhoro merged commit 540b390 into main Dec 1, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview – easytutor — f614d910 Deployed Dec 1, 2026 by vercel[bot]
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