Skip to content

Bound Decisions discovery requests with retained code evidence - #38

Merged
dkropachev merged 2 commits into
mainfrom
fix/31-bounded-code-suggestions
Oct 26, 2026
Merged

dkropachev merged 2 commits into
mainfrom
fix/31-bounded-code-suggestions

Conversation

@dkropachev

@dkropachev dkropachev commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Issue

Optional Decisions discovery (#31) embeds the complete PR patch and permalink index in one model request. Large PRs exceed the host input limit, and provider failures can echo the oversized prompt into the returned error.

Closes #31.

Fix

Retain the complete pinned patch, permalink ranges and existing decisions in private files, and pass a compact manifest for analysis through bounded reads. Require complete patch inspection before a whole-PR result. Preserve the plain suggest default of code discovery, and explain the scope and cost of optional whole-PR discovery in help and documentation. Discovery failures preserve existing choices and retain their code evidence for inspection.

Check serialized request size before launching the provider for Decisions code discovery. Redact echoed prompts and bound provider failure messages while preserving authentication and usage-limit handling. Synchronize the plugin version at 1.1.23.

Remove raw and JSON-escaped prompt echoes before classifying and bounding
provider errors, including text-capture newline normalization. Preserve
real authentication and usage-limit handling and adapter fallback context.

Add a serialized request-size check for callers while keeping unrelated
native requests accepted. Cover transport capture and error envelopes,
and synchronize the plugin release declarations at version 1.1.23.
Keep complete patches, permalink ranges and existing choices in private
files, then pass a compact manifest for bounded analysis reads. Require
complete patch inspection and reject changed PR refs before retention.

Preserve the plain suggest default of code discovery and document its
scope and cost. Apply serialized input preflight only to code discovery.
Retain bounded, redacted diagnostics and evidence paths for provider and
response-validation failures without changing recorded choices or cache.

Cover large-patch access, unavailable inspection and invalid replies
through controlled subprocesses and focused validation regressions.

Closes #31
@dkropachev
dkropachev force-pushed the fix/31-bounded-code-suggestions branch from a9cbd4b to 8c3bc8d Compare October 26, 2026 04:52
@dkropachev
dkropachev merged commit ae4f210 into main Oct 26, 2026
1 check passed
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.

dk-pr-decisions code suggestions exceed Codex input limits on large PRs

1 participant