Classify tool calls in the Guardian V2 extension - #38409
Merged
copyberry[bot] merged 1 commit intoAug 13, 2026
Merged
Conversation
## What changed - Register a tool lifecycle contributor when Guardian V2 is installed. - On tool start, asynchronously ask the existing Luna sampler for a low-effort `action_risk` score constrained to the range from `0.0` to `1.0`. - Bound the tool metadata supplied to the classifier and treat it as untrusted input. - Emit an extension warning if classification sampling fails. ## Testing Add an integration test that verifies the contributor reuses the configured Luna pool and sends the expected model, attribution metadata, reasoning effort, strict output schema, and tool-call context. GitOrigin-RevId: 6b69fcc0443086544086849c38bcdd90560a291f
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6b69fcc0443086544086849c38bcdd90560a291f
branch
from
August 13, 2026 17:32
301179c to
d167a36
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6b69fcc0443086544086849c38bcdd90560a291f
branch
August 13, 2026 17:33
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Classify tool calls in the Guardian V2 extension
What changed
action_riskscore constrained to the range from0.0to1.0.input.
Testing
Add an integration test that verifies the contributor reuses the configured
Luna pool and sends the expected model, attribution metadata, reasoning effort,
strict output schema, and tool-call context.