Files
second-brain/projects/homelab/guides
kiskaadee ad4d0435ce
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
infra(validator): phase 1 — structural refactor to single-pass pipeline
- Introduce Document NamedTuple (path, rel, content, validates_frontmatter)
  as the unit of discovery; all inclusion/exclusion policy lives in
  discover_documents() — no check ever calls is_exempt() again.
- Introduce Issue NamedTuple (severity, path, line, message) with
  Severity = Literal['error', 'warning']; line field reserved for Phase 2.
- Replace four independent rglob traversals with a single discovery pass
  that reads each file once.
- Encapsulate all checks as pure functions returning list[Issue] with no
  global state mutation.
- Eliminate the global errors/warnings lists and module-level execution.
- Remove the any('Deprecated' in e ...) reporting smell; per-check
  pass/fail now derived from returned Issue lists, not string inspection.
- Add explicit check registry tuple in main() — the manifest of what
  validation means is now visible at a glance.
- Separate report() function prepares for --format json without redesign.
- Move MERMAID_TYPES to module-level configuration alongside other constants.
- Behavioral specification preserved: exit 0, same error messages.
- Pyright: 0 errors, 0 warnings.

Also fixes two Mermaid edge label parse errors caught by the improved
validator from the previous session:
  projects/magnetflix/README.md: quote |gRPC Event Stream (SSE)|
  projects/homelab/guides/mail-deliverability-rdns-relay-guide.md:
    quote |Encrypted TLS (587)| and |Port 25 (In & Out)|
2026-09-26 05:18:51 -05:00
..