From 1eb090d407064b19798633912e32de0ef8eaf446 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 16 Nov 2026 23:12:51 +0100 Subject: [PATCH] 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. --- .../cmd/mesh-delivery-checker-tools/main.go | 2 +- modules/mesh-delivery-pipeline/internal/pipeline/verbs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mesh-delivery-checker/cmd/mesh-delivery-checker-tools/main.go b/modules/mesh-delivery-checker/cmd/mesh-delivery-checker-tools/main.go index 01dc5825..eceea22b 100644 --- a/modules/mesh-delivery-checker/cmd/mesh-delivery-checker-tools/main.go +++ b/modules/mesh-delivery-checker/cmd/mesh-delivery-checker-tools/main.go @@ -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}) }) }}} } diff --git a/modules/mesh-delivery-pipeline/internal/pipeline/verbs.go b/modules/mesh-delivery-pipeline/internal/pipeline/verbs.go index 6966b6f6..b12a19f7 100644 --- a/modules/mesh-delivery-pipeline/internal/pipeline/verbs.go +++ b/modules/mesh-delivery-pipeline/internal/pipeline/verbs.go @@ -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