graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
feat(spec): conformance gate in tier-1 and CI
Rach Pradhanf8fc0b15174d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex fad7f22a..34fb02c1 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -21,6 +21,9 @@ jobs:- name: Model-shape benchmark integrityrun: python3 benchmarks/test_model_shape.py+ - name: Spec kernel conformance (properties + fixture staleness)+ run: python3 spec/conformance.py+- name: Python SDK import smokerun: python3 -c "import sys; sys.path.insert(0, 'sdk/py'); import harness_sdk; assert harness_sdk.MODELS and harness_sdk.TOOLS; print('py sdk ok:', len(harness_sdk.MODELS), 'models')"diff --git a/scripts/eval-tier1.sh b/scripts/eval-tier1.shindex 9a6e1d82..da169047 100644--- a/scripts/eval-tier1.sh+++ b/scripts/eval-tier1.sh@@ -25,7 +25,7 @@ cd "$repo_root"# processes discover their repo from their cwd like they expect.unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_COMMON_DIR GIT_OBJECT_DIRECTORY GIT_PREFIX-CHECKS=(fmt lines reach build tests invariants sdk)+CHECKS=(fmt lines spec reach build tests invariants sdk)usage() {cat <<'EOF'@@ -34,6 +34,7 @@ usage: scripts/eval-tier1.sh [--only <check>] [--list]checks, in order:fmt zig fmt --check src build.ziglines scripts/check-zig-lines.sh (600-line ceiling, AGENTS.md)+ spec spec/conformance.py (kernel properties + fixture staleness)reach every file that declares tests is reachable from the test rootbuild zig buildtests zig build test, and the suite count never shrinks@@ -103,6 +104,19 @@ if wanted lines; thenfifi+# --- spec --------------------------------------------------------------+if wanted spec; then+ announce spec "spec/conformance.py — kernel properties + fixture staleness"+ # The Zig leg of the corpus already gates via `tests` (the conformance tests+ # embed the fixtures); this closes the triangle's other side pre-push: the+ # executable model's properties, and that the committed fixtures match it.+ if python3 spec/conformance.py; then :; else+ printf ' a kernel drifted: ratchet the model (lean-proofs/ + spec/ref/) or the impl,\n'+ printf ' then regenerate fixtures: python3 spec/conformance.py --export\n'+ record_fail spec+ fi+fi+# --- reach -------------------------------------------------------------if wanted reach; thenannounce reach "every declared test is actually COMPILED IN, not just imported"