codescout icon indicating copy to clipboard operation
codescout copied to clipboard

Tool-doc gate: also check long_docs(), not only description()

Open mareurs opened this issue 2 months ago • 1 comments

What: tool_descriptions_name_every_action_they_claim_to_enumerate in src/server.rs makes sure each tool's description() names every value of its action enum. It doesn't look at long_docs(), so if a tool's long docs stop mentioning one of its actions, nothing catches it.

Task: extend the check to long_docs() for the tools that override it.

How you'll know it works: temporarily delete one action (for example refresh_anchors) from memory's long_docs(). The test must go red, and name the tool. Put it back and it's green. Please include that red→green check in the PR description.

Start here: the test's doc comment explains why the gate exists, so read it first. Full context in the bug file: docs/issues/2026-09-24-residual-memory-tool-doc-gate-reads-long-docs.md.

Base your branch on a fresh origin/experiments.

mareurs avatar Sep 24 '26 19:09 mareurs

I'll take this one.

vmaneata avatar Sep 25 '26 06:09 vmaneata