The reader’s vault has not connected the widget’s agent. Offer connectAgent().
WidgetSignedOutError
The host did not answer the identity handshake. Mount createWidgetHost on the framing page.
WidgetVaultUnreachableError
The named vault cannot be opened by this reader.
WidgetWalletUnconfiguredError
The widget was published without a wallet origin. Build and push it again with the current CLI.
CLI
Run with --json, or piped, the CLI prints a failure as one object with a stable reason and the commands to run next; the exit code is 1 (failed), 2 (usage or confirmation), or 4 (authentication). See Output, prompts, and errors.
Message
Meaning
Fix
This storage access token can't write bucket <id>: it is signed by … but the bucket is owned by …
… describes an external agent — pass --kind external
A flag for the other kind.
Fix the flags.
bundle not found … run \mk build` first`
Nothing built.
Run mk build.
multiple built agents in dist … pass --agent <id>
Several agents built.
Pass --agent.
no CLI access token
mk publish without a token.
Set MANYKIND_ACCESS_TOKEN.
"weight" must be a positive integer (>= 1)
Deployment weight.
Use integer shares like 90 and 10.
all default records (empty targeting) must share one priority tier
Defaults at different priorities.
Keep exactly one default record.
banned import "<module>"
Node built-in or banned package.
Use sandbox globals.
@OnEvent argument must be a string literal
Computed event type.
Use a literal.
ctx.models.<alias> is not declared in manykind.config.ts models
Undeclared model.
Add it to models.
schedule "<id>" publishes "<type>", which this agent does not handle
Schedule event unhandled.
Add an @OnEvent for it.
workflow "<id>" is not runnable
defineWorkflow validation.
Fix the listed steps.
the manifest references handler methods the bundle does not define (exit 1)
mk inspect: a routed handler is missing from the bundle.
Add the handler.
… needs confirmation: re-run with --yes (exit 2)
mk push, mk deploy, or mk run with nobody to ask: a coding agent, CI, or piped stdin.
Preview with --dry-run, then re-run with --yes.
could not read the current deployment set
mk deploy --dry-run could not read what is live, so it compares nothing.
Check --env, the access token, and the network.
Deployments API
Code
Status
Meaning
validation_failed
400
The set broke a rule: names, weights, versions, targeting that does not compile, or not exactly one default record. The message names it.
revision_conflict
409
Another apply landed first. Re-read and apply again.
apply_failed
500
The platform could not store the set.
Runs
A Task that fails carries an error.code:
Code
Meaning
execute_failed
The runtime call failed: the handler threw, or the call could not complete.
execute_timeout
The task ran past its time budget.
running_lease_expired
The task was claimed but never reported back; it is retried.
job_terminated
The Job ended while the task was pending.
agent_invalid_result
The handler returned a value that does not survive JSON serialization, such as a circular reference.
agent_threw_non_error
The handler threw a non-Error value. Throw an Error.
agent_returned_undefined
The bundle’s handler returned nothing the runtime could read.
gpu_units_ceiling, a2a_tokens_ceiling
The connection reached its spend limit; see Spend limits.
A Job ends with a reason: revoked, idle_timeout, closed_by_agent, failed, or agent_not_found (the agent’s service was deleted, or its version has no manifest). @OnClose receives one of the first four.