Skip to content

feat: log note line when the tool list exceeds the criteria cap - #25

Merged
danipl merged 1 commit into
mainfrom
feat/log-criteria-truncation
Oct 5, 2026
Merged

danipl merged 1 commit into
mainfrom
feat/log-criteria-truncation

Conversation

@danipl

@danipl danipl commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Implements #11 (claim 1 only — see below).

askJev capped offered criteria at names.slice(0, MAX_CRITERIA - 1): past 254
function tools the excess was silently invisible to routing. Behavior was safe
(a pick among kept tools still trims), but the operator had no signal. Now one
note: line is logged before the round-trip:

[jev] note: 260 tools exceed criteria cap 254 — first 254 offered to jev

  • note: is a new tag (never apply:/bypass:-replacing); documented in
    DEVELOPMENT.md's error/context-lines table.
  • Test 23 (black-box, 260-tool payload): stub criteria = exactly 254 tool keys +
    respond_to_user, note: line in JEV_DEBUG_FILE, trim still applies.

Issue claim 2 (JEV_MODEL docs) was already fixed by 038195f (#24), which
landed two days after the issue was opened — verified: the "env-only extras"
sentence no longer exists in any doc; code (file-wins) unchanged, per the issue.

npm run typecheck && npm test && npm run build — all green (25/25).

Fixes #11

askJev silently dropped every tool past the 254th from the criteria,
so a 260-tool request offered 254 to routing with zero operator signal.
Behavior stays safe (a pick among kept tools still trims); the note is
awareness only. The JEV_MODEL env-only doc claim from the same issue was
already fixed by #24.

- askJev: one "note:" line before the round-trip when names.length > 254
- DEVELOPMENT.md: table row for the note: line (can precede apply: too)
- Test 23: 260-tool payload — stub criteria = 254 tools + respond_to_user,
  note logged, trim still applies
@danipl
danipl merged commit 81f8fae into main Oct 5, 2026
2 checks passed
@danipl
danipl deleted the feat/log-criteria-truncation branch October 5, 2026 04:49
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.

Log MAX_CRITERIA truncation + fix JEV_MODEL doc/code mismatch

1 participant