Closed
Conversation
Signed-off-by: Trung Nguyen <trungutt@users.noreply.github.com>
Signed-off-by: Trung Nguyen <trungutt@users.noreply.github.com>
Signed-off-by: Trung Nguyen <trungutt@users.noreply.github.com>
Member
Author
|
Merged with 6df068d |
a-dubs
pushed a commit
to a-dubs/cagent
that referenced
this pull request
Sep 3, 2025
Fix overflow dialog.
a-dubs
pushed a commit
to a-dubs/cagent
that referenced
this pull request
Sep 3, 2025
dgageot
added a commit
to dgageot/cagent
that referenced
this pull request
Apr 15, 2026
This is useful for computing baselines by running the same eval(s) N times. Each repeated eval gets a '#N' suffix in its title (e.g. 'my-eval docker#3'). Assisted-By: docker-agent
dgageot
added a commit
that referenced
this pull request
Apr 28, 2026
…nctionCall scrub
Five fixes from a self-review pass:
1. Bug: pre_tool_use builtin returned the entire ToolInput map in
UpdatedInput. Hooks for one event run concurrently and aggregate
via shallow maps.Copy in config order, so emitting unchanged keys
would clobber a sibling hook's modifications. Fix: only emit keys
whose value actually changed (new redactToolInput helper). This
also removes the unsafe top-level type assertion on redactAny's
any-typed return value.
2. Security gap: the runtime transform missed two text-bearing
surfaces that round-trip to providers:
- chat.Message.ReasoningContent (sent back to Anthropic, Bedrock,
and DeepSeek as a thinking block)
- the legacy singular chat.Message.FunctionCall.Arguments
(still emitted by the OpenAI provider when set)
A secret in either of those fields would round-trip to the next
LLM call. Now both are scrubbed; the FunctionCall pointer is
deep-copied so the caller's history stays untouched.
3. Performance: secretsscan.Redact called strings.ToLower(out) and
compiledRules() once per rule (~85 iterations), which on long
inputs dominated the work. Hoisted both out of the loop. Sound
because RedactionMarker contains no rule keyword (locked in by
the new TestRedactionMarkerIsNotASecret) so a stale lower-case
only ever produces extra-cautious regex runs, not false negatives.
Allocations on a 9KB clean message: ~85 -> 2.
4. Test gap: added TestRedactionMarkerIsNotASecret to lock in the
safety property the idempotence claim relies on (the marker must
not match any rule, even when surrounded by arbitrary text).
5. Added BenchmarkRedactCleanInput / BenchmarkRedactWithSecret as a
regression guard for #3.
Tests + lint: green. Behavior on clean inputs and previously-tested
secrets is unchanged.
Assisted-By: docker-agent
This was referenced Apr 30, 2026
Merged
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.
No description provided.