Skip to content

fix: per-call usage model and own-property choice check - #16

Merged
TheGreatAxios merged 1 commit into
cl-9392-system-one-align-repo-scaffolding-with-the-package-standardfrom
cl-9438-system-one-per-call-usage-model
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9392-system-one-align-repo-scaffolding-with-the-package-standardfrom
cl-9438-system-one-per-call-usage-model

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-9438

  • The adapter no longer keeps the request model on shared state. The inference.usage source model now comes from the response envelope's model, falling back to the configured endpoint model, so concurrent calls can't report each other's model.
  • checkAnswers uses Object.hasOwn for the choice check, so inherited keys like constructor are rejected as illegal options.

Tests: src/adapter.test.ts (usage model after two interleaved buildRequest calls) and a new inherited option case in src/evaluate.test.ts; both failed before the fix.

@TheGreatAxios
TheGreatAxios added this pull request to stack #13 September 27, 2026 00:43
@TheGreatAxios
TheGreatAxios merged commit d4b62e6 into main Sep 27, 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.

1 participant