fix: make resource validation read-only and fail closed - #76
Draft
Jeremy1844 wants to merge 2 commits into
Draft
Conversation
This was referenced Jul 29, 2026
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.
Root cause
The resource-validation entry point did not run the selected validators. Instead it called a hard-coded date-rewrite helper, so a validation command could mutate source files while still failing to report asynchronous validation errors reliably.
Change
Evidence
9d237dd4fb37dd1fb936e3f9649020cc43a374c8(stage)483f1cd2f63df63960173ff417ea3ed26ef9b4ac— 0/4 introduced tests passed0afd6e427cd8111b3e4a72e8412e14c69440b635— 4/4 introduced tests passedsrc,assets,package.json, andyarn.lockGit objects are identical to the baseScope and rollout
This PR changes validator code and tests only. It contains no lesson/content, asset, schema, dependency, deployment, or migration changes. A separate source-cover validation root is intentionally kept out of this PR.
Before deployment, rerun against an approved read-only corpus snapshot with the authorized immutable private dependencies. Rollback is a revert of these two commits; do not restore the content-writing path as an operational workaround.