IW-690: ci-gate --expected-head #763
No reviewers
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!763
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-690"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
iw ci-gategets an optional flag,--expected-head SHA. The caller gives the full commit id of the head that it pushed. The gate then judges only that head: a reading of any other head is not judged, the gate keeps waiting, and the wait times out if the forge never reports that head. Without the flag, the behaviour does not change.This lets kanon
awaitCistop a stale-head judgement after a ci-fix push, so a stale red does not use up a recovery attempt.Changes
core/model/CiGate.scala: purefullCommitIdvalidation (40 or 64 hex characters, any case, normalised to lower case).core/commands/CiGateCommand.scala: the flag, validation as the first step ofresolve(exit 1 with a clear error, no other work), value passed intoCiGateTarget.expectedHead; help and exit-code text updated.docs/api/CiGate.md: flag documented.CiGateTest), harness (CiGateCommandHarnessTest), BATS smoke (test/ci-gate.bats).Testing
Review packet:
project-management/issues/IW-690/review-packet.md.Follow-up filed: #762.
Release notes
See
project-management/issues/IW-690/release-notes.md(Czech).🤖 Generated with Claude Code
Closes #690
Issue: IW-690 Phase: 1 - ci-gate --expected-head This commit marks the checkpoint for phase 1 context generation. Use wf-implement IW-690 to return to this point. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>ci-gate --expected-head Artifacts: - phase-01-tasks.md 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>