A refusal is what the service answers when it does not accept a write or cannot answer a read, on
any route of the HTTP API. It names the rule that was broken, and it changes
nothing: no record is held, and nothing reaches the graph.
{"rule":"belief.follows.not-current","status":409,"error":"A revision follows the belief's current revision, which is 'agent-a.launch.2'.","names":{"revision":"agent-a.launch.3","current":"agent-a.launch.2","follows":"agent-a.launch.1"}}
Field
Meaning
rule
The rule's name. It is stable, and is what a client or a test matches on.
status
The HTTP status, the same as the reply's own.
error
A sentence for a person. It may be reworded; do not match on it.
names
The identifiers and values that broke the rule: the record refused and whatever it named that was wrong. Every value is a string.
A request the service cannot read at all, such as malformed JSON, a missing required field, a
value of the wrong type or a missing required query parameter, is ankka's own 400. Its body has
status and error and no rule.
An identifier is not 1 to 64 characters of [A-Za-z0-9._-] starting with a letter or a digit, or is over the shorter limit of its kind: 32 for a market, 16 for an outcome name. names.limit gives the limit.
id.held-by-another
409
The identifier is held by a record that differs from the one sent. The same record sent again is not a refusal: it answers 200.
dated.later-than-now
422
dated or observedAt is later than the service's clock. names.now gives the clock.
text.length
422
A text field is empty or over its limit, an excerpt over REASONING_EXCERPT_LIMIT included. names.field and names.limit give the field and the limit.
A question is opened with fewer than two hypotheses.
question.not-held
422
A hypothesis is added to a question that is not held.
question.hypothesis.dated-before-question
422
A hypothesis is dated before its question.
holder.kind.not-in-vocabulary
422
The kind is not a holder kind the vocabulary names.
holder.not-held
422
A writer is added to a holder that is not held.
holder.writer.does-not-speak
403
The writer does not speak for the holder it writes as, or for the holder it adds a writer to. For a market, the writer does not speak for the holder the market speaks as.
A price observation or a resolution names a market that is not held.
market.outcome.none
422
A market is opened with no outcome.
market.outcome.name-twice
422
Two outcomes have one name.
market.outcome.hypothesis-twice
422
Two outcomes are for one hypothesis.
market.outcome.hypothesis-of-other-question
422
An outcome is for a hypothesis that is not one of the market's question.
market.dated.not-before-hypothesis
422
The market is dated before a hypothesis it offers an outcome for.
market.outcome.not-offered
422
A price observation or a resolution names an outcome the market does not offer.
market.price.range
422
The price is not from 0 to 1.
market.price.after-close
422
observedAt is later than the market's closing time. names.closesAt gives it.
market.resolution.evidence.none
422
A resolution names no evidence.
market.resolution.evidence.not-held
422
A named piece of evidence is not held.
market.resolution.dated.not-before-evidence
422
The resolution is dated before a piece of evidence it names.
market.resolution.dated.not-before-market
422
The resolution is dated before its market.
market.resolution.revises.not-current
409
revises is not the market's current resolution, or is left out when there is one, or is given when there is none. names.current gives the current resolution when there is one.
A run is started of a blueprint the service does not carry. Checked first: the input shape is the blueprint's.
run.id.too-long
422
A run id is over 47 characters, or starts schedule:. names.limit gives the limit.
run.id.held-by-another
409
The run id is held by a run of a different blueprint or with a different input. The same run sent again is not a refusal: it answers 200.
run.input.invalid
422
The input does not fit the blueprint's input shape. names.field gives the field.
holder.writer.does-not-speak
403
The blueprint does not speak for the holder the input names. A holder that is not held is record.not-held.
appraiser.instructions.unknown
422
instructions is not an instruction set the service carries. names.instructions gives what was sent.
run.not-held
422
A run ending or an act names a run that is not held. The service's own consumers write both; it should not occur.
run-ending.dated.before-run
422
A run ending is dated before its run. Should not occur.
blueprint-version.not-held
422
A run names a blueprint version that is not held. Should not occur.
A run that fails is not a refusal. It is held with its ending, statusfailed and a reason:
the claim its critique rejected, the refusal a worker met, or the model key it could not find.
A tool a run calls is refused under every rule of this page its record can break, exactly as a
writer sending the record would be, and under these of its own. The refusal is the tool's error,
handed to the model with its rule and names; nothing is written.
Rule
Status
When
tool.called-in-no-run
422
A tool is called outside any run of a blueprint.
act.worker.unknown
422
The step the tool is called in has no single worker.
document.not-in-tranche
422
record_evidence names a document the run's tranche does not hold.
claim.stance.unknown
422
A stance of state_claim is not <question>/<hypothesis> supports or … contradicts.
belief.rest.format
422
A rest of revise_belief is not <claim> or <claim>@<weight>.
belief.rests-on.other-holder
422
revise_belief names a claim another holder stated. A run's belief rests only on its own holder's claims.
act.record.not-held
422
An act names a record that is not held. Should not occur.
A record a run finds already held, such as evidence an earlier run recorded, is not a refusal: the
tool answers with the record and its earlier act, and the run gains no act for it.
A read, a wait or a withdrawal names a record that is not held, a run, an act or a blueprint version included, or /process/answers/run names a run the graph does not hold. names gives its kind and identifier.
record.format
400
record of GET /process/acts is not evidence:<id>, claim:<id> or revision:<id>.
answer.revisions.of-two-beliefs
422
from and to of GET /answers/belief-change are revisions of different beliefs. names gives both beliefs.
answer.revision.later-than-asked
422
A revision named by from or to is dated later than asOf, or was recorded later than asRecordedBy. names gives the revision and both of its times.
answer.beliefs.in-two-hypotheses
422
GET /answers/comparison names a second hypothesis that differs from the first.
time.format
422
asOf, asRecordedBy or after is not an ISO-8601 instant, or after is left out. names gives the parameter and what was sent.
market.not-resolved
404
The resolution of a market that has none, or of a market that is not held, is asked for.
graph.unavailable
503
A route that reads the graph database has none configured or could not reach it, or POST /graph/wait is asked of a service with no broker.
command.refused
as the entity says
An entity refused a command with no rule of its own. It should not occur; report it if it does.
A refused write leaves nothing: the count of held records is what it was, and once the graph has
caught up it holds what it held before. A client can therefore correct the record and send it
again under the same identifier. Because the same record sent again answers 200 and not a
refusal, a client that is unsure whether a write arrived sends it again and reads the status.