Skip to content

chore: docs/ prose-only gate (Makefile target + CI step)#5

Merged
rafael5 merged 1 commit into
mainfrom
chore/docs-prose-gate
May 11, 2026
Merged

chore: docs/ prose-only gate (Makefile target + CI step)#5
rafael5 merged 1 commit into
mainfrom
chore/docs-prose-gate

Conversation

@rafael5
Copy link
Copy Markdown
Collaborator

@rafael5 rafael5 commented May 11, 2026

Summary

Adds make check-docs-prose as a cross-repo guardrail: docs/ holds only human-readable prose (.md, .markdown, images, .gitkeep). Non-prose artifacts — generated data, JSON/TSV output, copy-paste examples, scaffolding templates — belong under dist/, examples/, templates/, or a top-level domain-specific directory.

Why

After the Phase 0 cross-repo cleanup (m-standard PR #6, m-cli PR #9, m-stdlib PR #4) it became clear the recurrence risk is at the human-curation layer — no Python tool wrote to docs/; the violations were one-time commits. A simple find-based gate prevents future regressions without depending on agent attention.

Same target lands in all four repos so any future contributor (or future automation) gets a consistent fail-fast signal.

Wiring

  • Makefile: new check-docs-prose target; added to .PHONY list.
  • CI: new step in the existing m-stdlib job, sitting alongside the existing engine-free drift gates (manifest-check / skill-check / doctest-check). Engine-free, ~50ms find.

Test plan

  • make check-docs-prose green locally (m-stdlib's docs/ is already prose-only)
  • CI green on this PR

Adds make check-docs-prose as a cross-repo guardrail: docs/ holds only
human-readable prose (.md, .markdown, images, .gitkeep). Non-prose
artifacts — generated data, JSON/TSV output, copy-paste examples,
scaffolding templates — belong under dist/, examples/, templates/, or
a top-level domain-specific directory.

Wires into CI alongside the existing engine-free drift gates
(manifest-check / skill-check / doctest-check). Engine-free, fast,
find-based. Currently green (m-stdlib's docs/ is already prose-only —
this is preventive, not corrective).
@rafael5 rafael5 merged commit f54b78c into main May 11, 2026
2 checks passed
@rafael5 rafael5 deleted the chore/docs-prose-gate branch May 11, 2026 00:31
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.

1 participant