Skip to main content

Module checkin

Module checkin 

Source
Expand description

Answering the comments other people left on a pull request.

Every other command here takes its input from the agents themselves. This one takes it from whoever wrote the comment, and its output is a git push, so the two-agent design stops being a quality argument and becomes the safety one: one agent’s pattern match must not reach somebody’s branch.

Three passes. The holder rules on every comment with the code checked out. The other agent reads the same comments and those rulings, goes to the code, and agrees or does not. Only what they agree on is acted on, and the disagreement rule is asymmetric on purpose: implementing takes both, declining takes one, so every disagreement resolves toward saying something rather than doing something.

Structs§

Mode
Settled
One comment, and what the pair decided about it.

Functions§

allowed
Implementing is impossible here whatever the agents agreed, so say so once rather than discovering it at the push.
checkin_comment
The one comment that answers everything with no thread of its own, and says what changed.
checkin_issue
checkin_pr
fenced
One comment as a prompt carries it, fenced so its own text cannot close the fence around it.
may_resolve
Whether spar may mark this thread resolved.
posts
Whether [style] pr_comments lets this command say anything.
settle
What spar does when the two agents do not say the same thing.
thread_reply
The reply that goes into one review thread.