Repository navigation
fix(probe): match plural stems and bound words in doc comments - #1293
Merged
Merged
Conversation
config-registry missed BRIEF_BYTES and PROSE_BRIEF_BYTES on "maximum
rendered byte budget" prompts: three compounding gaps kept them below
the top-4 cutoff.
- stems() now strips a trailing s (byte matches bytes, file matches files)
- BOUND_WORDS and MAX_WORDS add cap/caps ("Rendered size cap" is a bound)
- rank_bound reads comment_above like rank does, so a bound word in the
doc comment above a constant satisfies has_bound
Direct emit() now surfaces both constants; offline probe-test on all 11
bench questions shows no regression (28->28 calls, 13%->13% coverage).
Refs #906
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
LivioGama
enabled auto-merge (squash)
October 20, 2026 16:28
LivioGama
disabled auto-merge
October 20, 2026 16:29
Merged
LivioGama
added a commit
that referenced
this pull request
Nov 25, 2026
config-registry missed BRIEF_BYTES and PROSE_BRIEF_BYTES on "maximum
rendered byte budget" prompts: three compounding gaps kept them below
the top-4 cutoff.
- stems() now strips a trailing s (byte matches bytes, file matches files)
- BOUND_WORDS and MAX_WORDS add cap/caps ("Rendered size cap" is a bound)
- rank_bound reads comment_above like rank does, so a bound word in the
doc comment above a constant satisfies has_bound
Direct emit() now surfaces both constants; offline probe-test on all 11
bench questions shows no regression (28->28 calls, 13%->13% coverage).
Refs #906
Generated with [Devin](https://devin.ai)
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stems()strips trailingssobytematchesbytes,filematchesfilesBOUND_WORDSandMAX_WORDSaddcap/caps("Rendered size cap" is a bound declaration)rank_boundreadscomment_abovelikerankdoes, so a bound word in a doc comment satisfieshas_boundThe config-registry probe missed
BRIEF_BYTESandPROSE_BRIEF_BYTESon "maximum rendered byte budget" prompts due to three compounding gaps: no plural stemming (byte≠bytes), "cap" not recognized as a bound/max word, andrank_boundnot reading doc comments. All three fixed.Evidence
emit()call surfaces bothBRIEF_BYTES(2048) andPROSE_BRIEF_BYTES(3584) in top 4probe-test.py config-registry: 28→28 calls, 13%→13% coverage across 11 bench questions — no regressionlookupcase: pixel arm went from 3 tool calls (fishing for these constants) toward zero-callTest plan
lookupcase confirms zero tool calls with the rebuilt binaryRefs #906
Generated with Devin
Need help on this PR? Tag
@codesmith-botwith what you need.