Artifact 4953859039c86a6d2a082ea4c6f9cb840649dddeb16a376856855fad1768a74f:
- File
Makefile
— part of check-in
[11f47eadde]
at
2026-11-18 11:58:22
on branch trunk
— Record S0/S1 qualification groundwork before product code
Contract maps and pinned Pi reference, local C qualification fixtures, MC/DC and Fil-C remote lifecycle tooling, and the context transaction substrate probe. No product harness code yet. (user: dmestas, size: 2648) [annotate] [blame] [check-ins using]
# S0 qualification fixtures only. No production harness or runtime binary exists yet.
CC ?= cc
PYTHON ?= python3
export CC
.PHONY: all check metadata test test-reporting replay dst sanitize coverage-mcdc \
fuzz-smoke bench filc-remote qualify help assertion-guard local-evidence test-context test-context-sanitize test-remote
all: check
check: metadata test-reporting replay coverage-mcdc assertion-guard test-remote
@printf '%s\n' 'PASS: local S0 infrastructure checks; production contracts remain NOT RUN.'
metadata:
$(PYTHON) -I -B test/test_contracts.py
$(PYTHON) -I -B tools/check_contracts.py
test-reporting:
$(PYTHON) -I -B test/test_toolchain.py
test:
sh tools/test-native.sh normal
# The normal suite includes the fixed 100-seed deterministic replay campaign.
dst: test
replay: test
sh tools/test-native.sh replay
sanitize:
sh tools/test-native.sh sanitize
coverage-mcdc:
sh tools/mcdc.sh
assertion-guard:
sh tools/test-assertions.sh
fuzz-smoke:
sh tools/test-native.sh fuzz
bench:
sh tools/benchmark.sh
test-context:
sh test/context/test-driver.sh normal
test-context-sanitize:
sh test/context/test-driver.sh sanitize
test-remote:
sh test/test_remote_lifecycle.sh
$(PYTHON) -I -B test/remote/test_collect.py
# Run actual local gates before snapshotting metadata; never reuse a stale PASS.
local-evidence:
mkdir -p build/qualification
rm -f build/qualification/local-evidence.json
$(MAKE) check sanitize fuzz-smoke bench > build/qualification/local-checks.log 2>&1
$(PYTHON) -I -B tools/evidence.py --log build/qualification/local-checks.log
$(PYTHON) -I -B tools/check_contracts.py --evidence build/qualification/local-evidence.json
# Remote evidence gate; actual host operations remain explicit.
filc-remote:
@test -n "$(REMOTE_RUN)" || { printf '%s\n' 'GATED: supply REMOTE_RUN=/absolute/completed/filc-run; see docs/remote-lifecycle.md'; exit 2; }
sh tools/remote/run.sh reconcile "$(REMOTE_RUN)" > "$(REMOTE_RUN)/operator-reconcile.log"
$(PYTHON) -I -B tools/remote/report.py "$(REMOTE_RUN)"
$(PYTHON) -I -B tools/check_contracts.py --evidence "$(REMOTE_RUN)/qualification.json"
qualify: check sanitize fuzz-smoke bench
@printf '%s\n' 'GATED: local fixture evidence is not release qualification.' \
'Production runtime/release contracts remain unqualified; remote fixture evidence is a separate explicit gate.'
@exit 2
help:
@printf '%s\n' 'S0 only: check, metadata, test, dst, replay, sanitize, coverage-mcdc,' \
'fuzz-smoke, bench, test-context, test-context-sanitize, test-remote.' \
'filc-remote verifies an explicit REMOTE_RUN; full production qualify remains GATED.'