Hand acts name their cause: the runner's write verbs and the checker's requests drop #234

Merged
mesh-tools merged 1 commits from fix/hand-acts-name-their-cause into main 2026-11-16 22:13:05 +00:00
2 changed files with 2 additions and 2 deletions
@@ -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