# V124.1 Source-Carried Capabilities

V124.1 packages the source-carried primitives implemented across Receiz into one composable developer surface. Any sealed file can be reconstructed exactly without a database, CDN, third-party media host, or external proof authority. Browser-supported video, audio, image, EPUB, PDF, and text material renders directly; arbitrary binary remains exact and exportable. Large mobile-browser video can begin from authenticated first-frame ranges while the remainder settles behind playback.

The canonical machine-readable inventory is `RECEIZ_V124_1_CAPABILITY_INVENTORY` from `@receiz/sdk`. It is the single source for SDK exports, client methods, MCP tools, AI Skill bindings, outcomes, and authority boundaries.

The enclosing sealed proof object remains authority. SDK values, MCP references, source-family digests, manifests, browser storage, server package transport, and AI Skills are mechanics beneath it.

## Automated capability discovery

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

const receiz = createReceizClient({ baseUrl: "https://receiz.com" });

for (const capability of RECEIZ_V124_1_CAPABILITY_INVENTORY) {
  console.log({
    id: capability.id,
    primitive: capability.primitive,
    sdkExports: capability.sdkExports,
    sdkClientMethods: capability.sdkClientMethods,
    mcpTools: capability.mcpTools,
    aiSkills: capability.aiSkills,
    authorityBoundary: capability.authorityBoundary,
  });
}
```

Automation must reject an unavailable named export, client method, MCP tool, or AI Skill binding. It must never invent a substitute. Run `pnpm test:v124.1-capability-parity` to enforce the complete six-family map.

## Deterministic source-carried state

Use `openReceizSourceCarriedReplayFamilyV124` to admit exact sealed replay sources, `diffReceizSourceCarriedReplayFamiliesV124` to identify verified additions, `mergeReceizSourceCarriedReplayFamiliesV124` to form their deterministic union, and `projectReceizSourceCarriedReplayBranchesV124` to retain every valid sibling branch. Never choose a head by arrival time or last-write-wins.

```ts
const local = await openReceizSourceCarriedReplayFamilyV124({ artifacts: localArtifacts, expected });
const remote = await openReceizSourceCarriedReplayFamilyV124({ artifacts: remoteArtifacts, expected });
const additions = diffReceizSourceCarriedReplayFamiliesV124({ local, remote });
const merged = await mergeReceizSourceCarriedReplayFamiliesV124({ families: [local, remote], expected });
const branches = projectReceizSourceCarriedReplayBranchesV124(merged);
```

Persist or exchange `additions.missingFromLocal` and `additions.missingFromRemote` as exact sealed artifacts. Never persist only `familySetDigest` or a projected branch as if it were the proof object.

The MCP projection is `receiz_source_carried_replay_open`. It accepts trusted-host source references and returns coordinates and counts, never exact source bytes.

## Receiz-ID conversations of any invited size

Create and reduce causal conversation events with `createReceizConversationEventV1` and `reduceReceizConversationEventsV1`. Bind every member to an exact Receiz ID, subject head, access-key head, and binding digest. `openReceizConversationSourceFamilyV1` reopens complete held state and preserves sibling branches.

Private delivery uses `createReceizConversationEpochSecretV1`, bounded calls to `planReceizConversationEpochGrantBatchesV1`, `openReceizConversationEpochGrantV1`, and message `encrypt`/`decrypt` helpers. Batches bound work per call; they do not impose a total-member limit. Revocation rotates the epoch before later messages.

```ts
const family = await openReceizConversationSourceFamilyV1({
  artifacts: sealedConversationSources,
  expected,
  expectedConversationId: conversationId,
});

const secret = await createReceizConversationEpochSecretV1({ conversationId, epoch });
const grantBatches = await planReceizConversationEpochGrantBatchesV1({
  secret,
  recipients,
  recipientBindings,
  maxRecipientsPerBatch: 128,
});
```

Repeat bounded grant planning across every invited member; do not turn the per-batch bound into a total group limit. Use `encryptReceizConversationMessageV1` before distribution and `decryptReceizConversationMessageV1` only inside a trusted host or participant device. On revoke, create a new epoch secret before encrypting the next message.

MCP exposes safe host-custodied projections through `receiz_conversation_source_family_open` and `receiz_conversation_epoch_grants_plan`. Clear message bodies and epoch secrets never enter model output.

## Large material and immediate playback

Build exact segmented material with `buildReceizMaterialCompositeTransport`, create its copyable held family with `createReceizMaterialSourceFamily`, and publish the package with `publishReceizMaterialCompositeTransport` before advertising its public coordinate. A public page may use browser-held custody first, but visibility must never outrun durable public package availability.

```ts
const transport = await buildReceizMaterialCompositeTransport({
  capsuleBytes,
  sealedArtifactSha256,
  sealedArtifactByteLength,
  sealedFilename,
  sealedMimeType,
  verifyPath,
  issuedAtKaiPulse,
  issuedAtKaiUPulse,
  materialProgressiveLedger,
});

const family = createReceizMaterialSourceFamily({ proofUrl, transport });
await publishReceizMaterialCompositeTransport({ transport, receizOrigin: "https://receiz.com" });
const publicUrl = family.headUrl;
```

The ordering is binding: build → create held family → publish/finalize → advertise the public coordinate. `createReceizClosedMaterialPresentationUrl(family)` produces a no-fetch URL only when complete custody should travel in the URL itself.

`openReceizMaterialSourceParts` verifies a complete held family. Dispatch by `manifest.capsuleEncoding`: legacy compressed RMA2 enters the RMA2 decoder; `rma3/raw` enters `createReceizRawMaterialCapsuleBlobFromSourceParts` or `decodeReceizRawMaterialCapsuleBytes`. `openVerifiedReceizMaterialUrl` performs that dispatch and then verifies the enclosing artifact before projecting native bytes.

```ts
const opened = await openVerifiedReceizMaterialUrl(headUrl, { sourceUrls });

switch (opened.playableKind) {
  case "video":
  case "audio":
  case "image":
  case "pdf":
  case "text":
    // Present opened.payloadBytes using opened.payloadMimeType.
    break;
  case "binary":
    // Preserve and export opened.payloadBytes exactly.
    break;
}
```

Do not invoke `decodeReceizMaterialCapsuleBytes` directly for a composite family unless the verified manifest declares compressed RMA2. Raw dispatch is a proof-format boundary, not an error-retry policy.

For signed progressive playback, seal `buildReceizMaterialProgressiveLedger` through `createReceizMaterialProgressiveCommitment`, reopen with `openReceizMaterialSourceRangeReader`, and serve only verified requested ranges. The first verified playable range can start immediately while later ranges settle. Genesis proofs bind directly to the Signature-V4 artifact basis and the committed manifest/ledger; do not require successor-only native Record metadata. Scale the byte window from bitrate and container needs, not from a fixed number of seconds. Legacy whole-SHA artifacts retain whole-artifact verification.

Portable completeness is versioned. A previously sealed `receiz.account.portable-completeness.v1` claim remains complete under its original pre-market domain set. New complete account exports emit `receiz.account.portable-completeness.v2` and require the portable market domain. Never reinterpret an older signed completeness claim using a later domain list.

```ts
const ledger = buildReceizMaterialProgressiveLedger({
  payloadBytes,
  payloadMimeType,
  rangeByteBoundary,
});
const commitment = createReceizMaterialProgressiveCommitment(ledger);
// Seal commitment inside the enclosing Signature-V4 proof before publication.

const reader = await openReceizMaterialSourceRangeReader({
  headUrl,
  sourceUrls,
  payloadByteLength: commitment.byteLength,
});
const firstRangeBytes = await reader.readPayloadRange({
  offset: 0,
  byteLength: rangeByteBoundary,
});
```

The player may append `firstRangeBytes` to its media buffer immediately and request later verified ranges in order. A failed enclosing settlement must revoke the presentation resource even if the viewer unmounts. A short range-response deadline must not terminate whole-artifact download or settlement work.

MCP exposes bounded coordinates and the compact commitment through `receiz_material_source_parts_open`; it does not return large bytes or content-bearing locators. `receiz_material_url_open` supports inline RMA2, segmented RMC1, and streaming RMC2/RMA3/raw.

## Proof memory and Twin response

Use `client.subjects.brain` to follow canonical head → complete proof history → compact references → independently resolved exact primary proof objects → cited context. Use `client.subjects.memory` for event-derived memory and `client.subjects.twin` for response, voice, and performance projections.

```ts
const brainHead = await receiz.subjects.brain.head(subjectId);
const references = await receiz.subjects.brain.search(subjectId, searchInput);
const context = await receiz.subjects.brain.resolve(subjectId, {
  atHead: brainHead.subjectHead,
  references,
});
const response = await receiz.subjects.twin.message(subjectId, {
  ...messageInput,
  contextHead: brainHead.subjectHead,
});
```

Private imported owner memory stays server-side. Deliver only exact citations/digests and expressly public excerpts. Never embed raw private source text in a cognition frame returned to a DM or group member.

The 96-object value bounds one reasoning window, not history. Twin speech, summaries, and intent remain non-authoritative proposals. Consequential actions require deterministic command or transaction admission.

## Portable account continuity

`appendReceizIdentityPortableState`, `verifyReceizIdentityPortableStateProof`, and `projectReceizIdentityAccount` carry complete account truth inside the verified Identity Seal, Identity Record, or Receiz Key. V124.1 includes the `market` domain alongside profile, showcase, wallet, calendar, sports, media, preferences, and proof history.

```ts
const nextIdentity = await appendReceizIdentityPortableState({
  keyFile,
  snapshot: {
    ...completeVerifiedAccountState,
    market: exactMarketCustodyState,
  },
});
if (await verifyReceizIdentityPortableStateProof(nextIdentity) !== "verified") {
  throw new Error("portable identity state rejected");
}
const account = await projectReceizIdentityAccount(nextIdentity);
```

Project `account` immediately after proof acceptance. Do not wait for a session, database, registry refresh, or peer scan before painting known verified state.

Projection is immediate after proof acceptance. Network synchronization may append independently verified additions later; it cannot delay, erase, or downgrade carried state. Private portable account state has no MCP exposure.

## MCP and AI host automation

The MCP package exposes 169 exact tools, with 26 V124 production-runtime tools. The four source-carried host adapters are:

- `receiz_source_carried_replay_open`
- `receiz_conversation_source_family_open`
- `receiz_conversation_epoch_grants_plan`
- `receiz_material_source_parts_open`

`receiz_material_url_open` additionally opens inline RMA2, segmented RMC1, and streaming RMC2/RMA3/raw proof material after enclosing-artifact verification. Trusted hosts resolve exact source references; model arguments never carry source bytes, material locators, epoch secrets, clear conversation text, or private account state.

AI hosts load only skills named by each capability's `aiSkills` array. Each generated manifest carries `v124_1CapabilityIds`, and each relevant `SKILL.md` contains the exact SDK/MCP/authority binding. The `receiz-mcp-agent-skill` receives every MCP-exposed capability. An agent must stop on a missing binding instead of improvising an API or authority layer.

## Required checks

Run `pnpm test:v124.1-capability-parity`, `pnpm test:packed-source-carried-exports`, `pnpm test:mcp-release-contracts`, `pnpm test:ai-skills-distribution`, and `pnpm test:release-freeze` before publishing the coordinated SDK, MCP, and AI Skills packages.


## V125 subject thread transition store custody

`ReceizSubjectThreadSourceStoreV125` composes the existing atomic artifact
transition store. `retainThreadSourceFamily` durably persists the candidate
family, verifies the exact retained source, and returns opened **staged**
custody before `commitArtifactTransition`. This return value does not establish
an accepted append. Custom adapters must return that retained opened family;
an older `Promise<void>` implementation must be updated.

`readThreadSourceFamily` recovers only a family bound to the exact successful
atomic transition receipt. Candidate sealing or retention alone cannot expose
an accepted successor. All participant head checks and one-use PBI consumption
remain inside the existing atomic transition commit. Rejected commits leave
prior accepted source intact; lost commit responses remain recoverable from
retained bytes plus the existing durable receipt, and exact retry is idempotent.

The browser adapter preserves the original retained-family record format. It
reuses the canonical append plan already recomputed when opening sealed thread
source and the existing durable candidate and idempotency receipt. Previously
committed records therefore remain readable after restart; previously staged
but rejected records have no matching accepted receipt. No signature, issuer,
server, database permission, or additional proof authority is introduced.

Bounded profile showcase adapters may pass the existing optional
`resolveVerifiedHistoricalArtifactDigest` callback through `planArtifactAppend`
and `admitReceizProfileShowcaseSuccessorWithExactPredecessorContext`. Bind it to
the exact predecessor admission's artifact identity and digest. The callback
resolves held sealed ancestry, including a verified checkpoint's covered history
counts; it must not invent individual historical artifacts or use unverified
head indexes as authority. Successor generation, plan verification, native
sealing admission, and cold successor admission must use the same source context.
The complete canonical successor comparison and exact-byte verification remain
mandatory. Existing callers that need no additional historical context may omit
the callback.
