@garuda-agent/garuda 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +188 -0
  2. package/README.md +56 -1074
  3. package/SECURITY.md +9 -2
  4. package/dist/{acpCommand-AJJBKAE5.js → acpCommand-7EY3NHPG.js} +18 -16
  5. package/dist/{anthropic-NQDBCHJU.js → anthropic-NQIZLD64.js} +12 -6
  6. package/dist/{chunk-WIJL72ZE.js → chunk-2DYMJMRQ.js} +1880 -982
  7. package/dist/{chunk-YQTGMCU6.js → chunk-3MRQJKUO.js} +29 -5
  8. package/dist/{chunk-WMOLXTBU.js → chunk-4LFJFDCF.js} +2 -1
  9. package/dist/{chunk-44QN5SWZ.js → chunk-55CFEEIN.js} +22 -2
  10. package/dist/{chunk-USCUXCAU.js → chunk-5B5HDTUR.js} +3 -3
  11. package/dist/{chunk-TUUEBHG2.js → chunk-6XHON3Q6.js} +2 -2
  12. package/dist/chunk-735BKABA.js +472 -0
  13. package/dist/{chunk-B6FA4I7Q.js → chunk-7TH3NHCQ.js} +2 -2
  14. package/dist/{chunk-OUCV3FCT.js → chunk-AOGFYUKG.js} +3 -3
  15. package/dist/{chunk-GXZACJUI.js → chunk-B4SJY7KT.js} +322 -39
  16. package/dist/{chunk-3EQU2GUX.js → chunk-BHZ6G65V.js} +5 -1
  17. package/dist/chunk-BSK5T2ZG.js +9 -0
  18. package/dist/chunk-J4346IDH.js +156 -0
  19. package/dist/{chunk-NP6RIC25.js → chunk-JRVWH27M.js} +7 -7
  20. package/dist/{chunk-HUIK3WXO.js → chunk-P6XWWIEK.js} +20 -3
  21. package/dist/{chunk-HE2K657U.js → chunk-TJIWD7R7.js} +47 -16
  22. package/dist/chunk-U65DQZDB.js +143 -0
  23. package/dist/chunk-UIRJOQQS.js +118 -0
  24. package/dist/{chunk-KKB5W47S.js → chunk-VTMD5IHD.js} +26 -2
  25. package/dist/{chunk-ENLDPN4S.js → chunk-Z66BWTMD.js} +81 -32
  26. package/dist/cli/index.js +99 -41
  27. package/dist/{create-VXIH2GUZ.js → create-W6BV75QX.js} +18 -12
  28. package/dist/{deadline-F5RJJ2QW.js → deadline-TP7ZGLT2.js} +4 -2
  29. package/dist/{evalCommand-OX2LQYEK.js → evalCommand-YVQAWUZE.js} +50 -29
  30. package/dist/{export-HN3CT7AV.js → export-SJ3DUP6W.js} +2 -2
  31. package/dist/{inkChat-YMMMGU7Y.js → inkChat-FNUBK43U.js} +14 -13
  32. package/dist/install-TKWN5AYH.js +19 -0
  33. package/dist/{job-3NYDMP2M.js → job-7JOI4YIQ.js} +6 -2
  34. package/dist/jobCommand-FE6XN3YD.js +33 -0
  35. package/dist/{launchd-SSX362VG.js → launchd-3A3ONEW5.js} +9 -8
  36. package/dist/{lspCommand-JRXKRSL7.js → lspCommand-ZZ6R4PA2.js} +7 -6
  37. package/dist/{manager-AWU4NHHK.js → manager-73MPYFTP.js} +7 -6
  38. package/dist/{nightCommand-65MUEV32.js → nightCommand-OODJNWDT.js} +26 -20
  39. package/dist/{openaiCompatible-CJWVJP5M.js → openaiCompatible-6TLDDW5U.js} +29 -15
  40. package/dist/{policy-EJPLEEXP.js → policy-ZJ7RMOFN.js} +10 -4
  41. package/dist/{remove-6GDSTAIO.js → remove-42WQNVPX.js} +8 -7
  42. package/dist/{server-KHHNHUYV.js → server-VEYIJHEU.js} +7 -3
  43. package/dist/{setupCommand-VA7D5MZK.js → setupCommand-GBQIVYJC.js} +45 -13
  44. package/dist/text-LS35WSRL.js +17 -0
  45. package/native/bin/garuda-reap +0 -0
  46. package/native/garuda-reap.c +113 -0
  47. package/package.json +39 -13
  48. package/dist/chunk-EIXUSVFX.js +0 -116
  49. package/dist/chunk-R7I2NBPX.js +0 -71
  50. package/dist/chunk-ULAJPMY7.js +0 -107
  51. package/dist/chunk-XOK5OZOC.js +0 -9
  52. package/dist/install-EWDSPFFZ.js +0 -18
  53. package/dist/jobCommand-ACSGSBQ4.js +0 -32
  54. package/dist/text-J2GD647J.js +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,193 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.0 (2026-10-27)
4
+
5
+ - macOS: no command process outlives the command (IPI-04). Seatbelt has no process namespace, so a
6
+ process could leave the command's process group (setsid, setpgid, posix_spawn with SETSID or
7
+ SETPGROUP, Node's detached spawn) and keep running, inside the sandbox. Each sandboxed command now
8
+ gets two marker files in its Seatbelt profile, and after the command a small helper,
9
+ `native/bin/garuda-reap` (C, universal arm64 + x86_64, ad-hoc signed, built in the release
10
+ workflow and shipped in the npm package), kills every process of the user with those markers. On
11
+ the user's Mac all four ways out were found and killed, no other process matched, and one scan took
12
+ 12 ms. The bash tool tells the model when Garuda killed such a process. Without the helper (a
13
+ source checkout without the Command Line Tools, the standalone binary) Garuda warns, and the
14
+ strict profile refuses sandboxed commands. The IPI-04 case now expects no escape on macOS too.
15
+ - Node and dependency security (2026-10-21): Garuda warns at start on a Node without the latest
16
+ security fixes of its line (22.23.4, 24.22.1, 26.12.1; the Node.js security release of
17
+ 2026-10-21: TLS hostname checks, DNS, Brotli), and `engines` names those versions. CI, the
18
+ release and website workflows take the newest Node of their line (`check-latest`) and stop on an
19
+ older one (`scripts/check-node.mjs`); `pnpm package` refuses one for the standalone binary. A new
20
+ Audit workflow (each push, pull request and Monday) fails on any advisory in a shipped package;
21
+ Dependabot opens weekly updates. `@modelcontextprotocol/client` 2.3.1 fixes two advisories in
22
+ the OAuth and HTTP transport of remote MCP servers (GHSA-6qxp-vccf-f47h, GHSA-6prh-2h8m-c8cw).
23
+ `glob` and `grep` refuse a pattern that brace expansion makes into more than 1000 patterns or
24
+ that nests `{…}` more than 10 deep: `braces` has no fix for GHSA-vfj7-8cjw-p6xm, and such a
25
+ pattern ran Node out of memory. See docs/security-deps.md.
26
+ - zod 4.6.7: GHSA-mrhx-c7xc-m3w5 (high), one oversized array could run Node out of memory
27
+ during validation. zod checks the model's tool input and, in the MCP SDK, the messages of MCP
28
+ servers. The new Audit workflow found it.
29
+ - GitHub Actions: `actions/checkout` 7.0.1 and `actions/setup-node` 7.1.0, which run on Node 24
30
+ (GitHub forces actions built for Node 20 onto Node 24 and warns). Still pinned to full commit
31
+ hashes. The release job turns off setup-node's automatic dependency cache.
32
+ - Indirect prompt injection suite (`test/ipiSuite.test.ts`): ten injected-call cases against the
33
+ real sandbox, permission engine, tools, web_fetch, audit log and approval display, each with a
34
+ control; `pnpm ipi:mutations` shows that every case fails without its defence. Two known gaps are
35
+ recorded: sandboxed commands may write the shared package caches (IPI-03), and on macOS a
36
+ process in a new session outlives the command (IPI-04).
37
+ - Docs: the README is short now (what Garuda does on your machine, install, quick start, links);
38
+ the user guide moved to `docs/guide/` (ten pages; the website shows them as the User guide
39
+ section). New community files: `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, a pull request template
40
+ and issue forms for bugs and features. `SECURITY.md` names 0.16.x as supported.
41
+ - Models: Claude Sonnet 5.5 and Haiku 5.5 with their prices (Haiku 5.5 has a higher price for
42
+ prompts over 100,000 tokens); `sonnet` and `haiku` now name them. `garuda setup` lists the
43
+ models of your Anthropic account (Models API) and saves the list for `/models`; a model that
44
+ this Garuda does not know shows "price unknown". `pnpm models:check` is a release check.
45
+ - Staged commands (T5, off by default): with `"commands": { "mode": "staged" }`, each sandboxed
46
+ command runs in a staging copy of the project; when it changes files that git tracks, you see the
47
+ diff and apply or discard (all or nothing, with `/undo`). Ignored files stay in the copy. No copy:
48
+ the session does not start (no fallback to direct mode). Linux mounts the copy at the project's
49
+ path; macOS runs the command at the copy's path with the project read-only. The question also
50
+ counts the ignored files that the command wrote (never applied) and names sensitive ones.
51
+ - MoE wording (review of 3a9f51b): the `delegate_expert` description and the system prompt no
52
+ longer promise "deep language AST tools"; they name the code index tools and say that results
53
+ outside JS/TS are approximate. A test guards public and model-facing text.
54
+ - Job and night-digest costs (review of 3a9f51b): an incomplete cost shows as "≥ $X (incomplete)"
55
+ and an unknown cost as "unknown" (before: exact $0.5000 and $0.0000), also in the totals and
56
+ for the review. A review attempt with no reported usage marks the review cost incomplete; an
57
+ estimated review response costs 0 as a minimum instead of an estimated price.
58
+ - Executor contract test (Codex review of 1370184): after `shutdown()`, the shell and any sandbox
59
+ wrapper must be gone too, not only the background child.
60
+ - T10 evidence (Codex review of 1370184): the corpus, oracle and source fingerprints are hashed
61
+ with LF line endings, so a Windows checkout with CRLF passes the evidence tests. The published
62
+ values do not change.
63
+ - Token budget (Codex review of 1370184): while tools run, the room that subagents must leave
64
+ for the parent also covers a compaction that is due before the next request.
65
+ - Subagent spend with no report (Codex review of 1370184): a cancelled child's tokens, already in
66
+ the budget, now make the cost "≥ $X (incomplete)" and show the budget line, with the part from
67
+ subagents named.
68
+ - Docs (Codex review of 1370184): Go and Rust experts are heuristic, not AST parsers; MoE
69
+ specialists get the code index tools, not "full AST" tools; the T10 record says that only one
70
+ capture is stored; the README states what the precision/recall figures do and do not cover.
71
+ - T10 evidence guard (Codex review of 1370184): fixed precision/recall floors (Java 33/54 and
72
+ 33/36, Python 45/63 and 45/48) apply on every run, also during an evidence refresh; a refresh
73
+ variable set in CI fails the test.
74
+ - Approximate references (Codex review of 1370184): Go and Rust references, and every user or
75
+ project plugin's, now carry the same approximate warning as Java/Python in tools, chat, callers
76
+ and impact. Tool descriptions name these languages.
77
+ - TypeScript references (Codex review of 1370184): the search starts at the declaration's own
78
+ name, not at the first matching word on its line, which could be another symbol (a property of a
79
+ type declared earlier on the line).
80
+ - Jobs (Codex review of 1370184): a review that was asked for but failed (a provider error, no
81
+ budget) gives the verdict "needs a look", never "ready to merge". The error stays in `reviewError`.
82
+ - JSON output (review of 1370184): `total_cost_usd` stays a number for compatibility, but an unknown
83
+ or partial cost is never a bare number: new `total_cost_is_unknown`, `total_cost_is_incomplete` and
84
+ `cost_is_incomplete` flags, beside the existing `cost_is_unknown`.
85
+ - Cost after a failed attempt (review of 1370184): one retry, 529, batch fallback or cancel no
86
+ longer makes the cost unknown for the rest of the session. The cost stays a known minimum, shown
87
+ as "≥ $X (incomplete)" in the turn line, `/usage`, `/sessions`, job reports and eval reports, also
88
+ after a resume. Only a missing price makes the cost unknown.
89
+ - The job review is under the token budget (Codex review of 1370184): its request reserves first
90
+ (a one-token policy no longer lets an 8,192-token request through), every attempt is metered, and
91
+ its usage counts for the session and on resume.
92
+ - Team policy `denyPaths` in the OS sandbox (Codex review of 1370184): when the patterns match more
93
+ than 1,000 paths, commands stop with a message instead of running with only the first 1,000
94
+ protected; the patterns now find files in every folder, also `node_modules` and `.git`
95
+ (review of 3a9f51b: `**/private.txt` had no sandbox rule in `node_modules`).
96
+ - Code intelligence (T10): Java/Python reference results carry `approximate: true`, propagated to
97
+ callers and impact, including empty results. Model tool output starts with a warning; chat adds
98
+ `≈`. Impact risk is labelled heuristic. Matching algorithms are unchanged. A frozen 30-Java/
99
+ 30-Python corpus, captured with jdtls 1.61.0 and pyright 1.1.406, records precision and recall;
100
+ offline regression checks verify the oracle, source fingerprints and published results. A
101
+ supplementary manually labelled edge-case sample records stricter alias semantics separately.
102
+ - Token budget, review of b2bf1c2: successful OpenAI-compatible responses with missing, partial
103
+ or invalid usage keep their full reservation charged. Estimates remain labelled on responses
104
+ for context sizing, but do not enter reported session or child totals, avoiding a double charge.
105
+ The existing `unreported` records preserve the charge across resume; affected costs are unknown.
106
+ Usage displays and JSON distinguish budget charges and estimates; evals mark incomplete token
107
+ totals and means unknown. Legacy journals remain readable with their historical totals.
108
+ - Token budget, review of 597104a: every input reservation covers the full current request,
109
+ including changed instructions, tool definitions and server-tool settings on resume. A larger
110
+ previous measured context plus new messages is still kept. Oversized requests stop before a
111
+ provider call; small budgets may refuse calls earlier. Existing journals need no migration.
112
+ - Token budget, review of 6c9f929: metered Anthropic batch submission disables SDK retries;
113
+ reported child debits survive cancellation, parallel failures and resume, without duplicating
114
+ report aggregation. Started parallel calls settle before the turn ends. Complete results are
115
+ capped after hooks and on errors (20 000 characters for subagents, including metadata; 100 000
116
+ otherwise), also for custom/replay runners. The final-answer floor accounts for JSON escaping
117
+ and result-message structure; small budgets can refuse child work earlier. Compaction reserves
118
+ its system prompt and the rest of its full request. Existing journals remain readable.
119
+ - Token budget, review of 31aab17: a subagent's wrap-up request is reserved in full (system prompt
120
+ and tools too); every provider request reserves, also an HTTP retry and a batch job's switch to
121
+ the normal API (the Anthropic SDK no longer retries on its own under the budget; the loop retries,
122
+ also a rate limit); the parent's room for its final answer covers the results of its calls (a
123
+ tool result is at most 100 000 characters, a subagent's answer at most 20 000); charges for
124
+ failed requests stay with the session, also after a resume; `/compact` counts against the budget.
125
+ - One token budget for the turn and its agent tree (review T9): each model call reserves its request
126
+ and output limit first, and the run stops with `token_budget` when they do not fit; subagents,
127
+ compaction and retries reserve in the same budget; parallel subagents cannot pass the parent's cap,
128
+ and they leave the parent room for its final answer. A failed or cancelled call with no reported
129
+ usage counts as fully spent. A small `tokenBudget` now stops a run before the call that would pass
130
+ it, not after.
131
+ - Job write scopes, third review: a job never runs a command outside the sandbox, also when an
132
+ allow rule matches (`outside_sandbox` dropped the scope); an edit through a symbolic link must
133
+ reach a path in the scope, checked by the engine and again by the write tool just before it writes;
134
+ the job's test command has the same scope as every other command, and the approval question says
135
+ so. Claims: without a sandbox, a command (or an MCP call) asks unless an allow rule covers it; undo
136
+ covers the files in its snapshot. The claims test knows these phrases.
137
+ - Job write scopes (review T6): `/schedule` proposes `"writeScope"`, the paths in the worktree that
138
+ the job may change (the plan's edit and write paths, and the build folders), and the question
139
+ shows it. The OS sandbox makes the rest of the worktree read-only for the job's commands, the
140
+ engine denies edits outside it, and a change outside it fails the job with no commit. Jobs without
141
+ a scope say "Commands may write anywhere in the worktree."
142
+ - Design (second review): staged commands never fall back to direct mode and never apply an
143
+ incomplete change list; the shared budget keeps a reservation as spent when a request fails or is
144
+ cancelled with no reported usage (docs/lld/bounded-changes.md).
145
+ - Exact claims, second pass (second review): the sandbox writes the project, temp folders and
146
+ package caches (not "only the project"); a command outside the sandbox asks unless an allow rule
147
+ or a session answer covers it (not "always"); `/undo` restores the files in its snapshot, not
148
+ ignored files (not "what a turn changed"). The claims test now reads whole paragraphs and knows
149
+ these phrases.
150
+ - Audit checkpoint fixes (second review): a failed checkpoint write no longer makes the next audit
151
+ line repeat the sequence number and chain head (the chain was broken); a checkpoint or a folder
152
+ that cannot be read is reported as broken, not as "no checkpoint" or "no files".
153
+ - Audit checkpoint: with `"audit": { "checkpoint": true }` in a policy file (off by default),
154
+ Garuda keeps each log file's last `seq` and `hash`, and `/audit verify` finds lines cut from the end
155
+ of a file and a deleted file. The docs list what verify detects with and without it (review T8).
156
+ - The strict profile: `"profile": "strict"` in a policy file or in `.garuda/settings.json` requires
157
+ the OS sandbox. Without one, Garuda stops at startup with the reason; `"executor": "host"` is an
158
+ error; the `bash` tool has no `outside_sandbox`. A project can turn it on, never off (review T7).
159
+
160
+ - Also in this release: the changes planned as 0.16.2, which was never published. Docs that say
161
+ "0.16.2" mean this release.
162
+ - The design of the bounded-changes work above (staged commands, job write scopes, the strict
163
+ profile, the audit checkpoint, one token budget for the agent tree, approximate labels for Java
164
+ and Python references): docs/lld/bounded-changes.md.
165
+ - Exact safety claims (an external review found an overclaim): edits ask first, but commands in the
166
+ OS sandbox run with no question, inside its limits, so they can change project files (`/undo`
167
+ restores them). The website, the blog posts, the share image, the README and the editor's mode
168
+ text said that every change asks first; they now say what each limit does. A test keeps the old
169
+ phrases out.
170
+ - Tests skip cleanly where a machine has no OS sandbox, refuses Unix sockets, or cannot change a
171
+ file's owner (found by the same review): the sandbox tests no longer fail while they register,
172
+ the editor tests ignore the "No OS sandbox" notice, and the proxy and ownership tests skip with a
173
+ reason. Checked with a PATH that has no bubblewrap: 0 failures.
174
+ - `garuda eval` reports success two ways: over the scored runs (error runs left out) and over all
175
+ attempted runs (error runs count as failures). `report.json` has both in `summary`.
176
+ - The system prompt names Garuda's version and the model, so "which model are you?" gets a true
177
+ answer. After `/models`, the next message tells the model about the switch; the system prompt
178
+ stays the same bytes, so the prompt cache stays valid.
179
+ - Website: a share image and share tags (LinkedIn, X and chat previews) on every page, structured
180
+ data on the landing page, and a place for the Google Search Console tag (`site/src/seo.ts`; see
181
+ docs/release.md). More npm keywords.
182
+ - Website: comments under blog posts (giscus: threads with replies, stored as GitHub Discussions,
183
+ sign-in with GitHub) and a contact page. Both use `site/src/community.ts`; empty values hide them.
184
+
185
+ ## 0.16.1 (2026-10-06)
186
+
187
+ - `garuda acp` offers its sign-in (Terminal Auth) also to clients that declare the capability in
188
+ its older form, `_meta["terminal-auth"]`. The ACP Registry's checker sends only that form, so
189
+ 0.16.0 answered it with no sign-in method and failed the registry's auth check.
190
+
3
191
  ## 0.16.0 (2026-10-06)
4
192
 
5
193
  Setup for editors and the ACP Registry (design: [docs/lld/setup.md](docs/lld/setup.md)).