You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(frontmatter): add validator command and pre-commit rollout #2281
Split from #2266 after its mandated first profile-slice boundary review. This follow-up owns only T7-T8.
Scope
Provide the validator command surface for explicit file or directory paths, --staged, and manual whole-tree validation. Preserve the repository CLI output contract: no stdout, NDJSON diagnostics on stderr, and exit codes 0 for success, 1 for validation or runtime failure, and 2 for invalid invocation. Integrate the command with pre-commit and provide fixture, mutation, and manual portability proof.
Acceptance Criteria
The command supports explicit file or directory paths, --staged, and a documented manual whole-tree mode.
The command emits no stdout; diagnostics are stable NDJSON on stderr with source path, category, severity, field path when applicable, and actionable explanation.
Exit codes are 0 for success, 1 for validation or runtime failure, and 2 for invalid invocation.
Pre-commit invokes the validator as a named, read-only step; CI and other integration tiers are not added.
Accepted/rejected fixtures and mutation cases cover representative field, scalar, allowed-value, reference, lifecycle, and path failures within the command boundary.
Manual portability evidence demonstrates focused, staged, whole-tree, and pre-commit use without network access, including no-stdout behavior.
Focused tests and relevant repository quality checks pass.
The state this issue starts from, at developfa698c43 (2026-09-24). No gate runs a frontmatter-validator binary today.
Hooks. Neither the pre-commit STEPS (contrib/dev-tools/git/hooks/pre-commit.sh:51-60) nor the pre-push STEPS (contrib/dev-tools/git/hooks/pre-push.sh:45-50) names it.
Workflows. No file under .github/workflows/ names it.
Tests. The crate's 69 #[test] functions run with the workspace test suite: the pre-push cargo +stable test … --workspace and the testing.yamlunit job.
This issue adds a named pre-commit step. Its Out of Scope section (body lines 20-21) lists:
"JSON Schema generation, its tracked artifact, regeneration, and drift verification"
"CI, pre-push, nightly, release, or agent-policy integration"
With both excluded, no open thread in the capture of 2026-09-24T11:03Z places frontmatter-schema -- check in a gate. The same holds for any CI run of the validator.
Questions:
Does the planned pre-commit step also run the schema drift check, or does a different issue own that?
Activity
Merge #2287: feat(frontmatter): [#2266] add structural validator model
Merge #2325: feat(frontmatter-validator): [#2280] generate v1 schema …
da2ce7 commentedon Sep 24, 2026
The state this issue starts from, at
developfa698c43(2026-09-24). No gate runs afrontmatter-validatorbinary today.STEPS(contrib/dev-tools/git/hooks/pre-commit.sh:51-60) nor the pre-pushSTEPS(contrib/dev-tools/git/hooks/pre-push.sh:45-50) names it..github/workflows/names it.cargo run --offline --package frontmatter-validator --bin frontmatter-schema -- check(docs/schemas/README.md:18-22). It came from feat(frontmatter): generate v1 schema and verify drift #2280 (closed 2026-09-24) and feat(frontmatter-validator): [#2280] generate v1 schema and verify drift #2325.#[test]functions run with the workspace test suite: the pre-pushcargo +stable test … --workspaceand thetesting.yamlunitjob.This issue adds a named pre-commit step. Its Out of Scope section (body lines 20-21) lists:
With both excluded, no open thread in the capture of 2026-09-24T11:03Z places
frontmatter-schema -- checkin a gate. The same holds for any CI run of the validator.Questions:
docs(issues): [torrust#2281] record spec approval and spec-only PR to…
docs(issues): [torrust#2281] quote issue references in the validator …
docs(issues): [torrust#2281] define the validator NDJSON record catalog
docs(issues): add issue specification for torrust#2281
docs(issues): [torrust#2281] record progressive legacy-spec migration…
docs(issues): [torrust#2281] close strictness gaps and migrate open E…
docs(issues): [torrust#2281] record spec approval and spec-only PR to…
docs(issues): [torrust#2281] quote issue references in the validator …
docs(issues): [torrust#2281] define the validator NDJSON record catalog
Merge #2337: docs(issues): [#2281] add frontmatter validator command …
102 remaining items
docs(issues): [torrust#2281] keep review evidence rebase-safe
docs(issues): [torrust#2281] keep review history rebase-safe
fix(frontmatter): [torrust#2281] address PR review findings
fix(frontmatter): [torrust#2281] honour the pre-commit hook index in …
Merge torrust#2357: feat(frontmatter): [torrust#2281] add frontmatter…
chore(issues): archive closed issue torrust#2281 spec to docs/issues/…
Merge #2364: chore(issues): [#2281] archive closed issue spec
docs(issues): [torrust#2003] correct the torrust#2281 status and the …
docs(issues): [torrust#2003] overhaul the EPIC specification after th…
docs(issues): [torrust#2003] overhaul the EPIC specification after th…
docs(issues): [torrust#2003] overhaul the EPIC specification after th…
docs(issues): [torrust#2003] overhaul the EPIC specification after th…
docs(issues): [torrust#2003] overhaul the EPIC specification after th…
Merge #2557: chore(issues): [#2243] archive the #2244 spec and close …