Documentation

Error reference

The error codes the API and MCP server can return: what each one means and how to recover. Errors are returned in a { error_code, message, details } envelope; the code is what to branch on.

Validation failed

validation_failed

The request shape was rejected: a field is missing, malformed, or out of range.

Recover: Fix the flagged field against the tool's input schema and retry.

Artifact not found

artifact_not_found

No artifact resolved for the given id in this workspace.

Recover: Check the id; the envelope's details carry ranked suggestions of close matches you likely meant.

Invalid parent type

invalid_parent_type

The parent you linked isn't an allowed parent for that child type; parenting is type-by-shape.

Recover: Read artifact_types (or hf://types) for the child's allowedParentTypes, pick a valid parent, and retry. Nothing was written.

AI gateway unavailable

gateway_unavailable

An LLM-backed step couldn't reach the AI gateway (down, rate-limited upstream, or unconfigured).

Recover: Retry shortly; if it persists, the operation can proceed without the AI-graded step.

Internal error

internal_error

An unexpected server-side failure the caller can't correct.

Recover: Retry once; if it persists, report it via send_feedback with the request details.

Datastore degraded

datastore_degraded

A read-only tool could not reach the datastore needed to answer accurately.

Recover: Retry shortly. Do not interpret the failed response as an empty result; the underlying facts were not read.

User declined

user_declined

A proposed change was declined or never applied.

Recover: Nothing landed. Revisit the proposal or adjust it before requesting another decision.

Workspace membership missing

workspace_membership_missing

You're authenticated but not a member of the target workspace (403, not 404; the workspace exists).

Recover: Use a workspace you belong to, or have an admin invite you.

Workspace required

workspace_required

On the shared /mcp connection, a tool call named no workspace and you belong to more than one.

Recover: Call workspaces_list, then pass one of its ids as workspace_id on the call. The error's details.active_workspace_id names the workspace the web app opens; it is never used by default, because it changes when you switch workspaces in the app, so pass it as workspace_id to act on it.

Response too large

response_too_large

The result exceeded the response cap and was withheld or degraded.

Recover: Narrow the request: add filters, lower the limit, page with offset, or pass a slimmer shape.

Rate limited

rate_limited

Too many requests in a short window.

Recover: Back off and retry after a short delay.

Stale base

stale_base

An optimistic-concurrency conflict: the base you edited against had already moved on.

Recover: Re-read the current state and re-apply your change on top of it.

Workspace not found

workspace_not_found

The workspace itself didn't resolve (distinct from missing membership).

Recover: Check the workspace id in the URL / pin; use a valid workspace.

Side effect failed

edge_side_effect_failed

The primary write succeeded but a declared side-effect didn't; the operation is retryable and convergent.

Recover: Re-issue the identical call; it keys off live state and completes the outstanding side-effect without duplicating the primary write.

Capability restricted

capability_restricted

You're authenticated, but this operation isn't permitted for your execution context (the action verb is outside the proposable allowlist, or its payload doesn't fit the allowlist entry's contract).

Recover: Read the details: restricting names what scoped the refusal and next_step says whether to amend and resubmit, await review, or abandon.

Workspace read-only

workspace_read_only

You're a member of this workspace, but your role carries no write capability, so tools that mutate workspace content are refused. details.tool names the tool that was refused.

Recover: Don't retry and don't reshape the call: nothing about the request will change the outcome. Read tools still work. A workspace admin must grant write access.

Forbidden

Forbidden

You may not run this operation. details.reason names why; human_only means only a person can decide it.

Recover: Read details.reason. For human_only, follow the human_only entry: give details.decide_url to a person and stop. For any other reason, don't retry the same call.

Only a person can decide

human_only

A Forbidden refusal with details.reason: 'human_only': the operation needs a person's decision and no person answered here. details.human_only_cause says why: api_key (no person stands behind the key), client_cannot_ask (the client declared no form elicitation), server_cannot_ask, no_answer (the form was shown but the retry carried no answer), or dismissed (the person closed the form without choosing).

Recover: Follow details.next_action. On open_decide_url, give details.decide_url to a person, who decides there signed in, and stop; never retry it in a loop. On call_again, call once more without requestState to ask the person again, or give them the page.

Service unavailable

ServiceUnavailable

A datastore or downstream service the operation needs could not answer. Nothing about the request was wrong.

Recover: Retry the same call after a short delay. Do not read the failure as an empty or negative result.

Artifact not found

ArtifactNotFound

An artifact the call names (the artifact, a parent, an edge endpoint, or a scope) does not exist in this workspace. details may name the id or suggest close matches.

Recover: Check the id against details, or find the artifact with artifacts_search, then retry. A pending proposal id is not an artifact id.

Artifact not found

ArtifactReadNotFound

No current artifact has this id in the workspace. details.recently_updated lists recently updated artifacts for orientation, not as matches.

Recover: Find the artifact with artifacts_search and retry with its id.

Read input invalid

ArtifactReadInputInvalid

A filter or id did not pass the read's checks. details.reason names which.

Recover: Fix the input details.reason names and retry.

Premise changed

ArtifactUpdatePremiseMoved

The artifact's title, description, content, or clauses changed since you reviewed them. details carries the expected and current premise hashes.

Recover: Re-read the artifact, review the current text, and retry against the current premise. Nothing was written.

Parent declined

ArtifactCreateParentPickerDeclined

The person declined the suggested parent for this create. Nothing was written.

Recover: Ask the person which parent to use and retry with that parent_id, or pass allow_orphan: true if they want it unparented.

Replacement declined

ArtifactProposeSingletonDeclined

The person declined replacing the workspace's existing singleton artifact (for example its mission). Nothing was written.

Recover: Don't retry. Update the existing artifact instead, or ask the person what they want.

Replacement prompt closed

ArtifactProposeSingletonDismissed

The person closed the prompt about replacing the workspace's existing singleton artifact without choosing. Nothing was written or filed.

Recover: You may ask once more by retrying the create. If they close it again, ask the person what they want instead.

Create input invalid

ArtifactCreateInputInvalid

The create input is invalid for its type, such as a missing title or a malformed parent id.

Recover: Fix the field the message names and retry.

Parent required

ArtifactCreateParentRequired

This artifact type needs a parent. details.expected_parent_types lists the valid parent types.

Recover: Find a parent of one of those types with artifacts_search and retry with parent_id, or pass allow_orphan: true (details.opt_out) to create it unparented.

Invalid parent type

ArtifactParentTypeInvalid

The parent you named has a type this artifact cannot sit under. details lists the valid parent types.

Recover: Pick a parent of a listed type (artifact_types shows each type's allowed parents) and retry. Nothing was written.

Field too long

ArtifactFieldTooLong

A title, description, or content field is longer than its type allows. The message names the field, the limit, and the actual length (characters, or bytes for the whole content).

Recover: Shorten the field to the limit and retry. Move detail out of a long description into the artifact's content or a child artifact.

Title empty

ArtifactUpdateTitleEmpty

The new title is empty.

Recover: Send a non-empty title, or leave title out to keep the current one.

Priority not applicable

ArtifactUpdatePriorityNotApplicable

This artifact type takes no priority.

Recover: Retry without priority.

Closure invalid

ArtifactUpdateClosureInvalid

The closure fields do not fit this change. closure_reason and closure_successor_id need state: 'closed'. A successor must be an open artifact other than this one, and only a duplicate or migrated close takes one. details.field names the field.

Recover: Send closure fields together with state: 'closed', fix the field details.field names, or close without a successor, and retry.

Owner invalid

ArtifactWriteOwnerInvalid

The owner you named is not a member of this workspace.

Recover: Use the id of a workspace member, or leave the owner unset.

Content rejected

ArtifactWriteValidatorRejected

A write validator refused the content. details.rule_id and details.field name the rule and the field.

Recover: Fix the field to satisfy the rule and retry.

Transition not allowed

ArtifactTransitionRejected

The artifact's lifecycle does not allow this state change from its current state. details names from, to, and the reason.

Recover: Re-read the artifact's state and pick a transition its type allows from there. Don't retry the same change.

State value invalid

StateValueInvalid

The state or closure reason is not one this artifact accepts. details lists the allowed values.

Recover: Retry with one of the listed values.

Quality check rejected the write

ArtifactQualityAdmissionRejected

Deterministic validation or the quality review refused the write; nothing was saved. details.findings lists format findings, or details.artifact_quality carries the review.

Recover: Fix what the findings or the review name, then retry. Don't resend the same text unchanged.

Graph refused the write

ArtifactGraphValidationFailed

The graph refused the write: a cycle, a self link, an edge it already holds in another form, or a value it does not accept. details names the check.

Recover: Change the edge or value details names and retry. Nothing was written.

Delete confirmation invalid

ArtifactDeleteConfirmationInvalid

The confirmation_token is unknown, expired, or for another delete. details.reason says which.

Recover: Run the delete again without confirmation_token to get a fresh token, then confirm with it.

Clause grammar mismatch

ClauseGrammarMismatch

A clause does not hold exactly one token of its grammar. It has none, or more than one. details.clause_index is the clause's position, counting from 0, and details.expected_tokens lists the tokens it can use. details.artifact_type names the type when the check knew it. When it is absent, the check ran before the artifact's type was read, and expected_tokens lists the tokens of every grammar.

Recover: Rewrite that clause with exactly one of the expected tokens (for example MUST or MUST NOT) and retry.

Too many clauses

ClauseLimitExceeded

The artifact has more clauses than its type allows. details.limit and details.actual give the counts.

Recover: Cut or merge clauses to the limit, or split the work into more artifacts, and retry.

Clauses not applicable

ClausesNotApplicable

This artifact type takes no clauses.

Recover: Retry without clauses.

Ticket clauses required

TicketClausesRequired

Creating a ticket through MCP needs at least one specification clause, and a description update may not clear the clauses of a ticket that has them. A ticket with no clauses accepts description updates without them.

Recover: Add at least one MUST or MUST NOT statement to clauses, or omit clauses to keep the stored ones, and retry.

Command input invalid

CommandPlaneInputInvalid

The write command was malformed, or it needed a quality admission it did not carry.

Recover: Check the call against the tool's input schema and retry through the documented tool.

Needs a person

CommandPlaneCapabilityRestricted

Ratification and validation renewal need an authenticated person. Your credential may not run this write.

Recover: Don't retry. Ask a person to ratify with person_decisions_request (pass artifact_id), which shows them a form, or give them the artifact's page.

Quality input invalid

QualityInputInvalid

The input to the quality grader did not pass its checks.

Recover: Fix the input the message names and retry.

Quality budget exceeded

QualityModelBudgetExceeded

Grading this content would exceed the grader's model-call budget.

Recover: Shorten the content and retry. Retrying the same content gets the same answer.

Content too large to grade

QualityModelContextOverflow

The content is too large for the grading model's context.

Recover: Shorten the content, or split it into more artifacts, and retry.

Cannot be ratified

RatificationIneligible

The artifact cannot be ratified. details.reason names why: type_not_ratifiable, draft_authority or closed_authority. details.next_action says what to do: none, promote_draft or reopen.

Recover: Don't retry as is. On promote_draft, ask a person to decide the draft's promotion proposal (person_decisions_request with the draft's artifact_id does this). On reopen, reopen the artifact first. On none, nothing needs ratifying.

Nothing to renew

RatificationRenewalIneligible

The artifact's current premise has no ratification to renew.

Recover: Ratify the artifact first; renew it only after it has a ratification.

Changed before ratification

RatificationStaleBase

The artifact changed after the person reviewed it, so the ratification was not recorded.

Recover: Call again so the person reviews and confirms the current text.

Self link

LinksSelfEdge

An edge cannot point from an artifact to itself.

Recover: Pick a different source or target and retry.

Link side effect outstanding

LinksEdgeSideEffectFailed

The edge was written, but a side effect of it (closing a superseded target) is outstanding.

Recover: Repeat the identical call. It completes the side effect without writing the edge twice.

Payload shape not allowed

PendingActionCreatePayloadShapeRestricted

The proposal's payload does not have the shape its action type needs.

Recover: Read details: fix the payload against the action type's contract and resubmit when next_step is amend_request.

Proposal scope malformed

PendingActionCreateScopeMalformed

The proposal's scope is not a valid scope object. Its known keys (channel, github, rationale) must have their documented shapes.

Recover: Fix or leave out scope and retry.

Status already set

PendingActionCreateStatusUnchanged

The proposed status is the artifact's current status, so the proposal would change nothing.

Recover: Don't file it. Re-read the artifact if you expected another status.

Proposal subject not found

PendingActionCreateSubjectNotFound

The artifact the proposal targets does not exist in this workspace.

Recover: Check the artifact id with artifacts_search and retry with a real one.

Other side already queued

PendingActionCreateContradictionSideQueued

The other side of this contradiction already has a close proposal waiting. The message names that proposal.

Recover: Get that proposal decided first, then file again only if still needed.

Proposer invalid

PendingActionProposerInvalid

The calling credential cannot be recorded as a proposer.

Recover: Don't retry with this credential. Connect with a credential tied to a workspace member.

Finding not found

SignalNotFound

The finding does not exist in this workspace, or is not a finding of the named artifact. signals_list (with id) and reconcile return this code, and details.signal_id names the id.

Recover: List the findings again with signals_list and retry with a current id.

Nothing to reconcile

SignalsReconcileItemEmpty

A reconcile batch item carried neither disposition nor rating. Only that item failed. details.required_one_of lists the two fields, and the item needs at least one of them.

Recover: Add a disposition, a rating, or both to the item and retry that item alone.

Artifact not in the chain

ChainArtifactNotFound

chain_get found no current artifact with this id in the workspace, or none at as_of when details.as_of is set.

Recover: Check the id with artifacts_search. With as_of, pick a time after the artifact was created.

Activity filters cannot be used together

ActivityEventFeedFiltersInvalid

The activity_feed_list call combined filters that cannot be used together. details.reason names the combination, one of artifact_id_with_root_id, include_descendants_without_artifact_id, offset_while_following (offset with since_seq or continuation), since_seq_with_continuation, continuation_filters_changed (a continuation sent with other filters than it started with), follow_position_missing, or options_invalid.

Recover: Change the call as the message says, for example drop root_id or offset, and retry. Nothing was read.

Reference not found

WorkspaceExternalReferenceNotFound

The feedback reference or the artifact does not exist in this workspace.

Recover: Check both ids and retry.

Feedback inbox access denied

FeedbackInboxAccessDenied

You may not change the feedback inbox: it belongs to another workspace, or you are not an admin of this one.

Recover: Don't retry. A workspace admin can make the change.

Feedback body empty

CustomerFeedbackBodyEmpty

The feedback body is empty.

Recover: Send a non-empty body.

Feedback body too long

CustomerFeedbackBodyTooLong

The feedback body is longer than the limit. details.max_length is the limit.

Recover: Shorten the body to the limit and retry.

Proposal not found

PendingActionReadNotFound

No proposal with this proposal_id exists in this workspace.

Recover: Check the id with proposals_list and retry with a proposal from this workspace.