Skip to content

Commit 381df75

Browse files
Sage HartSage Hart
authored andcommitted
feat(harness): two-tier verify contract and stub canary
Wire check-stub-canary into verify.sh and declare integration: null with hermetic_stop_only in profile disclosure.
1 parent c9791a4 commit 381df75

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

.harness/profile.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ requires:
2121
stop: verify-on-stop
2222
commands:
2323
verify: ./scripts/verify.sh
24+
integration: null
2425
bundles_applied:
2526
- cloud-guards
2627
- verify-on-stop
@@ -42,6 +43,8 @@ harness_disclosure:
4243
bundles_applied: []
4344
verify:
4445
cmd: ./scripts/verify.sh
46+
integration_cmd: null
47+
hermetic_stop_only: true
4548
stop_verify: project-verify-on-stop
4649
cloud_verify: null
4750
agents_md_lines: null

scripts/check-stub-canary.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
# DO_NOT_DELETE_STUB_CANARY
3+
set -euo pipefail
4+
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
5+
cd "$ROOT"
6+
if [[ -f scripts/verify.sh ]] && grep -q 'TODO: add real test' scripts/verify.sh; then
7+
echo "STUB_CANARY: placeholder verify.sh" >&2
8+
exit 1
9+
fi
10+
echo "check-stub-canary: ok"

scripts/verify.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ set -euo pipefail
44
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
55
cd "$ROOT"
66

7+
if [[ -x ./scripts/check-stub-canary.sh ]]; then
8+
./scripts/check-stub-canary.sh
9+
fi
10+
711
if command -v corepack >/dev/null 2>&1; then
812
corepack enable >/dev/null 2>&1 || true
913
corepack prepare npm@10.9.2 --activate >/dev/null 2>&1 || true

0 commit comments

Comments
 (0)