mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
18 lines
536 B
Bash
18 lines
536 B
Bash
#!/usr/bin/env bats
|
|
|
|
@test "root contract routes the single-pass product boundary" {
|
|
repo_root="$(cd "$BATS_TEST_DIRNAME/../.." && pwd)"
|
|
contract="$repo_root/AGENTS.md"
|
|
[ -f "$contract" ]
|
|
|
|
for required in \
|
|
"RPI -> Plan -> Implement -> fresh Validate -> durable verdict -> report and stop" \
|
|
"It owns no retry" \
|
|
"fresh independent judgment" \
|
|
"docs/architecture/operating-loop.md"; do
|
|
grep -Fq -- "$required" "$contract"
|
|
done
|
|
|
|
! grep -Eq 'AUTO-REDO|HOLD|ANDON|ao land|next-work|Plan-Pawl' "$contract"
|
|
}
|