Skip to content

v0.1.20

@jefuriiij jefuriiij tagged this 06 Jun 04:46
Two guards added to the PreToolUse gate:

1. Query-shape pre-filter — patterns targeting markup, CSS attributes, or
   string literals are allowed before retrieval runs.
2. Symbol-hit requirement — RetrievalResult gains a `symbolMatched` flag;
   the scorer exposes `exactSym`. Gate only blocks when the query names the
   matched symbol exactly. Keyword/path-only confidence hits allow through.

Verified: genuine symbol lookups still block (fetchWith429Retry,
MAX_ROWS_PER_TABLE, verifyPin, SOCKET_AUTH_SECRET, seedCredentials).
Literal/attribute/CSS/path-only queries now allow without the wasted
graph_read redirect. No API, protocol, or policy-block change.

Adds gate + rank tests (tests/gate.test.ts new, tests/rank.test.ts
updated). Chips at roadmap #6 (fill vitest tests).
Assets 2
Loading