hand acts name their cause: the runner's write verbs and the checker's requests drop
mesh-hand-acts 0.1.13 refuses a hand act with no cause; the pipeline runner's record (cancel, rerun, accept, run, ask-again, review, start) and the checker tools' requests drop gave none, so every one was refused and nothing was done (runner_cancel, 2026-11-16 23:12: 96 of 96 refused). The cause is the verb's own word, the one a second act for the same reason uses.
This commit is contained in:
@@ -422,7 +422,7 @@ func RequestDropTools(s check.StateDrop, acts views.HandActs) []stdio.Tool {
|
||||
key, _ := args["check"].(string)
|
||||
why, _ := args["why"].(string)
|
||||
return check.DropRequests(s, key, why, func(what string) error {
|
||||
return acts.RecordHandAct(views.HandAct{What: what, Why: why, Verb: check.RequestsDropTool})
|
||||
return acts.RecordHandAct(views.HandAct{What: what, Why: why, Cause: "requests-drop", Verb: check.RequestsDropTool})
|
||||
})
|
||||
}}}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ func (v Verbs) record(verb, what, why string) error {
|
||||
if strings.TrimSpace(why) == "" {
|
||||
return fmt.Errorf("%s says why: nothing was done", verb)
|
||||
}
|
||||
if err := v.Acts.RecordHandAct(views.HandAct{What: what, Why: why, Verb: seat.Seat + "." + verb}); err != nil {
|
||||
if err := v.Acts.RecordHandAct(views.HandAct{What: what, Why: why, Cause: verb, Verb: seat.Seat + "." + verb}); err != nil {
|
||||
return fmt.Errorf("the hand act is not recorded, so nothing was done: %w", err)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user