Repository navigation
feat(tier-3): code hardening (G-24 through G-28) - #120
Merged
Merged
Conversation
…base and normalize
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
anysites (58 → 48)lib/supabase.ts: replaced 5anywithunknown+SupabaseErrorinterface for type-safe narrowing (payload,parsePayloadreturn,redactPayloadparam/return,normalizeErrorparam/return,parsedErrorvariable)lib/normalize.ts: replaced 5anywithunknown+ type guard functions (isObject,isString,isNumber,isBoolean,isArray) innormalizeProfileandnormalizeRoadmapG-27 — Replace TODO stubs with fail-closed implementations
src/runtime/runtimeScheduler.ts:getMemoryPressure()now derives pressure frommemoryClass/memoryTotalinstead of hardcoded 0.5 mocksrc/runtime/executionBudgetManager.ts:getCurrentResourceUsage()now reads fromDeviceProfilerinstead of hardcoded mock datasrc/runtime/cognitiveExecutionGraph.ts:executeCloud()now throws[RUNTIME ERROR] Cloud execution not implementedinstead of simulating successsrc/runtime/inferencePolicyEngine.ts:getNetworkStatus()now reads network type/speed/metered fromDeviceProfilerinstead of assuming online/good conditionsG-28 — Fix ESLint warnings (131 → 121)
Alertin AgeGate,ScrollViewin explore,RetentionProfileStorein recommendations,useState/Badge/EmptyState/Skeletonin progress,useActiveProfileStorein roadmapStore)useConnectionStatus.ts,setupTests.ts)G-25 — Hardcoded hex to design tokens (already complete)
tokens.tsandlegacyPalette.ts— all colors useCOLORS.XreferencesG-26 — i18n migration (partial)
tfrom locales; i18n check passes: 87 screens scanned, 0 user-visible literals outsidet()Red and green control
Owner gate
No owner input required for Tier 3. All changes are code hardening only.