# Registered Native Application Runtime

The complete verified identity artifact and enclosing sealed subject/replay sources carry authority. The SDK reads, verifies, projects, and appends beneath them. A registered client, scope grant, bearer, authority session, transport receipt, database row, or runtime report never replaces the source.

## Application binding

For registered native APIs, `RECEIZ_APPLICATION_ID` is the **exact registered OIDC client ID** returned by Receiz registration. Supply the same value as SDK `applicationId`, challenge audience, grant application, session audience, source publication, and request coordinates. It is separate from the subject's Receiz ID, username, and client secret. Keep client secrets server-side; only the public client ID goes to browser native-client configuration. Never lowercase, normalize, strip `rc_`, or translate the ID to an alias.

The canonical bounded policy retains native slugs matching `^[a-z][a-z0-9.-]{0,127}$` and registered generated IDs matching `^rc_[A-Za-z0-9_-]{24}$`. For example, `rc_PtuBxB_Gbm9OkFeflZiwCz-d` keeps every byte and case. Use your own newly registered client for qualification and live tests. A valid-format unknown client still fails application authorization; syntax is not a grant.

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

// Server-supplied public registration coordinate; never a client secret or username.
const applicationId = process.env.RECEIZ_APPLICATION_ID!;
const client = createReceizClient({ applicationId, accessToken });
```

The bearer must belong to the same active registered client and consenting subject. Do not silently adopt a foreign body/query application, a different audience, or an old application coordinate from another source. Client rotation does not authorize rewriting users, wallet ownership, old sealed application coordinates, or witnessed history. Inspect application-scoped persistence and append lawful new proof instead.

## Proof grant, source publication, and session

| Stage | Supported SDK path | Exact prerequisite |
|---|---|---|
| Local consent challenge | `createReceizProofAuthorityChallenge(...)`, `client.identity.signLoginProof(...)` | Genuine independently verified identity artifact; device-held signing custody; actual explicit consent to exact scopes/statement; canonical whole-pulse challenge and nonce. |
| Proof grant | `client.identity.exchangeProofAuthority({ artifact, challenge, applicationId, scopes })` | The exact signed challenge, identity artifact, active registered client, and registered allowed scopes. Returns a secret, short-lived, non-refreshable bearer. |
| Granted scopes | `client.auth.grantedScopes()` | Protected client configured with that bearer and exact application ID; no authority argument. `scopesForRails(...rails)`, `missingScopesForRails(...rails)`, and `canUseRails(...rails)` use variadic rail names. |
| Current subject publication | `client.sources.publishSealedSourceV124({ applicationId, authoritySessionHandle: null, sourceArtifact })` | Complete current owned subject source already admitted by the canonical runtime; `receiz:subjects.write`; no session. A non-null session is forbidden for subject publication. |
| Session opening | `client.runtime.openAuthoritySessionV124({ applicationId, actorSubjectId, subjectSourceArtifact, proofArtifact, signedChallenge, requestedRails, requiredNamespaces, audience: applicationId })` | A fresh device-signed challenge, same exact current published subject source, authenticated identity/grant, namespace heads, and every requested rail's write scope. |
| Session continuity | `client.runtime.refreshAuthoritySessionV124(...)`, `client.runtime.closeAuthoritySessionV124(...)` | SDK-held or canonically persisted authenticated session; refresh rotates custody and close consumes it. JSON reconstruction cannot create authority. |

Choose minimum scopes for actual operations: subject publication uses `receiz:subjects.write`; namespace/public-recipient reads use `receiz:subjects.read`; verified domain reads use `receiz:domains.read`; execution/replay/checkpoint publication use `receiz:domains.write`; private additions use `receiz:world.private`. Requested Settlement/Reserve rails add their exact `receiz:<rail>.write` scope and consent. Application syntax compatibility does not widen any scope or proof boundary.

The developer registration/delegated-agent scope selectors use the complete `RECEIZ_OIDC_SCOPE_CATALOG`, including financial wallet transfers, payments, notes, Settlement, Reserve, and lawful actions. `RECEIZ_OIDC_SCOPES_BY_RAIL` and `receizOidcScopesForRails(...rails)` expose the actual applicable contracts. Select the scopes needed for the intended workflow and verify the actual consented grant; available catalog choices do not grant authority automatically. Local proof-only functions require no artificial OAuth grant, and the restricted ChatGPT plugin profile does not reduce the full SDK/MCP financial scope catalog.

The complete reusable consent/sign/exchange/publish/open example is packaged in `@receiz/ai-skills/receiz-proof-authority/examples/registered-native-session.md`. A model's statement that consent happened, a constructor's approved field, self-hashed subject JSON, or a source copied from a previous head cannot supply the prerequisite proof.

## Replay sources and reload recovery

Replay-segment/checkpoint publication uses `client.sources.publishSealedSourceV124(...)` with the active `authoritySessionHandle` and `receiz:domains.write`, preserving the exact stored grant. Verify the enclosing sealed source first; embedded subpayload hashes only validate deterministic projection.

`client.domains.verifiedReplayV124(...)` reads the published source-bound replay under exact application/domain, registry/reducer, and predecessor coordinates. `client.domains.verifiedCheckpointV124(...)` consumes SDK-held replay custody. `client.domains.exportVerifiedReplayProofObjectV124(...)` requires the held replay/head plus its exact ownership, provenance, and settlement inputs; it emits an **unsealed candidate**. Canonical Record -> Seal must produce the complete verified artifact before `client.domains.restoreVerifiedReplayProofObjectV124(...)` restores custody from that artifact and exact expected head/cursor/namespace after reload. Do not seal a fabricated replay, invent ownership inputs, or substitute historical subject/instrument protocols.

Complete held verified source projects immediately. Background work may discover verified descendants and append; it must not rediscover known truth, replace the settled shell with loading, or substitute server/database representations for source custody.

## Qualification and deployed evidence

Use `client.runtime.qualifyV124({ applicationId, operations })` with every operation actually called. Supported native families are `subject-admission`, `namespace-resolution`, `durable-execution`, `verified-replay`, `private-additions`, `multi-domain-transaction`, `public-recipient-resolution`, and `source-publication`. The `source-publication` family qualification requires both subjects-write and domains-write scopes; the subject-only route still requires only subjects-write. Do not invent operation names for dependencies outside this descriptor.

Inspect each requested result's status, actual granted scopes, dependency health, public dependency heads, registry/reducer versions and compatibility, runtime readiness, authenticated transport signature, and applicable limiter/recipient dependency evidence. Unavailable or degraded dependencies block a claim of operational support. Qualification reports are operational observations beneath proof, not proof or execution authority.

Then run a live integration with a newly registered Receiz-generated client against the deployed compatible server/database. Record exact ID preservation through construction, genuine device-held grant, current subject-source publication, session opening, market replay source publication, verified replay/export, canonical sealing, and restore after reload. Test malformed IDs, valid-format unknown clients, foreign application/audience, revoked client/key, insufficient scopes, stale custody/heads, and nonce replay; retain applicable zero-write guarantees.

Method/tool presence, generated setup configuration, and fixture passes do not prove live end-to-end support. Release the compatible SDK, full MCP library, AI skills, server, and forward database migration together. Package version does not rename retained v124 wire schemas or alter canonical registry/ruleset bytes. Mark each untested deployed stage explicitly.

## Commerce evidence

Prove seller publication is visible to a separate authenticated buyer and that the purchase action is usable. Check current custody and required reservation availability before payment. Review the actual quote and obtain payment approval; verify buyer payment and seller proceeds from the accepted receipts.

For insufficient funds, open `client.connect.checkout(...)` for the calculated shortfall. `client.connect.checkoutSession(...)` and `client.connect.wallet()` report transport observations; verify the actual admitted reserve-credit proof event and wallet credit before resuming purchase review/approval. A successful card checkout alone does not establish an asset purchase or ownership transfer.

Verify actual complete bearer artifact delivery with `client.artifacts.verifyAndOpen(file)`, claim its SDK-issued artifact through `client.ownership.claimBearerAsset({ artifact: opened.sealedArtifact })`, and verify the returned sealed successor, buyer custody, and asset use. The current full MCP `receiz_bearer_artifact_claim` adapter composes this path through a private workspace `artifactReference` and single-use exact confirmation. Canonical artifact claim is distinct from historical V120 instrument claim and retired aliases.

Exercise concurrent buyers, stale reservations/custody, reloads, retries, and lost responses without duplicate funding, payment, delivery, or ownership. Recover the exact pending idempotency coordinate before another attempt at an unknown outcome. Report any untested funding, payment, seller proceeds, bearer delivery, claim, custody, or use stage explicitly. See [commerce runtime boundaries](app-runtime-commerce-cloud.md) and [historical HTTP compatibility](historical-http.md) for the actual execution modes.

## Full MCP library boundary

The full library supports `receiz_v124_proof_authority_challenge_create`, `receiz_v124_source_publish_sealed`, `receiz_v124_runtime_authority_session_open`, `receiz_v124_runtime_qualify`, and the named verified replay/export/restore adapters. V124 application/audience coordinates are host-pinned; exact sources, signatures, and sessions use the established trusted material refs. The retained `receiz_v123_identity_exchange_proof_authority` adapter takes private exact exchange input rather than V124 material refs and returns a redacted result. Use the trusted host's SDK exchange to retain the issued bearer and configure the protected runtime; redacted output alone cannot do that. Keep those private inputs outside model context.

The full MCP library supports financial workflows through `receiz_commerce_one_click_checkout`, the V123 Settlement/Reserve execution/recovery tools, the V124 execution tools, and the V125 edge Settlement/Reserve sender/receiver lifecycle. Current direct wallet/payment adapters are `receiz_connect_wallet`, `receiz_connect_transfer`, `receiz_connect_checkout`, and `receiz_connect_checkout_session`; `receiz_payments_embedded_checkout` calls the existing named-merchant card-session route and retains its embedded credential privately. `receiz_connect_note_download` verifies and retains the exact sealed PNG privately; `receiz_bearer_artifact_claim` verifies the source, retains the SDK-issued object, and re-verifies the complete claimed successor before private output. Only the reviewed ChatGPT Marketplace plugin profile is nonfinancial.

`connect.mintNote(...)` is a disabled legacy issue path returning `wallet_note_receiving_seal_required`, and has no current MCP mint adapter. `connect.claimNote(...)` and `payments.embeddedNoteClaim(...)` remain distinct legacy token compatibility; without an enclosing-note-bound SDK projector they have no current direct MCP adapter. Regex/text extraction cannot replace stronger source proof. Read the installed full MCP README's current financial adapter table for exact arguments, required operation scopes, and confirmation. Keep actual adapter support, exact proof admission, and deployed integration evidence distinct; MCP remains a caller/reader beneath the source.
