Skip to content

Promote Carried Documentation Link Validation - #831

Merged
ptr727 merged 2 commits into
mainfrom
develop
Aug 19, 2026
Merged

Promote Carried Documentation Link Validation#831
ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Promote carried documentation link validation from develop to main.

Closes #829

Fix carried governance links that resolve in the hub but break in
downstream repositories.

- Point hub-only workflow documentation and workflow references at
canonical `main` URLs.
- Validate relative links inside verbatim carried Markdown sections
against universally carried files.
- Cover hub-only, universal, absolute, and inline-code link cases.

The full local gate passed, including 731 unit tests, live fleet audit,
repository configuration check, and containerized EditorConfig,
ShellCheck, and PSScriptAnalyzer checks.
Copilot AI lite review requested due to automatic review settings August 19, 2026 02:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Promotes a new spec validation that rejects relative Markdown links inside verbatim-carried sections when the target is not universally carried across the fleet, preventing hub-valid links from becoming broken after carry.

Changes:

  • Add a Markdown link extractor and a new carried_relative_link_errors() gate to spec/validate.py.
  • Add unit tests covering accepted and rejected link shapes for the new gate.
  • Update carried Governance prose to use canonical (hub) URLs where the referenced file is not universally carried.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
spec/validate.py Adds link-target parsing and a portability check for relative links inside verbatim-carried Markdown sections.
scripts/tests/test_spec_validate.py Adds unit tests validating the new carried-link portability behavior.
GOVERNANCE.md Updates links in verbatim-carried Governance content to avoid downstream-broken relative targets.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/tests/test_spec_validate.py
Apply the executable test-file convention identified during promotion
review.

- Add the standard Python shebang and executable mode.
- Pin the directly executed test to LF in `.gitattributes`.

The complete local gate passed, including 733 tests and all container
analyzers.
Copilot AI review requested due to automatic review settings August 19, 2026 02:37
@ptr727

ptr727 commented Aug 19, 2026

Copy link
Copy Markdown
Owner Author

Copilot review finding on scripts/tests/test_spec_validate.py (standard test-file shebang): Fixed in 85c0d9b via #832. The test has the standard shebang, executable mode, and explicit Git-level LF pin. The original thread is already resolved.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@ptr727
ptr727 marked this pull request as ready for review August 19, 2026 02:42
@ptr727
ptr727 merged commit e2c4ec4 into main Aug 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Broken Reusable-Workflow Link in Carried Governance

2 participants