From 8a53f92e65e15540471502362c451a2936491023 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 16 Sep 2026 21:55:54 +0100 Subject: [PATCH 01/87] test(skills-embed): add failing gate for the configure-time embed step This gate verifies that: - generated/embedded_skills.h exists after configure - all skills/ and hooks/ files appear in the header - the header is byte-identical across two configures (determinism) - CMAKE_CONFIGURE_DEPENDS triggers on skill file changes Expected to fail until the CMake embed step is implemented. Co-Authored-By: Claude Haiku 4.5 --- test/regression.sh | 4 +++ test/skillsembedcheck.sh | 60 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100755 test/skillsembedcheck.sh diff --git a/test/regression.sh b/test/regression.sh index 324123d83..9485ff81d 100755 --- a/test/regression.sh +++ b/test/regression.sh @@ -183,6 +183,10 @@ printf '%s\n' "$mcpreq" | "$BIN" --mcp --no-stable >"$TMP/mcp_no" 2>/dev/null # incl. the documentation-not-attack precision case). Uses the same binary under test. if RIPWIRE_BIN="$BIN" bash "$ROOT/test/skillscan.sh" >/dev/null 2>&1; then ok "skill scan gate (test/skillscan.sh)"; else no "skill scan gate (test/skillscan.sh failed)"; RIPWIRE_BIN="$BIN" bash "$ROOT/test/skillscan.sh" 2>&1 | grep -i fail | head -4; fi +# 3j.1) skills embed step (configure-time) — run the dedicated gate (every skills/ and hooks/ file in +# generated header, deterministic across reconfigs, CMAKE_CONFIGURE_DEPENDS works). Uses build tree. +if bash "$ROOT/test/skillsembedcheck.sh" >/dev/null 2>&1; then ok "skills embed gate (test/skillsembedcheck.sh)"; else no "skills embed gate (test/skillsembedcheck.sh failed)"; bash "$ROOT/test/skillsembedcheck.sh" 2>&1 | grep -i fail | head -4; fi + # 3m) --html graph export (P2-A) — run the dedicated gate (valid self-contained HTML, ≥3 nodes, deterministic, # no external