-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
refactorCode refactoring and simplificationCode refactoring and simplification
Description
Context
Audit ID: ARCH-3
The `SPARK_TYPES` set in `loader.ts` contains literal strings that must match the `SparkType` union. If a new spark type is added to the union but not the set, `isSpark()` will silently reject valid sparks.
Approach
Derive `SparkType` from a `const` assertion array, and build the Set from the same source of truth. This ensures the union and runtime set can never diverge.
Files
- `src/core/sparks/loader.ts` (L55-60)
- Type definition file for `SparkType`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
refactorCode refactoring and simplificationCode refactoring and simplification