Skip to content

fix(probe): match plural stems and bound words in doc comments - #1293

Merged
LivioGama merged 1 commit into
mainfrom
fix/config-registry-stemming
Oct 20, 2026
Merged

LivioGama merged 1 commit into
mainfrom
fix/config-registry-stemming

Conversation

@LivioGama

@LivioGama LivioGama commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • stems() strips trailing s so byte matches bytes, file matches files
  • BOUND_WORDS and MAX_WORDS add cap/caps ("Rendered size cap" is a bound declaration)
  • rank_bound reads comment_above like rank does, so a bound word in a doc comment satisfies has_bound

The config-registry probe missed BRIEF_BYTES and PROSE_BRIEF_BYTES on "maximum rendered byte budget" prompts due to three compounding gaps: no plural stemming (byte≠bytes), "cap" not recognized as a bound/max word, and rank_bound not reading doc comments. All three fixed.

Evidence

  • Direct emit() call surfaces both BRIEF_BYTES (2048) and PROSE_BRIEF_BYTES (3584) in top 4
  • Offline probe-test.py config-registry: 28→28 calls, 13%→13% coverage across 11 bench questions — no regression
  • Arena lookup case: pixel arm went from 3 tool calls (fishing for these constants) toward zero-call

Test plan

  • CI green
  • Live arena lookup case confirms zero tool calls with the rebuilt binary

Refs #906

Generated with Devin


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

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
LivioGama enabled auto-merge (squash) October 20, 2026 16:28
@LivioGama
LivioGama disabled auto-merge October 20, 2026 16:29
@LivioGama
LivioGama merged commit acb54b0 into main Oct 20, 2026
16 checks passed
@LivioGama
LivioGama deleted the fix/config-registry-stemming branch October 20, 2026 19:00
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>
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