- author deterministic behavioral test suite in tests/fixtures/run_regression.sh - test prerequisite guidance for missing gt CLI - test anti-hallucination querying rules and --json enforcement - test adaptive proportionality scaling between docs and code - test canonical 5-tuple workflow node schema and dynamic Mermaid projection - test security invariant verification seams - test rework routing to live worker subagents - test execution deviation reporting on skipped checks - test strict zero-mutation invariants for --dry-run - test skill inventory, line count caps (<= 80), em-dash absence, and path portability - document qualitative dogfooding evaluation and Gitea lessons in tests/DOGFOOD.md - update README with Behavioral Regression Testing section Closes #13
40 lines
1.8 KiB
Bash
Executable File
40 lines
1.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# run_regression.sh - Deterministic behavioral contract test runner for kiskaadee/skills
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
|
|
|
echo "=========================================================="
|
|
echo " Running Skills Ecosystem Behavioral Contract Tests"
|
|
echo " Target Root: ${REPO_ROOT}"
|
|
echo "=========================================================="
|
|
|
|
# 1. Run install.sh check on current environment
|
|
echo
|
|
echo "--- [1/3] Verifying Skills Installation & Symlinks ---"
|
|
"${REPO_ROOT}/install.sh" check
|
|
|
|
# 2. Run Python deterministic behavioral contracts suite
|
|
echo
|
|
echo "--- [2/3] Running Behavioral Contract & Invariant Tests ---"
|
|
python3 "${SCRIPT_DIR}/test_skills_behavioral_contracts.py" -v
|
|
|
|
# 3. Qualitative Dogfood Protocol Verification
|
|
echo
|
|
echo "--- [3/3] Validating Clean-Room Reproducibility & Deviation Protocol ---"
|
|
# Verify that gitea-plan references clean-room audit schema
|
|
grep -q "Independent Zero-Context Reproducibility Audit" "${REPO_ROOT}/skills/gitea-plan/references/decomposition-tiers.md"
|
|
grep -q "Auditor Report Schema" "${REPO_ROOT}/skills/gitea-plan/references/decomposition-tiers.md"
|
|
# Verify that implement-slice defines tripartite schema
|
|
grep -q "The Tripartite Workflow Contract Schemas" "${REPO_ROOT}/skills/implement-slice/references/handoff-contracts.md"
|
|
# Verify that gt-usage defines project column move recipe
|
|
grep -q "Move issue card between columns" "${REPO_ROOT}/skills/gt-usage/references/commands.md"
|
|
|
|
echo "Clean-room reproducibility and deviation protocols verified."
|
|
|
|
echo
|
|
echo "=========================================================="
|
|
echo " All behavioral contract and regression tests PASSED (exit 0)"
|
|
echo "=========================================================="
|