feat(help): address madt_help by action, not only by whole tool #754
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#754
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
madt_helpis topic-dispatched, one topic per tool:topic="issues",topic="finish",topic="adr". That is already per-tool. But a fat action-dispatched tool makes one topic large. Theissuestopic runs about 600 lines, becausemadt_issueshas around 40 actions (ADR 0015). To confirm one action's params, such ascomment(number and body), I read the whole topic.Why it matters
Even after #716 puts the params in the schema, help stays the fallback for a non-obvious flag or an unfamiliar action. A 600-line read for one action's params is a large context cost for a small question, and it repeats every session. Smaller, scoped help is the cheaper default.
Proposal
Let
madt_helpaddress a single action or a small slice, not only a whole tool.topic="issues" action="comment"ortopic="issues.comment", returns only that action's summary, its required params, and one example.Relation to #716
A distinct axis. #716 makes the schema self-sufficient, so the help is not needed. This makes the help cheap to read when it still is. Both cut the same cost: a wasted round-trip, or a large read for a small question.