[PM-05] Add framework validation npm scripts to tools/package.json#815
Draft
[PM-05] Add framework validation npm scripts to tools/package.json#815
Conversation
Co-authored-by: DeveloperAlly <12529822+DeveloperAlly@users.noreply.github.com>
Co-authored-by: DeveloperAlly <12529822+DeveloperAlly@users.noreply.github.com>
Co-authored-by: DeveloperAlly <12529822+DeveloperAlly@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add framework validation npm scripts to package.json
[PM-05] Add framework validation npm scripts to tools/package.json
Mar 10, 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.
Adds six npm scripts to
tools/package.jsonfor validating and managing the script documentation governance framework (Sprint 3 + Post-Migration Audit).Description
The framework validation tooling (
script-docs.test.js,add-framework-headers.js) existed but had no dedicated npm entry points intools/package.json, requiring developers to know and type full node invocations manually.Scope
In scope:
tools/package.json,.gitignoreOut of scope: No changes to validation scripts themselves.
Validation
Follow-up Tasks
none
Type of Change
Tooling: adds npm script aliases for existing framework validation infrastructure.
Related Issues
Related to #
Changes Made
test:script-docs— runsscript-docs.test.jsdirectly (mirrorstest:style,test:mdxnaming convention)validate:framework— full enforcement: all 187 scoped scripts checked for compliant headers + index freshness (--enforce-existing --check-indexes)validate:framework:indexes— index-only freshness check (--check-indexes)validate:framework:write— auto-rebuild all script indexes (--write --rebuild-indexes)validate:framework:headers— read-only verify of per-file headers againsttasks/reports/script-classifications.jsonviaadd-framework-headers.js --verifyvalidate:framework:headers:dry-run— preview mode for the abovetools/tasks/to.gitignoreto exclude generated audit artifactsAll scripts use
cd .. &&to switch from thetools/package root to the repo root, required because bothscript-docs.test.jsandadd-framework-headers.jsderiveREPO_ROOTfromprocess.cwd().Testing
Screenshots (if applicable)
N/A
Checklist
Additional Notes
validate:framework:headersexits 1 when classification data mismatches actual file headers — this is intentional and reflects real drift betweenscript-classifications.jsonand in-file headers, not a defect in the new scripts.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.