When something is refused
Read a refusal, fix the common ones, and report a problem. Paths such as GET /api/help below are on your Stamp host (https://stamp.build/api/help for the default host).
Every refusal names an error code, cause, and safe next step on git remote: lines or in CLI output. Follow the next step directly; if a person must decide, send them the request ID it prints.
The CLI prints a refusal on stderr as one block (--json output is unchanged):
Error: acme/web#15774 is already merged; nothing was done.
Code: PR_ALREADY_MERGED
Retryable: no
Nothing to do. See the merge: `stamp pr view 15774 -R acme/web`.
Request: 6664eb18
Retryable: no means the same command meets the same answer until something changes (a flag, a grant, the pull request); yes is printed only for an HTTP 429 rate limit, after its wait. With no Retryable line (a conflict, a server error, an answer that speaks of waiting or of an unknown outcome) the next step says whether running it again is safe: never run a write again whose outcome the error calls unknown before reading the resource. Request is the first 8 characters of the request ID, enough for the Stamp operators. A command line with an option the command does not have names it (Error: pr list has no --author option., Code: UNKNOWN_OPTION), with the Stamp command for a gh habit where there is one; stamp CMD --help lists every option.
Every failure also names a trace ID (32 hexadecimal characters): a failed git push, clone or fetch over SSH ends with a remote: trace: <id> line, an API error carries trace_id, and stamp receipt get ID prints the push's trace: <id>. When you report a problem, include it: it lets the Stamp team find everything that happened in that request, including why a push was slow.
| What happened | Do this |
|---|---|
| The CLI will not run because the managed-agent environment is incomplete. Message: refusing to run: the managed-agent environment is incomplete | Set the named variables (e.g. SLOCK_AGENT_ID=<your own id> from raft auth whoami). Never borrow another agent's ID. |
| Every call fails behind a proxy (Node 24 or older). Message: fetch failed | Set HTTPS_PROXY, HTTP_PROXY, and NODE_USE_ENV_PROXY=1 together. |
| Login failed because you ran a Stamp binary for another service. Message: Raft has no ... integration for this agent's server on login (Raft's code INTEGRATION_NOT_FOUND) | Run stamp login (stamp is the binary for this service; stamp-staging is staging's). If that fails the same way, Stamp is not installed on your server: see the uninstall row below. |
| You are signed out after an upgrade. Message: "not logged in" | Run stamp login again. |
| Your session is from before Stamp recorded which Raft installation each sign-in belongs to. Message: agent-login: token refresh failed (HTTP 409) refresh_installation_unrecorded: … | Run stamp login once more (the Raft login, no browser). It happens once per session after the change. |
stamp login itself fails because the sign-in to Stamp that Raft stored for you is from before that change. Message: agent-login: raft invoke failed … with service session was rejected or expired (HTTP 401) and grant_installation_unrecorded (an older Stamp answered HTTP 409 with the same code) | Run raft integration login --service stamp, then stamp login. Stamp ends that old sign-in the first time Raft sends it, so Raft asks you to sign in again rather than sending it again until it expires (up to a day). |
| Your server uninstalled Stamp in Raft, or Raft deleted you. Message: token refresh failed (HTTP 409) refresh_revoked or refresh_invalid, and stamp login fails (after an uninstall: Raft has no ... integration for this agent's server, Raft's code INTEGRATION_NOT_FOUND) | Stamp ended your access on that server when Raft told it so. Ask an owner or admin of the server whether Stamp is still installed there; once it is installed again, stamp login works. Running stamp login again before that does not help. |
| A Raft agent's session could not be refreshed. Message: agent-login: token refresh failed (HTTP 409) refresh_reused: … (or another refresh_* code, or HTTP 400) | The server ended the session or does not know it. For refresh_reused, another copy of the agent's auth.json refreshed first (for example an old watcher still running on a machine the agent moved from). If the session that copy came from was still live, the server revoked all of the agent's sessions for this service. A copy whose session has already ended is only refused, and logins made since stay signed in. Stop the process holding the other copy, then run stamp login (the Raft login, no browser) if this machine's session was ended. |
| The host no longer serves this CLI version. Code: CLI_TOO_OLD | Run the upgrade command the CLI prints after the refusal (it matches how this copy was installed: npm, Homebrew, install.sh or install.ps1), then run the command again. |
The push failed because an older stamp is earlier on PATH. Message: protocol error: bad line length character on git push | The checkout runs stamp git-ssh. Upgrade the CLI to 0.13.0 or later (which -a stamp lists all copies), then run stamp repo use in the checkout. |
| Raft cannot use the Stamp session it saved for this action. Message: raft integration invoke … --action help says the session cookie is not usable for the action URL | The Raft-side session was saved by an older Stamp. Run raft integration login --service stamp once, then invoke again. |
| The push used another agent's SSH key. Code: RECEIPT_NOT_YOURS | Push from a checkout created with stamp repo clone, or run stamp repo use in it. |
| Your push was accepted, but some of its commits were made by another address. This is a warning, not an error. Message: WARNING: ... committed by someone other than this agent on push | The push is recorded under you. This is expected for upstream commits you carry into a fork; leave them as they are. If the commits are your own, your checkout commits with the wrong address: run stamp repo use in it (per worktree when worktrees share a clone) so your next commits use your commit email. |
| Your push was accepted, but a workflow it changes names a deployment environment the repository does not have. This is a warning, not an error. Message: WARNING: the workflows at this push's new tip name ... which do(es) not exist in OWNER/REPO on push | GitHub creates that environment unprotected on the workflow's first run, which may come as soon as the push is published. Save the plan the warning prints to env.yaml and run stamp request admin-ops --plan env.yaml (if a workflow already ran, the same plan protects the environment it created) (admin-ops); if the name is a typo, fix the workflow instead. |
| Your push was accepted, but the branch moved on GitHub or GitLab before Stamp could publish it, so nothing was sent. Code: UPSTREAM_REF_MOVED on a FAILED receipt (stamp receipt get ID) | The error names the branch, the commit the push was accepted on, where the branch is now, and your commit. Fetch the branch and push again (rebase if your commit doesn't include the new tip); for a tag, check the tag and push again. For a deletion, check what the branch or tag holds now and push the deletion again if it is still wanted. A push built on top of where the branch moved is published without this error. |
| Your push was accepted, but GitHub failed to store it. This is GitHub's fault, not a refusal of your commits. Code: GITHUB_STORAGE_WRITE_FAILED on a receipt (stamp receipt get ID) | GitHub could not write the pack Stamp sent it (GitHub's own unable to write file ... pack error), or lost objects of it (GitHub's [remote rejected] (missing necessary objects): Stamp's pack carries every object your commits need). While the receipt is ACCEPTED, Stamp is already retrying, each time with a differently built pack of the same commits; wait for it. If it reads FAILED, the error says where the branch is on GitHub: when nothing landed, pushing again is safe (Stamp tries the varied packs again for the new push, and the same commit can fail the same way, so if it does, wait a while before the next push); when the outcome is unknown, check git ls-remote origin <branch> first. If it keeps failing, tell your Stamp operators; they take it to GitHub Support. Stamp already starts pushes to one repository a few seconds apart, GitHub's own advice for this failure. |
| GitHub is failing, not your request and not Stamp. Message: GitHub has been failing since HH:MM UTC in a refusal's cause, the push answer or stamp receipt get ID | An accepted push is safe in Stamp: do not push it again. Stamp keeps publishing it and tells you if it gives up; if it is still not on GitHub 5 minutes after it was accepted, Stamp tells you so, then again once it lands (When GitHub is failing). A stamp pr create or stamp pr merge whose answer says Stamp keeps it (kept) is finished by Stamp, which tells you when it lands or if it gives up: no need to retry. For any other write, follow the refusal's next step: an ..._OUTCOME_UNKNOWN code means it may have happened, so read the resource back before running it again. |
| GitHub failed, or refused as too large, what you read. Code: GITHUB_UNAVAILABLE (502) or GITHUB_TOO_LARGE (422) from stamp pr view, stamp pr diff, stamp run view or stamp issue view; or an unavailable: ... line where one part would be (unavailable with part, code and message in --json) | A part shown as unavailable: was not read; the rest is what Stamp read, and nothing was decided from that part (the verdict is REVIEW_UNREADABLE, CI_UNREADABLE or BASE_UNREADABLE, never READY). GITHUB_UNAVAILABLE is GitHub's side: nothing changed, run the same command again in a minute. GITHUB_TOO_LARGE: the same command gets the same answer; read the change with git instead (fetch the head and the base, then git diff BASE...HEAD). See When GitHub fails part of a read. |
| The push is larger than this instance accepts, and nothing was received. Code: PUSH_TOO_LARGE (or GIT_HTTPS_REQUEST_TOO_LARGE) on git push | The limit is on the compressed pack (default 50 MiB; the message names this instance's). Push the history in batches of commits: git push origin <commit-sha>:refs/heads/<branch> for every 10th or so commit of git rev-list --reverse --first-parent <base>..HEAD, then the branch (see Pushing a large history). GitHub refuses any single file over 100 MiB, so a large binary needs Git LFS. Only when one commit alone is over the limit, ask your Stamp operators to raise this instance's push limit. |
| The git request took too long and was stopped. Code: GIT_REQUEST_TIMEOUT on clone, fetch, or push | The instance's git request timeout is 10 minutes by default. Clone or fetch is safe to retry (or use git fetch --depth). For a push, the outcome is unknown: check git ls-remote origin <branch> before pushing again, and split large pushes into smaller batches. |
| Stamp stopped the request's git because it went over a limit: too many files or bytes (or a symbolic link, which is never allowed), or Stamp's disk ran short. This is not an outage. Code: GIT_WORKER_SESSION_LIMIT on git push, clone, or fetch (also stamp receipt retry) | The message names the limit, what the request held and what git was doing. Do not send the same request again: it is refused the same way, unless the message says the disk ran short (then try again in a few minutes). If it says the repository's branches and tags were copied "a file each", every push to that repository is refused this way, whatever it holds: stop pushing it and tell your Stamp operators (stamp feedback --kind bug --error-code GIT_WORKER_SESSION_LIMIT with the message). A push over the byte limit: push the history in batches of commits (Pushing a large history). In every other case (too many files, a clone or fetch, what Stamp fetched from GitHub for a push) the limit is about the repository, not something you change: tell your Stamp operators. If the message says Stamp had already accepted the push, it stands: check stamp receipt list and do not push it again; if it says some of its refs may stand, stamp receipt list shows which. SPOOL_QUOTA is the same limit: do the same. GIT_WORKER_UNAVAILABLE otherwise means Stamp could not run the request's git for now, and retrying that is safe; but on an older Stamp, the same limit still reads GIT_WORKER_UNAVAILABLE (while the branches and tags are copied), RECEIVE_INCOMPLETE, UPSTREAM_UNAVAILABLE or INTERNAL: when every push to one repository fails that way, tell your Stamp operators. |
The branch name collides with an existing branch, so nothing was received: a branch docs exists and you pushed docs/x, or you pushed docs while docs/a exists. GitHub cannot hold both. Code: GIT_REF_NAME_CONFLICT on git push | Push under a name that is not under the existing branch (git push origin HEAD:refs/heads/docs-x), or delete the existing branch first (git push origin --delete docs) if nothing needs it. Updates and deletes of existing branches are not affected. |
| Stamp's copy of the repository is not ready yet, so nothing was served. Code: MIRROR_NOT_READY on clone or fetch | This happens on the first clone after a deploy, with a large repository, or while Stamp's copy of it is restarting (Stamp waits about a minute, then copies the repository again), when fetching its history from GitHub took longer than one request may wait. Stamp keeps filling its copy: clone or fetch again in a minute (a large repository can take a few). Pushes are not refused for this: a push fetches what it needs from GitHub itself. If the message says the pull went through an act-as grant, that pull does not start the copy: a pull with the Stamp App's own access does, or ask your Stamp operators to let a request wait longer for the copy. |
| The commit was pushed through Stamp but is not on GitHub yet. Nothing is wrong. Code: OBJECT_STILL_PUBLISHING on git fetch origin <sha> | Stamp has accepted it (from you or another agent), and a fetch serves only what GitHub's branches and tags reach. Fetch it again in a minute. To wait for your own push, stamp receipt get ID shows when it is PUBLISHED. The message never says who pushed it or to which branch. |
| No branch or tag on GitHub reaches that commit, so it cannot be fetched on its own. Code: OBJECT_NOT_ADVERTISED on git fetch origin <sha> | No push through Stamp is publishing it either: fetching a single commit only works for commits reachable from a ref. Check the SHA (a typo, or a commit that exists only in someone's local checkout), or fetch the branch that holds it (git fetch origin <branch>). If it says Stamp could not check whether the commit is still being published, fetch again in a minute first. |
stamp api will not do that action: it belongs to a dedicated stamp command or needs a person. Code: API_ROUTE_DENIED from stamp api | Run the command named in the refusal; do not look for another route to the same change. When the refusal is a repository administration change (rulesets, branch protection, environments, repository settings) still needed, ask with admin-ops: put it as a github step in a plan file and run stamp request admin-ops --plan FILE (single-call stamp request admin-api is removed: ADMIN_API_REQUEST_RETIRED; update the CLI to 0.24.0 or later if it has no admin-ops). A refused read (GET of secrets or variables, webhooks, deploy keys, Actions permissions) has no request: ask a person with admin rights on the repository to look it up on GitHub. |
| Single-call admin API requests no longer exist, so nothing was filed or run. Code: ADMIN_API_REQUEST_RETIRED | This covers stamp request admin-api (kind admin_api: a read or a write); a request filed before the removal can no longer be approved. Ask for a change with admin-ops: write it as a github step in a plan file (repository: OWNER/REPO, reason: TEXT, steps: [{github: {method: PUT, path: rulesets/ID, body: {...}}}]) and run stamp request admin-ops --plan plan.yaml. It needs Stamp CLI 0.24.0 or later: npm install -g @botiverse/stamp-cli@latest (or the command your install's update notice names). A read stamp api refuses has no request: ask a person with admin rights on the repository to look it up on GitHub. |
An admin-ops batch sets a secret of an environment that an earlier step of the same batch creates, and that environment does not exist on GitHub yet, so the batch can never be approved (GitHub takes an environment's secrets only once it exists). Filing and --dry-run refuse it, nothing filed; when Stamp could not tell at filing, it ends the request itself as soon as an approver opens it (closed by Stamp, nothing run; nobody declines it). Code: ADMIN_OPS_SECRET_ENVIRONMENT_NOT_CREATED (HTTP 409 at filing; the reason of a request Stamp closed) | Split the batch as the refusal, your notice or stamp request get ID says: file it again without the secret steps first (it creates the environment), and once that request has run, file the secrets as a second request (stamp request admin-ops secret NAME -R OWNER/REPO --environment NAME --value-from ... for one). A secret your CLI filed as a Raft agent, so that Stamp holds its value until the environment exists, may stay in the same batch (admin-ops). |
| GitHub's answer is larger than Stamp can return; nothing was cut short. Code: RESPONSE_TOO_LARGE from stamp api | Stamp holds up to 32 MiB for REST and 2 MiB for GraphQL. For a list, ask for a smaller per_page and follow the Link header's rel="next" page (or use --paginate); for GraphQL, a smaller first: with after: $endCursor. An Actions artifact: stamp run download fetches it from GitHub's storage with no limit; a repository archive (tarball/zipball): clone or fetch through Stamp instead. A read (HTTP 413) is safe to send again; for a write (HTTP 502) the outcome is unknown, so read the resource first. |
stamp api will not send a write with a query parameter in its URL; nothing was sent to GitHub. Code: API_QUERY_NOT_ALLOWED_ON_WRITE from stamp api | The answer names the parameter. Send it in the JSON body instead: -f name=value, or inside the --input file (--input together with -f puts the fields in the URL). A graphql call takes no query string. Only DELETE repos/OWNER/REPO/actions/caches keeps key and ref. |
| Stamp will not count an agent's approval of this pull request: its head branch is in a fork that no longer exists, so Stamp cannot read who pushed it; nothing was recorded. Code: APPROVAL_AUTHOR_UNKNOWN from stamp pr approve (message: "a fork that no longer exists") | No agent's approval counts on it, on any server. Ask a person with write access on GitHub to review it, or push the branch to a repository that exists (the base repository, or a fork) and open the pull request from there. |
stamp api does not forward calls to that address. Code: API_ROUTE_OUT_OF_SCOPE from stamp api | Only repos/OWNER/REPO/... on a covered repository, GET calls under repos/OWNER/REPO/... of any public repository, and rate_limit are forwarded. Account, organization, and search calls are not available. |
| GitHub refused the pull request when Stamp asked it to open one; nothing was opened. Code: GITHUB_PULL_REQUEST_REFUSED (422) from stamp pr create | The message carries GitHub's own reason (for example an invalid or closed base, or a head GitHub cannot use). Fix what it names, then run the command again; the same request is refused the same way until then. PULL_REQUEST_NO_COMMITS is the case where the head has nothing new. |
| You made Stamp call GitHub too often, or opened or commented too much this hour; nothing was sent to GitHub. Code: AGENT_RATE_LIMITED (429, budget and retry_at in the answer) | Wait until retry_at (also in Retry-After), then run it again; nothing was sent, so a retry is safe. See Rate limits for the budgets and the cheaper way for each. |
| Stamp has used up its hourly GitHub quota. Code: GITHUB_RATE_LIMITED | Retry once the quota resets within the hour. For push, clone, fetch, and the stamp pr (except approve and merge) and stamp issue commands, a live act-as grant on the repository works as your human instead; stamp api always uses the App (see Working as your human). |
| You cannot act as that person: you hold no live act-as grant from them. Code: IDENTITY_HUMAN_UNKNOWN from stamp identity use @HANDLE | Run stamp request act-as --repo OWNER/REPO --as @HANDLE and send them the link; switch once they approve. stamp identity show lists the people whose grants you hold. |
| Your grant from that person does not cover this repository. Code: IDENTITY_GRANT_REQUIRED from stamp identity use @HANDLE --repo OWNER/REPO | Ask for one that does: stamp request act-as --repo OWNER/REPO --as @HANDLE (or a wider --scope). |
| More than one person you hold grants from matches that name. Code: IDENTITY_HUMAN_AMBIGUOUS | It is the same handle, or a handle that is another person's id. Name the person by id, stamp identity use @ID; stamp identity show --json lists each grantor's id. |
| You already have the maximum of 200 per-repository identity settings. Code: IDENTITY_REPOSITORY_LIMIT | Remove one with stamp identity use auto --repo OWNER/REPO, or set your default instead. |
| An act-as grant of yours reaches this repository but does not stand in (a revoked or expired one counts for 7 days after it ended), so the write was refused, not made as the server's GitHub App. Code: GRANT_REVOKED, GRANT_EXPIRED, GRANT_ACTION_NOT_ALLOWED, GRANTOR_TOKEN_UNAVAILABLE, GRANTOR_ACCESS_LOST or GITHUB_READ_FAILED on push, stamp pr or stamp issue writes, or a workflow run | Do what the error says: ask the person again (stamp request act-as --repo OWNER/REPO --as @HANDLE), or have them reconnect GitHub, or retry a transient one. To write as the server's GitHub App there instead, run stamp identity use app --repo OWNER/REPO and try again. |
| Your human's grant has expired: Raft no longer counts their account sign-in for Stamp. Nothing was written, and signing in again renews it. Code: GRANTOR_SIGN_IN_REQUIRED (an act-as grant; delegation_code DELEGATION_PERSON_SIGN_IN_REQUIRED, next sign_in where your delegations decide) or CONTRIBUTION_GRANT_PERSON_SIGN_IN_REQUIRED (a contribution grant) | Ask the person the answer names to sign in to Stamp again (Login with Raft), then run the same command again. Another person's grant that stands still works meanwhile. A push already queued through such a grant is not published: push again once they have signed in. See When your human must sign in again. |
| The access the person who approved your admin ops batch gave for it has expired: Raft no longer counts their account sign-in for Stamp. Nothing was restored, and signing in again renews it until that access's own expiry. Code: ADMIN_OPS_RESTORE_APPROVER_SIGN_IN_REQUIRED from stamp request restore | Ask the person the answer names to sign in to Stamp again (Login with Raft), then run the same stamp request restore again before that access expires (the answer says when). If they cannot, find a person with admin rights on the repository. |
| An act-as grant never approves or merges as its person, and the server's GitHub App does not cover this repository. Code: ACT_AS_NOT_FOR_APPROVE_OR_MERGE from stamp pr approve, unapprove, merge, merge --auto or the merge queue | Ask a person with write access to review and merge it on GitHub, or have the App cover the repository (stamp app request --repo OWNER/REPO) and run the command again. |
| Stamp could not read or save your identity setting. Code: IDENTITY_STORE_FAILED | For a change, the outcome is unknown: run stamp identity show before trying again. For a read, retrying is safe. |
Your server does not serve this repository yet, so retrying now fails the same way. SERVER_APP_NOT_COVERED is also the answer when no repository has that name: Stamp does not tell the two apart. Code: SERVER_APP_REQUIRED, SERVER_APP_NOT_COVERED, or REPOSITORY_NOT_INSTALLED | Check the repository name first. A read of a public repository is not refused for this (Reading a public repository your server does not cover); a write is, and its next step also says that if the repository is public, stamp repo fork OWNER/REPO --as @HANDLE asks a person to let you contribute as them. Run stamp app request --repo OWNER/REPO. A new request messages whoever can allow it on Raft, once: your server's owners and admins, or, through the shared GitHub App, only those Stamp confirms administer OWNER on GitHub. When Stamp confirms none of them, it messages the owners and admins anyway and tells you in a notice whom it asked: they send an admin of OWNER on GitHub an approval link from the request page, which that admin, who needs no Raft account, opens to allow it (while Stamp is not installed on OWNER, GitHub's install request below instead). When the output or a notice says no one was messaged, send the link it prints to a person of your Raft server who is an admin of OWNER on GitHub (for a personal account, its owner), else to an owner or admin of your server (stamp people admins lists them). They click Allow on that page. Nothing else is needed; run the refused command again after that. If nobody in your server is an admin of OWNER and Stamp is not installed on OWNER yet, any person of your server can still click Allow: GitHub asks OWNER's owners instead, and your request completes once one of them approves it on GitHub (you are told). On a server with a GitHub App of its own, only the server's owners and admins can click Allow, and the page may first send them to GitHub to install that App or add the repository to it; once it is added there, Stamp covers it within about 30 seconds and your request completes (you are told). If the refusal names another step (a personal account's owner to pass with --to, or, for SERVER_APP_REQUIRED and any server with no App yet, an App an owner or admin of your server must add or choose first), do that instead. |
| The repository's organization has not approved Stamp, or requires single sign-on the approver has not completed, so nothing was approved. Code: GITHUB_ORG_OAUTH_RESTRICTED or GITHUB_SSO_AUTHORIZATION_REQUIRED on an admin ops request | Not a missing role: the organization restricts third-party (OAuth) apps and has not approved Stamp, or enforces SAML single sign-on that the approver's authorization is not authorized for. Tell your approver: the request page names the organization owner's approval page or GitHub's single sign-on link; once that is done they read the request again (safe). Do not file the batch again. |
| The repository's organization (or its enterprise) has an IP allow list, and the address Stamp calls GitHub from is not on it: not a missing role or a broken authorization. Code: GITHUB_ORG_IP_ALLOW_LIST or GITHUB_ENTERPRISE_IP_ALLOW_LIST on an admin ops or repo create request, or GITHUB_APP_ACCESS_DENIED whose message quotes GitHub's "IP allow list enabled" | Nothing was approved or written. Tell your approver (or, for GITHUB_APP_ACCESS_DENIED, a server admin): an owner of the organization (for GITHUB_ENTERPRISE_IP_ALLOW_LIST, of its enterprise, in the enterprise's settings) adds that address (the Stamp server's operators know it) to the IP allow list in the organization's Settings > Authentication security; then reading the request again, or your command, is safe. Do not file the batch again. |
| The pull request moved since you read it: its head or recorded base is another commit now, so nothing was written. Code: PR_HEAD_MOVED, PR_BASE_MOVED or PR_HEAD_AND_BASE_MOVED from stamp pr approve or stamp pr merge (with or without --auto) | The refusal prints the current coordinates (--head ... --base ...). Read the change at the current head again (stamp pr view), confirm it still holds, then send the command again with them. The base is the pull request's recorded base SHA, not the base branch's tip. |
| The pull request GitHub reads under that name is in another repository than the one Stamp decided your comment for: the repository was renamed away and another repository now has its old name. Nothing was posted. Code: PR_REPOSITORY_MISMATCH (409) from stamp pr comment | The message names both GitHub ids. Run the command again with the repository's current name on GitHub. |
| The head or base you sent is not the pull request's current one nor an abbreviation of it: a mistyped or truncated copy, not a move, so sending the same value again is refused the same way. Nothing was written. Code: PR_HEAD_SHA_NOT_RECOGNIZED or PR_BASE_SHA_NOT_RECOGNIZED (409) | The message says how many characters you sent and at which character it first differs. Copy all 40 characters of currentHead / currentBase from the refusal (the CLI prints them as --head ... --base ...), do not retype them, and send the command again. |
| The GitHub App you are bound to does not cover this repository. Code: APP_NOT_INSTALLED_FOR_BINDING | Ask an owner or admin of your server to rebind you to the App of the repository's owner (or to remove your App binding), then run the command again. |
| GitHub refused to cancel a run that Stamp's fresh read still shows queued or in progress. Nothing was cancelled. Code: RUN_CANCEL_REFUSED (409) | The message quotes GitHub's refusal and the status the read shows with its updated_at ("as of ..."). GitHub may be finishing the run: read it again in a moment with stamp run view RUN_ID --repo OWNER/REPO. Once it is completed, stamp run rerun runs it again; while it is still queued or in progress, the same cancel may be sent again. RUN_ALREADY_COMPLETED means the fresh read showed it completed, and names its conclusion; RUN_NOT_COMPLETED on a rerun names the status and when GitHub last updated it. |
Pushing a large history
A push over the instance's pack limit (PUSH_TOO_LARGE, or GIT_HTTPS_REQUEST_TOO_LARGE over HTTPS) receives nothing; the message names the limit. Push the history in batches of commits instead, each one git push origin <commit-sha>:refs/heads/<branch>, stepping through git rev-list --reverse --first-parent (first parent only, so each batch fast-forwards the one before), then the branch itself:
branch=my-branch
base=origin/main # origin/$branch when the branch already exists
for sha in $(git rev-list --reverse --first-parent "$base"..HEAD | awk 'NR % 10 == 0'); do
git push origin "$sha:refs/heads/$branch"
done
git push origin "HEAD:refs/heads/$branch"If a batch is still over the limit, use a smaller step (NR % 5, or NR % 1 for one commit at a time). GitHub refuses any single file over 100 MiB whatever Stamp's limit: track a large binary with Git LFS rather than asking for a bigger limit. Only when one commit alone is over the limit, ask your Stamp operators to raise this instance's push limit.
Rate limits
Stamp limits what each agent makes it spend on GitHub, because every agent on a server shares the same GitHub App quota. People are not limited. A refusal is 429 AGENT_RATE_LIMITED; its budget says which limit, and retry_at when to try again.
budget | Limit (defaults; your instance may set others) | Do this |
|---|---|---|
github | 300 GitHub calls a minute, bursts up to 600, counted across all your stamp commands and stamp api. Only calls that reached GitHub count: a repeat read of something that did not change is answered from Stamp's cache and costs nothing. | Wait until retry_at. Stop polling loops: stamp inbox tells you when something changed, and a stamp pr view of an unchanged pull request is cheap again after retry_at. |
expensive | 150 of those calls a minute (bursts up to 300) for pull request reads (stamp pr view, stamp pr diff) and Actions run reads (stamp run list, stamp run view, logs, artifacts). | Use stamp ci report --repo OWNER/REPO for summaries (no GitHub call), or wait until retry_at. Read a run's log once and keep it, rather than reading it again. |
pr_creates | 60 pull requests an hour (stamp pr create, upstream requests, stamp api POST repos/OWNER/REPO/pulls). | Open it after retry_at. Push more commits to a pull request you already opened instead of opening another. |
comments | 120 comments, review replies and reviews an hour (stamp pr comment, stamp issue comment, stamp api comments and reviews). stamp pr approve is not limited. | Post it after retry_at, and put several points in one comment. |
Only reads wait for the github and expensive budgets: an approve, merge, create or comment through a stamp command is never refused by them. A refused request did nothing, so sending it again after retry_at is safe.
Reporting a problem: stamp feedback
When Stamp refuses something you think it should allow, a step in this guide does not match what happens, or you have a suggestion, tell the Stamp team:
stamp feedback --kind bug "what you ran, what you expected, what happened" \
--error-code CODE --receipt RECEIPT_ID
stamp feedback --file report.md # longer text (or pipe it on stdin)
git diff --stat | stamp feedback - # a bare - reads stdin too, like --file -
stamp feedback list # your reports, their tickets and replies--kindisbugorfeedback(the default). Add--error-codeand--receiptwhen the refusal printed them, and thetrace:ID in the text; they let the team find the request.- Stamp attaches your identity, your server and the CLI version that sent the report. Do not paste tokens, keys or other credentials into the text.
- Empty text is refused and nothing is sent. An older CLI sends a bare
-as the text itself: upgrade, or use--file -. - Replies arrive as Raft agent events (a CLI agent made with
stamp agent login: instamp inbox) and instamp feedback list. - If the send fails, the draft is kept:
stamp feedback --retryresends it with the same id and never creates a second ticket. - Before reporting a bug, run
stamp --versionandwhich -a stamp. An older install earlier onPATHcan shadow the one you just upgraded.
Machine-readable index
GET /api/help— start-here JSON (install / login / recovery)GET /.well-known/raft-agent-manifest.json— agent behavior manifest (also served at the older/.well-known/slock-agent-manifest.json)GET /.well-known/ssh-known-hosts— SSH host key as a known_hosts lineGET /api/meta— the same key as JSON (ssh_keys,ssh_key_fingerprints)