Reference · Named failures · deterministic repair

Stable errors and recovery

Branch on stable installed v129 error codes, preserve safe detail, redact secrets, and repair only the failed mechanic.

Stable route
/reference/stable-errors
Version
129.0.0
Source SHA-256
bc7fceb6a1b0508c20cc46204af36d960bbdf43d870ff8ce0462c58f36067cb9

Solved outcome

What this enables

Recover safely without turning a successful retry, server response, or error descriptor into proof authority.

Installed identity

@receiz/sdk

Version
129.0.0
Package SHA-256
53337aab33882e945d4243802b8013e3af523644a329c71a64f669a6360c8629
Record source
node_modules/@receiz/sdk/docs/errors-and-repair.md

Exact form

Signature or request

describeReceizError(error) => receiz.sdk.error.v1

Inputs

Inputs and constraints

  1. Unknown thrown value from an SDK rail.
  2. No token, secret, private key, identity key, or recovery material may enter logs.

Outputs

Output and receipt

  1. Stable code
  2. Affected rail
  3. Retryability
  4. Suggested repair
  5. Authority boundary

Stable recovery

Failures

ARTIFACT_VERIFICATION_FAILED

Reject the proof claim and inspect the exact verifier result without exposing secrets.

node_modules/@receiz/sdk/dist/globalCoordinationTypes.js · e388339395a730cab426ac4b08295a381b87ff381674a771bc900e54333ad19b
MISSING_AUTHORITY

Supply the exact verified authority required by the declared operation; never broaden scope implicitly.

node_modules/@receiz/sdk/dist/artifactAdmissionTypes.d.ts · 4215ae5bc262f95a7a7b6f8620b2ce3d66ecdbbb386659453320e3919555ed93

Offline

Offline behavior

Error projection and repair guidance are local. Network retry occurs only when the stable descriptor marks the mechanic retryable.

Authority

Truth boundary

Begin with exact held artifact bytes and local verification. SDK, HTTP, MCP, AI, framework, server, session, and UI mechanics may transport, coordinate, inspect, or distribute beneath the sealed Receiz proof object. They do not become proof authority.

The enclosing sealed Receiz proof object and its exact bytes are the stronger source of truth.Record Moment and Seal File are independent local operations after one-time anonymous Signature V4 device enrollment. Neither requires an account or server signer. Identity and account continuity remain optional projections beneath public verification.

Permanent anchor · #stable-errors-descriptor

Descriptor

Use describeReceizError(error) only to project an installed error descriptor. Preserve the exact code, rail, retryability, suggested repair, and authority boundary; the descriptor is not proof.

Permanent anchor · #stable-errors-failure-classes

Failure classes

Distinguish artifact input, verification, admission, authority, capability, history, idempotency, atomic commit, HTTP, and webhook mechanics by the exact installed codes published below.

Permanent anchor · #stable-errors-retry-policy

Retry policy

Retry only when the installed descriptor says the failed mechanic is retryable. Reuse an idempotency identity only within its declared retry boundary and never convert retry success into proof authority.

Permanent anchor · #stable-errors-secret-redaction

Secret redaction

Never log access tokens, webhook secrets, private identity keys, passphrases, recovery material, or full private proof payloads. Preserve safe code and rail fields for repair.

Permanent anchor · #stable-errors-recovery-table

Recovery table

Every published code on this page is byte-present in its named installed source. Where a source declares no stable code, the page says so instead of inventing one.

Permanent anchor · #stable-errors-end-to-end-example

End-to-end example

The example branches on the actual verification status union; it does not read nonexistent ok or code fields from the union.

Copyable path

Authenticated SDK issuance → Verify → inspect receipt

import { createReceizClient } from "@receiz/sdk";

// Begin with the complete proof object already held by the person or runtime.
const encoded = process.env.RECEIZ_ARTIFACT_BASE64;
if (!encoded) throw new Error("RECEIZ_ARTIFACT_BASE64 is required");
const artifactBytes = Uint8Array.from(Buffer.from(encoded, "base64"));

// Local verification is account-free and precedes every transport projection.
const receiz = createReceizClient();
const verification = await receiz.verification.verifyArtifact(artifactBytes);
if (verification.status !== "verified-artifact") {
  throw new Error(`Artifact verification status: ${verification.status}`);
}
console.log(verification.status);

Deterministic check

Conformance

pnpm sdk:test

Run from the Receiz repository against the exact coordinated package identity. A command result is evidence beneath sealed artifact truth.