Skip to content

Commit 33e780e

Browse files
jpheinclaude
andcommitted
fix(auto-query): widen signal patterns to match natural recall phrases
The _EXPLICIT_RE pattern only matched "remind me" but not "remember", "did we get", "do you know", etc. Added: remember, did we/you, recall, check if/whether, was/were there. Also fixed palace-auto-query.sh: moved turn counter before pre-filter (turn-1 resumption needs TURN defined), widened shell grep to be a superset of Python signals. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9a1facf commit 33e780e

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

mempalace/auto_query/signals.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@
2727
# Explicit hint patterns (spec section 1.1.4)
2828
_EXPLICIT_RE = re.compile(
2929
r"\b(remind\s+me"
30-
r"|do\s+we\s+have"
31-
r"|did\s+we\s+ever"
32-
r"|what\s+did\s+we"
30+
r"|(?:do\s+you\s+)?remember"
31+
r"|do\s+(?:we|you)\s+(?:have|know)"
32+
r"|did\s+(?:we|you)(?:\s+ever)?"
33+
r"|what\s+(?:did|was|were)\s+(?:we|the)"
3334
r"|history\s+of"
3435
r"|prior\s+to"
3536
r"|earlier\s+we"
36-
r"|have\s+we\s+ever)\b",
37+
r"|have\s+we\s+ever"
38+
r"|recall"
39+
r"|was\s+there"
40+
r"|were\s+there"
41+
r"|check\s+(?:if|whether))\b",
3742
re.IGNORECASE,
3843
)
3944

0 commit comments

Comments
 (0)