Files
kiskaadee b51c7d0c60 refactor(skills): retire legacy Gitea skills and update installer and tests
- skills/: remove retired legacy directories gitea-plan, implement-slice, verify-slice, and gitea-pr replaced by GitHub-native projects, implement, and verify
- install.sh: update ACTIVE_PORTABLE_SKILLS and OBSOLETE_SKILLS, drop stale gt warning block from check_prerequisites, return exit 1 from check when missing > 0, and prune repo-scoped dangling symlinks under $SCRIPT_DIR/skills/*
- tests/fixtures/test_skills_behavioral_contracts.py: retire WorkflowNode/WorkflowEngine mocks and Gitea-only assertions, update all 8 legacy contract blocks for GitHub-native skills, and add coverage for projects, implement, code-review, verify, and isolated install.sh behavior
- tests/fixtures/run_regression.sh: run both test_skills_behavioral_contracts.py and test_build_review.py via python3 -m unittest and update Step 3 grep checks to target projects, implement, code-review, and gt-usage
2026-11-25 15:07:37 -05:00

42 lines
1.9 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 -m unittest "${SCRIPT_DIR}/test_skills_behavioral_contracts.py" "${SCRIPT_DIR}/test_build_review.py" -v
# 3. Qualitative Dogfood Protocol Verification
echo
echo "--- [3/3] Validating Clean-Room Reproducibility & Contract Protocols ---"
# Verify that projects references clean-room audit schema
grep -q "Independent Zero-Context Reproducibility Audit" "${REPO_ROOT}/skills/projects/references/tiers-and-audit.md"
grep -q "Auditor Report Schema" "${REPO_ROOT}/skills/projects/references/tiers-and-audit.md"
# Verify that implement defines preflight working-tree classification
grep -q "CLEAN_BASE" "${REPO_ROOT}/skills/implement/references/preflight.md"
# Verify that code-review defines cr-review-meta provenance marker
grep -q "cr-review-meta" "${REPO_ROOT}/skills/code-review/references/finding-schema.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 "=========================================================="