[PM-04] Add framework integrity check to content-health workflow#814
Draft
[PM-04] Add framework integrity check to content-health workflow#814
Conversation
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 integrity check to content-health workflow
[PM-04] Add framework integrity check to content-health workflow
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 a new advisory validator that enforces governance framework metadata headers on all repo scripts, wired into the weekly
content-healthworkflow.Description
Scripts across scoped roots (
.githooks,.github/scripts,tests,tools/scripts,tasks/scripts) are required to carry a framework header schema (@script,@category,@purpose,@scope,@owner,@needs,@purpose-statement,@pipeline). Previously, no automated check ran against the full corpus — only staged additions were covered at commit time. This adds a scheduled advisory sweep for the whole repo.Scope
In-scope:
.github/workflows/content-health.yml— new step addedtools/scripts/validators/structure/check-framework-integrity.js— new validatortools/script-index.md,docs-guide/indexes/scripts-index.mdx— index rebuild to include new scriptOut-of-scope: no changes to existing validators, test logic, or header enforcement policies
Validation
Follow-up Tasks
none
Type of Change
Related Issues
Related to #
Changes Made
tools/scripts/validators/structure/check-framework-integrity.js— new script; delegates torunTests({ enforceExisting: true, checkIndexes: true })fromtests/unit/script-docs.test.js; advisory by default (exit 0),--strictflips to exit 1; defensive guards on result shape with remediation hints in output.github/workflows/content-health.yml— appendedFramework integrity checkstep withcontinue-on-error: true, matching the advisory posture of all other steps in this workflowtools/script-index.mdanddocs-guide/indexes/scripts-index.mdxto register the new validatorTesting
npm run devScreenshots (if applicable)
N/A
Checklist
Additional Notes
The new validator is intentionally advisory (
continue-on-error: true) to match the existing content-health posture — findings surface in workflow logs without blocking. Use--strictif a blocking gate is desired in future.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.