Repository navigation
feat(frontmatter): [#2266] add structural validator model - #2287
josecelano merged 13 commits into
Conversation
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: 1
Open (4)
validate_reference_syntaxcan panic due toexpect(...)ifProfile::validateis called with a… · Newis_repository_relative_pathcurrently accepts backslash-separated paths (e.g.,docs\\ISSUE.md)… · New This error message doesn’t mention the double-quoted string requirement even though… · New The Progress Log entries are no longer in chronological order (a 2026-09-22 entry appears before… · New
What changed in this PR
Implements the structural portion of issue #2266 by introducing a non-published Rust workspace crate for extracting Markdown YAML frontmatter and validating the universal semantic-links envelope plus strict v1 issue/EPIC profiles, while updating the related issue/epic tracking docs.
Changes:
- Added
frontmatter-validatorworkspace crate with extraction + universal semantic-links validation and strict profile validation (issue/EPIC), including unit tests. - Updated #2266 issue spec and #2264 epic status/progress docs, plus added an agent review report log.
- Updated project word list to include
schemars.
| File | Description |
|---|---|
| project-words.txt | Adds schemars to repository word allowlist. |
| docs/issues/open/2266-2264-implement-rust-frontmatter-model-and-validator/agent-review-reports.md | Adds audit trail of independent reviews/corrections for #2266. |
| docs/issues/open/2266-2264-implement-rust-frontmatter-model-and-validator/ISSUE.md | Updates #2266 status, tasks, and progress log to reflect implementation + split follow-ups. |
| docs/issues/open/2264-2003-refactor-semantic-link-conventions/EPIC.md | Marks subissue #2266 as IN_PROGRESS. |
| contrib/dev-tools/checks/frontmatter-validator/src/profile.rs | Introduces strict v1 issue/EPIC profile models + invariants and reference validation. |
| contrib/dev-tools/checks/frontmatter-validator/src/lib.rs | Introduces frontmatter extraction, universal semantic-links envelope validation, and unit tests. |
| contrib/dev-tools/checks/frontmatter-validator/Cargo.toml | Adds new crate manifest for frontmatter-validator. |
| Cargo.toml | Adds frontmatter-validator to workspace members. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2287 +/- ##
===========================================
+ Coverage 84.86% 85.00% +0.14%
===========================================
Files 354 355 +1
Lines 31970 32284 +314
Branches 31970 32284 +314
===========================================
+ Hits 27130 27442 +312
Misses 4464 4464
- Partials 376 378 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
87f78cc to
e4d7da5
Compare
|
ACK e4d7da5 |
be3ee28 chore(issues): archive closed issue #2266 spec (Jose Celano) Pull request description: Archives the specification for already-closed issue #2266 from `docs/issues/open/` to `docs/issues/closed/`. - Verified GitHub issue #2266 is `CLOSED` after PR #2287 merged - Updated archived frontmatter to `status: done` and its closed `spec-path` - Repaired the parent EPIC’s live subissue link and marked #2266 `DONE` - Preserved historical workflow evidence and independent-review reports Validation: `TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh` ACKs for top commit: josecelano: ACK be3ee28 Tree-SHA512: 514baacfbe7fc5ef7a033d2446b0f093491879c93f85dc4cb4ccdf262cf12adef155a1da957ac19fcdb9e768a037712ce85fe987e270096e34b96a798ccd1843


Implements the structural Rust slice of #2266: a non-published
frontmatter-validatorworkspace crate with YAML frontmatter extraction, universal semantic-link envelope validation, strict v1 issue and EPIC profiles, frozen reference syntax validation, and explicit external-schema ownership.The extracted model retains ownership through profile validation so Agent Skill and agent-profile metadata remains externally governed while
metadata.semantic-linksis still checked.This update also repairs cargo-chef manifest-only staging for the new workspace crate, so container recipe preparation can load the complete workspace graph.
Schema generation and deterministic drift verification are intentionally split to #2280. Command modes, path discovery, NDJSON diagnostics, pre-commit integration, and manual/mutation evidence are intentionally split to #2281.
Validation:
TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.shcargo test --package frontmatter-validator(39 tests)cargo +nightly fmt --all -- --checkcargo clippy --package frontmatter-validator -- -D warningsdocker build --target recipe --file Containerfile .Closes #2266