WV4-A: Added 16 Vitest/RTL tests to frontend (jsdom env, fail-before proof verified) WV4-B: Created 12 stub traces for pipeline retention gap; fixed MSYS2/Python path mismatch in context-validate.sh; run-casan4-harness-tests.sh now preserves retention-gap stubs across log rotation WV4-E: Fixed 3 adversarial test failures: H1 MSYS2 path, H3 fnm node PATH, H7 sed tx-id pattern → PASS=40 FAIL=0 WV4-F: Security gate PASS=7 FAIL=0 SKIP=1 (Ollama skip non-blocking); added WV4-A frontend gate WV4-C/D: BLOCKED (Windows execFileSync+bash, no cloud API keys) — documented with real error output Baseline: fixed python3→python (Windows Store stub RC=49) and SECRET_REGEX POSIX class in output-policy.yaml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
937 B
Bash
Executable File
26 lines
937 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Verify CASAN Level 5 shared harness reuse across more than one project.
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
|
|
REGISTRY="$PROJECT_ROOT/.specify/level5/project-registry.json"
|
|
PACKAGE="$PROJECT_ROOT/.specify/level5/harness-package.json"
|
|
|
|
python - "$REGISTRY" "$PACKAGE" <<'PY'
|
|
import json
|
|
import sys
|
|
registry = json.load(open(sys.argv[1], encoding="utf-8"))
|
|
package = json.load(open(sys.argv[2], encoding="utf-8"))
|
|
name = package["package"]
|
|
version = package["version"]
|
|
projects = [
|
|
p for p in registry["projects"]
|
|
if p.get("harness_package") == name and p.get("harness_version") == version
|
|
]
|
|
if len(projects) < 2:
|
|
raise SystemExit(f"HARNESS_REUSE_INSUFFICIENT package={name} version={version} count={len(projects)}")
|
|
print(f"HARNESS_REUSE_VALID package={name} version={version} project_count={len(projects)}")
|
|
PY
|