config-atlas/Makefile

25 lines
875 B
Makefile
Raw Normal View History

# config-atlas — registry validation gate (ATLAS-WP-0002-T06)
# Markdown-first repo: no build/run, only validation.
.PHONY: validate validate-schema validate-reuse validate-whitespace
# Full gate run by agents and CI.
validate: validate-schema validate-whitespace validate-reuse
@echo "validate: all checks passed"
# Surface entries validate against the JSON Schema; index is consistent.
validate-schema:
@python3 tools/validate_registry.py
# No trailing whitespace / conflict markers in staged or working tree.
validate-whitespace:
@git diff --check HEAD -- . && echo "validate-whitespace: OK"
# Capability registry federation validation (skipped if reuse-surface absent).
validate-reuse:
@if command -v reuse-surface >/dev/null 2>&1; then \
reuse-surface validate --root . ; \
else \
echo "validate-reuse: reuse-surface CLI not on PATH — skipped" ; \
fi