From 4abb853400d72d72fe566c3414781ccbf5cbe66f Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 15 Nov 2026 23:54:17 +0100 Subject: [PATCH] assigner: assigner_written with why answers the wants' whys until the manifest naming assigner_why is taken in --- .../cmd/mesh-delivery-assigner/pipelines.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/pipelines.go b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/pipelines.go index 5003183f..03c481d2 100644 --- a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/pipelines.go +++ b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/pipelines.go @@ -344,8 +344,12 @@ func hearEnds(hub *process.EventHub, e *pipelineEnds) error { // writtenTools is the tool assigner_written: every key of the state written, with its end. func writtenTools(st store) []stdio.Tool { - return []stdio.Tool{{Name: writtenTool, Description: "the pipeline ends the assigner's wants follow: per module and watched branch, the source revision and end count of the newest end heard, whether it passed and whether the wants were written from it.", - Run: func(map[string]any) (any, error) { + return []stdio.Tool{{Name: writtenTool, Description: "the pipeline ends the assigner's wants follow: per module and watched branch, the source revision and end count of the newest end heard, whether it passed and whether the wants were written from it; with why, why each want is what it is (as assigner_why).", + Input: schema(map[string]string{"why": "true: why each want is what it is", "module": "with why: a module's name", "node": "with why: a node's name"}, nil, "why"), + Run: func(args map[string]any) (any, error) { + if args["why"] == true || args["why"] == "true" { + return whyTools(st)[0].Run(args) // a want's why (why.go), until the manifest naming assigner_why is taken in + } ks, err := st.keys(writtenState) if err != nil { return nil, err