# Refusals

AI agent getting started? Read [Agents: start here](https://docs.openeng.io/agents/start-here.md) first.

Refusal meanings and next steps.

Source: https://docs.openeng.io/reference/refusals/

A refusal explains why an operation was not accepted. Keep your draft, read the rule and follow its next steps before trying again.

## How to read this page

| Answer field | Look under |
| --- | --- |
| Refusal rule | [Refusal rules](#refusal-rules) |
| Rule inside a result | [Rules of a result](#rules-of-a-result) |
| Outcome kind | [Outcome kinds](#outcome-kinds) |
| Refusal class | [Refusal classes](#refusal-classes) |

Each entry gives its meaning and the actions available. An uncertain write needs [recovery](https://docs.openeng.io/developers/overview.md#write-through-a-branch), not an automatic retry.

## Refusal rules

The rule a refused operation names.

### engines-unavailable

Builds are unavailable on this deployment. Ask your administrator.

- Ask an administrator of the organisation to make the change or to grant the permission.

### output-ambiguous

An output is declared by more than one step.

- Correct the request and send it again.

### build-cycle

The upstream closure contains a cycle.

- Correct the request and send it again.

### binding-mismatch

An input binds an undeclared output or an output of another kind.

- Correct the request and send it again.

### build-input-outside-project

An input is outside the build's project.

- Correct the request and send it again.

### case-invalid

The case check has violations.

- Correct the request and send it again.

### outputs-already-current

Some requested outputs are already current; nothing was started.

- Choose run-all or run-stale and send the request again.

### build-too-large

The build requests more step runs than one build may start (20). Split the request.

- Correct the request and send it again.

### build-limit-reached

The build exceeds an organisation or closure limit.

- Correct the request and send it again.

### engine-mismatch

The registered engine fails a required engine check.

- Correct the request and send it again.

### engine-image-changed

The engine ran an image other than the one recorded when the step started.

- Ask an administrator of the organisation to make the change or to grant the permission.

### function-entry-unknown

The engine image does not offer the requested entry.

- Correct the request and send it again.

### step-outputs-missing

The output objects do not fill the entry's output slots.

- Correct the request and send it again.

### step-run-closed

The step run is terminal or its result was already accepted.

- Correct the request and send it again.

### claim-refused

The execution claim was refused.

- Retry every two seconds for at most sixty seconds.

### not-yet-bound

The claim code is live and its execution binding is pending.

- Retry every two seconds for at most sixty seconds.

### engine-invalid

The engine properties, class or runtime are not admitted.

- Correct the request and send it again.

### log-already-written

The step run already has a log.

- Correct the request and send it again.

### output-too-large

The output exceeds its kind's byte limit.

- Correct the request and send it again.

### output-digest-mismatch

The uploaded bytes do not match the declared digest.

- Correct the request and send it again.

### output-malformed

The indexed output fails its format or declared-key check.

- Correct the request and send it again.

### step-ill-formed

The step names more than one function or more than one case.

- Correct the request and send it again.

### output-missing

The engine did not submit every output the step declares.

- Correct the request and send it again.

### output-not-declared

The step spec does not declare this output name.

- Correct the request and send it again.

### draft-locked

Another person holds this draft lock.

- Wait for the lock to expire or ask its holder to release it.

### draft-lock-lost

The draft lock is no longer held by you.

- Acquire the draft again before saving.

### draft-not-flushed

The draft has saves that were not confirmed.

- Save and confirm the latest draft before publishing.

### draft-changed

The draft changed since it was read, or its saved base no longer matches.

- Acquire the draft again before saving.

### unknown-block

The save names a block identifier the draft does not hold.

- Send a new block in added, without an identifier; the server mints it.

### ref-not-found

The branch no longer exists.

- Choose an existing branch.

### object-not-found

The object is absent from the destination branch.

- Correct the request and send it again.

### not-a-saver

Only a person who saved this draft may restore it.

- Ask a person who saved the draft to restore it.

### ref-has-drafts

The branch still has drafts.

- Review its drafts and confirm their removal before disposing the branch.

### body-wrong-format

The body holds a block of a format this type does not allow, or more blocks than its format allows.

- Correct the request and send it again.

### body-not-declared

The object's type version does not declare a body format.

- Correct the request and send it again.

### body-changed

The body changed since this draft was opened.

- Read the object's current body, discard the draft and acquire it again. (readObject)

### body-too-large

The body exceeds the limit on blocks, bytes per block or total bytes.

- Correct the request and send it again.

### upstream-changed

The upstream content changed since the link was reviewed; no link was cleared.

- Read the link status, review the upstream content and clear against its new version. (readLinkStatus)

### upstream-not-readable

The upstream object or an object in its review chain cannot be read; no link was cleared.

- Ask for read access to the upstream review chain before clearing the link.

### too-many-links

The review chain or aggregate exceeds 100 contributing objects or links.

- Reduce the chain or the contributing links before reading or clearing again.

### unsupported-content

The file's content or name is not an admitted attachment format.

- Correct the request and send it again.

### too-large

The attachment exceeds the per-file byte limit.

- Correct the request and send it again.

### storage-limit-reached

The organisation has no room left for a file of this size.

- Ask an administrator of the organisation to make the change or to grant the permission.

### upload-not-found

No finished upload of yours matches this identifier.

- Open a new upload and send the file again.

### upload-length-mismatch

The stored file is not the length the upload declared.

- Open a new upload and send the whole file again.

### attachment-collision

A different file is already stored under this file's name in the store.

- Open a new upload and send the file again; if it recurs, tell an administrator.

### not-an-attachment-property

The object's stored type version does not declare this property as an attachment.

- Correct the request and send it again.

### no-attachment

The property holds no attachment.



### attachment-unavailable

The attachment's stored bytes are unavailable.

- Ask an administrator to restore the attachment.

### unknown-attachment

The changed attachment has not been staged for you in this project.

- Correct the request and send it again.

### attachment-precondition

The attachment's media type or byte count differs from its stored metadata.

- Correct the request and send it again.

### attachment-class-mismatch

The attachment's class is not admitted by this property.

- Correct the request and send it again.

### not-permitted

The operation was refused. What the request names may not exist, or you may not have permission for it; the answer is the same either way.

- Check that the request names something you can reach; if it does, ask an administrator for the permission.

### grant-scope

The application was not given the permission this operation needs; the refusal names that permission.

- Ask the person to connect the application again with the permission the refusal names.

### not-in-this-release

This operation is not available in this release.



### no-commits

The branch holds no change of its own yet.



### proposal-open

A proposal for this branch is already waiting for review.

- Read the pending proposal. (readPendingProposal)

### proposal-not-pending

The proposal is no longer waiting for review.

- Read the proposal. (readProposal)

### proposal-required

A rule on the target requires a proposal from this branch to the target before it merges, and none is pending.

- Submit a proposal for the branch, have it approved, then merge it. (readPendingProposal)

### approvals-required

A rule on the target requires more approvals of the branch's latest commit than the proposal has.

- Read the proposal's approvals and ask an approver to review its latest commit. (readProposal)

### deletion-restricted

A rule restricts deleting this branch, and you are not on its bypass list.

- Ask someone on the rule's bypass list to delete the branch. (listRefRules)

### bypass-required

The branch has a pending proposal and a rule matches it, so only someone on the bypass list of each matching rule may delete it.

- Refuse the proposal first, or ask someone on the rule's bypass list to delete the branch. (readPendingProposal)

### proposal-head-moved

The branch's latest commit is not the one the approval names, so nothing was recorded.

- Read the branch's latest commit, review it and approve that commit. (readRefHead)

### author-cannot-approve

An author of the proposal cannot approve it.

- Ask another person who reads the project to approve it.

### already-approved

You have already approved the proposal at this commit, so nothing was recorded.

- Read the proposal's approvals. (readProposal)

### invalid-rule-pattern

The rule's pattern is not one its owner and extent take: a project's branch rule names its own branches, an organisation's rule names main or organisation branches and baselines, and a rows rule names main or its project's own branches.

- Correct the request and send it again.

### invalid-rule-setting

The rule's settings do not fit together or do not fit the rule: approvals need a proposal and an approver, and only a project's branch rule restricts deletions.

- Correct the request and send it again.

### unknown-rule-member

The rule names a person, service or application that it may not name; the answer is the same whether the member is absent or outside the rule's home.

- Correct the request and send it again.

### duplicate-rule

Another rule on this pattern and extent already has that consequence; the rule is unchanged.

- Correct the request and send it again.

### invalid-proposal-target

The proposal's target is not one a proposal may name: main, a writable organisation branch, or a project branch.

- Correct the request and send it again.

### change-set-open

The organisation already has an open change set.

- Read the open change set and continue with it. (readCurrentChangeSet)

### stale-revision

The change set or app draft has changed since it was read, so nothing was applied.

- Read the change set again, apply your change to what it now holds and send it again. (readChangeSet)
- Read the object set again and retry with its current revision. (readObjectSet)
- Read the app draft again, apply your change to what it now holds and send it again. (readAppDraft)

### not-open

The change set or app draft is accepted or discarded and takes no further change.

- Read the change set's state. (readChangeSetState)
- Read the app draft's state. (readAppDraft)

### app-draft-open

The app already has an open draft.

- Read the open draft and continue with it. (readAppDraft)

### invalid-app

The app key or document is invalid; document violations say where.

- Use a valid app key.
- Correct the document at the paths the violations name and save it again. (readAppDraft)

### invalid-catalogue

The change set does not pass the checks on types; the violations say where.

- Read the change set, correct it at the paths the violations name and revise it. For typeIcon, use a Material Symbols Rounded name from @material-symbols/font-400, such as memory or developer_board. openeng types icons <text> lists valid names and needs no sign-in; the full list is at https://docs.openeng.io/reference/icons/. (readChangeSet)

### version-conflict

Another change already published a version of a type that this change set also publishes.

- Read the change set and the published types, then revise the change set to the next version. (readChangeSet)

### owned-type-not-presentation

A connector-owned type permits only presentation changes to a later object or edge version. First versions and verbs are refused; the detail names the requested type key and the refused column.

- Keep the type's data fields unchanged and publish only the permitted presentation changes.

### key-under-another-kind

A type key in the change set is already used by a type of another kind.

- Read the change set, choose a different key and revise it. (readChangeSet)

### namespace-not-active

The organisation's types are not active, so nothing can be published to them.

- Ask an administrator of the organisation to make the change or to grant the permission.

### invalid-configuration

The agent is not set up for this request.

- Ask an administrator of the organisation to make the change or to grant the permission.

### run-in-flight

This agent session is already working on a request.

- Wait for it to finish, or stop it. (readAgentSession)

### plan-not-proposed

No plan is waiting for an answer.

- Read the agent session. (readAgentSession)

### plan-answered

The plan has already been answered.

- Read the agent session. (readAgentSession)

### plan-superseded

A newer plan replaced this one.

- Read the agent session. (readAgentSession)

### plan-closed

The plan is closed, so it takes no further change.

- Read the agent session. (readAgentSession)

### plan-not-open

The plan is not open.

- Read the agent session. (readAgentSession)

### unknown-role

The role key is unknown to this deployment.

- Choose a role key from roleKeys and send the request again.

### above-caller-role

The request would give a role that is higher than your own, or change one.

- Ask an administrator of the organisation to make the change or to grant the permission.

### membership-own-role

A person cannot grant or change their own membership.

- Ask an administrator of the organisation to make the change or to grant the permission.

### last-administrator

The organisation must keep at least one administrator.

- Name another administrator first.

### erasure-not-permitted

The erasure is not permitted.

- Ask an administrator of the organisation to make the change or to grant the permission.

### no-such-membership

The membership the request names is not one you may change.

- Correct the request and send it again.

### capability-missing

You do not have the permission this operation needs.

- Ask an administrator of the organisation to make the change or to grant the permission.

### window-out-of-range

The requested session-refresh window must be from 1 through 60,000 milliseconds.

- Correct the request and send it again.

### max-session-out-of-range

The requested session lifetime must be from 1 through 2,592,000 seconds.

- Correct the request and send it again.

### invalid-email

The email address is not one the platform takes: it must have one @, and no space or non-ASCII character, and be at most 254 characters.

- Correct the request and send it again.

### already-invited

The organisation already has a pending invitation to this address.

- List the pending invitations. (listInvitations)

### no-such-client

The client the request names is not an active client of your organisation.

- List the organisation's clients. (listClients)

### no-such-invitation

The invitation the request names is not one of your organisation.

- List the pending invitations. (listInvitations)

### invitation-not-pending

The invitation was already accepted or revoked.

- List the pending invitations. (listInvitations)

### invalid-domain

The rule lacks its switch or list, or a domain is not valid: it needs letters, digits, hyphens and at least one dot.

- Correct the request and send it again.

### domain-not-allowed

The organisation invites only addresses on its allowed domains, and this address is not on the list.

- Use an address on an allowed domain, or ask an owner to change the list. (readInvitationDomainRule)

### membership-exists

The membership already exists.

- List the members. (listMembers)

### no-such-principal

The request names someone who cannot hold the membership.

- Correct the request and send it again.

### service_identity.revoke

The service account was not revoked: you do not administer it.

- Ask an administrator of the organisation to make the change or to grant the permission.

### duplicate-name

The name is already in use.

- Choose another name.

### unknown-credential

The credential was not accepted.

- Check the credential and send it again, or ask for a new one.

### token-kind-not-admitted

This operation does not take this kind of token. Its reference lists the kinds of token it takes.

- Use a kind of token this operation takes.

### secret

The credential was not accepted.

- Check the credential and send it again, or ask for a new one.

### kind

The sign-in was refused for this kind of account.

- Ask an administrator of the organisation to make the change or to grant the permission.

### lifecycle

The sign-in was refused because of the state of this account.

- Ask an administrator of the organisation to make the change or to grant the permission.

### invitation

The sign-in needs an invitation, and none was found.

- Ask an administrator of the organisation to make the change or to grant the permission.

### unknown

The refresh token was not accepted.

- Sign in again.

### replayed

The refresh token was already used, so the sign-in was ended.

- Sign in again.

### refused

The refresh was refused.

- Sign in again.

### token-shape

The sign-in token was not accepted.

- Sign in again.

### signature

The sign-in token was not accepted.

- Sign in again.

### issuer

The sign-in token was not accepted.

- Sign in again.

### audience

The sign-in token was not accepted.

- Sign in again.

### expiry

The sign-in token is expired or not yet valid.

- Sign in again.

### algorithm

The sign-in token was not accepted.

- Sign in again.

### claims

The sign-in token was not accepted.

- Sign in again.

### malformed-query

The query is not one the platform can run; the refusal identifies the path of the invalid field.

- Correct the request and send it again.

### view-not-drawable

The published view steps over an edge type that has no parent end, so it places no object under another and cannot be drawn as a tree.

- Ask the type's author to change the view, or to step over an edge type that has a parent end.

### text-search-unavailable

Text search is a filter of kind text, not a search key.

- Send the term as a filter of kind text.

### search-too-wide

The text match names more properties than one query may match.

- Name the object type the match is over.

### invalid-continuation

The paging token is not one the platform issued for this request.

- Start the read again from its first page.

### stale-continuation

The paging token was issued for an earlier state.

- Start the read again from its first page.

### head-moved

The branch changed while the pages were being read.

- Start the read again from its first page.

### cycle-in-reach

A per-path repeat reach returned to an object already in that path's ancestors; the refusal names the readable object.

- Remove the cycle, or use distinct multiplicity, which admits cycles.

### over-bound

The request exceeds a graph, structure, path, or query limit.

- Correct the request and send it again.

### malformed-history-request

The history request is not one the platform can run.

- Correct the request and send it again.

### protected-ref

This branch is protected, so this write cannot proceed.

- Write to another branch.

### immutable

The record's type is immutable, so it cannot be changed or deleted on any branch.

- Leave the record unchanged.

### owned

The record belongs to a connected system, which alone can write it.

- Ask the connected system to make the change.

### frozen

The record is locked; it cannot be changed until someone allowed to lock records lifts the lock.

- Ask someone allowed to lock records to lift the lock.

### protected

A rule protects this record on this branch, so it changes only by a merge from another branch.

- Make the change on another branch and merge it.

### not-a-ref-head

The commit is not the latest commit of a branch you can use.

- Read the branches you can use and choose one.

### stale-source

The source commit is not the current commit on the named branch.

- Read a branch you can use and merge its current commit.

### merge-preview-approximate

The merge's changes could not be read exactly, so nothing was merged.

- Start a new branch from the target, make the changes there, and merge that branch.

### branch-needs-schema-update

This branch's schema differs from the platform's, so it must be updated before it can be read or written.

- Request a schema update for the branch.

### organisation-not-ready

The organisation's trunk is not ready yet.

- Try again shortly.

### read-only-ref

The branch is read-only, the write names a commit, or you cannot write to this branch.

- Choose a branch you can write to.

### ref-exists

An organisation branch or baseline of that name already exists.

- List the organisation's branches and baselines. (listOrganisationRefs)

### concurrent-change

Another write changed the record first, so nothing was applied.

- Try again shortly.

### lock-unavailable

The lock could not be taken now, so nothing was applied.

- Try again shortly.

### organisation-not-active

The organisation is not active.

- Ask an administrator of the organisation to make the change or to grant the permission.

### duplicate-project

A project with this identifier already exists.

- List the projects. (listProjects)

### duplicate-organisation

An organisation with this identifier already exists.

- Send it again as a new request.

### model-not-configured

No agent model is set up for this organisation.

- Ask an administrator of the organisation to make the change or to grant the permission.

### unknown-person

The request names a person who is not one you may name; the answer is the same whether the person is absent or out of your reach.

- Correct the request and send it again.

### limit-reached

The object already holds as many people in this role as the platform allows.

- Remove someone from the role first, or choose another role.

### role-not-admitted

The object's type does not admit this role.

- Read the type's `subscriptionRoles` with `readCatalogue`; choose an admitted role, or ask a type administrator to publish a changed declaration. (readCatalogue)

### subscription-absent

The object has no such subscription to remove.

- Read the object's subscribers to see who is subscribed.

### invalid-body

The comment text is empty or longer than the platform allows.

- Correct the request and send it again.

### invalid-mention

A mention points outside the comment text, overlaps another, or cuts a character in two, or the comment holds too many mentions.

- Correct the request and send it again.

### anchor-invalid

The comment anchor has invalid offsets, quote length or context length, names a block the object does not have, or quotes text that the block does not hold.

- Correct the request and send it again.

### invalid-ref

The branch the request names is not in a form the platform takes for this operation.

- Correct the request and send it again.

### invalid-query

The search text, or the page the request continues from, is outside what the platform takes.

- Correct the request and send it again.

### invalid-project-id

The project could not be created under the identifier the platform made for it.

- Send it again as a new request.

### import-running

A run of this connection is already running.

- List the connection's runs. (listImportRuns)

### connection-exists

The organisation already has a live connection for this stack and company.

- List the connections. (listConnections)

### run-not-running

The run is missing, not running, or belongs to someone else.

- List the connection's runs. (listImportRuns)

### connection-revoked

The connection is revoked, so it takes no further change or run.



### credential-not-valid

The upstream system did not accept the credential, and nothing was stored.

- Check the credential and send it again.

### types-not-approved

This connector's types are not approved for this system and template version; a person who holds the permission to administer types in the organisation accepts them.

- Ask such a person to review and accept the connector's change set. (readCurrentChangeSet)

### connector-template-missing

This deployment holds no type template for the connector's system.



### step-up-required

This operation needs the person's own confirmation and none stands for this request. Where the refusal carries a pending request, the request now awaits that confirmation.

- Have the person confirm the pending request, then send the same request again with the same key and the proof.

### step-up-mismatch

The confirmation presented was given for another request or another person, or for a request that differs in its target, key or body.

- Send the request again without the confirmation to start a new one.

### step-up-capacity

The person already has the most confirmations waiting that the platform allows.

- Confirm the waiting requests, or wait for them to lapse, then send the request again.

## Outcome kinds

The kind of outcome when no rule applies.

### unauthenticated

The request carried no sign-in it can use: none, or an invalid or expired one.

- Sign in and send the request again.

### not-found

What the request names does not exist, or you may not reach it; the answer is the same either way.

- Check the identifiers; list what you may read. (listProjects)
- If the request names a verb, list the verbs available for the object. (discoverVerbs)

### session-moved

Your sign-in moved to another organisation or was detached after this token was issued.

- Sign in again and attach the organisation you want.

### not-attached

Your sign-in is attached to no organisation, and this request acts inside one.

- Attach your sign-in to an organisation, then send the request again.

### invalid-request

The request is not in the shape the call takes.

- Correct the request and send it again.

### bound-exceeded

The request went past a limit the platform sets.

- Make the request smaller, or wait before sending the next.

### in-flight

A request with this key is still being handled.

- Wait, then send the same request with the same key again.

### internal

The platform failed while handling the request.

- Send the request again later, and give support the reference code the refusal carries if it persists.

### protocol-mismatch

The version header is missing, repeated, malformed or does not match the platform.

- Send one valid version header or update the client.

### unknown-outcome

The platform cannot tell whether the operation took effect.

- Read the state the operation changes before sending it again; the refusal's reference code names the attempt.

## Refusal classes

Whose action the refusal asks for: the caller's, the platform's, or another person's.

### caller

The platform refused the request under a rule that you can correct, or that needs a permission you lack.

- Correct the request and send it again.

### contention

Another change was being made to the same thing, and nothing was applied.

- Send the request again once the other change has finished.

### platform-fault

The platform's own state or statement was wrong; the incident is recorded.

- Send the request again later.

### unattributed

A rule on unique values refused the write and cannot say whose mistake it was.

- Read what exists, and send the request again if it is still wanted.

## Rules of a result

The rule a refused result inside a successful answer names.

### not-found

What the request names does not exist, or you may not reach it; the answer is the same either way.

- Check the identifiers; list what you may read. (listProjects)
- If the request names a verb, list the verbs available for the object. (discoverVerbs)

### token-kind-not-admitted

This operation does not take this kind of token. Its reference lists the kinds of token it takes.

- Use a kind of token this operation takes.

### immutable

The record's type is immutable, so it cannot be changed or deleted on any branch.

- Leave the record unchanged.

### owned

The record belongs to a connected system, which alone can write it.

- Ask the connected system to make the change.

### frozen

The record is locked; it cannot be changed until someone allowed to lock records lifts the lock.

- Ask someone allowed to lock records to lift the lock.

### protected

A rule protects this record on this branch, so it changes only by a merge from another branch.

- Make the change on another branch and merge it.

### branch-needs-schema-update

This branch's schema differs from the platform's, so it must be updated before it can be read or written.

- Request a schema update for the branch.

### conflict

A property's current value differs from the 'from' value the request expected; the refusal names each such property and its current value.

- Read the current properties, reconcile the changes and send the update again with the from values you now expect.

### unknown-type

The requested type is not a current object or edge type in this namespace.

- Read the current types and use an object or edge type they contain. (readCatalogue)
- If looking for a verb, list the verbs available for the object. (discoverVerbs)

### unknown-verb

There is no current verb with that name.

- List the verbs available for the object. (discoverVerbs)

### type-version-precondition

The type version the request expected differs from the type's current version.

- Read the type's current version and send the request with that version.

### invalid-properties

The property document failed validation; the violations name each offending path and rule.

- Correct the properties at the paths the violations name and send the request again.

### blocked-by-edge

The object has a link you may not remove, so nothing was deleted.

- Remove that link first, or ask someone who may to remove it.

### endpoint-type-mismatch

An endpoint's object type does not match the source or target type required by the link's type version.

- Use endpoints whose object types match the link's source and target types.

### cross-organisation-edge

The link's endpoints belong to projects in different organisations.

- Choose endpoints whose projects belong to the same organisation.

### project-not-an-endpoint

The project this operation acts in is neither endpoint's project.

- Send the operation in one of the endpoints' projects.

### self-parent

The structural link would make an object its own parent.

- Choose different objects for the parent and child.

### descendant-parent

The proposed parent is already a descendant of the child, so the structural link would create a cycle.

- Choose a parent that is not a descendant of the child.
