Skip to content
This repository was archived by the owner on Jul 15, 2026. It is now read-only.
This repository was archived by the owner on Jul 15, 2026. It is now read-only.

[P1] Recall-policy prompt instructs the model to call the unregistered tool lcm_expand_query #129

Description

@100yenadmin

Severity: P1 · Confidence: 95% · Found by: hermes-lcm architecture review (slice S6).

The bug

recall_policy.py builds LOSSLESS_RECALL_POLICY_PROMPT, injected into the context every turn, which instructs the model to call lcm_expand_query. That tool was deferred (ADR-012) and is not registered in tools/__init__.py's TOOL_SCHEMAS. describe.py / grep.py schema prose may also reference it. The model is told every turn to use a tool it cannot see.

Fix

Remove or conditionally-gate every lcm_expand_query reference in model-facing prose so v0.1.1 never advertises an unregistered tool. ADR-016's "byte-verbatim prose" rule yields here to "don't reference unregistered tools" — add an # ADR-012 provenance comment at each edit site. Add a test asserting every tool named in the recall-policy prose is in TOOL_SCHEMAS.

Target: v0.1.1 patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    architecture-reviewFound by the hermes-lcm architecture reviewbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions