Skip to content

fix(cli): bound searches and keep reviews productive - #363

Merged
Patel230 merged 1 commit into
mainfrom
fix/cli-review-tools
Nov 3, 2026
Merged

Patel230 merged 1 commit into
mainfrom
fix/cli-review-tools

Conversation

@Patel230

@Patel230 Patel230 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Repository searches could expose sensitive files, print compiled binary data, consume unbounded memory, and continue after cancellation. Grep now filters sensitive paths and nonregular files, rejects binaries and files above 10 MiB, checks cancellation during traversal and scanning, and caps line previews and total results. CLI output explains skipped files and truncated searches.

Named Go build diagnostics such as go env GOTOOLCHAIN GOFLAGS GOROOT now work through Bash and /run. The exception is restricted to literal diagnostic names in each shell segment; bulk environment dumps, credential-bearing Go settings, mutations, expansions, and appended dump commands remain blocked.

Long reviews no longer stop at a hidden 500K cumulative input/output ceiling. Explicit session budgets still apply, and prompt growth only triggers the detector when tool activity declines. Stops give a short reason and explain how to continue in the current conversation instead of printing a debug recommendation to discard context.

Validation: all 156 Go packages passed with the race detector; CLI /run regression tests passed with the race detector; formatting, vet, architecture boundaries, lint (zero issues), and build passed. Regression tests cover sensitive-file filtering, binary/size/output bounds, cancellation before and during search, environment-dump bypass attempts, reviews exceeding 500K tokens, and terminal stop events.

reflect verify also passed all 156 Go package checks. Its overall result remains failed because the existing local security event log has a broken hash chain at entry 200; this change does not modify historical audit records.

@Patel230
Patel230 merged commit 46a96f3 into main Nov 3, 2026
23 checks passed
@Patel230
Patel230 deleted the fix/cli-review-tools branch November 3, 2026 17:12
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