generated from coulomb/repo-seed
Some checks failed
validate-registry / validate (push) Has been cancelled
Activate WP-0003 and WP-0004. Add tools/effective_config.py (deterministic, order-independent override-path resolver — path only, never a value) and tools/config_explain.py + `make explain` to render the layer path, winning layer, validator, owner, consumers, and secret references for any surface.*. Verified on all 4 seeded surfaces; order-independent; no values/secrets leak. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
30 lines
1.1 KiB
Makefile
30 lines
1.1 KiB
Makefile
# config-atlas — registry validation gate (ATLAS-WP-0002-T06)
|
|
# Markdown-first repo: no build/run, only validation and the explain tool.
|
|
|
|
.PHONY: validate validate-schema validate-reuse validate-whitespace explain
|
|
|
|
# Effective-config override path for a surface (ATLAS-WP-0004).
|
|
# make explain SURFACE=surface.infotech.state-hub.api-config
|
|
explain:
|
|
@python3 tools/config_explain.py $(SURFACE)
|
|
|
|
# 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
|