release: v0.48.0 — bareguard 0.19 default translator, exposeMalformedArgs - #55
Merged
Merged
Conversation
Default actionTranslator now emits bareguard's primitive shapes with the tool name on every action: shell_read/grep -> read, shell_write -> write, shell_edit -> edit (path via resolveToolPath; a missing/bad path becomes '' so the gate denies fs.invalidPath), shell_run/exec -> bash. filterTools filters by tool identity only; scope is enforced per call. Requires bareguard >=0.19.0 (0.15 ignores `tool`). Example sets readScope/writeScope. exposeMalformedArgs (OpenAI + Ollama, default off): malformedToolCall carries rawArguments (verbatim, 500-char cap) + rawTruncated, through Loop.run(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RNVyxYsxAMaxUW1wZk1H4b
…, bash.allow prefix match Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bareagent.context.md still claimed a genuinely-absent tool path is left undefined (bareguard's path-less-skip behavior) — the exact claim commit 3794c99 already corrected in CHANGELOG.md and CLAUDE.md, but missed here. safeToolPath normalizes every missing/malformed path to '' uniformly (fs.invalidPath denies unconditionally); align this doc with the shipped code and the branch's own corrective commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Args Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
createShellToolsprimitives now map to bareguard's fs/bash shapes by default (read/write/editwithresolveToolPath'd path;bashwithcmd),toolon every action. Any missing/unresolvable path →''→ denied viafs.invalidPath. Peer floor →bareguard >=0.19.0 <1.0.0.filterToolsprobes tool identity only — never a path-less translated shape (which bareguard would skip, not deny).exposeMalformedArgs(OpenAI + Ollama, opt-in): raw malformedfunction.argumentsonmalformedToolCall.rawArguments, 500-char cap,rawTruncated.urlarg;bash.allowis a plain prefix match (word-boundary fix coming in bareguard 0.19.1).Verification
npm test1327 pass / 0 fail / 2 skip (exit 0); typecheck, check:primitives, check:lockfile exit 0.🤖 Generated with Claude Code