Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions tests/rulebook_cap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,12 @@ else
echo " ok: old high-risk approval wording absent"
fi

for marker in "authority is the owner's own words" "transcribes them verbatim in the note" "never originates one" "Editing the spec" "Unclassified or ambiguous work is high-risk" "nothing may classify it as lighter"; do
if grep -Fq -- "$marker" CLAUDE.md; then
echo " ok: high-risk invariant clause present: $marker"
else
echo " FAIL: high-risk invariant clause missing from CLAUDE.md: $marker"
fails=1
fi
done

if grep -Fq -- "and stops wherever a gate stops it (HALT, a spent cap, any human-required approval)." CLAUDE.md; then
echo " FAIL: old autonomy-grant wording remains in CLAUDE.md"
fails=1
else
echo " ok: old autonomy-grant wording absent"
fi

for marker in "Under an autonomy grant the orchestrator finishes the job itself instead of pausing for owner" "answers findings under rule 3" '`ci` green' 'merges to `ready-for-main` through the' 'gated `./scripts/dispatch merge` or `dispatch integrate`' 'to `main` where granted' 'never a bare `gh pr merge`' "spent cap or stop-early" "rule-3 re-scope" "PROCEEDS" "telling the owner" "only HALT" "human-required act stops it" "a rule is never itself the blocker"; do
if grep -Fq -- "$marker" CLAUDE.md; then
echo " ok: autonomy-grant invariant clause present: $marker"
else
echo " FAIL: autonomy-grant invariant clause missing from CLAUDE.md: $marker"
fails=1
fi
done

[ "$fails" -eq 0 ] && echo "PASS rulebook_cap.sh" || echo "FAIL rulebook_cap.sh"
exit "$fails"
Loading