Files
boshu2__agentops/tests/scripts/test-render-intent-bead.sh
Bo 1d4c003e05 Cut plan: gate registry diet, legacy bash gate removal, CI collapse, pawl warm-service removal (#906)
## Summary
- **Wave 1** — remove the `always.wiring-closure` meta-gate, demote
`docs.skill-refs` to Full tier, delete 8 orphan scripts.
- **Wave 2** — delete the legacy bash pre-push gate (`pre-push-gate.sh`,
2,279 lines) and its parity machinery; collapse `validate.yml` from 18
jobs to 5.
- **Wave 3** — remove the pawl warm NTM standing service; the cold
review spine (pawl-review / pawl-verdict / pre-push check) is untouched.
- **Wave 4** — gate registry diet: cut 24 doctrine/meta check IDs and
~70 backing scripts/workflows/bats; trim nightly knowledge-cycle job.

Net: gate registry 112 → 83 checks (incl. main's additions), ~24k lines
of scripts/CI/bats deleted. Routine one-file fast gate now runs in ~19s.

## Test plan
- [x] `go build` / `go vet` / gates+goals+ports package tests green
- [x] `ao gate check --fast --scope range:origin/main..HEAD` — 66
passed, 0 failed, 1 skipped (199 changed files)
- [x] `validate-ci-policy-parity.sh` PASS; validate.yml / nightly.yml
parse
- [x] `regen-changed-scope --check` green; registry.json regenerated
- [x] Grepped tree for dangling references to every deleted script/check
ID

Made with [Cursor](https://cursor.com)

---------

Co-authored-by: boshu <241868352+boshu2@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-13 14:45:20 -04:00

47 lines
1.8 KiB
Bash
Executable File

#!/usr/bin/env bash
# practices: [bdd-gherkin, tdd]
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
TMP_DIR="$(mktemp -d)"
trap 'rm -rf "$TMP_DIR"' EXIT
TEXT_OUT="$TMP_DIR/intent.txt"
JSON_OBJ="$TMP_DIR/intent.json"
JSON_ARRAY="$TMP_DIR/intent-array.json"
"$ROOT/scripts/render-intent-bead.sh" \
--title "Loop shape helper smoke" \
--context bc-loop \
--scenario "Generated bead passes loop shape" \
--given "an operator has a non-trivial loop change" \
--when "the intent-bead helper renders a dry-run body" \
--then "the body contains BDD, bounded context, slice, and proof evidence" \
--slice "Render one compliant intent bead body" \
--proof "bash scripts/check-compile-health.sh" \
--write-scope "scripts/render-intent-bead.sh tests/scripts/test-render-intent-bead.sh" \
>"$TEXT_OUT"
grep -q "Labels: non-trivial,bc-loop,operating-loop,bdd,ddd,xp" "$TEXT_OUT"
grep -q "Given an operator has a non-trivial loop change" "$TEXT_OUT"
grep -q "First failing proof: bash scripts/check-compile-health.sh" "$TEXT_OUT"
"$ROOT/scripts/render-intent-bead.sh" \
--json \
--title "Loop shape helper smoke" \
--context bc-loop \
--scenario "Generated bead passes loop shape" \
--given "an operator has a non-trivial loop change" \
--when "the intent-bead helper renders a dry-run body" \
--then "the body contains BDD, bounded context, slice, and proof evidence" \
--slice "Render one compliant intent bead body" \
--proof "bash scripts/check-compile-health.sh" \
--write-scope "scripts/render-intent-bead.sh tests/scripts/test-render-intent-bead.sh" \
>"$JSON_OBJ"
jq -e '.labels | index("non-trivial") and index("bc-loop")' "$JSON_OBJ" >/dev/null
jq -s '.' "$JSON_OBJ" >"$JSON_ARRAY"
jq -e 'length == 1' "$JSON_ARRAY" >/dev/null
echo "test-render-intent-bead: PASS"