Skip to content

Add strict broken-link checks and bundle-path compatibility - #11

Merged
emilio-balda merged 1 commit into
mainfrom
fix/broken-links
Sep 23, 2026
Merged

emilio-balda merged 1 commit into
mainfrom
fix/broken-links

Conversation

@emilio-balda

Copy link
Copy Markdown
Contributor

Summary

  • Add CI checks for brain validation on pushes and pull requests.
  • Validate links in concepts, indexes, and logs, with suggestions for incorrect bundle prefixes.
  • Support legacy /brain/... viewer links while displaying canonical-path tooltips.
  • Document bundle-root link conventions and strict validation requirements.
  • Add regression coverage for Python validation, link resolution, backlinks, and UI rendering.

Testing

  • Added and updated pytest and frontend regression tests covering link validation and fallback resolution.
  • CI workflow runs python -m okf_tools check brain on Python 3.11.

Copilot AI lite review requested due to automatic review settings September 23, 2026 13:27
@emilio-balda
emilio-balda merged commit 21bc9fe into main Sep 23, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Protocol-relative external links may be misclassified as bundle paths by strict validation.

Review effort: Lite
Findings: None

What changed in this PR

Adds strict broken-link validation, legacy /brain/... viewer compatibility, documentation, regression tests, and CI enforcement.

Changes:

  • Validates links with canonical-path suggestions.
  • Adds frontend fallback resolution and canonical tooltips.
  • Documents link conventions and runs strict checks in CI.
File Description
tests/​test_validation.py Tests validation and prefix suggestions.
tests/​test_cli.py Tests strict CLI behavior.
src/​Detail.test.js Tests recovered-link rendering.
src/​Detail.jsx Displays canonical tooltips for recovered links.
src/​brain.test.js Tests fallback resolution and backlinks.
src/​brain.js Implements compatibility resolution and graph handling.
skills/​okf/​templates/​concept.md Adds canonical-link guidance.
skills/​okf/​onboarding-SKILL-peer-to-peer.md Documents link and validation requirements.
skills/​okf/​onboarding-SKILL-centralized.md Documents link and validation requirements.
README.md Documents link rules and CI checks.
okf_tools/​validation.py Adds reserved-file link validation and prefix suggestions.
.github/​workflows/​check-brain.yml Adds strict validation CI.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants