Skip to content

v1.1.1: broad-search clarify gate - #15

Merged
mrzturn merged 4 commits into
mainfrom
dev
Sep 17, 2026
Merged

mrzturn merged 4 commits into
mainfrom
dev

Conversation

@mrzturn

@mrzturn mrzturn commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Broad-search clarify gate: a main session's first whole-project search (unscoped glob **, pathless grep, recursive rg/grep -r/find/fd) is denied once with an ask-first marker question — the user is asked for more precise file/directory guidance; narrower guidance re-scopes the retry, no guidance re-runs it (passes once the ask completed)
  • Per-session latch with anti-deadlock fail-open; shell subagent sessions exempt; conservative detection (first pipeline segment only, value-flag operands skipped, exclusion globs never counted as paths)
  • Protocol §5 clause + jsonc search.clarify switch (default true); 10-case behavioral contract in test/search-clarify.test.ts

Test plan

  • bun test: 502 pass / 0 fail; bun run typecheck: clean

1. Deny a main session's first whole-project search (unscoped glob '**', pathless grep, recursive rg/grep -r/find/fd) with an ask-first marker question; narrower user guidance re-scopes the retry, no guidance re-runs it
2. Per-session latch: marker-question completion opens the gate, anti-deadlock fail-open after repeated denies, shell subagent sessions exempt
3. Protocol clause in agents-md section 5 + jsonc search.clarify switch (default true); bash detection cuts at the first pipeline segment and skips value-flag operands so exclusion globs are never mistaken for paths
@mrzturn
mrzturn merged commit 0195ef8 into main Sep 17, 2026
3 checks passed
@mrzturn
mrzturn deployed to release-publish September 17, 2026 13:58 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
release-publish — 0195ef80 Deployed Sep 17, 2026 by mrzturn via publish #18
github-pages — 0195ef80 Deployed Sep 17, 2026 by mrzturn via deploy #82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant