Skip to content

Releases

Gatehand 0.12.6

Choose a tag to compare

@kvarc7 kvarc7 released this 28 Nov 15:10
20602e9
  • Workflows: the coder, fixer and review workflows use actions/upload-artifact@v7 and
    actions/download-artifact@v8 instead of @v4, which targets Node.js 20 and now warns on every
    run. Both run on Node.js 24, so a self-hosted runner needs version 2.327.1 or later. Every
    artifact is still uploaded zipped and downloaded by name, so its path is unchanged. A download
    whose digest does not match the upload now fails the job instead of warning. Installed
    repositories need an update to get it.

Gatehand 0.12.5

Choose a tag to compare

@kvarc7 kvarc7 released this 28 Nov 14:22
4b7df04
  • Review: a value the review model passes to review-gh can no longer come back to it through gh,
    and its final message is no longer kept when it carries a secret the job held (sproobo-v6 #1364).
    --state, --sort, --order and --match take only gh's own words for each verb (gh repeats a
    word it rejects in its error), free text is capped at 256 characters with no run of base64url
    characters over 64, and gh's error text stays inside review-gh, which reports only "gh failed",
    "not found" or "rate limited" with the exit code. Where bubblewrap can make a sandbox on the review runner, the model step
    sets CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, so the shell that runs its commands has no Claude
    credential and no Actions runtime or OIDC token (GH_TOKEN, the read-only token review-gh
    needs, stays). Claude Code will not start with the scrub on and no working bwrap, which is the
    usual case in a container, so elsewhere it is set to 0 and the run says so in a notice: install
    bubblewrap, with unprivileged user namespaces allowed, on the review runner to get it. The
    save step checks the final message before anything is uploaded, against the values of the
    review's Claude credential (claude.auth's secret) and the job's GITHUB_TOKEN (any 16 letters and
    digits of one, ignoring case, punctuation and spacing, also reversed, rot13, base64 or hex) and
    against the credential shapes the post job checks. A message that fails is neither uploaded nor
    posted, and the review job fails. Installed repositories need an update to get it.

Gatehand 0.12.4

Choose a tag to compare

@kvarc7 kvarc7 released this 27 Nov 22:17
d9dd554
  • Inbox: a request comment that is too long to move whole when the inbox rotates is no longer cut
    as it was sanitised. The cut could leave a code span open, and a mention the sanitiser had kept
    inside the span then went live in the bot's copy. A cut copy now has every mention rewritten,
    keeping its marker line and the lines naming the inboxes it came from. The sed fallback used when
    python cannot run now also rewrites a mention right after one that ends in a hyphen (@a-@b). The coder's and fixer's blocked.md note is also capped at
    19,000 bytes (or maxCommentBytes when that is lower) before it is sanitised. The inbox quotes it
    line by line, which can triple its size, so a request built from it stays short enough to move
    whole. Installed repositories need an update to get it.

Gatehand 0.12.3

Choose a tag to compare

@kvarc7 kvarc7 released this 27 Nov 18:15
11c242b
  • Coder and triage: a Claude Security import whose every location is in a path the coder may not
    touch is no longer worked. The coder could only end such a run blocked, and three in a row
    tripped one repository's breaker. The signal is the import's own ## Locations list: when every
    path in it matches a ! glob in protected-paths.txt (or the floor), or a protected glob while
    the issue has no agent:allow-protected, triage leaves one closed-paths comment and no label
    (at any severity), and the pick and its re-check after a claim skip it, with the paths in the log
    line (with parallelism above 1 the kick does not count it as queued). Any line of the list it
    cannot read as one path bullet, or no list at all, counts as open, so such an issue is queued as
    before. Issues that are not Claude Security imports are never skipped this way. A dispatch by name still takes it. Issues without a Locations list, and
    fixes that need closed files the list does not name, are not caught. Installed repositories need
    an update to get it.

Gatehand 0.12.2

Choose a tag to compare

@kvarc7 kvarc7 released this 26 Nov 22:38
e4940e2
  • Coder kick: a stranded run's hour now counts from when it last started (run_started_at, else
    created_at), not from when it was created. A re-run keeps its old created_at, so a re-run of
    an old run was past the hour at once, and only the jobs lookup stood between it and a dispatch
    next to it in the moments before GitHub lists its jobs. The ::warning::, the digest's Queue line and addons/hardened-runner's journal line
    give the same time. Installed repositories need an update to get it; on the kick box, re-run
    addons/hardened-runner's install.

Gatehand 0.12.1

Choose a tag to compare

@kvarc7 kvarc7 released this 26 Nov 15:59
c622bd3
  • Coder kick: a run GitHub stranded no longer stops the schedule. GitHub can leave a dispatched
    coder run queued with no jobs for good, and it cannot be cancelled, force-cancelled (409) or
    deleted (403). It holds no runner and no concurrency group, but the kick counted every unfinished
    run as busy, so it dispatched nothing for as long as the run stayed (17 hours on one repository).
    A run queued for 60 minutes or more that GitHub lists no jobs for is now left out: with
    parallelism 1 the kick dispatches next to it, and above 1 it holds no slot and no room (the
    inbox's and the digest's slot counts leave it out too). The kick names it in a ::warning:: on
    its run, and the digest names it in its Queue section. A run that is fresh, running, pending on
    its group, has a job, or whose jobs cannot be read still counts, so a kick still never cancels a
    person's waiting dispatch. Installed repositories need an update to get it.
    addons/hardened-runner's agent-kick.sh follows the same rule and names the run in the
    journal. It looks up the jobs of at most 3 such runs per kick, so its service's start timeout
    grows by 6 minutes; on the kick box, re-run its install. The dashboard's coder dispatch still counts such a run (it warns that the run would be cancelled,
    and with parallelism above 1 avoids its slot), which errs on the safe side.
  • Merge gate: a branch is updated at most once per head, never on top of the gate's own update. The gate merged
    only a head that contained the default branch's current tip, and updated a PR that was only
    behind. Where the default branch moves faster than CI and the review take, that never held:
    each Approve met a new tip, and the gate updated again (15 rounds of update, CI and review on
    one PR in two days). A head the gate's own update made (or one a person merged the base into
    when the gate asked) that passes every other condition and does not conflict now merges
    although the base has moved again; the report says (behind <base> by N since the gate's own update). Every other head that is behind is still updated first. This relaxes the 2026-11-06
    rule
    : such a head's checks and review saw the base as it was at the update, not as it is at
    the merge. A ruleset with strict required status checks ("require branches to be up to date")
    refuses such a merge, so the gate's run fails on it each time: keep that setting off. Installed
    repositories need an update to get it.
  • addons/hardened-runner: agent-kick.sh fills free coder slots. With
    AGENT_KICK_CODER_SLOTS=<N> (new, default 1), the coder timer dispatches one run per free
    slot, each with its slot input, instead of one run whenever no coder run was going; 0.12.0's
    roles.coder.parallelism had no effect on a repository kicked this way. Installed repositories
    need no update for this (re-rendering only refreshes one paragraph of their
    .github/agents/README.md); on the kick box, re-run install with AGENT_KICK_CODER_SLOTS set
    to the policy's parallelism.

Gatehand 0.11.0

Choose a tag to compare

@kvarc7 kvarc7 released this 20 Nov 19:41
fc9d5e0
  • Coder: with the repository variable AGENT_KEEP_TRANSCRIPT set to true, the code job keeps the
    agent's whole session as an agent-transcript artifact for 14 days, so a run that ended without
    its outbox files can be diagnosed; the log shows only its last message. Off by default: the
    artifact is not secret-masked and anyone who can read the repository can download it. A failed
    upload does not fail the run. Installed repositories need an update to get this.

Gatehand 0.10.1

Choose a tag to compare

@kvarc7 kvarc7 released this 19 Nov 20:45
7f86d09
  • Coder: a run that committed and wrote pr.json but forgot pr-body.md now opens its PR instead
    of ending as a no-op. Its summary.md becomes the PR body, with a note saying so and a
    Refs #N line, and goes through the same checks (a closing keyword is still refused). Before,
    the work was dropped and the issue lost one of its attempts over a missing file. The prompt now
    says the three files are required and to check them before stopping, and a no-op's reason names
    the file that was missing. Installed repositories need an update to get this.

Gatehand 0.10.0

Choose a tag to compare

@kvarc7 kvarc7 released this 19 Nov 16:56
96e8ab2
  • Inbox: the agents now replace the inbox issue before GitHub's per-issue comment limit stops it.
    GitHub refuses every new comment on an issue past about 2,500 (undocumented; "Commenting is
    disabled on issues with more than 2500 comments"), and each request costs about three comments, so
    a long-lived inbox would stop taking both requests and answers. When a request is about to be filed
    on an inbox with inboxRotateAt comments or more (new in policy.json, 2,000 by default, 0 turns
    it off), a new inbox issue opens. Every request listed as open that the agent bot filed is posted
    again there under the same id and listed. The old issue gets one comment linking the new one, which
    also marks the moved requests answered there, and it is closed. Each copy names the issue it came
    from, and a command on the copy is refused when the request was answered there, so no request is
    applied twice. Until the move is complete the old issue stays the inbox, and a move that fails half
    way is retried with the next request. Pin the new inbox by hand; the App cannot pin issues. An inbox pinned with
    AGENT_INBOX_ISSUE is never replaced: the agents log a warning, and bin/doctor.sh warns once it
    is past the threshold. Installed repositories need an update to get this; policy.json needs no
    change.

Gatehand 0.9.0

Choose a tag to compare

@kvarc7 kvarc7 released this 19 Nov 11:33
353be20
  • New policy key claude.agentAuth (oauth or api-key) for the coder and fixer, the two roles
    whose model runs code it wrote. That code can read the job's Claude credential, so a
    prompt-injected run could take it. With "api-key" the two jobs read ANTHROPIC_API_KEY_AGENTS, a
    secret no other workflow uses: give it a spend limit in its own Console workspace, and a lost key
    costs neither the review's credential nor your subscription. Unset, nothing changes: the coder and
    fixer use claude.auth's credential, as before.
  • The doctor checks the agents' secret too when claude.agentAuth names a different one.
  • To switch an installed repository to the separate key, set the secret first, then claude.agentAuth: "api-key" in policy.json, re-render, and fast-forward the
    runner ref (the coder and fixer workflows change).
  • Inbox: an answered request's line now leaves the "Open requests" list in the inbox issue's body
    instead of being ticked; the answer stays in the bot's reply comment. Ticked lines were never
    removed, so a long-lived inbox grew towards GitHub's 65,536-character body limit. Past that,
    every edit of the body failed (logged and ignored), new requests no longer showed in the digest's
    or the dashboard's "waiting" list, and answered ones kept showing as open. The [x] lines earlier
    versions left are removed the next time a request is filed or answered. A request that was
    answered while its line could not be removed (a full body, a failed edit) still shows as open;
    /approve or /reject it again and the reply says "already answered" and removes the line. A
    failed edit of the list is now logged as such. Installed repositories need an update to get this.