Commit Graph

1 Commits

Author SHA1 Message Date
Bo 8ca18733aa feat(scripts): verified-rebase.sh — catch the rebase --continue silent-failure (soc-e9n6 #verified-rebase-script) (#434)
P2 agentops-core fix. The verified_rebase pattern (catches `git rebase
--continue` returning 0 while stuck/dropping a commit — the #337/#344
no-op-push pathology) lived only inline in cron prompts. Promoted to a
reusable script.

- scripts/verified-rebase.sh (NEW): continue-if-in-progress, then assert
no-rebase-in-progress + HEAD-subject==expected; exit 2/1/0
- tests/scripts/verified-rebase.bats (NEW): missing-arg, no-rebase
match, HEAD-mismatch catch, + real
rebase-conflict→resolve→continue→verified

How tested: bats 4/4 (incl. real rebase --continue conflict); shellcheck
clean.
Sibling: scripts/*.sh + tests/scripts/*.bats pairs.

NOTE: claude-review infra-red (weekly limit, resets May 25) —
operator-authorized bypass when sole red.

Closes-scenario: soc-e9n6#verified-rebase-script
Bounded-context: BC5-Runtime
Evidence: scripts/verified-rebase.sh
2026-05-23 00:54:37 -04:00