Skip to content

fix: Correct finding merging, skill access, and runtime limits - #531

Merged
gricha merged 2 commits into
mainfrom
codex/benchmark-bug-fixes
Sep 22, 2026
Merged

gricha merged 2 commits into
mainfrom
codex/benchmark-bug-fixes

Conversation

@gricha

@gricha gricha commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Four bugs found while investigating benchmark cost:

  • Warden blocked access to its own skill reference files. It can now read them without opening access to unrelated files.
  • Merging sometimes erased separate bug reports. Different claims now stay separate.
  • Bad file splits could start a whole agent just for trailing blank lines. Splits now stay near useful boundaries and keep small blank tails together.
  • Helper model calls ignored response-length limits. Pi now passes those limits through.

The stricter merging can leave duplicate reports. Overall benchmark cost is still under investigation.

Preserve independent finding claims when synthesis proposes broad merge
groups. Allow Pi to read resolved skill resources while retaining path
confinement, honor structured-call output caps, and split diff chunks at
nearby logical boundaries without creating small blank-only tails.

Add regression coverage for the defects found during benchmark analysis.
Use conservative exact-claim merging so distinct evidence is not discarded;
differently worded duplicates may remain.

Co-Authored-By: GPT-6 <[email protected]>
Keep existing checkout reads available when a local skill reference links
to another repository file. Apply the extra skill-resource permission only
after checkout authorization, retaining rejection of external escapes.

Add a regression test using the real read tool and clarify the documented
exact-text requirement for merging findings.

Co-Authored-By: GPT-6 <[email protected]>
@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
warden-prod Skipped Skipped Sep 22, 2026 4:42pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – warden-prod September 22, 2026 16:42 Inactive
@gricha
gricha marked this pull request as ready for review September 22, 2026 16:42

@sentry-junior sentry-junior Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The merge guard preserves distinct claims and verification evidence, and the skill-resource access stays scoped without breaking existing checkout reads. The regression coverage includes symlink escapes and blank-tail splitting.

@gricha
gricha merged commit f45c340 into main Sep 22, 2026
22 checks passed
@gricha
gricha deleted the codex/benchmark-bug-fixes branch September 22, 2026 18:28
gricha added a commit that referenced this pull request Sep 30, 2026
Raise the output budget for deduplication and cross-location comparisons
from 512 to 8,192 tokens so reasoning models can finish their JSON
responses. Truncation now reports `output_limit` with the model, finish
reason, configured limit, and consumed tokens. Failed cross-location
consolidation also emits a warning.

#531 started enforcing previously ignored token limits. On
[sentry-python#7780](getsentry/sentry-python#7780),
Warden 0.50.0 exhausted the 512-token budget and fell back to hash
matching, posting repeated findings despite the semantic-matching fix in
#536.

Regression tests exercise all three comparison paths through the Pi
adapter using captured findings, retain an independent bug, and check
truncation diagnostics and telemetry. A local replay using the
production auxiliary model completed all seven comparisons at 8,192
tokens; the 512-token control truncated five. The replay absorbed the 14
duplicate initial findings and reduced four follow-up comments to one
new IPv6 finding, without posting to GitHub.

Co-authored-by: GPT-6 <[email protected]>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – warden — 398c9d4e Deployed Sep 22, 2026 by vercel[bot]
Preview – warden-prod — 398c9d4e Deployed Sep 22, 2026 by vercel[bot]
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