live-tip-20260606183709-config-validation-guards: Enforce strict config schema and fail-fast invalid entries #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/live-tip-20260606183709-config-validation-guards"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Assigned idea
config validation: Edit task/instruction.md and set this task slug to live-tip-20260606183709-config-validation-guards. Add or update configuration validation so unknown keys and wrong types are rejected before scheduler/API startup. Add a test that intentionally injects an extra field and invalid field type.
Approach: Edit task/instruction.md and set this task slug to live-tip-20260606183709-config-validation-guards. Add or update configuration validation so unknown keys and wrong types are rejected before scheduler/API startup. Add a test that intentionally injects an extra field and invalid field type.
Verification: {"file":"src/config/schema.ts","assertion":"The file must contain an exported config schema identifier named ConfigSchema and include a
.strict()call."}{"file":"test/config/config.validation.spec.ts","assertion":"The test suite must include a test named
rejects unknown keys and invalid typesthat asserts validation throws on extra properties."}Risk: Live smoke generated task; validate by PR diff and gate result.
Required smoke edit: update task/instruction.md with live-tip-20260606183709-config-validation-guards.
Agent context
Task slug: live-tip-20260606183709-config-validation-guards
Branch: task/live-tip-20260606183709-config-validation-guards
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.