commit-check Official

Verifies a commit landed since the spec started by comparing HEAD against the spec-start marker.

Star on GitHub Add to a graph

commit-checkNodes in order: commit-check.commit-check (check)commit-checkcommit-checkNodes in order: commit-check.commit-check (check)commit-check
Kind
node
Name
commit-check
Ref
main
Stars
0 stars
Install
canopy node install commit-check
Report
Report

What this runs

Runs 1 shell commands and 0 agent instructions on your machine.

node "commit-check"

test "$(git rev-parse HEAD)" != "{{spec_start_head}}"

README

commit-check

What this node is for: the proof step after a committer. It verifies a commit landed since the spec started by comparing HEAD against the spec-start marker.

Config: the command only. No platform, model, or cli bindings.

What the installer must fill in: nothing for the basic form. For the stronger "this run's own committer landed a commit" check — immune to a concurrent commit from outside the run — switch the command to the committed-head form:

test -n "{{spec_committed_head}}" && test "$(git rev-parse HEAD)" = "{{spec_committed_head}}"

That form requires a node with commit rights earlier in the graph.

Install:

canopy node install commit-check