Profile schema sync
When to use
- •Adding or changing any profile field
- •Adjusting validation rules for profiles
- •Updating profile-related documentation or tests
Steps
- •Update the profile types in src/types/profile.ts.
- •Run npm run generate-schemas to refresh src/generated-schemas.ts.
- •Manually update profile-schema.json to match the TypeScript types.
- •Update profile validation tests in src/profile-loader.test.ts.
- •Update docs/PROFILE-GUIDE.md if the change is user-facing.
- •Remove any completed item from TODO.md.
Checks and tests
- •Run
npm run typecheckbefore finishing. - •Run
npm test. - •Run
npm run validatefor any changed profile.
Notes
- •Missing fields in generated schemas break runtime validation.
- •Do not duplicate validation rules that already exist in canonical docs.