Conversation
Ports the CSDK-017/018 description-quality pair to the Google ADK. ADK-001 only checks that a docstring exists, so a tool whose docstring reads "TODO" or "Gets data." passes today while giving the model no selection signal. Two ADK-specific points. The ADK parses the docstring for the per-parameter descriptions that accompany the generated schema, so a placeholder or one-clause docstring strips argument-level guidance at the same time as tool-level guidance. And in an agent tree the mis-selection does not stay local: a tool picked wrongly inside one branch produces output the following agents treat as established fact, so the error is laundered into shared session state rather than surfacing where it began. ADK-102/107's before_tool_callback can block a call it recognizes as wrong but cannot supply the judgment the description was meant to give. Numbered ADK-115/116 to leave room for ADK-111 in the open PR trustabl#51 and the IDs used by my other open PRs.
|
Thanks @bradAGI, this is a clean port. Both predicates already exist on What I appreciated is that you did not just copy the Claude framing across. The docstring doing double duty for the per-parameter descriptions, and the point that Two non-blocking observations. A placeholder docstring under 40 characters will report under Before this ships it needs a rationale doc in |
Engine half of a coordinated pair with trustabl/agent-reliability-rules#89, on a branch of the same name so the rules-sync job resolves the matching pack rather than main. Neither half should merge alone — check-rules-sync.sh fails if they do. Mirrors google_adk/tool_definition.yaml into testdata/rules-fixture and adds cases to policyRuleCases, as TestPolicyRules_AllRulesCovered requires. Five cases rather than four. ADK-116 pairs description_length_lt with has_docstring so an absent docstring stays ADK-001's finding instead of double-reporting — an empty description is length 0, which is also under the threshold — and the fifth case is what pins that guard.
Ports the CSDK-017/018 description-quality pair (merged in #40) to the Google ADK. ADK-001 only checks that a docstring exists, so a tool whose docstring reads
"""TODO: describe this tool."""or"""Gets data."""passes today while giving the model no selection signal.Two ADK-specific points:
ADK-116 also names the mitigation people would reach for and why it isn't one: ADK-102 and ADK-107's
before_tool_callbackcan block a call it recognizes as wrong, but it can't supply the judgment the description was meant to provide. A callback doesn't compensate for a thin description.Numbered ADK-115/116 to leave room for ADK-111 in the open PR #51 and the IDs used by my other open PRs (#79, #86).
Verification — engine built at
main:Fire (one
FunctionTool-wrapped function with"""TODO: describe this tool.""", one with"""Gets data."""):ADK-115, ADK-116, ADK-201Silent (full docstring with an
Args:section):ADK-201ADK-116 pairs
description_length_lt: 40withhas_docstring: trueso it doesn't double-report against ADK-001 on an empty docstring, same as CSDK-018.No new predicates, so no
schema_versionbump.