跳转到内容

ak.schema.exact_current_state_read.v1

← Schema 目录

Arkret Exact current state Read
ak.schema.exact_current_state_read.v1 · schemas/exact-current-state-read.schema.json

Exact authorized Relation, moderation or Agent interaction current read at one governing-Station cut. It is non-enumerating and binds never-written to the exact selector. Includes the original issuer-only exact owned_agent capability_grant read, including ineffective and terminal rows; no never_written for grants. Also supports exact Agent/Applet Policy CAS reads by the authorized policy setter and exact Applet/Service registration CAS reads by a Realm administrator, including authoritative never_written. No enumeration or new permission.

必填标记属于当前 Schema 对象或分支。oneOf、anyOf、if / then / else 中的 required 不表示所有实例均必填。树状视图有递归深度限制;完整约束以 canonical 原件为准。

必填 $ · oneOf[2]

Exact authorized Relation, moderation or Agent interaction current read at one governing-Station cut. It is non-enumerating and binds never-written to the exact selector. Includes the original issuer-only exact owned_agent capability_grant read, including ineffective and terminal rows; no never_written for grants. Also supports exact Agent/Applet Policy CAS reads by the authorized policy setter and exact Applet/Service registration CAS reads by a Realm administrator, including authoritative never_written. No enumeration or new permission.

oneOf · oneOf[0] · object · $ref #/$defs/exact_current_state_read_request_body

One exact, non-enumerating selector in one Realm. The caller cannot supply a revision, stream or governance Station.

此分支的 required:realm_id, selector

分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 selector · oneOf[7] · $ref #/$defs/exact_current_state_selector
oneOf · oneOf[0] · object · $ref #/$defs/relation_exact_current_selector

此分支的 required:kind, primary_conflict_domain

分支必填 kind · const "relation"
enum: "relation"
分支必填 primary_conflict_domain · object · $ref ./relation.schema.json#/$defs/relation_primary_conflict_domain

The unique current-state subject for one directly writable Relation domain. Realm comes from the Event envelope. domain_kind MUST equal the matching relation-kind-registry.json shape's registered primary_conflict_domain: tuple keys on (relation_kind, from_ref, to_ref), while from keys on (relation_kind, from_ref). truth_source shapes have no directly writable Relation domain.

此分支的 required:domain_kind, relation_kind, from_ref

allOf · allOf[0] · ?
if · if · object

此分支的 required:domain_kind

分支必填 domain_kind · const "tuple"
enum: "tuple"
then · then · ?

此分支的 required:to_ref

else · else · ?
分支必填 domain_kind · string (enum)
enum: "tuple" "from"
分支必填 relation_kind · string

The current Relation's create-locked relation_kind. It MUST resolve to a directly writable relation-kind-registry.json shape whose registered primary_conflict_domain equals domain_kind; a derived_projection shape is rejected with schema_violation (reason=relation_kind_contains_derived / relation_kind_watches_derived).

分支必填 from_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint
to_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint

Present exactly when domain_kind=tuple. A from domain already identifies the single current Relation for the from_ref, so carrying to_ref there would create a second spelling of the subject.

oneOf · oneOf[1] · object · $ref #/$defs/moderation_state_exact_current_selector

此分支的 required:kind, target_ref

分支必填 kind · const "moderation_state"
enum: "moderation_state"
分支必填 target_ref · string · $ref ./event-payload.schema.json#/$defs/object_ref
pattern: ^((?:ak:realm:[A-Za-z0-9_-]{44}|ak:(space|actor_profile|strand|message|morph|relation|view|event|grant|invite|realm_invite_link|call):[A-Za-z0-9_-]{44}|ak:(policy|blob):[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})|ak:blob:(sha256|blake3):[0-9a-f]{64}|did:[^\s]+|(sha256|blake3):[0-9a-f]{64})$
oneOf · oneOf[2] · object · $ref ./current-state.schema.json#/$defs/current_agent_interaction/properties/selector

此分支的 required:kind, agent_account_id

分支必填 kind · const "agent_interaction"
enum: "agent_interaction"
分支必填 agent_account_id · object · $ref ./common-ids.schema.json#/$defs/account_id

Complete protocol identity for a principal at one Station, including human, Organization and personal Agent accounts. It does not imply a human login, provisioning workflow, credential class or authorization. Equality is byte-for-byte equality of both canonical did_core_id components; neither component may be inferred from a DID Document, route, session audience, current service, handle, or local database key. Accounts with the same principal_id at different station_id values are permanently distinct. Principal equality MUST NOT establish account equivalence or any permission inheritance, merging, delegation, substitution or recovery relationship. Account-scoped authority requires independent authorization for the exact AccountId. Permanent loss of a Station does not permit its accounts or PCR lineages to migrate to or revive at another Station; Realm takeover and RealmCommit recovery do not waive this boundary. See models/common-fields.md section 4.2.

此分支的 required:principal_id, station_id

分支必填 principal_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 station_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[3] · object · $ref ./current-state.schema.json#/$defs/current_capability_grant/properties/selector

此分支的 required:kind, grant_id

分支必填 kind · const "capability_grant"
enum: "capability_grant"
分支必填 grant_id · string · $ref ./common-ids.schema.json#/$defs/grant_id
pattern: ^ak:grant:[A-Za-z0-9_-]{44}$
oneOf · oneOf[4] · object · $ref ./current-state.schema.json#/$defs/current_calendar_schedule_source/properties/selector

此分支的 required:kind, strand_id

分支必填 kind · const "calendar_schedule_source"
enum: "calendar_schedule_source"
分支必填 strand_id · string
pattern: ^ak:strand:[A-Za-z0-9_-]{44}$
oneOf · oneOf[5] · object · $ref ./current-state.schema.json#/$defs/current_policy/properties/selector

此分支的 required:kind, policy_id

分支必填 kind · const "policy"
enum: "policy"
分支必填 policy_id · string · $ref ./event-payload.schema.json#/$defs/policy_set_state_payload/properties/policy_id
pattern: ^ak:policy:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
oneOf · oneOf[6] · object · $ref ./current-state.schema.json#/$defs/current_applet_registration/properties/selector

此分支的 required:kind, applet_id, service_id

分支必填 kind · const "applet_registration"
enum: "applet_registration"
分支必填 applet_id · string · $ref ./common-ids.schema.json#/$defs/applet_id

Stable canonical Applet installation identity. Applet service authority is carried separately by service_id.

pattern: ^ak:applet:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
分支必填 service_id · string · $ref ./common-ids.schema.json#/$defs/did_core_id

Canonical stable DID-derived identity core. The lowercase DID method name follows ak:did_core:, and the remaining method-adapter-defined core is opaque to generic consumers. The did:web v1 adapter uses the complete canonical method-specific-id, never a digest or truncated host. Principal-core and service-core equality is byte-for-byte equality of the complete did_core_id. Event actor and Realm membership equality instead use the complete closed ActorId, and account-scoped equality uses the complete AccountId; neither may be reduced to a principal core. A did_core_id is not a DID and cannot be resolved without a did or AuthenticatedServiceResolution.

pattern: ^ak:did_core:[a-z0-9]+:[^\s/?#]+$
oneOf · oneOf[1] · oneOf[2] · $ref #/$defs/exact_current_state_read_response_body

One authorized same-cut answer. never_written is an affirmative Station result, never an inference from omission, timeout or invisibility.

oneOf · oneOf[0] · object · $ref #/$defs/exact_current_state_present

此分支的 required:status, realm_id, governance_generation, effective_stream_head, current_state

分支必填 status · const "present"
enum: "present"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 governance_generation · string · $ref ./decimal-integers.schema.json#/$defs/uint64_decimal

Canonical unsigned decimal spelling, inclusive range 0..18446744073709551615; no sign, leading zero, exponent or JSON number alternative.

pattern: ^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$
分支必填 effective_stream_head · object · $ref ./realm-commit.schema.json#/$defs/stream_head

此分支的 required:stream_ref, stream_position, commit_id

分支必填 stream_ref · $ref #/$defs/stream_ref · $ref #/$defs/stream_ref
分支必填 stream_position · integer
分支必填 commit_id · string · $ref ./common-ids.schema.json#/$defs/realm_commit_id

Content-addressed identity of a closed unsigned RealmCommit body. The suffix uses the fixed v1 digest suite and the same canonical 33-octet token encoding as Event IDs.

pattern: ^ak:realm_commit:[A-Za-z0-9_-]{44}$
分支必填 current_state · oneOf[6] · $ref #/$defs/exact_current_state
oneOf · oneOf[0] · object · $ref ./current-state.schema.json#/$defs/current_relation

The single Relation current value for one registered primary conflict domain (zh/models/relation.md section 6). Realm comes from the accepted Event envelope. The value retains its event-derived RelationId and immutable domain identity; create/update/tombstone all address this same subject and use exact revision CAS.

此分支的 required:selector, source_stream_ref, revision, value

分支必填 selector · object

此分支的 required:kind, primary_conflict_domain

分支必填 kind · const "relation"
enum: "relation"
分支必填 primary_conflict_domain · object · $ref ./relation.schema.json#/$defs/relation_primary_conflict_domain

The unique current-state subject for one directly writable Relation domain. Realm comes from the Event envelope. domain_kind MUST equal the matching relation-kind-registry.json shape's registered primary_conflict_domain: tuple keys on (relation_kind, from_ref, to_ref), while from keys on (relation_kind, from_ref). truth_source shapes have no directly writable Relation domain.

此分支的 required:domain_kind, relation_kind, from_ref

allOf · allOf[0] · ?
if · if · object

此分支的 required:domain_kind

分支必填 domain_kind · …

recursion truncated at depth 8; see source schema for full shape

then · then · ?

此分支的 required:to_ref

else · else · ?
分支必填 domain_kind · string (enum)
enum: "tuple" "from"
分支必填 relation_kind · string

The current Relation's create-locked relation_kind. It MUST resolve to a directly writable relation-kind-registry.json shape whose registered primary_conflict_domain equals domain_kind; a derived_projection shape is rejected with schema_violation (reason=relation_kind_contains_derived / relation_kind_watches_derived).

分支必填 from_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint
to_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint

Present exactly when domain_kind=tuple. A from domain already identifies the single current Relation for the from_ref, so carrying to_ref there would create a second spelling of the subject.

分支必填 source_stream_ref · oneOf[3] · $ref ./realm-commit.schema.json#/$defs/stream_ref

Closed independent stream selector: Realm, Sidecar or private realm_control. realm_control is not a business, membership, capability or MLS scope.

oneOf · oneOf[0] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
oneOf · oneOf[1] · object

此分支的 required:kind, realm_id, sidecar_id

分支必填 kind · const "sidecar"
enum: "sidecar"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 sidecar_id · string · $ref ./common-ids.schema.json#/$defs/sidecar_id
pattern: ^ak:sidecar:[A-Za-z0-9_-]{44}$
oneOf · oneOf[2] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm_control"
enum: "realm_control"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 revision · $ref #/$defs/revision · $ref #/$defs/revision
分支必填 value · object · $ref ./relation.schema.json

此分支的 required:schema, realm_id, relation_kind, from_ref, to_ref, created_by, created_at

allOf · allOf[0] · ?
if · if · object

此分支的 required:relation_kind

分支必填 relation_kind · const "assigned_to"
enum: "assigned_to"
then · then · object
from_ref · string
pattern: ^ak:strand:[A-Za-z0-9_-]{44}$
to_ref · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[2] · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[1] · ?
if · if · object

此分支的 required:relation_kind

分支必填 relation_kind · const "watches"
enum: "watches"
then · then · object
from_ref · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[2] · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[2] · ?
if · if · object

此分支的 required:state

分支必填 state · const "tombstoned"
enum: "tombstoned"
then · then · ?

此分支的 required:state_changed_at

id · string

Present on the materialised object. MUST be absent from the create Event payload: zh/models/common-fields.md derives it from the create Event's own event_id (retyped), so a payload-supplied id would be a second, forgeable truth.

pattern: ^ak:relation:[A-Za-z0-9_-]{44}$
分支必填 schema · const "ak.schema.relation.v1"
enum: "ak.schema.relation.v1"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
effective_scope · $ref #/$defs/effective_scope · $ref #/$defs/effective_scope

The receiver verifies the signed Event.scope_ref against the Realm of the Relation and the accepted endpoint states before materializing this immutable read projection. Actor-supplied values are rejected with effective_scope_reducer_managed.

分支必填 relation_kind · string

Relation semantic. The standard kind vocabulary (kind list, cardinality class, truth-source class, weak_semantic flag) is machine-indexed in artifacts/registry/relation-kind-registry.json; detailed dedupe/scope/conflict semantics in models/relation.md §3-§6. Cross-Realm constraint: the current governance Station's authoritative reducer MUST resolve both endpoints and reject structural relations 'contains' and 'belongs_to' when either endpoint realm differs from this Relation realm, with failed_precondition reason cross_realm_structural_relation and zero commit/projection effect; producer or SDK prechecks are non-authoritative. weak_semantic=true kinds per the registry MAY cross Realm subject to two-sided authorization. Stays a free string so extension profiles can add kinds; unregistered kinds are opaque edges (unknown_relation_kind), never container/visibility semantics.

分支必填 from_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint
分支必填 to_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint
rank · $ref #/$defs/rank · $ref #/$defs/rank

Top-level rank string for ordered relations (e.g. contains-list-strand position). Encoding follows the ak.rank.lexofractional.v1 grammar in zh/conformance/encoding.md section 9.1. Aligned with Space.rank so all rank-bearing canonical objects expose rank at the top level instead of fields.rank.

fields · object

Edge metadata. MUST NOT contain a 'rank' key — rank moved to the top level in v1 to align with Space.rank.

state · string (enum)

Relation state. 'tombstoned' covers both deletion and redaction; the originating reason is preserved on the ak.relation.tombstone / ak.redaction event, not on the materialized object.

enum: "active" "tombstoned"
state_changed_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp

Reducer-derived timestamp of the most recent state transition. MUST be set when state != 'active'; MUST be the created_at of the corresponding ak.relation.tombstone / redaction Event. Aligns with Space.state_changed_at and the common-fields rule in models/common-fields.md §3.

分支必填 created_by · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · object

此分支的 required:kind, account_id

分支必填 kind · const "account"
enum: "account"
分支必填 account_id · $ref #/$defs/account_id · $ref #/$defs/account_id
oneOf · oneOf[1] · object

此分支的 required:kind, service_id

分支必填 kind · const "service"
enum: "service"
分支必填 service_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[2] · object

此分支的 required:kind, realm_actor_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_actor_id · object · $ref ./common-ids.schema.json#/$defs/realm_actor_id

Stable Realm-owned Bot/Ghost identity. Both components are required for equality; governance handoff does not change either. No Station binding or AccountId is implied.

此分支的 required:realm_id, principal_id

分支必填 realm_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 principal_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 created_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp
updated_by · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · object

此分支的 required:kind, account_id

分支必填 kind · const "account"
enum: "account"
分支必填 account_id · $ref #/$defs/account_id · $ref #/$defs/account_id
oneOf · oneOf[1] · object

此分支的 required:kind, service_id

分支必填 kind · const "service"
enum: "service"
分支必填 service_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[2] · object

此分支的 required:kind, realm_actor_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_actor_id · object · $ref ./common-ids.schema.json#/$defs/realm_actor_id

Stable Realm-owned Bot/Ghost identity. Both components are required for equality; governance handoff does not change either. No Station binding or AccountId is implied.

此分支的 required:realm_id, principal_id

分支必填 realm_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 principal_id · …

recursion truncated at depth 8; see source schema for full shape

updated_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp
oneOf · oneOf[1] · object · $ref ./current-state.schema.json#/$defs/current_moderation_state

Registered projection of one moderated target. governance/content-moderation.md section 5.3 keys the set per target and folds several issuers' active records into one effective decision at read time. payload.expected_commit_id of ak.moderation.decision.lift names this result's revision, which is why the lift is stale-checkable without the set carrying a lifecycle axis.

此分支的 required:selector, source_stream_ref, revision, value

分支必填 selector · object

此分支的 required:kind, target_ref

分支必填 kind · const "moderation_state"
enum: "moderation_state"
分支必填 target_ref · string · $ref ./event-payload.schema.json#/$defs/object_ref
pattern: ^((?:ak:realm:[A-Za-z0-9_-]{44}|ak:(space|actor_profile|strand|message|morph|relation|view|event|grant|invite|realm_invite_link|call):[A-Za-z0-9_-]{44}|ak:(policy|blob):[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})|ak:blob:(sha256|blake3):[0-9a-f]{64}|did:[^\s]+|(sha256|blake3):[0-9a-f]{64})$
分支必填 source_stream_ref · oneOf[3] · $ref ./realm-commit.schema.json#/$defs/stream_ref

Closed independent stream selector: Realm, Sidecar or private realm_control. realm_control is not a business, membership, capability or MLS scope.

oneOf · oneOf[0] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
oneOf · oneOf[1] · object

此分支的 required:kind, realm_id, sidecar_id

分支必填 kind · const "sidecar"
enum: "sidecar"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 sidecar_id · string · $ref ./common-ids.schema.json#/$defs/sidecar_id
pattern: ^ak:sidecar:[A-Za-z0-9_-]{44}$
oneOf · oneOf[2] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm_control"
enum: "realm_control"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 revision · $ref #/$defs/revision · $ref #/$defs/revision
分支必填 value · $ref #/$defs/moderation_state_value · $ref #/$defs/moderation_state_value
oneOf · oneOf[2] · object · $ref ./current-state.schema.json#/$defs/current_agent_interaction

此分支的 required:selector, source_stream_ref, revision, value

分支必填 selector · object

此分支的 required:kind, agent_account_id

分支必填 kind · const "agent_interaction"
enum: "agent_interaction"
分支必填 agent_account_id · object · $ref ./common-ids.schema.json#/$defs/account_id

Complete protocol identity for a principal at one Station, including human, Organization and personal Agent accounts. It does not imply a human login, provisioning workflow, credential class or authorization. Equality is byte-for-byte equality of both canonical did_core_id components; neither component may be inferred from a DID Document, route, session audience, current service, handle, or local database key. Accounts with the same principal_id at different station_id values are permanently distinct. Principal equality MUST NOT establish account equivalence or any permission inheritance, merging, delegation, substitution or recovery relationship. Account-scoped authority requires independent authorization for the exact AccountId. Permanent loss of a Station does not permit its accounts or PCR lineages to migrate to or revive at another Station; Realm takeover and RealmCommit recovery do not waive this boundary. See models/common-fields.md section 4.2.

此分支的 required:principal_id, station_id

分支必填 principal_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 station_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 source_stream_ref · oneOf[3] · $ref ./realm-commit.schema.json#/$defs/stream_ref

Closed independent stream selector: Realm, Sidecar or private realm_control. realm_control is not a business, membership, capability or MLS scope.

oneOf · oneOf[0] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
oneOf · oneOf[1] · object

此分支的 required:kind, realm_id, sidecar_id

分支必填 kind · const "sidecar"
enum: "sidecar"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 sidecar_id · string · $ref ./common-ids.schema.json#/$defs/sidecar_id
pattern: ^ak:sidecar:[A-Za-z0-9_-]{44}$
oneOf · oneOf[2] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm_control"
enum: "realm_control"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 revision · $ref #/$defs/revision · $ref #/$defs/revision
分支必填 value · $ref #/$defs/agent_interaction_value · $ref #/$defs/agent_interaction_value
oneOf · oneOf[3] · object · $ref ./current-state.schema.json#/$defs/current_capability_grant

Registered projection of one Capability Grant. The subject GrantId is derived by retyping the accepted ak.capability.grant Event id; the value is the complete projected grant, including reducer-inserted id and the registered derived members authority_depth / authority_root_ref (zh/authz/capabilities.md section 10).

此分支的 required:selector, source_stream_ref, revision, value

分支必填 selector · object

此分支的 required:kind, grant_id

分支必填 kind · const "capability_grant"
enum: "capability_grant"
分支必填 grant_id · string · $ref ./common-ids.schema.json#/$defs/grant_id
pattern: ^ak:grant:[A-Za-z0-9_-]{44}$
分支必填 source_stream_ref · oneOf[3] · $ref ./realm-commit.schema.json#/$defs/stream_ref

Closed independent stream selector: Realm, Sidecar or private realm_control. realm_control is not a business, membership, capability or MLS scope.

oneOf · oneOf[0] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
oneOf · oneOf[1] · object

此分支的 required:kind, realm_id, sidecar_id

分支必填 kind · const "sidecar"
enum: "sidecar"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 sidecar_id · string · $ref ./common-ids.schema.json#/$defs/sidecar_id
pattern: ^ak:sidecar:[A-Za-z0-9_-]{44}$
oneOf · oneOf[2] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm_control"
enum: "realm_control"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 revision · $ref #/$defs/revision · $ref #/$defs/revision
分支必填 value · object · $ref ./capability-grant.schema.json

此分支的 required:id, schema, issuer_id, subject, actions, resources, issued_at, status, issuer_authority_refs, authority_depth, authority_root_ref

allOf · allOf[0] · ?
if · if · object

此分支的 required:issuer_authority_refs

分支必填 issuer_authority_refs · ?
then · then · object

此分支的 required:constraints, realm_id

issuer_id · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[2] · …

recursion truncated at depth 8; see source schema for full shape

subject · object

此分支的 required:kind

分支必填 kind · …

recursion truncated at depth 8; see source schema for full shape

issuer_authority_refs · ?
分支必填 constraints · ?
authority_root_ref · $ref #/$defs/owned_agent_authority_ref · $ref #/$defs/owned_agent_authority_ref
authority_depth · const 1
enum: 1
else · else · object
authority_root_ref · $ref #/properties/authority_root_ref/oneOf/0 · $ref #/properties/authority_root_ref/oneOf/0
分支必填 id · string
pattern: ^ak:grant:[A-Za-z0-9_-]{44}$
分支必填 schema · const "ak.schema.capability.v1"
enum: "ak.schema.capability.v1"
realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 issuer_id · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · object

此分支的 required:kind, account_id

分支必填 kind · const "account"
enum: "account"
分支必填 account_id · $ref #/$defs/account_id · $ref #/$defs/account_id
oneOf · oneOf[1] · object

此分支的 required:kind, service_id

分支必填 kind · const "service"
enum: "service"
分支必填 service_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[2] · object

此分支的 required:kind, realm_actor_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_actor_id · object · $ref ./common-ids.schema.json#/$defs/realm_actor_id

Stable Realm-owned Bot/Ghost identity. Both components are required for equality; governance handoff does not change either. No Station binding or AccountId is implied.

此分支的 required:realm_id, principal_id

分支必填 realm_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 principal_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 subject · oneOf[2]
oneOf · oneOf[0] · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · object

此分支的 required:kind, account_id

分支必填 kind · …

recursion truncated at depth 8; see source schema for full shape

分支必填 account_id · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · object

此分支的 required:kind, service_id

分支必填 kind · …

recursion truncated at depth 8; see source schema for full shape

分支必填 service_id · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[2] · object

此分支的 required:kind, realm_actor_id

分支必填 kind · …

recursion truncated at depth 8; see source schema for full shape

分支必填 realm_actor_id · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · object

此分支的 required:kind, required_claims

分支必填 kind · const "condition"
enum: "condition"
分支必填 required_claims · array<object> · $ref ./grant-constraint.schema.json#/properties/required_claims

Conditional claim requirements. resource-selector-grammar.md §3.3 caps this array at 32 entries as a normative DoS guard; the schema enforces maxItems:32 so condition-selector grants cannot smuggle in unbounded claim objects.

items · …

recursion truncated at depth 8; see source schema for full shape

分支必填 actions · array<string>
items · string

Canonical action vocabulary. MUST be of the form ak.<segment>.<segment>... matching capabilities.md §5. Bare names without the ak. prefix are not permitted; consult capabilities.md before introducing new action names. Wildcards within a segment are not permitted in this schema; the resource selector controls scope, not action expansion.

pattern: ^ak\.[a-z0-9_]+(\.[a-z0-9_]+)*$
分支必填 resources · array<$ref ./resource-selector.schema.json>
items · object · $ref ./resource-selector.schema.json

此分支的 required:kind

allOf · allOf[0] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[1] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[2] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[3] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[4] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

分支必填 kind · string (enum)
enum: "realm" "space" "strand" "message" "morph" "object" "relation" "view" "event" "actor" "schema" "policy" "invite" "notification" "read_cursor" "blob" "*" "realm_actor"
realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
space_id · string
pattern: ^ak:space:[A-Za-z0-9_-]{44}$
object_kind · string
object_ref · string

Canonical object reference. Acceptable typed-id kinds match the v1 resource selector kind enum (see resource-selector-grammar.md §3.1). Notably MUST NOT include 'actor_profile' (use the 'actor' selector with did pattern), nor non-canonical 'board' / 'list' / 'card' / 'subject' / 'room' kinds — board / list / swimlane / calendar bucket are Space objects and MUST use the 'space' kind together with the 'allowed_space_kinds' constraint to restrict which Space kinds the grant covers.

pattern: ^(?:ak:realm:[A-Za-z0-9_-]{44}|ak:(space|strand|message|morph|relation|view|event|invite):[A-Za-z0-9_-]{44}|ak:(policy|blob):[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$
strand_id · string
pattern: ^ak:strand:[A-Za-z0-9_-]{44}$
message_id · string
pattern: ^ak:message:[A-Za-z0-9_-]{44}$
morph_id · string
pattern: ^ak:morph:[A-Za-z0-9_-]{44}$
morph_kind · string
relation_kind · string
relation_id · string
pattern: ^ak:relation:[A-Za-z0-9_-]{44}$
view_id · string
pattern: ^ak:view:[A-Za-z0-9_-]{44}$
event_id · string
pattern: ^ak:event:[A-Za-z0-9_-]{44}$
actor_id · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[2] · …

recursion truncated at depth 8; see source schema for full shape

schema_ref · string
policy_id · string
pattern: ^ak:policy:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
invite_id · string
pattern: ^ak:invite:[A-Za-z0-9_-]{44}$
blob_ref · string
pattern: ^ak:blob:(?:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|(?:sha256|blake3):[0-9a-f]{64})$
match_scope · string (enum)

Authorization selector breadth. exact matches only the named resource; realm_wide is valid only for the registered resource kinds with an explicit realm_id. Neither current navigation ancestry nor creation ancestry expands authorization. Hierarchy traversal belongs to queries, not grant matching. The normative algorithm is zh/authz/resource-selector-grammar.md section 6.

enum: "exact" "realm_wide"
constraints · array<$ref ./grant-constraint.schema.json>

Constraints applied to this grant. Re-grant control MUST be expressed via constraint_kind='authority_control' and max_authority_depth (see capabilities.md §10). A top-level 'delegable' field is forbidden and MUST be rejected as schema_violation. With no authority_control constraint the grant cannot be re-granted (equivalent to max_authority_depth=0).

items · object · $ref ./grant-constraint.schema.json

此分支的 required:constraint_kind, effect

allOf · allOf[0] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[1] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[2] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[3] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[4] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[5] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[6] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[7] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[8] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[9] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[10] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[11] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[12] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[13] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

allOf · allOf[14] · ?
if · if · …

recursion truncated at depth 8; see source schema for full shape

then · then · …

recursion truncated at depth 8; see source schema for full shape

constraint_id · string

Optional stable identifier of this constraint within the grant; used for diagnostics and overrides.

pattern: ^(?!ak:)
分支必填 constraint_kind · string (enum)

Constraint family discriminator. v1 collapses what were 15 types into 8 by absorbing narrowly-scoped types into their conceptual parent: edit_window → temporal; container_move → scope_limitation; rate_limiting + resource_limit → quota; approval_workflow + accountability + device_session → claim_based (with constraint_subkind); encryption_requirement + visibility_control → confidentiality (with constraint_subkind). Use the optional 'constraint_subkind' field to indicate the original specialization where evaluation logic differs.

enum: "temporal" "field_access" "kind_restriction" "scope_limitation" "authority_control" "quota" "claim_based" "confidentiality"
分支必填 effect · string (enum)

Unknown predicates do not satisfy allow and do apply deny, quarantine and require_review. Proven nonmatches do not apply refusal effects; see constraint-schema section 15.0.

enum: "allow" "deny" "quarantine" "require_review"
evaluation_class · string (enum)

Cacheability/dependency hint for the authorization evaluator. stateless = pure function of (constraint, op, now); grant_local = depends on the grant object only; realm_state = depends on the exact Realm authority revision (membership, policy_version, etc.); external = depends on data outside that authority state (claim revocation status, rate-limit counts, async approval). Each constraint_kind has a canonical evaluation_class declared in constraint-schema.md §2.3; implementations MAY tighten (e.g. grant_local → stateless) but MUST NOT loosen (e.g. external as stateless). Auth evaluators SHOULD use this hint to gate fast-path caching.

enum: "stateless" "grant_local" "realm_state" "external"
constraint_subkind · string (enum)

Optional discriminator within a constraint_kind. Standard values: claim_based.{claim,approval,accountability}; quota.{rate,resource}; confidentiality.{encryption,visibility}; temporal.{window,edit_window,redact_window,session}; authority_control.{applet_authority}. Per constraint-schema.md §2.2, device/session binding is NOT an independent constraint_subkind: it is the claim_based constraint_subkind=claim sub-case expressed via an accepted PCR device issuer. Implementations MAY require constraint_subkind for these families and fail closed on unknown values.

enum: "claim" "approval" "accountability" "rate" "resource" "encryption" "visibility" "window" "edit_window" "redact_window" "session" "applet_authority"
applies_to_actions · array<string>

Optional restriction of a temporal constraint to specific capability actions (e.g. ['ak.message.revise.own', 'ak.message.redact.own']). Action mismatch is neutral in the effect fold: satisfied for effect=allow and not matched for deny/quarantine/require_review.

items · …

recursion truncated at depth 8; see source schema for full shape

not_before · $ref #/$defs/timestamp · $ref #/$defs/timestamp
expires_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp
recurrence · object

Daily/weekly recurrence is core. Unsupported frequency, unknown IANA timezone and necessary unresolved DST boundaries are unknown predicates, never implicit nonmatches.

frequency · …

recursion truncated at depth 8; see source schema for full shape

days · …

recursion truncated at depth 8; see source schema for full shape

window_start · …

recursion truncated at depth 8; see source schema for full shape

window_end · …

recursion truncated at depth 8; see source schema for full shape

timezone · …

recursion truncated at depth 8; see source schema for full shape

max_duration · string

From original authorization acceptance, never producer Event time, first use, refresh or not_before. Realm grants use their original RealmCommit.committed_at. Local predicate failure does not log out the account. Nonnegative integer components, at least one; UTC calendar months clamp before elapsed components. Zero expires immediately. Empty components are forbidden; overflow is unknown.

pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
max_session_duration · string

From the issuer-ledger original authenticated session start. Refresh, reconnect and restart preserve the same lineage and start. Verified sessionless operations make only this predicate neutral. Nonnegative integer components, at least one; UTC calendar months clamp before elapsed components. Zero expires immediately. Empty components are forbidden; overflow is unknown.

pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
inactivity_timeout · string

From issuer-confirmed last qualifying business activity, initially session start. No refresh, heartbeat, presence, replay or caller-supplied time. Verified sessionless operations make only this predicate neutral. Nonnegative integer components, at least one; UTC calendar months clamp before elapsed components. Zero expires immediately. Empty components are forbidden; overflow is unknown.

pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
expires_after · string

ISO 8601 duration; used by approval_workflow constraint instead of expires_after_ms.

pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
message_edit_window · string
pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
message_redact_window · string
pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
redact_after_window_allowed · boolean
condition · object

Conditional predicate for field_access and similar constraints. The `kind` value is a registered named condition from constraint-schema.md §4.1; unknown kinds MUST fail closed. Implementations MUST NOT introduce ad hoc string DSL predicates.

此分支的 required:kind

分支必填 kind · …

recursion truncated at depth 8; see source schema for full shape

allowed_write_fields · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_write_fields · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_read_fields · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_read_fields · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

sensitive_fields · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

sensitive_handling · string (enum)
enum: "redact" "hash" "omit"
allowed_object_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_object_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_morph_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_morph_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_space_kinds · array<string>

Allowed Space kinds (e.g. 'board', 'list', or profile-registered kinds like 'swimlane', 'calendar_bucket'). Reducer/profile MUST validate kind value.

items · …

recursion truncated at depth 8; see source schema for full shape

denied_space_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_facets · array<string (enum)>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_facets · array<string (enum)>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_view_ids · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_strand_ids · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_strand_ids · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_space_ids · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_space_ids · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_session_ids · array<string>

Limits applet interop-session operations to the listed applet-defined session correlation ids.

items · …

recursion truncated at depth 8; see source schema for full shape

allowed_view_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_view_renderers · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_view_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_view_renderers · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_relation_kinds · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_from_container_refs · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_to_container_refs · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

active_strand_count_override_allowed · boolean
example: false
allowed_tracks · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

denied_tracks · array<string>
items · …

recursion truncated at depth 8; see source schema for full shape

blob_presign_scope · object

Scope limiter for ak.self.blob.command.presign.v1 grants: allowed purposes plus optional blob/realm restrictions.

此分支的 required:allowed_purposes

分支必填 allowed_purposes · …

recursion truncated at depth 8; see source schema for full shape

blob_ref_pattern · …

recursion truncated at depth 8; see source schema for full shape

realm_ids · …

recursion truncated at depth 8; see source schema for full shape

allowed_data_labels · array<string>

Data classification labels this grant may read, export, transform, or send to external endpoints.

items · …

recursion truncated at depth 8; see source schema for full shape

allowed_endpoints · array<string>

Allowed outbound endpoint origins or deployment-approved endpoint patterns for applet / agent / connector operations.

items · …

recursion truncated at depth 8; see source schema for full shape

max_authority_depth · integer

Maximum remaining authority hops. Bounded by the canonical authority-chain depth ceiling (4) defined in zh/conformance/scalability-constraints.md §3 and zh/authz/capabilities.md §10.2; reducers MUST reject grants declaring a larger value at accept time rather than only truncating during DFS.

authority_path_ids · array<$ref ./common-ids.schema.json#/$defs/did_core_id>
items · …

recursion truncated at depth 8; see source schema for full shape

authority_regrant_allowed · boolean
authority_scope · string (enum)
enum: "narrowing_only" "same_scope" "custom"
applet_id · string · $ref ./common-ids.schema.json#/$defs/applet_id

Stable canonical Applet installation identity. Applet service authority is carried separately by service_id.

pattern: ^ak:applet:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
executed_by · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[2] · …

recursion truncated at depth 8; see source schema for full shape

registration_epoch · string

authority_control(constraint_subkind=applet_authority) binding to the canonical Applet registration epoch.

pattern: ^sha256:[0-9a-f]{64}$
blob_max_bytes · integer
blob_presign_max_ttl_seconds · integer

Maximum TTL, in seconds, that this grant permits for ak.blob.presign. The service must clamp requested max_age_seconds to the smaller of this value and deployment policy.

max_total_blob_bytes · integer
max_artifact_bytes · integer

Maximum artifact size in bytes for applet / agent / export operations.

max_operation_count · integer

Maximum number of distinct accepted idempotency identities in one UTC epoch-aligned fixed period. Enforcement is a linearizable check-and-reserve at one logical quota authority shared by every node in the enforcing service; per-node duplicated budgets and overshoot are forbidden.

period · string

ISO 8601 duration. For quota constraints, a stricter conditional schema permits only a non-zero fixed-length week/day/hour/minute/second duration; year/month durations are forbidden so every authority derives the same UTC epoch-aligned window id.

pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
burst_operation_count · integer

Optional token-bucket capacity at the same logical quota authority, capped by max_operation_count and refilled at max_operation_count/period. It never increases the fixed-window total budget.

constraint_scope · string (enum)

Closed v1 quota counting scope. Unknown values are schema violations and MUST fail closed. Quota counters are actor-bound; the enum selects the additional slicing dimension: actor only, actor+space, actor+realm, or actor across all nodes/regions of the enforcing service's global quota domain. global is not an implicit federation-wide counter. Every node in the service domain MUST share one logical linearizable quota authority.

enum: "per_actor" "per_space" "per_realm" "global"
max_resource_count · integer
resource_kind · string
approval_required · boolean
approval_mode · string (enum)

The only approval mode of v1. The approved write MUST NOT take effect before the approval evidence is verified and accepted in the same transaction (zh/authz/constraint-schema.md section 9.2.7). There is no second mode and no path that first materializes a proposal object and then approves that object.

enum: "before_commit"
approval_principal_ids · array<$ref ./common-ids.schema.json#/$defs/did_core_id>

Explicit distinct-principal approval roster of DidCoreId values, as defined by constraint-schema section 9.1. These are principal identities, not ActorId or AccountId carriers. The rename changes no approval threshold, identity, authorization or vote semantics; no old-name alias is accepted.

items · …

recursion truncated at depth 8; see source schema for full shape

approval_relation · string (enum)

Responsibility classification of this grant explicit approval_principal_ids roster. It never creates a second dynamic roster or supplies action/scope capability. Missing explicit roster cannot satisfy approval.

enum: "responsible" "controller" "guardian" "realm_admin" "custom"
timeout · string

Positive fixed ISO 8601 duration (week/day/hour/minute/second, no calendar year/month). Each approval vote is valid only when the target covering committed_at <= that vote input.approved_at + timeout, inclusive and with zero tolerance. The same rule applies to Event and operation targets; receiver clocks and first-seen timestamps never anchor it. Omission adds no grant-local age limit.

pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
approval_threshold · oneOf[2]

Closed executable vote threshold: majority means floor(N/2)+1, unanimous means N, and a positive integer is the exact quorum. N is the distinct eligible approver set at the accepting authority cut. Omission means unanimous. A missing or empty eligible set, or an integer greater than N, cannot satisfy approval. Repeated signatures by one approver count once. Parameterless quorum/custom strings are schema violations.

example: "unanimous"
oneOf · oneOf[0] · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · …

recursion truncated at depth 8; see source schema for full shape

accountability_required · boolean
guardian_approval_required · boolean
controller_approval_required · boolean
required_claims · array<object>

Conditional claim requirements. resource-selector-grammar.md §3.3 caps this array at 32 entries as a normative DoS guard; the schema enforces maxItems:32 so condition-selector grants cannot smuggle in unbounded claim objects.

items · …

recursion truncated at depth 8; see source schema for full shape

trusted_claim_issuer_ids · array<$ref ./common-ids.schema.json#/$defs/did_core_id>
items · …

recursion truncated at depth 8; see source schema for full shape

claim_refresh_required · boolean
claim_max_age · string
pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
allowed_history_access_values · array<string (enum)>
items · …

recursion truncated at depth 8; see source schema for full shape

redacted_history_allowed · boolean
encryption_required · boolean
min_encryption_level · string (enum)

confidentiality(constraint_subkind=encryption) static floor: the minimum content-encryption mechanism the grant requires. Pure static declaration evaluated as stateless unless cross-checked against the scope's current MLS activation state (see constraint-schema.md section 12).

enum: "none" "mls_rfc9420" "external"
plaintext_fallback_allowed · boolean

confidentiality(constraint_subkind=encryption) static flag: whether the grant permits plaintext in a scope that has no accepted ak.mls.genesis. After activation the flag cannot restore plaintext; the write MUST be rejected with mls_activation_irreversible. See constraint-schema.md §12.

audit_trail_required · boolean

confidentiality(constraint_subkind=encryption) static flag: whether the grant requires an audit trail (e.g. active Audit Applet Binding). See constraint-schema.md §12.

key_rotation_period · string
pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
max_key_age · string
pattern: ^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$
key_backup_required · boolean
approved_key_issuer_ids · array<$ref ./common-ids.schema.json#/$defs/did_core_id>
items · …

recursion truncated at depth 8; see source schema for full shape

allowed_managed_actor_roles · array<string (enum)>

Ordinary authority_control permits only these accepted roles of the Applet bound by the parent applet_authority constraint; no arbitrary third-party regrant.

items · …

recursion truncated at depth 8; see source schema for full shape

(^x_[a-z][a-z0-9_]{0,63}$) · any
分支必填 issued_at · string (date-time) · format=date-time · $ref ./time.schema.json#/$defs/timestamp

Canonical Arkret-owned absolute instant. UTC Z form with exactly three millisecond digits. Whole seconds MUST use .000Z; offsets, missing/finer fractions, lowercase separators, leap seconds, and invalid Gregorian calendar dates are forbidden. Shape validation by this pattern is supplemented by semantic date validation.

pattern: ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\.[0-9]{3}Z$
分支必填 status · string (enum)

Reducer-derived lifecycle status of this Grant (zh/authz/capabilities.md section 12.1). It is absent from the closed authoring body of ak.capability.grant and is materialised by the registered capability_status derivation, so an author-supplied value MUST be rejected rather than trusted. The two terminal values stay distinct because section 10.4 gives them different authorities: revoke is issuer or root-controller authority, relinquish is the target subject's own signature and MUST NOT require ak.capability.revoke. Collapsing them into revoked_at alone would erase which authority closed the Grant. A terminal value is final -- section 12.1 forbids resurrecting a closed grant_id -- and compaction MUST preserve it.

enum: "active" "revoked" "relinquished"
updated_by · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · object

此分支的 required:kind, account_id

分支必填 kind · const "account"
enum: "account"
分支必填 account_id · $ref #/$defs/account_id · $ref #/$defs/account_id
oneOf · oneOf[1] · object

此分支的 required:kind, service_id

分支必填 kind · const "service"
enum: "service"
分支必填 service_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[2] · object

此分支的 required:kind, realm_actor_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_actor_id · object · $ref ./common-ids.schema.json#/$defs/realm_actor_id

Stable Realm-owned Bot/Ghost identity. Both components are required for equality; governance handoff does not change either. No Station binding or AccountId is implied.

此分支的 required:realm_id, principal_id

分支必填 realm_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 principal_id · …

recursion truncated at depth 8; see source schema for full shape

updated_at · string (date-time) · format=date-time · $ref ./time.schema.json#/$defs/timestamp

Canonical Arkret-owned absolute instant. UTC Z form with exactly three millisecond digits. Whole seconds MUST use .000Z; offsets, missing/finer fractions, lowercase separators, leap seconds, and invalid Gregorian calendar dates are forbidden. Shape validation by this pattern is supplemented by semantic date validation.

pattern: ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\.[0-9]{3}Z$
revoked_by · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · object

此分支的 required:kind, account_id

分支必填 kind · const "account"
enum: "account"
分支必填 account_id · $ref #/$defs/account_id · $ref #/$defs/account_id
oneOf · oneOf[1] · object

此分支的 required:kind, service_id

分支必填 kind · const "service"
enum: "service"
分支必填 service_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[2] · object

此分支的 required:kind, realm_actor_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_actor_id · object · $ref ./common-ids.schema.json#/$defs/realm_actor_id

Stable Realm-owned Bot/Ghost identity. Both components are required for equality; governance handoff does not change either. No Station binding or AccountId is implied.

此分支的 required:realm_id, principal_id

分支必填 realm_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 principal_id · …

recursion truncated at depth 8; see source schema for full shape

revoked_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp
分支必填 issuer_authority_refs · array<oneOf[3]>

The signed semantic authority lineage this grant was issued under. A root controller's grant anchors on the accepted Realm authority Event; any further grant anchors on grants its issuer already holds. These closed refs intentionally carry no producer-selected current-state revision, authorization-state digest, Station id or commit basis: the governing Station resolves their current typed results at acceptance, fails closed when current authority cannot be proved fresh, and records the accepting RealmCommit as the decision basis. Authorization is recomputed from these refs on every decision, so revoking an ancestor invalidates its descendants without a cascading write. The sole owned_agent ref is an explicit non-regrant exception; it pins ownership membership and continuously bounds the Agent by current controller authority.

items · oneOf[3]
oneOf · oneOf[0] · object

A grant the issuer holds. The issuer MUST be that grant's subject, and the ref MUST be active both at acceptance and evaluation time; its capability, resources and constraints all bound this child. Its current-state revision is an acceptance-time Station input, not a signed wire member.

此分支的 required:kind, grant_id

分支必填 kind · …

recursion truncated at depth 8; see source schema for full shape

分支必填 grant_id · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[1] · object

A committed authority root in the same Realm as the grant. It is terminal for cycle checks. The accepting Station verifies the named Event/controller/generation against durable current authority; the ref does not carry a Station-local commit wrapper.

此分支的 required:kind, realm_id, authority_event_ref, authority_generation

分支必填 kind · …

recursion truncated at depth 8; see source schema for full shape

分支必填 realm_id · …

recursion truncated at depth 8; see source schema for full shape

分支必填 authority_event_ref · …

recursion truncated at depth 8; see source schema for full shape

分支必填 authority_generation · …

recursion truncated at depth 8; see source schema for full shape

oneOf · oneOf[2] · $ref #/$defs/owned_agent_authority_ref · $ref #/$defs/owned_agent_authority_ref
分支必填 authority_depth · integer

Reducer-derived absolute distance from the authority root: a realm_root ref counts 0, so a root controller's grant is 1 and a member's re-grant is 2. Derived from the refs, never author-declared, so it cannot be misreported — which is what makes it safe to answer 'how far did this authority spread' with a single field instead of a recursive join. Taken at issuance and not recomputed on revocation; a later chain may be shorter than the recorded value, which is the conservative direction for a max_authority_depth decision. A dedicated terminal owned_agent source has depth 1 and cannot become a parent grant.

分支必填 authority_root_ref · oneOf[2]

The single immutable reducer-derived authority root. All ordinary current parents must have the same target-Realm root anchor and delegation generation. An owned_agent source copies its one terminal execution root and never confers Realm root control.

oneOf · oneOf[0] · object

此分支的 required:kind, realm_id, authority_event_ref, authority_generation

分支必填 kind · const "realm_root"
enum: "realm_root"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 authority_event_ref · string · $ref ./common-ids.schema.json#/$defs/event_id

Complete Arkret Event cryptographic identity. The suffix is the canonical unpadded Base64URL encoding of exactly 33 octets: fixed current-v1 suite code 0x01 followed by all 32 octets of the SHA-256 Event digest. Regex validation is only lexical; receivers MUST decode, require 33 octets, require byte 0 == 0x01, canonical re-encode, and verify the full digest before use. Other registered digest suites remain available only to the typed domains that explicitly select them and MUST NOT appear in Event IDs.

pattern: ^ak:event:[A-Za-z0-9_-]{44}$
分支必填 authority_generation · string · $ref ./decimal-integers.schema.json#/$defs/uint64_decimal

Canonical unsigned decimal spelling, inclusive range 0..18446744073709551615; no sign, leading zero, exponent or JSON number alternative.

pattern: ^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$
oneOf · oneOf[1] · $ref #/$defs/owned_agent_authority_ref · $ref #/$defs/owned_agent_authority_ref
(^x_[a-z][a-z0-9_]{0,63}$) · any
oneOf · oneOf[4] · object · $ref ./current-state.schema.json#/$defs/current_calendar_schedule_source

此分支的 required:selector, source_stream_ref, revision, value

分支必填 selector · object

此分支的 required:kind, strand_id

分支必填 kind · const "calendar_schedule_source"
enum: "calendar_schedule_source"
分支必填 strand_id · string
pattern: ^ak:strand:[A-Za-z0-9_-]{44}$
分支必填 source_stream_ref · oneOf[3] · $ref ./realm-commit.schema.json#/$defs/stream_ref

Closed independent stream selector: Realm, Sidecar or private realm_control. realm_control is not a business, membership, capability or MLS scope.

oneOf · oneOf[0] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
oneOf · oneOf[1] · object

此分支的 required:kind, realm_id, sidecar_id

分支必填 kind · const "sidecar"
enum: "sidecar"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 sidecar_id · string · $ref ./common-ids.schema.json#/$defs/sidecar_id
pattern: ^ak:sidecar:[A-Za-z0-9_-]{44}$
oneOf · oneOf[2] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm_control"
enum: "realm_control"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 revision · $ref #/$defs/revision · $ref #/$defs/revision
分支必填 value · $ref #/$defs/calendar_schedule_source_value · $ref #/$defs/calendar_schedule_source_value
oneOf · oneOf[5] · object · $ref ./current-state.schema.json#/$defs/current_policy

Registered projection of one Policy document. models/governance-objects.md section 3.2: ak.policy.set is the only writer, its payload is {policy_id, value} for ordinary Policy/RecoveryPolicy, and {policy_id, expected_commit_id, value} for Agent/Applet management Policy with exact nullable CAS; value.schema selects the Policy or RecoveryPolicy family and semantic admission requires the outer policy_id to equal the document's own id verbatim. rules[] is a required non-empty member OF this value and the whole priority / default_effect evaluation of that section runs over it, so a rule is never a subject of its own. The separate ak.policy.rule Event kind that used to assert one rule at a time is deleted: it carried no policy_id, so its rule_id named nothing resolvable, and rule editing submits the whole authorized Policy document through ak.policy.set.

此分支的 required:selector, source_stream_ref, revision, value

分支必填 selector · object

此分支的 required:kind, policy_id

分支必填 kind · const "policy"
enum: "policy"
分支必填 policy_id · string · $ref ./event-payload.schema.json#/$defs/policy_set_state_payload/properties/policy_id
pattern: ^ak:policy:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
分支必填 source_stream_ref · oneOf[3] · $ref ./realm-commit.schema.json#/$defs/stream_ref

Closed independent stream selector: Realm, Sidecar or private realm_control. realm_control is not a business, membership, capability or MLS scope.

oneOf · oneOf[0] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
oneOf · oneOf[1] · object

此分支的 required:kind, realm_id, sidecar_id

分支必填 kind · const "sidecar"
enum: "sidecar"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 sidecar_id · string · $ref ./common-ids.schema.json#/$defs/sidecar_id
pattern: ^ak:sidecar:[A-Za-z0-9_-]{44}$
oneOf · oneOf[2] · object

此分支的 required:kind, realm_id

分支必填 kind · const "realm_control"
enum: "realm_control"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 revision · $ref #/$defs/revision · $ref #/$defs/revision
分支必填 value · $ref #/$defs/policy_value · $ref #/$defs/policy_value
oneOf · oneOf[1] · object · $ref #/$defs/exact_current_state_never_written

此分支的 required:status, realm_id, governance_generation, effective_stream_head, selector

分支必填 status · const "never_written"
enum: "never_written"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 governance_generation · string · $ref ./decimal-integers.schema.json#/$defs/uint64_decimal

Canonical unsigned decimal spelling, inclusive range 0..18446744073709551615; no sign, leading zero, exponent or JSON number alternative.

pattern: ^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$
分支必填 effective_stream_head · object · $ref ./realm-commit.schema.json#/$defs/stream_head

此分支的 required:stream_ref, stream_position, commit_id

分支必填 stream_ref · $ref #/$defs/stream_ref · $ref #/$defs/stream_ref
分支必填 stream_position · integer
分支必填 commit_id · string · $ref ./common-ids.schema.json#/$defs/realm_commit_id

Content-addressed identity of a closed unsigned RealmCommit body. The suffix uses the fixed v1 digest suite and the same canonical 33-octet token encoding as Event IDs.

pattern: ^ak:realm_commit:[A-Za-z0-9_-]{44}$
分支必填 selector · oneOf[3]
oneOf · oneOf[0] · object · $ref #/$defs/relation_exact_current_selector

此分支的 required:kind, primary_conflict_domain

分支必填 kind · const "relation"
enum: "relation"
分支必填 primary_conflict_domain · object · $ref ./relation.schema.json#/$defs/relation_primary_conflict_domain

The unique current-state subject for one directly writable Relation domain. Realm comes from the Event envelope. domain_kind MUST equal the matching relation-kind-registry.json shape's registered primary_conflict_domain: tuple keys on (relation_kind, from_ref, to_ref), while from keys on (relation_kind, from_ref). truth_source shapes have no directly writable Relation domain.

此分支的 required:domain_kind, relation_kind, from_ref

allOf · allOf[0] · ?
if · if · object

此分支的 required:domain_kind

分支必填 domain_kind · const "tuple"
enum: "tuple"
then · then · ?

此分支的 required:to_ref

else · else · ?
分支必填 domain_kind · string (enum)
enum: "tuple" "from"
分支必填 relation_kind · string

The current Relation's create-locked relation_kind. It MUST resolve to a directly writable relation-kind-registry.json shape whose registered primary_conflict_domain equals domain_kind; a derived_projection shape is rejected with schema_violation (reason=relation_kind_contains_derived / relation_kind_watches_derived).

分支必填 from_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint
to_ref · $ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint

Present exactly when domain_kind=tuple. A from domain already identifies the single current Relation for the from_ref, so carrying to_ref there would create a second spelling of the subject.

oneOf · oneOf[1] · object · $ref ./current-state.schema.json#/$defs/current_agent_interaction/properties/selector

此分支的 required:kind, agent_account_id

分支必填 kind · const "agent_interaction"
enum: "agent_interaction"
分支必填 agent_account_id · object · $ref ./common-ids.schema.json#/$defs/account_id

Complete protocol identity for a principal at one Station, including human, Organization and personal Agent accounts. It does not imply a human login, provisioning workflow, credential class or authorization. Equality is byte-for-byte equality of both canonical did_core_id components; neither component may be inferred from a DID Document, route, session audience, current service, handle, or local database key. Accounts with the same principal_id at different station_id values are permanently distinct. Principal equality MUST NOT establish account equivalence or any permission inheritance, merging, delegation, substitution or recovery relationship. Account-scoped authority requires independent authorization for the exact AccountId. Permanent loss of a Station does not permit its accounts or PCR lineages to migrate to or revive at another Station; Realm takeover and RealmCommit recovery do not waive this boundary. See models/common-fields.md section 4.2.

此分支的 required:principal_id, station_id

分支必填 principal_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 station_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[2] · object · $ref ./current-state.schema.json#/$defs/current_policy/properties/selector

此分支的 required:kind, policy_id

分支必填 kind · const "policy"
enum: "policy"
分支必填 policy_id · string · $ref ./event-payload.schema.json#/$defs/policy_set_state_payload/properties/policy_id
pattern: ^ak:policy:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
完整 JSON(格式化展示)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://arkret.org/v1/schemas/exact-current-state-read.schema.json",
  "title": "Arkret Exact current state Read",
  "description": "Exact authorized Relation, moderation or Agent interaction current read at one governing-Station cut. It is non-enumerating and binds never-written to the exact selector. Includes the original issuer-only exact owned_agent capability_grant read, including ineffective and terminal rows; no never_written for grants. Also supports exact Agent/Applet Policy CAS reads by the authorized policy setter and exact Applet/Service registration CAS reads by a Realm administrator, including authoritative never_written. No enumeration or new permission.",
  "oneOf": [
    {
      "$ref": "#/$defs/exact_current_state_read_request_body"
    },
    {
      "$ref": "#/$defs/exact_current_state_read_response_body"
    }
  ],
  "$defs": {
    "exact_current_state_selector": {
      "oneOf": [
        {
          "$ref": "#/$defs/relation_exact_current_selector"
        },
        {
          "$ref": "#/$defs/moderation_state_exact_current_selector"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_agent_interaction/properties/selector"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_capability_grant/properties/selector"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_calendar_schedule_source/properties/selector"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_policy/properties/selector"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_applet_registration/properties/selector"
        }
      ]
    },
    "relation_exact_current_selector": {
      "type": "object",
      "required": [
        "kind",
        "primary_conflict_domain"
      ],
      "properties": {
        "kind": {
          "const": "relation",
          "x-arkret-value-ownership": {
            "class": "owned_symbol",
            "authority": "exact-current-state-read.schema.json#/$defs/relation_exact_current_selector/properties/kind",
            "owner": "exact-current-state-read.schema.json#/$defs/relation_exact_current_selector/properties/kind",
            "values": [
              "relation"
            ]
          }
        },
        "primary_conflict_domain": {
          "$ref": "./relation.schema.json#/$defs/relation_primary_conflict_domain"
        }
      },
      "additionalProperties": false
    },
    "moderation_state_exact_current_selector": {
      "type": "object",
      "required": [
        "kind",
        "target_ref"
      ],
      "properties": {
        "kind": {
          "const": "moderation_state",
          "x-arkret-value-ownership": {
            "class": "owned_symbol",
            "authority": "exact-current-state-read.schema.json#/$defs/moderation_state_exact_current_selector/properties/kind",
            "owner": "exact-current-state-read.schema.json#/$defs/moderation_state_exact_current_selector/properties/kind",
            "values": [
              "moderation_state"
            ]
          }
        },
        "target_ref": {
          "$ref": "./event-payload.schema.json#/$defs/object_ref"
        }
      },
      "additionalProperties": false
    },
    "exact_current_state_read_request_body": {
      "type": "object",
      "description": "One exact, non-enumerating selector in one Realm. The caller cannot supply a revision, stream or governance Station.",
      "required": [
        "realm_id",
        "selector"
      ],
      "properties": {
        "realm_id": {
          "$ref": "./common-ids.schema.json#/$defs/realm_id"
        },
        "selector": {
          "$ref": "#/$defs/exact_current_state_selector"
        }
      },
      "additionalProperties": false,
      "x-arkret-name-role": "request_body"
    },
    "exact_current_state": {
      "oneOf": [
        {
          "$ref": "./current-state.schema.json#/$defs/current_relation"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_moderation_state"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_agent_interaction"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_capability_grant"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_calendar_schedule_source"
        },
        {
          "$ref": "./current-state.schema.json#/$defs/current_policy"
        }
      ]
    },
    "exact_current_state_read_response_body": {
      "description": "One authorized same-cut answer. never_written is an affirmative Station result, never an inference from omission, timeout or invisibility.",
      "oneOf": [
        {
          "$ref": "#/$defs/exact_current_state_present"
        },
        {
          "$ref": "#/$defs/exact_current_state_never_written"
        }
      ],
      "x-arkret-name-role": "response_body"
    },
    "exact_current_state_present": {
      "type": "object",
      "required": [
        "status",
        "realm_id",
        "governance_generation",
        "effective_stream_head",
        "current_state"
      ],
      "properties": {
        "status": {
          "const": "present",
          "x-arkret-value-ownership": {
            "class": "owned_symbol",
            "authority": "exact-current-state-read.schema.json#/$defs/exact_current_state_present/properties/status",
            "owner": "exact-current-state-read.schema.json#/$defs/exact_current_state_present/properties/status",
            "values": [
              "present"
            ]
          }
        },
        "realm_id": {
          "$ref": "./common-ids.schema.json#/$defs/realm_id"
        },
        "governance_generation": {
          "$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
        },
        "effective_stream_head": {
          "$ref": "./realm-commit.schema.json#/$defs/stream_head"
        },
        "current_state": {
          "$ref": "#/$defs/exact_current_state"
        }
      },
      "additionalProperties": false
    },
    "exact_current_state_never_written": {
      "type": "object",
      "required": [
        "status",
        "realm_id",
        "governance_generation",
        "effective_stream_head",
        "selector"
      ],
      "properties": {
        "status": {
          "const": "never_written",
          "x-arkret-value-ownership": {
            "class": "owned_symbol",
            "authority": "exact-current-state-read.schema.json#/$defs/exact_current_state_never_written/properties/status",
            "owner": "exact-current-state-read.schema.json#/$defs/exact_current_state_never_written/properties/status",
            "values": [
              "never_written"
            ]
          }
        },
        "realm_id": {
          "$ref": "./common-ids.schema.json#/$defs/realm_id"
        },
        "governance_generation": {
          "$ref": "./decimal-integers.schema.json#/$defs/uint64_decimal"
        },
        "effective_stream_head": {
          "$ref": "./realm-commit.schema.json#/$defs/stream_head"
        },
        "selector": {
          "oneOf": [
            {
              "$ref": "#/$defs/relation_exact_current_selector"
            },
            {
              "$ref": "./current-state.schema.json#/$defs/current_agent_interaction/properties/selector"
            },
            {
              "$ref": "./current-state.schema.json#/$defs/current_policy/properties/selector"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  }
}

查看 canonical 原件:spec/v1/artifacts/schemas/exact-current-state-read.schema.json

Source