Repository navigation
Releases
rustgrid-agent v1.13.0
rustgrid-agent v1.13.0
In this release Claude Code IDE sessions work under the project's architecture
contract, the same way cloud runs do, and they can raise an escalation for an
architect. Runs on a ticket whose escalations an architect has already decided
now follow that decision instead of being blocked again. Agents also now see
the contract's guardrails and protected paths, which the worker used to drop.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentWorkers pick up the new version when they restart. There is no need to run
rustgrid-agent trace install again.
Added
- Architecture contract in IDE sessions. When the project defines an
architecture,/rustgrid-linkwrites it toarchitecture.mdnext to
ticket.md. That file includes the plan check Claude follows, the ticket's
declared boundaries, and the contract's guardrails and protected paths.
When Claude's reply ends with the plan check's escalation lines
(RUSTGRID_AGENT_STATUS: ESCALATE,RUSTGRID_ESCALATION_BOUNDARIES,
RUSTGRID_ESCALATION_REASON,RUSTGRID_PROPOSED_CHANGE), the trace hook
raises the escalation on the ticket for an architect. If an escalation cannot
be raised, the error is kept inarchitecture.errornext toticket.md.
Fixed
-
Decided escalations are followed. A run after an architect decided an
escalation now gets the decision. The manifest's newdecided_escalations
field (RustGrid API 2.2.0) lists the ticket's approved and rejected
escalations with the architect's resolution. They reach the prompt and, in
IDE sessions, the linked context.- An approved escalation's boundaries count as declared in the worker's diff
check. - A rejection's guidance tells the agent how to stay inside the boundaries.
Before, the next run never saw the decision. After an approval, its diff
check raised the same escalation again and blocked, and a rejection's
guidance never reached the agent. - An approved escalation's boundaries count as declared in the worker's diff
-
Guardrails and protected paths reach the agent. When the worker read the
manifest it dropped the contract's guardrails, protected paths and
standard, and the boundaries'access. They are now kept and included in
the prompt.
Compatibility
- Works with the same RustGrid as v1.12.0.
decided_escalationsis optional:
older servers omit it, it defaults to none, and runs behave as in v1.12.0.
Deploy RustGrid API 2.2.0 to get decisions into runs. - A decision made under an earlier version of the contract may name a boundary
that has since been removed. That boundary is ignored rather than rejecting
the manifest. - Session state, installed hooks and the execution manifest version (
2) are
unchanged. - Projects without an architecture are unaffected. No
architecture.mdis
written, and no plan check is enforced.
Known limitations
- The diff check enforces only path scope.
may_depend_on, rules and
decisions are enforced through the prompt, CI and review. - In IDE sessions the plan check is guidance for Claude. The hook raises
escalations Claude reports, but it does not block edits outside the declared
boundaries. - See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.12.0. Do not replace or mutate the v1.13.0 tag or release assets.
After a rollback, IDE sessions no longer get architecture.md or raise
escalations, and runs after a decided escalation may again be blocked by the
same escalation.
rustgrid-agent v1.12.0
rustgrid-agent v1.12.0
In this release every new Claude Code conversation starts unlinked from
RustGrid, so a session is traced only on the ticket you choose for it. Each
repository can also choose the prefix of the branches rustgrid-agent creates
for tickets, and ticket titles are no longer cut mid-word in branch names.
Docker Sandboxes can now install Playwright and its browsers.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentWorkers pick up the new version when they restart. There is no need to run
rustgrid-agent trace install again.
Added
-
Configurable branch prefix. The Git config key
rustgrid.branchPrefix
sets the prefix of ticket branches. Set it in one repository:git config rustgrid.branchPrefix rustgrid
or in every repository with
git config --global. A repository's own value
wins over the global one. Both/rustgrid-linkand cloud runs read it, so
ADD-437 getsrustgrid/add-437-<title>. The value is made ref-safe: each
/-separated part is lowercased and slugged, and an empty value falls back
toagent.
Changed
- New conversations start unlinked. A new Claude Code chat, or
/clear,
has no ticket, even on a branch named after one, and its first prompt asks
for/rustgrid-link ADD-123. A branch name no longer links a session by
itself./clearin a linked session ends that ticket's run at the clear,
with its summary comment, and anything after the clear waits for the next
link. Resumed (--resume,--continue) and compacted conversations keep
their link. - Whole words in branch names. Ticket titles are still limited to 48
characters, but they are now cut at the last whole word. For example, a title
that used to give…-sign-in-and-registration-dnow gives
…-sign-in-and-registration.
Fixed
- A trace flush running while a session was relinked could drop the earlier
ticket's run before ending it, leaving that run open. The run is now kept
until it is ended. - New and recovered Docker Sandboxes allow Playwright's browser download CDNs
and redirect targets, npm, and Ubuntu/Debian system package repositories.
Codex and Claude Code can install Playwright and matching browsers inside
their sandbox without changing the host's global network policy.
Compatibility
- Works with the same RustGrid as v1.11.0. Session state and installed hooks
are unchanged. - Behaviour change: people who relied on a branch name to link their
sessions now run/rustgrid-linkat the start of each conversation.
Sessions an older version already linked from the branch keep working. - Without
rustgrid.branchPrefix, branches start withagent/as before. - Only branches created from now on are named by the new rules. Existing
branches are not renamed. A run that recorded a branch keeps it. The
"branch already exists" check compares against the new name, so if a ticket
has a long title and an older run left a branch cut mid-word, a new run may
create a branch beside it instead of reporting the old one as stale. - Cloud runs read the setting from the worker's checkout, so a repository-local
value must be set in that checkout, or set with--globalfor the worker's
user.
Known limitations
- The prefix comes from Git config only. RustGrid project settings do not set
it yet. - See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.11.0. Do not replace or mutate the v1.12.0 tag or release assets.
Branches created with a custom prefix stay valid after a rollback. New branches
go back to agent/, and sessions link from the branch name again.
rustgrid-agent v1.11.0
rustgrid-agent v1.11.0
This release reports token usage, and the cost RustGrid derives from it, once
per model call while a cloud run's session is going, for both Claude Code and
Codex. The "Over time" graph now has a point for every call instead of a
single point at the end of the session.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentWorkers pick up the new version when they restart. There is no need to run
rustgrid-agent trace install again.
Changed
- Claude Code runs report each API call. Claude Code repeats an API
message's final usage on every record it streams for it. The worker reports
it once per message, with the message's own model (subagents may use
another), stop reason, and theservice_tier,inference_geoandspeed
fields RustGrid prices by. - Codex runs report each response.
codex exec --jsonprints usage only
when a turn ends, and runs with--ephemeral, so the worker points Codex's
OTLP/HTTP log exporter at a receiver it runs on127.0.0.1for the agent
step. Eachresponse.completedlog becomes one model call stamped with the
time Codex recorded it. - Totals still match billing. When a turn ends, the provider's aggregate
usage is compared with the calls already reported. Anything they missed is
reported as one more call. If the per-call source is unavailable, the
turn's aggregate is reported as before. - Budget advisories can fire mid-session. Token counts now grow as calls
complete, so the 70%, 90% and 100% advisories can appear during a session.
Final totals are unchanged.
Security
- The container image pins Claude Code 2.1.251, which fixes
GHSA-5xjx-9qx6-jcrv (High) in 2.1.246. Operators running Claude Code in
Docker Sandboxes should moveexecutor.claude_templateand
executor.claude_versionto a template with 2.1.251 or later. - The Codex usage receiver listens on loopback only and refuses requests
without the step's token. It keeps token counts, model, service tier and
timestamp, and drops the account and session details in Codex's logs. The
token is redacted from commands the worker prints.
Compatibility
- Works with the same RustGrid as v1.10.0. Session state and installed hooks
are unchanged. - Docker Sandbox runs with Codex get one more network allow rule,
localhost:<port>, scoped to the run's sandbox, so Codex can reach the
receiver ashost.docker.internal:<port>. - Each Codex turn waits up to 3 seconds at the end for Codex's last usage
export.
Known limitations
- A call Codex exports after its turn has ended is not reported on its own;
its tokens are already in the turn's aggregate. - Per-call input sizes do not update the budget's peak context measure.
- The sandbox allow rule is not removed after the agent step; a retained
sandbox keeps it. - See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.10.0. Do not replace or mutate the v1.11.0 tag or release assets.
rustgrid-agent v1.10.0
rustgrid-agent v1.10.0
This release makes every cloud run start from a fresh branch, so changes left
by an earlier run on the same ticket can no longer mix into a new
implementation.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agent
Workers pick up the new version when they restart. There is no need to run
rustgrid-agent trace install again.
Changed
- Each run starts from a fresh branch. A run used to work on the ticket's
branchagent/<key>-<title>. If an earlier run had already pushed that
branch, publication reconciled the new commit onto the old commits and
reused the old open pull request, so a previous attempt's changes ended up
in the new one. The worker now checks whether that branch already exists,
locally or on GitHub. If it does, the run creates
agent/<key>-<title>-<run-id>from the base branch and opens its own pull
request. - The stale branch is reported, not changed. The existing branch, and any
pull request on it, is left as it is. The run names it in the
branch_createstep (message and a newstale_branchfield), in a "Stale
branch" section of the pull request body, and in the run summary. - Recovery is unchanged. A run resuming its own work, from its journal or
a recovery journal, keeps the branch it recorded. Runs withfresh_start
still use a per-run branch.
Compatibility
- Works with the same RustGrid as v1.9.1. Session state and installed hooks
are unchanged. - The branch check needs the run's GitHub token before the branch is created.
It uses the token the run already has, with the same permissions.
Known limitations
- Stale branches and their pull requests are not closed or deleted. Review
and close them on GitHub when they are no longer needed. - See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.9.1. Do not replace or mutate the v1.10.0 tag or release assets.
rustgrid-agent v1.9.1
rustgrid-agent v1.9.1
This patch release stops agent runs from being blocked by a required GitHub
workflow that was skipped rather than run.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentWorkers pick up the new version when they restart. There is no need to run
rustgrid-agent trace install again.
Fixed
- A skipped required workflow no longer blocks the run. A repository can
run CI only on a schedule, on manual dispatch, or when a pull request has a
label such asrun-ci. On an unlabeled agent pull request GitHub still
creates the CI run, but every job is skipped and the run concludes as
skipped. The worker counted any non-success conclusion as a failure, and
because a skipped run cannot be repaired, the run ended as a permanent
external failure. A required workflow or check that completes asskipped
orneutralnow counts as not run: it is accepted as soon as it completes,
and therequired_workflowsstep reports it as skipped by its trigger
conditions, with the names in a newnot_runfield. - Failure diagnostics leave out skipped jobs. When a required workflow
does fail, the worker no longer requests logs for its skipped jobs, which
GitHub answers with 404BlobNotFound, and no longer lists skipped steps as
failed steps.
Compatibility
- Works with the same RustGrid as v1.9.0. Session state and installed hooks
are unchanged. - Success, failure, cancelled, timed-out and unrecognised conclusions behave
as before.
Known limitations
- If the label that enables CI is added after the skipped run completes, the
worker has already moved on. The labeled run still gates the pull request on
GitHub. - See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.9.0. Do not replace or mutate the v1.9.1 tag or release assets.
rustgrid-agent v1.9.0
rustgrid-agent v1.9.0
This release puts an IDE session on its ticket's branch when you link it with
/rustgrid-link.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentRestart Claude Code after upgrading. There is no need to run
rustgrid-agent trace install again.
Changed
/rustgrid-link KEYswitches to the ticket's branch. Before, linking
kept whatever branch was checked out, so a session linked to one ticket could
commit to another ticket's branch or tomain. Linking now puts the
repository on a branch named after the ticket,agent/<key>-<title>, the
same naming the worker uses:- A branch that already names the ticket is kept, so sessions linked from
the branch name are unchanged. - An existing
agent/<key>-<title>branch is reused. Otherwise one is
created from the current commit, and uncommitted changes come along. - Linking another ticket mid-session moves to that ticket's branch.
- If git refuses the switch, for example because of local changes the
target branch would overwrite, the session stays linked on its current
branch. Claude tells you why and how to switch. - Outside a git repository, nothing changes.
- A branch that already names the ticket is kept, so sessions linked from
Compatibility
- Works with the same RustGrid as v1.8.2. Session state written by v1.8.x is
read as is. Installed hooks are unchanged. - The switch only creates or switches branches. Nothing is reset, stashed or
discarded. Git hooks do not run during the switch.
Known limitations
- RustGrid records the branch the session was on when the link started, not
the ticket branch it moved to. The branch name needs the ticket's title,
which arrives only in RustGrid's answer to the link. - See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.8.2. Do not replace or mutate the v1.9.0 tag or release assets.
rustgrid-agent v1.8.2
rustgrid-agent v1.8.2
This patch release makes /rustgrid-link work in VS Code when a file is open
in the editor.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentRestart Claude Code after upgrading. There is no need to run
rustgrid-agent trace install again.
Fixed
/rustgrid-link KEYlinks the session when a file is open in VS Code.
The Claude Code extension adds a note about the open file or selected lines
to the prompt, such as<ide_opened_file>…</ide_opened_file>. The hook only
recognised/rustgrid-link KEYas the whole prompt, so with a file open it
let the prompt through without linking. The session stayed unlinked, or on
the ticket its branch or an earlier link gave it. The command then told
Claude that a missing link meant tracing was not installed, so re-running
trace installlooked like the fix. The hook now sets IDE notes aside
before reading the command./rustgrid-linkwith no readable ticket key is refused with a usage hint
instead of passing through as a normal prompt.- When a link does not happen, Claude now says so and points to
rustgrid-agent trace statusinstead of claiming tracing is not installed.
The updated command reaches each person's~/.claude/commandsthe next time
a session starts.
Compatibility
- Works with the same RustGrid as v1.8.1. Session state written by v1.8.1 or
v1.8.0 is read as is. Installed hooks are unchanged.
Known limitations
- See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.8.1. Do not replace or mutate the v1.8.2 tag or release assets.
rustgrid-agent v1.8.1
rustgrid-agent v1.8.1
This patch release gets traced IDE sessions uploading again when RustGrid
reports that a telemetry batch was already recorded.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentRestart Claude Code after upgrading.
Fixed
- A replayed telemetry batch no longer stalls a session. A session's
first upload marks its run as started. Retries of that upload carried a new
timestamp under the same idempotency key, so once RustGrid had stored one
attempt it answered every retry with409 telemetry idempotency key was reused with different data. The worker kept retrying, and the session's
prompts, replies and summary never uploaded. That answer now counts as
recorded, because every event has a stable id that RustGrid already holds,
and the session's other uploads go through. An open session that was stuck
this way catches up on its next hook after the upgrade; an ended one catches
up withrustgrid-agent trace flush --session <session-id>.
Compatibility
- Works with the same RustGrid as v1.8.0. Session state written by v1.8.0 or
v1.7.0 is read as is.
Known limitations
- See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.8.0. Do not replace or mutate the v1.8.1 tag or release assets.
rustgrid-agent v1.8.0
rustgrid-agent v1.8.0
This minor release loads a ticket's description and attachments into the IDE
session when you link it, and keeps tracing working after the computer signs
in again.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentRestart Claude Code after upgrading.
Added
/rustgrid-linkloads the whole ticket. Claude gets the ticket's
title, type, status, priority and description, plus the local path of each
attachment, so the session starts from the full ticket. The ticket is saved
as.git/rustgrid-agent/tickets/<KEY>/ticket.mdin the repository, which
git never commits. Attachments download in the background into the
attachmentsfolder next to it: at most 50 files, 25 MB each and 100 MB in
total, skipping files flagged by the virus scan, each checked against its
SHA-256. Loading stays inside the prompt hook's time limit; if it can't
finish in time, the session is still linked and Claude says so.
Fixed
- A reopened run gets a fresh summary. Each close of a reopened IDE run
is now a new request, so RustGrid writes a summary for the latest prompt
instead of replaying the first one. - Signing in again no longer stalls a session's uploads. RustGrid
refuses writes to runs an earlier sign-in started. The refused upload used
to be retried on every hook, blocking the session's later replies and its
run's close. Refused telemetry is now skipped and the rest still uploads. If
RustGrid refuses the run's prompts and replies too, the session stops
uploading to that run andrustgrid-agent trace statusexplains why.
Compatibility
- Works with the same RustGrid as v1.7.0. Session state written by v1.7.0 is
read as is. - Loading a ticket's content needs RustGrid to let the worker credential read
the ticket, its attachment list and attachment downloads for an IDE
session's ticket. Where it doesn't, linking works as before and Claude
reports the content as unavailable. - Runs started before the computer signed in again stay refused until
RustGrid lets a new worker on the same account write to them.
Known limitations
- A ticket linked from the branch name is traced without its content; run
/rustgrid-linkto load it. - See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.7.0. Do not replace or mutate the v1.8.0 tag or release assets.
rustgrid-agent v1.7.0
rustgrid-agent v1.7.0
This minor release lets Codex run on the tenant's OpenAI API key through the
RustGrid model gateway, the way Claude Code runs on the Anthropic key, and
closes a traced IDE session's run as soon as it opens a pull request.
Install or upgrade
brew update
brew upgrade RustGrid/tap/rustgrid-agentRestart Claude Code after upgrading.
Added
- Codex through the model gateway. When RustGrid signs a version 2 policy
withagent.provider: "codex", the worker requests a run-scoped gateway
token for each session and points Codex at
<API URL>/agent-gateway/openai/v1with a worker-owned model provider. The
tenant's OpenAI key stays in RustGrid, and the worker needs no Codex login,
so RustGrid-hosted runs can use any Codex model RustGrid serves through the
API key. Version 1 policies keep using the worker's own Codex login,
unchanged. A gateway Codex policy may not set a model provider, profile,
local provider, or base URL. See
the worker run contract.
Changed
- A pull request closes the IDE session's run. When the turn that opened a
pull request finishes, its run closes: the ticket shows the agent report and
the summary comment, with the pull request attached. Another prompt reopens
the run, which closes again only when it opens another pull request.
Compatibility
- Works with the same RustGrid as v1.6.4. Session state written by v1.6.4 is
read as is. - Gateway Codex runs need RustGrid to serve
/agent-gateway/openai, issue
gateway tokens for version 2 Codex policies, and hold the tenant's OpenAI
connection. Until it does, RustGrid keeps signing version 1 Codex policies
and nothing changes. - Workers before v1.7.0 accept a version 2 Codex policy but run it on their own
Codex login. Upgrade every worker in a tenant before RustGrid signs version 2
Codex policies.
Known limitations
- See known limitations.
Verification
The release candidate must pass formatting, strict Clippy, the full unit and
integration test suite, npm build, package verification, packaged-source
compilation, Homebrew formula syntax validation, and the version smoke test.
Rollback
Reinstall v1.6.4. Do not replace or mutate the v1.7.0 tag or release assets.
Roll back workers only after RustGrid stops signing version 2 Codex policies.