Skip to content

[bug] quick-router: leading please on rain queries falls through to the LLM #934

Description

@kurosawareiji7007-hub

Summary

The rain branch of weather_request is start-anchored (is it rain / will it rain). A trailing please is already stripped from the location (will it rain in Seattle please). A leading please was never stripped, so polite rain forms fall through to the LLM. General weather queries that contain the word weather are unaffected (substring match), which makes the rain path the asymmetric miss.

Repro (on main)

utterance on main expected
Please will it rain ABSTAIN get_weather{location: home}
Please is it raining ABSTAIN get_weather{location: home}
Please will it rain in Seattle ABSTAIN get_weather{location: seattle}

Will it rain in Seattle please already routes today.

Root cause

weather_request rain arm uses starts_with. Leading please keeps the string from matching.

Proposed fix

Strip a leading please at the top of weather_request, mirroring #932 / #933 / #908 / #906 / #894. Do not change rain-tomorrow forecast semantics (#912/#913). Time-expression locations still resolve to home.

Acceptance

  • Leading-please rain forms route to get_weather
  • Trailing-please location cleaning unchanged
  • Focused regression test fails on main, passes with the fix
  • No prompt growth; 4096 Jetson contract untouched

Labels / scope

Tool-dispatch correctness (deterministic quick-router).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions