ak.schema.content_recovery_preparation.v1
ak.schema.content_recovery_preparation.v1 · schemas/content-encryption.schema.json必填标记属于当前 Schema 对象或分支。oneOf、anyOf、if / then / else 中的 required 不表示所有实例均必填。树状视图有递归深度限制;完整约束以 canonical 原件为准。
可视树中没有匹配项。清除条件或查看下面的完整 JSON。
必填 $ ·
?完整 JSON(格式化展示)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://arkret.org/v1/schemas/content-encryption.schema.json",
"title": "Arkret recoverable application-content encryption",
"$defs": {
"encryption_scheme": {
"const": "ak.encryption.epoch_content_aead.v1",
"x-arkret-value-ownership": {
"class": "namespaced_symbol",
"authority": "content-encryption.schema.json#/$defs/encryption_scheme",
"owner": "content-encryption.schema.json#/$defs/encryption_scheme",
"values": [
"ak.encryption.epoch_content_aead.v1"
]
}
},
"encryption_backup_strategy": {
"const": "ak.encryption_backup.epoch_content_roots.v1",
"x-arkret-value-ownership": {
"class": "namespaced_symbol",
"authority": "content-encryption.schema.json#/$defs/encryption_backup_strategy",
"owner": "content-encryption.schema.json#/$defs/encryption_backup_strategy",
"values": [
"ak.encryption_backup.epoch_content_roots.v1"
]
}
},
"root_context": {
"type": "object",
"required": [
"effective_scope",
"genesis_event_ref",
"epoch",
"group_state_ref",
"cipher_suite",
"encryption_backup_strategy",
"backup_strategy_ref"
],
"properties": {
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"epoch": {
"$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
},
"group_state_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"cipher_suite": {
"type": "string",
"minLength": 1
},
"encryption_backup_strategy": {
"$ref": "#/$defs/encryption_backup_strategy"
},
"backup_strategy_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
}
},
"additionalProperties": false
},
"endpoint": {
"type": "object",
"required": [
"actor_id",
"endpoint",
"authorization_event_ref",
"signature_key_base64url"
],
"properties": {
"actor_id": {
"$ref": "./common-ids.schema.json#/$defs/actor_id"
},
"endpoint": {
"$ref": "./mls-welcome-delivery.schema.json#/properties/recipient_endpoint"
},
"authorization_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event",
"description": "Exact native Device or Agent runtime endpoint authorization Event. This establishes the endpoint key instance, not scope read or disclosure permission."
},
"signature_key_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$",
"x-arkret-member-role": "binary_encoding",
"description": "MLS endpoint signature key bound by the applicable original creator, Add or recovery authority. An Event producer key may differ only with an independently verified native endpoint-to-leaf binding; equating the two keys or trusting caller-supplied leaf ownership is forbidden."
}
},
"additionalProperties": false
},
"content_context": {
"type": "object",
"required": [
"root_context",
"root_ref",
"purpose",
"encryption_scheme",
"encryption_algorithm",
"producer",
"content_key_salt"
],
"properties": {
"root_context": {
"$ref": "#/$defs/root_context"
},
"root_ref": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"purpose": {
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/content_context/properties/purpose",
"owner": "content-encryption.schema.json#/$defs/content_context/properties/purpose",
"values": [
"event_body"
]
},
"const": "event_body"
},
"encryption_scheme": {
"$ref": "#/$defs/encryption_scheme"
},
"encryption_algorithm": {
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/content_context/properties/encryption_algorithm",
"owner": "content-encryption.schema.json#/$defs/content_context/properties/encryption_algorithm",
"values": [
"aes128_gcm"
]
},
"const": "aes128_gcm"
},
"producer": {
"$ref": "#/$defs/endpoint"
},
"content_key_salt": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$"
}
},
"additionalProperties": false
},
"content_epoch_root": {
"type": "object",
"required": [
"item_kind",
"secret_id",
"root_context",
"root_ref",
"root_base64url"
],
"properties": {
"item_kind": {
"const": "content_epoch_root",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/content_epoch_root/properties/item_kind",
"owner": "content-encryption.schema.json#/$defs/content_epoch_root/properties/item_kind",
"values": [
"content_epoch_root"
]
}
},
"secret_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]+$",
"maxLength": 256
},
"root_context": {
"$ref": "#/$defs/root_context"
},
"root_ref": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"root_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$",
"x-arkret-member-role": "binary_encoding"
}
},
"additionalProperties": false
},
"coverage_entry": {
"type": "object",
"required": [
"source",
"root_refs",
"blob_refs"
],
"properties": {
"source": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"root_refs": {
"type": "array",
"items": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"uniqueItems": true,
"maxItems": 256
},
"blob_refs": {
"type": "array",
"items": {
"$ref": "./common-ids.schema.json#/$defs/blob_ref"
},
"uniqueItems": true,
"maxItems": 256
}
},
"additionalProperties": false
},
"coverage": {
"type": "object",
"required": [
"effective_scope",
"genesis_event_ref",
"cut",
"entries",
"backup_refs",
"previous_page_digest",
"page_digest"
],
"properties": {
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"entries": {
"type": "array",
"items": {
"$ref": "#/$defs/coverage_entry"
},
"minItems": 1,
"maxItems": 256,
"uniqueItems": true
},
"backup_refs": {
"type": "array",
"items": {
"$ref": "./key-backup.schema.json#/properties/backup_id"
},
"minItems": 0,
"maxItems": 65536,
"uniqueItems": true
},
"previous_page_digest": {
"oneOf": [
{
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
{
"type": "null"
}
]
},
"page_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"key_selector": {
"oneOf": [
{
"type": "object",
"required": [
"kind",
"source_event_ref",
"content_path"
],
"properties": {
"kind": {
"const": "content_key",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/key_selector/oneOf/0/properties/kind",
"owner": "content-encryption.schema.json#/$defs/key_selector/oneOf/0/properties/kind",
"values": [
"content_key"
]
}
},
"source_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event",
"description": "Exact authenticated immutable original Event, with independently verified Commit, producer and original group provenance. Not a materialized Message or current edit."
},
"content_path": {
"type": "string",
"pattern": "^(?:/(?:[^~/]|~[01])*)+$",
"maxLength": 1024,
"description": "RFC6901 pointer rooted at source_event_ref. Ending at a registered encrypted envelope selects its 16-byte DEK. Descending through an envelope first authenticates and parses its registered plaintext with a separately authorized parent key; an authenticated encrypted_attachment descriptor selects its 32-byte DEK. Arrays use canonical nonnegative decimal indices, never append or leading zeros. No implicit parent-key disclosure, root fallback or current MLS state restoration. See content-history section 4 and media-and-blob section 3.0."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"kind",
"root_context",
"root_ref",
"closed_epoch_cut"
],
"properties": {
"kind": {
"const": "epoch_root",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/key_selector/oneOf/1/properties/kind",
"owner": "content-encryption.schema.json#/$defs/key_selector/oneOf/1/properties/kind",
"values": [
"epoch_root"
]
}
},
"root_context": {
"$ref": "#/$defs/root_context"
},
"root_ref": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"closed_epoch_cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
}
},
"additionalProperties": false
}
]
},
"history_grant": {
"type": "object",
"required": [
"recipient",
"recipient_hpke_key_base64url",
"recipient_key_event_ref",
"history_cut",
"expires_at",
"entries"
],
"properties": {
"recipient": {
"$ref": "#/$defs/endpoint"
},
"recipient_hpke_key_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$",
"x-arkret-member-role": "binary_encoding"
},
"recipient_key_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"history_cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"expires_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"entries": {
"type": "array",
"items": {
"type": "object",
"required": [
"selector",
"sealed_key_base64url"
],
"properties": {
"selector": {
"$ref": "#/$defs/key_selector"
},
"sealed_key_base64url": {
"type": "string",
"pattern": "^(?:[A-Za-z0-9_-]{85}[AQgw]|[A-Za-z0-9_-]{106}[AEIMQUYcgkosw048])$",
"minLength": 86,
"maxLength": 107,
"x-arkret-member-role": "binary_encoding"
}
},
"additionalProperties": false
},
"minItems": 1,
"maxItems": 256,
"uniqueItems": true
}
},
"additionalProperties": false,
"description": "Original signed grant references an accepted ak.mls.history_request authored by its exact recipient endpoint. The complete recipient, recipient_hpke_key_base64url, history_cut and expires_at equal that request; endpoint authorization remains inside recipient. Issuer disclosure and recipient read authority are independently native-verified, not asserted by an opaque payload reference. HPKE info and aad equal JCS({recipient,recipient_hpke_key_base64url,recipient_key_event_ref,history_cut,expires_at,selector}). sealed_key_base64url is canonical unpadded base64url(enc[32] || ciphertext || tag[16]), exactly 64 or 80 decoded bytes for a 16/32-byte key. Default RFC9180 suite is X25519/HKDF-SHA256/ChaCha20Poly1305, mode Base, seq=0; no wire nonce."
},
"recovery_binding": {
"type": "object",
"required": [
"replacement",
"authorization_event_ref",
"base_group_state_ref",
"expected_epoch",
"inventory_digest"
],
"properties": {
"replacement": {
"$ref": "#/$defs/endpoint"
},
"authorization_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"base_group_state_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"expected_epoch": {
"$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
},
"inventory_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
}
},
"additionalProperties": false
},
"custody": {
"type": "object",
"required": [
"custodian_actor_id",
"recovery_policy_ref",
"recipient_key_ref"
],
"properties": {
"custodian_actor_id": {
"$ref": "./common-ids.schema.json#/$defs/actor_id"
},
"recovery_policy_ref": {
"$ref": "./key-backup.schema.json#/properties/recovery_policy_ref"
},
"recipient_key_ref": {
"$ref": "./key-backup.schema.json#/properties/encryption/properties/recipient_key_ref"
}
},
"additionalProperties": false
},
"recovery_preparation": {
"type": "object",
"required": [
"state",
"replacement",
"pcr_cut"
],
"properties": {
"state": {
"enum": [
"pending",
"prepared"
],
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/recovery_preparation/properties/state",
"owner": "content-encryption.schema.json#/$defs/recovery_preparation/properties/state",
"values": [
"pending",
"prepared"
]
}
},
"replacement": {
"$ref": "#/$defs/endpoint"
},
"pcr_cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"inventory_blob_ref": {
"$ref": "./common-ids.schema.json#/$defs/blob_ref"
}
},
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"state": {
"const": "prepared",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/recovery_preparation/allOf/0/if/properties/state",
"owner": "content-encryption.schema.json#/$defs/recovery_preparation/allOf/0/if/properties/state",
"values": [
"prepared"
]
}
}
},
"required": [
"state"
]
},
"then": {
"required": [
"inventory_blob_ref"
]
},
"else": {
"not": {
"required": [
"inventory_blob_ref"
]
}
}
},
{
"properties": {
"replacement": {
"properties": {
"actor_id": {
"$ref": "./common-ids.schema.json#/$defs/actor_id",
"properties": {
"kind": {
"const": "account",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/recovery_preparation/allOf/1/properties/replacement/properties/actor_id/properties/kind",
"owner": "content-encryption.schema.json#/$defs/recovery_preparation/allOf/1/properties/replacement/properties/actor_id/properties/kind",
"values": [
"account"
]
}
}
}
}
}
}
}
}
],
"description": "Private unit-derived content-recovery preparation resource. The path authorization Event equals replacement.authorization_event_ref. Replacement is projected from the exact accepted Human recovery Device key or activated Agent pairing runtime key; no caller-selected key or second episode ID. pending has no inventory ref; prepared fixes the complete canonical inventory Blob and does not attest plaintext restoration or client history-ready. Current native subject holders and accepted current Agent history custodians only; no peer, anonymous or candidate disclosure."
},
"history_recovery": {
"type": "object",
"required": [
"state",
"pcr_cut",
"coverage_head_digest",
"restored_event_count",
"cleanup_completed",
"inventory_blob_ref",
"replacement"
],
"properties": {
"state": {
"enum": [
"pending",
"ready"
],
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/history_recovery/properties/state",
"owner": "content-encryption.schema.json#/$defs/history_recovery/properties/state",
"values": [
"pending",
"ready"
]
}
},
"pcr_cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"coverage_head_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"restored_event_count": {
"$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
},
"cleanup_inventory_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"cleanup_completed": {
"type": "boolean"
},
"inventory_blob_ref": {
"$ref": "./common-ids.schema.json#/$defs/blob_ref"
},
"cleanup_blob_ref": {
"$ref": "./common-ids.schema.json#/$defs/blob_ref"
},
"replacement": {
"$ref": "#/$defs/endpoint"
}
},
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"state": {
"const": "ready",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/history_recovery/allOf/0/if/properties/state",
"owner": "content-encryption.schema.json#/$defs/history_recovery/allOf/0/if/properties/state",
"values": [
"ready"
]
}
}
},
"required": [
"state"
]
},
"then": {
"properties": {
"cleanup_completed": {
"const": true,
"x-arkret-value-ownership": {
"class": "numeric",
"authority": "content-encryption.schema.json#/$defs/history_recovery/allOf/0/then/properties/cleanup_completed",
"owner": "content-encryption.schema.json#/$defs/history_recovery/allOf/0/then/properties/cleanup_completed",
"values": [
true
]
}
}
},
"required": [
"cleanup_blob_ref",
"cleanup_inventory_digest"
]
},
"else": {
"not": {
"anyOf": [
{
"required": [
"cleanup_blob_ref"
]
},
{
"required": [
"cleanup_inventory_digest"
]
}
]
},
"properties": {
"cleanup_completed": {
"const": false,
"x-arkret-value-ownership": {
"class": "numeric",
"authority": "content-encryption.schema.json#/$defs/history_recovery/allOf/0/else/properties/cleanup_completed",
"owner": "content-encryption.schema.json#/$defs/history_recovery/allOf/0/else/properties/cleanup_completed",
"values": [
false
]
}
}
}
}
}
]
},
"protection": {
"type": "object",
"required": [
"root_refs",
"blob_refs",
"backup_refs"
],
"properties": {
"root_refs": {
"type": "array",
"items": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"maxItems": 256,
"uniqueItems": true,
"minItems": 1
},
"blob_refs": {
"type": "array",
"items": {
"$ref": "./common-ids.schema.json#/$defs/blob_ref"
},
"maxItems": 256,
"uniqueItems": true
},
"backup_refs": {
"type": "array",
"items": {
"$ref": "./key-backup.schema.json#/properties/backup_id"
},
"maxItems": 256,
"uniqueItems": true,
"minItems": 1
}
},
"additionalProperties": false
},
"history_request": {
"type": "object",
"required": [
"recipient",
"recipient_hpke_key_base64url",
"history_cut",
"expires_at"
],
"properties": {
"recipient": {
"$ref": "#/$defs/endpoint"
},
"recipient_hpke_key_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$",
"x-arkret-member-role": "binary_encoding"
},
"history_cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"expires_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
}
},
"additionalProperties": false,
"description": "Exact recipient-native-endpoint signed history request. Endpoint authorization is recipient.authorization_event_ref. Scope read authority is independently verified at the accepting RealmCommit cut and again for new grant issuance/delivery; this object is not a permission grant. Its endpoint key is the native verified MLS leaf key and may differ from the independently verified Event producer key. No top-level authorization_event_ref exists."
},
"history_backup_access": {
"type": "object",
"required": [
"source",
"root_refs"
],
"properties": {
"source": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"root_refs": {
"type": "array",
"items": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"minItems": 1,
"uniqueItems": true,
"maxItems": 256
}
},
"additionalProperties": false
},
"recovery_inventory_entry": {
"type": "object",
"required": [
"effective_scope",
"genesis_event_ref",
"base_group_state_ref",
"epoch",
"old_leaves"
],
"properties": {
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"base_group_state_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"epoch": {
"$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
},
"old_leaves": {
"type": "array",
"items": {
"type": "object",
"required": [
"leaf_index",
"endpoint"
],
"properties": {
"leaf_index": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"endpoint": {
"$ref": "#/$defs/endpoint"
}
},
"additionalProperties": false
},
"minItems": 0,
"uniqueItems": true
}
},
"additionalProperties": false
},
"recovery_inventory": {
"type": "object",
"required": [
"actor_id",
"replacement",
"authorization_event_ref",
"pcr_cut",
"entries"
],
"properties": {
"actor_id": {
"$ref": "./common-ids.schema.json#/$defs/actor_id"
},
"replacement": {
"$ref": "#/$defs/endpoint"
},
"authorization_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"pcr_cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"entries": {
"type": "array",
"items": {
"$ref": "#/$defs/recovery_inventory_entry"
},
"minItems": 0,
"uniqueItems": true
}
},
"additionalProperties": false,
"description": "Private canonical Blob preimage, streamed/hashed without a global group-count truncation. Entries ordered by unsigned bytes of JCS({effective_scope,genesis_event_ref}), unique by that pair; old_leaves ordered by leaf_index. Includes empty scopes and exact native endpoint provenance; local Account Station durable membership/admission ledger is frozen at the recovery fence. Empty entries are valid only for a complete native census proving no activated MLS scope; an activated empty group still requires its real entry. The hash/schema alone never proves completeness. Complete native census includes every unresolved predecessor-episode scope even without a current leaf or membership; prepared bytes remain immutable and private native obligations remain associated."
},
"scope_cleanup": {
"oneOf": [
{
"type": "object",
"required": [
"state",
"effective_scope",
"genesis_event_ref",
"winning_commit",
"remaining_old_leaf_count",
"root_refs",
"backup_refs"
],
"properties": {
"state": {
"const": "rekeyed",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/scope_cleanup/oneOf/0/properties/state",
"owner": "content-encryption.schema.json#/$defs/scope_cleanup/oneOf/0/properties/state",
"values": [
"rekeyed"
]
}
},
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"winning_commit": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"remaining_old_leaf_count": {
"const": 0,
"x-arkret-value-ownership": {
"class": "numeric",
"authority": "content-encryption.schema.json#/$defs/scope_cleanup/oneOf/0/properties/remaining_old_leaf_count",
"owner": "content-encryption.schema.json#/$defs/scope_cleanup/oneOf/0/properties/remaining_old_leaf_count",
"values": [
0
]
}
},
"root_refs": {
"type": "array",
"items": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"minItems": 1,
"uniqueItems": true,
"maxItems": 256
},
"backup_refs": {
"type": "array",
"items": {
"$ref": "./key-backup.schema.json#/properties/backup_id"
},
"minItems": 1,
"uniqueItems": true,
"maxItems": 256
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"state",
"effective_scope",
"genesis_event_ref",
"retirement_proof"
],
"properties": {
"state": {
"enum": [
"removed",
"terminated"
],
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/scope_cleanup/oneOf/1/properties/state",
"owner": "content-encryption.schema.json#/$defs/scope_cleanup/oneOf/1/properties/state",
"values": [
"removed",
"terminated"
]
}
},
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id"
},
"retirement_proof": {
"$ref": "#/$defs/scope_retirement_proof"
}
},
"additionalProperties": false
}
],
"description": "Exactly one result for every inventory entry: rekeyed with actual winning transition and sufficient new roots, or removed/terminated with the exact governor-signed retirement proof. Root/backup/roster disclosure is forbidden in retirement results. Outer state/scope/genesis must equal the signed proof and inventory entry."
},
"cleanup_inventory": {
"type": "object",
"required": [
"inventory_digest",
"scope_cleanups"
],
"properties": {
"inventory_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"scope_cleanups": {
"type": "array",
"items": {
"$ref": "#/$defs/scope_cleanup"
},
"minItems": 0,
"uniqueItems": true
}
},
"additionalProperties": false,
"description": "Private canonical Blob preimage; scope_cleanups correspond one-for-one to all original inventory entries in the same order. Each entry has verified rekeyed, removed or irreversible terminated evidence. A departed scope is never omitted or rejoined. SHA256 domain is ak.content.cleanup_inventory.v1 followed by LF and JCS."
},
"recovery_source_attestation": {
"type": "object",
"required": [
"event_ref",
"replacement",
"effective_scope",
"base_group_state_ref",
"previous_epoch",
"inventory_digest",
"verification_method",
"attested_at",
"expires_at",
"signature"
],
"properties": {
"event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"replacement": {
"$ref": "#/$defs/endpoint"
},
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"base_group_state_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"previous_epoch": {
"$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
},
"inventory_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"verification_method": {
"$ref": "./common-ids.schema.json#/$defs/did_url",
"description": "The owning Station assertion method signing this origin source at attested_at. This is independent from the Device or Agent producer method in the original Event; the original producer signer fact separately binds and verifies that Event method and key."
},
"attested_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"expires_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"signature": {
"$ref": "./keypackage-operations.schema.json#/$defs/signature"
}
},
"additionalProperties": false
},
"recovery_source": {
"type": "object",
"description": "Human fact.accepted_at is the original Device authorization Commit time, no later than attested_at. The covering MLS RealmCommit independently dates recovery acceptance within the source window. Agent runtime fact.accepted_at remains its covering Commit time. The two recovery MLS steps in a Human holder PCR retain this fact only with verified native authorization, prepared inventory and private disclosure.",
"required": [
"attestation",
"origin_resolution"
],
"properties": {
"attestation": {
"$ref": "#/$defs/recovery_source_attestation"
},
"origin_resolution": {
"$ref": "./identity-resolution.schema.json#/$defs/authenticated_service_resolution"
}
},
"additionalProperties": false
},
"backup_source_attestation": {
"type": "object",
"required": [
"event_ref",
"event_original_digest",
"producer",
"effective_scope",
"destination_service_id",
"protections_digest",
"verification_method",
"attested_at",
"expires_at",
"signature"
],
"properties": {
"event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"event_original_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"producer": {
"$ref": "#/$defs/endpoint"
},
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"destination_service_id": {
"$ref": "./common-ids.schema.json#/$defs/did_core_id"
},
"protections_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"verification_method": {
"$ref": "./common-ids.schema.json#/$defs/did_url"
},
"attested_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"expires_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"signature": {
"$ref": "./keypackage-operations.schema.json#/$defs/signature"
}
},
"additionalProperties": false,
"description": "Origin backup-keeper statement over the exact complete original Event and registered protection slots. The issuer verifies native accepted root storage, sufficient recipient and permanent retention from first PUT; a signer-only proof or copied ciphertext cannot issue this statement. The statement grants no writer, membership, read or migration authority."
},
"backup_source": {
"type": "object",
"required": [
"attestation",
"origin_resolution"
],
"properties": {
"attestation": {
"$ref": "#/$defs/backup_source_attestation"
},
"origin_resolution": {
"$ref": "./identity-resolution.schema.json#/$defs/authenticated_service_resolution"
}
},
"additionalProperties": false
},
"recovery_scope_cleanup_request_body": {
"type": "object",
"required": [
"authorization_event_ref",
"inventory_digest",
"effective_scope",
"genesis_event_ref",
"nonce_base64url",
"delivery_challenge_base64url"
],
"properties": {
"authorization_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id"
},
"inventory_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id"
},
"nonce_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
},
"delivery_challenge_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
}
},
"additionalProperties": false,
"x-arkret-name-role": "request_body",
"description": "Exact prepared episode and inventory entry. nonce_base64url is a stable native intent identity; delivery_challenge_base64url is fresh for each new observation. Both are canonical random 32-byte values. Outer idempotency always hashes the full request body. After current/native qualification, subject/episode/nonce durably reserves exact I even when first domain eligibility rejects; fresh delivery challenge cannot rebind I. Origin reservation is global across destinations and precedes source signing. Reservation alone installs no scope safety effect."
},
"recovery_scope_cleanup_authorization": {
"type": "object",
"required": [
"replacement",
"inventory_digest",
"inventory_entry",
"destination_service_id",
"predecessor_authorization_event_refs",
"nonce_base64url",
"delivery_challenge_base64url",
"verification_method",
"attested_at",
"expires_at",
"signature"
],
"properties": {
"replacement": {
"$ref": "#/$defs/endpoint"
},
"inventory_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"inventory_entry": {
"$ref": "#/$defs/recovery_inventory_entry"
},
"destination_service_id": {
"$ref": "./common-ids.schema.json#/$defs/did_core_id"
},
"predecessor_authorization_event_refs": {
"type": "array",
"items": {
"$ref": "./common-ids.schema.json#/$defs/event_id",
"x-arkret-preimage-commitment": "fixed_event"
},
"uniqueItems": true,
"description": "Canonical UTF-8 sorted exact prior recovery authorization refs for this Actor/scope, frozen with the prepared intent association. The qualified origin attests native full supersedes/generation causality to this replacement. Empty only when the complete census has no unresolved predecessor association. No private PCR originals or positions."
},
"nonce_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
},
"delivery_challenge_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
},
"verification_method": {
"$ref": "./common-ids.schema.json#/$defs/did_url"
},
"attested_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"expires_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"signature": {
"$ref": "./keypackage-operations.schema.json#/$defs/signature"
}
},
"additionalProperties": false,
"description": "Native current origin authorization. Stable I contains exactly replacement, inventory_digest, inventory_entry and nonce_base64url. Current destination, delivery challenge, method, validity and signature are signed but excluded from I. They are included in the full outer request hash; no nonce-only canonical hash is permitted. After current/native qualification, subject/episode/nonce durably reserves exact I even when first domain eligibility rejects; fresh delivery challenge cannot rebind I. Origin reservation is global across destinations and precedes source signing. Reservation alone installs no scope safety effect. The origin-signed predecessor_authorization_event_refs is a frozen native association to I, excluded from its four-field digest but immutable across observations. The governor associates only retained exact same-Actor/scope/genesis obligations; no unsigned or caller-provided causal relation is accepted."
},
"recovery_scope_cleanup_source": {
"type": "object",
"required": [
"attestation",
"origin_resolution"
],
"properties": {
"attestation": {
"$ref": "#/$defs/recovery_scope_cleanup_authorization"
},
"origin_resolution": {
"$ref": "./identity-resolution.schema.json#/$defs/authenticated_service_resolution"
}
},
"additionalProperties": false
},
"scope_retirement_proof": {
"type": "object",
"required": [
"state",
"replacement",
"inventory_digest",
"inventory_entry_digest",
"request_digest",
"effective_scope",
"genesis_event_ref",
"governance_station_id",
"governance_generation",
"scope_cut",
"group_state_ref",
"epoch",
"nonce_base64url",
"attested_at",
"verification_method",
"signature"
],
"properties": {
"state": {
"enum": [
"removed",
"terminated"
],
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/scope_retirement_proof/properties/state",
"owner": "content-encryption.schema.json#/$defs/scope_retirement_proof/properties/state",
"values": [
"removed",
"terminated"
]
}
},
"replacement": {
"$ref": "#/$defs/endpoint"
},
"inventory_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"inventory_entry_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"request_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id"
},
"governance_station_id": {
"$ref": "./common-ids.schema.json#/$defs/did_core_id"
},
"governance_generation": {
"type": "integer",
"minimum": 0
},
"scope_cut": {
"$ref": "./authority-commit-operations.schema.json#/$defs/committed_event_ref"
},
"group_state_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id"
},
"epoch": {
"$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
},
"nonce_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
},
"attested_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"verification_method": {
"$ref": "./common-ids.schema.json#/$defs/did_url"
},
"remaining_old_leaf_count": {
"const": 0,
"x-arkret-value-ownership": {
"class": "numeric",
"authority": "content-encryption.schema.json#/$defs/scope_retirement_proof/properties/remaining_old_leaf_count",
"owner": "content-encryption.schema.json#/$defs/scope_retirement_proof/properties/remaining_old_leaf_count",
"values": [
0
]
}
},
"terminal_source_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"signature": {
"$ref": "./keypackage-operations.schema.json#/$defs/signature"
}
},
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"state": {
"const": "removed",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/scope_retirement_proof/allOf/0/if/properties/state",
"owner": "content-encryption.schema.json#/$defs/scope_retirement_proof/allOf/0/if/properties/state",
"values": [
"removed"
]
}
}
},
"required": [
"state"
]
},
"then": {
"required": [
"remaining_old_leaf_count"
],
"not": {
"required": [
"terminal_source_digest"
]
}
},
"else": {
"required": [
"terminal_source_digest"
],
"not": {
"required": [
"remaining_old_leaf_count"
]
}
}
}
],
"description": "Governor-signed private native absence or irreversible terminal fact for one frozen recovery inventory entry. removed proves every displaced endpoint is absent after reconciliation and the episode fence; terminated proves a registered irreversible lifecycle and permanent no-future-content gate, not a fictional zero leaf count. No current membership, business history, other-member roster, root or backup is disclosed. The signature domain is ak.mls.scope_retirement.v1 followed by LF and JCS(proof without signature). scope_cut belongs to the target scope. terminal_source_digest binds an independently native-qualified direct or registered upstream terminal source; that private source can belong to another stream and is not disclosed by the proof."
},
"recovery_scope_cleanup_response_body": {
"oneOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"const": "pending",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/recovery_scope_cleanup_response_body/oneOf/0/properties/state",
"owner": "content-encryption.schema.json#/$defs/recovery_scope_cleanup_response_body/oneOf/0/properties/state",
"values": [
"pending"
]
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"cleanup",
"delivery_attestation"
],
"properties": {
"cleanup": {
"type": "object",
"required": [
"state",
"effective_scope",
"genesis_event_ref",
"retirement_proof"
],
"properties": {
"state": {
"enum": [
"removed",
"terminated"
],
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/recovery_scope_cleanup_response_body/oneOf/1/properties/cleanup/properties/state",
"owner": "content-encryption.schema.json#/$defs/recovery_scope_cleanup_response_body/oneOf/1/properties/cleanup/properties/state",
"values": [
"removed",
"terminated"
]
}
},
"effective_scope": {
"$ref": "./event-payload.schema.json#/$defs/effective_scope"
},
"genesis_event_ref": {
"$ref": "./common-ids.schema.json#/$defs/event_id"
},
"retirement_proof": {
"$ref": "#/$defs/scope_retirement_proof"
}
},
"additionalProperties": false
},
"delivery_attestation": {
"$ref": "#/$defs/scope_retirement_delivery_attestation"
}
},
"additionalProperties": false
}
],
"x-arkret-name-role": "response_body",
"description": "Pending observation, or an immutable historical cleanup plus a fresh current-governor delivery attestation. Current rejoin does not deny delivery of an existing terminal. The original pending observation is immutable for the full-body retry and challenge; it does not freeze native intent settlement. A subsequent observation uses a fresh delivery challenge."
},
"recovery_scope_cleanup_self_response_body": {
"type": "object",
"required": [
"delivery"
],
"properties": {
"delivery": {
"$ref": "#/$defs/recovery_scope_cleanup_response_body"
},
"attestor_signing_key": {
"type": "object",
"required": [
"proof_digest",
"verification_method",
"public_key_base64url"
],
"properties": {
"proof_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"verification_method": {
"$ref": "./common-ids.schema.json#/$defs/did_url"
},
"public_key_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
}
},
"additionalProperties": false
},
"delivery_signing_key": {
"type": "object",
"required": [
"delivery_digest",
"verification_method",
"public_key_base64url"
],
"properties": {
"delivery_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"verification_method": {
"$ref": "./common-ids.schema.json#/$defs/did_url"
},
"public_key_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"x-arkret-name-role": "response_body",
"allOf": [
{
"if": {
"properties": {
"delivery": {
"properties": {
"state": {
"const": "pending",
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "content-encryption.schema.json#/$defs/recovery_scope_cleanup_self_response_body/allOf/0/if/properties/delivery/properties/state",
"owner": "content-encryption.schema.json#/$defs/recovery_scope_cleanup_self_response_body/allOf/0/if/properties/delivery/properties/state",
"values": [
"pending"
]
}
}
},
"required": [
"state"
]
}
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"attestor_signing_key"
]
},
{
"required": [
"delivery_signing_key"
]
}
]
}
},
"else": {
"required": [
"attestor_signing_key",
"delivery_signing_key"
]
}
}
]
},
"scope_retirement_delivery_attestation": {
"type": "object",
"required": [
"request_digest",
"authorization_digest",
"proof_digest",
"recipient_service_id",
"governance_station_id",
"governance_generation",
"nonce_base64url",
"delivery_challenge_base64url",
"attested_at",
"expires_at",
"verification_method",
"signature"
],
"properties": {
"request_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"authorization_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"proof_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"recipient_service_id": {
"$ref": "./common-ids.schema.json#/$defs/did_core_id"
},
"governance_station_id": {
"$ref": "./common-ids.schema.json#/$defs/did_core_id"
},
"governance_generation": {
"type": "integer",
"minimum": 0
},
"nonce_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
},
"delivery_challenge_base64url": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
"x-arkret-member-role": "binary_encoding"
},
"attested_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"expires_at": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"verification_method": {
"$ref": "./common-ids.schema.json#/$defs/did_url"
},
"signature": {
"$ref": "./keypackage-operations.schema.json#/$defs/signature"
}
},
"additionalProperties": false,
"description": "Current-governor signed delivery of one immutable historical proof. It certifies native proof and monotone fence retention/import at delivery, binds the exact fresh origin authorization, challenge, stable intent and recipient Station, and never rewrites the original proof. Signature domain: ak.mls.scope_retirement_delivery.v1 plus LF and JCS(attestation without signature). Freshness applies at receipt, not as a global completion lease."
}
}
}查看 canonical 原件:spec/v1/artifacts/schemas/content-encryption.schema.json
Source
- registry row:
spec/v1/artifacts/registry/schema-registry.json - schema document:
spec/v1/artifacts/schemas/content-encryption.schema.json