ak.schema.exact_current_state_read.v1
ak.schema.exact_current_state_read.v1 · schemas/exact-current-state-read.schema.jsonExact 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 原件为准。
可视树中没有匹配项。清除条件或查看下面的完整 JSON。
必填 $ · 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
string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^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
const "relation""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
const "tuple""tuple"?此分支的 required:to_ref
?string (enum)"tuple" "from"stringThe 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).
$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpointPresent 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
const "moderation_state""moderation_state"string · $ref ./event-payload.schema.json#/$defs/object_ref^((?: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
const "agent_interaction""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
$ref #/$defs/did_core_id · $ref #/$defs/did_core_id$ref #/$defs/did_core_id · $ref #/$defs/did_core_idoneOf · oneOf[3] · object · $ref ./current-state.schema.json#/$defs/current_capability_grant/properties/selector
此分支的 required:kind, grant_id
const "capability_grant""capability_grant"string · $ref ./common-ids.schema.json#/$defs/grant_id^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
const "calendar_schedule_source""calendar_schedule_source"string^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
const "policy""policy"string · $ref ./event-payload.schema.json#/$defs/policy_set_state_payload/properties/policy_id^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
const "applet_registration""applet_registration"string · $ref ./common-ids.schema.json#/$defs/applet_idStable canonical Applet installation identity. Applet service authority is carried separately by service_id.
^ak:applet:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$string · $ref ./common-ids.schema.json#/$defs/did_core_idCanonical 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.
^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
const "present""present"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./decimal-integers.schema.json#/$defs/uint64_decimalCanonical unsigned decimal spelling, inclusive range 0..18446744073709551615; no sign, leading zero, exponent or JSON number alternative.
^(?: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
$ref #/$defs/stream_ref · $ref #/$defs/stream_refintegerstring · $ref ./common-ids.schema.json#/$defs/realm_commit_idContent-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.
^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
const "relation""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
…recursion truncated at depth 8; see source schema for full shape
?此分支的 required:to_ref
?string (enum)"tuple" "from"stringThe 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).
$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpointPresent 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
const "realm""realm"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$oneOf · oneOf[1] · object
此分支的 required:kind, realm_id, sidecar_id
const "sidecar""sidecar"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/sidecar_id^ak:sidecar:[A-Za-z0-9_-]{44}$oneOf · oneOf[2] · object
此分支的 required:kind, realm_id
const "realm_control""realm_control"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$$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
const "assigned_to""assigned_to"then · then · object
string^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.
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[1] · ?
if · if · object
此分支的 required:relation_kind
const "watches""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.
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[2] · ?
if · if · object
此分支的 required:state
const "tombstoned""tombstoned"?此分支的 required:state_changed_at
stringPresent 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.
^ak:relation:[A-Za-z0-9_-]{44}$const "ak.schema.relation.v1""ak.schema.relation.v1"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$$ref #/$defs/effective_scope · $ref #/$defs/effective_scopeThe 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.
stringRelation 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.
$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint$ref #/$defs/rank · $ref #/$defs/rankTop-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.
objectEdge metadata. MUST NOT contain a 'rank' key — rank moved to the top level in v1 to align with Space.rank.
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.
"active" "tombstoned"$ref #/$defs/timestamp · $ref #/$defs/timestampReducer-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
const "account""account"$ref #/$defs/account_id · $ref #/$defs/account_idoneOf · oneOf[1] · object
此分支的 required:kind, service_id
const "service""service"$ref #/$defs/did_core_id · $ref #/$defs/did_core_idoneOf · oneOf[2] · object
此分支的 required:kind, realm_actor_id
const "realm""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
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
$ref #/$defs/timestamp · $ref #/$defs/timestampupdated_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
const "account""account"$ref #/$defs/account_id · $ref #/$defs/account_idoneOf · oneOf[1] · object
此分支的 required:kind, service_id
const "service""service"$ref #/$defs/did_core_id · $ref #/$defs/did_core_idoneOf · oneOf[2] · object
此分支的 required:kind, realm_actor_id
const "realm""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
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
$ref #/$defs/timestamp · $ref #/$defs/timestamponeOf · 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
const "moderation_state""moderation_state"string · $ref ./event-payload.schema.json#/$defs/object_ref^((?: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
const "realm""realm"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$oneOf · oneOf[1] · object
此分支的 required:kind, realm_id, sidecar_id
const "sidecar""sidecar"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/sidecar_id^ak:sidecar:[A-Za-z0-9_-]{44}$oneOf · oneOf[2] · object
此分支的 required:kind, realm_id
const "realm_control""realm_control"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$$ref #/$defs/revision · $ref #/$defs/revision$ref #/$defs/moderation_state_value · $ref #/$defs/moderation_state_valueoneOf · 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
const "agent_interaction""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
$ref #/$defs/did_core_id · $ref #/$defs/did_core_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
const "realm""realm"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$oneOf · oneOf[1] · object
此分支的 required:kind, realm_id, sidecar_id
const "sidecar""sidecar"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/sidecar_id^ak:sidecar:[A-Za-z0-9_-]{44}$oneOf · oneOf[2] · object
此分支的 required:kind, realm_id
const "realm_control""realm_control"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$$ref #/$defs/revision · $ref #/$defs/revision$ref #/$defs/agent_interaction_value · $ref #/$defs/agent_interaction_valueoneOf · 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
const "capability_grant""capability_grant"string · $ref ./common-ids.schema.json#/$defs/grant_id^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
const "realm""realm"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$oneOf · oneOf[1] · object
此分支的 required:kind, realm_id, sidecar_id
const "sidecar""sidecar"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/sidecar_id^ak:sidecar:[A-Za-z0-9_-]{44}$oneOf · oneOf[2] · object
此分支的 required:kind, realm_id
const "realm_control""realm_control"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$$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
?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.
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
subject · object
此分支的 required:kind
…recursion truncated at depth 8; see source schema for full shape
??$ref #/$defs/owned_agent_authority_ref · $ref #/$defs/owned_agent_authority_refconst 11else · else · object
$ref #/properties/authority_root_ref/oneOf/0 · $ref #/properties/authority_root_ref/oneOf/0string^ak:grant:[A-Za-z0-9_-]{44}$const "ak.schema.capability.v1""ak.schema.capability.v1"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^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
const "account""account"$ref #/$defs/account_id · $ref #/$defs/account_idoneOf · oneOf[1] · object
此分支的 required:kind, service_id
const "service""service"$ref #/$defs/did_core_id · $ref #/$defs/did_core_idoneOf · oneOf[2] · object
此分支的 required:kind, realm_actor_id
const "realm""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
…recursion truncated at depth 8; see source schema for full shape
…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
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
oneOf · oneOf[1] · object
此分支的 required:kind, service_id
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
oneOf · oneOf[2] · object
此分支的 required:kind, realm_actor_id
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
oneOf · oneOf[1] · object
此分支的 required:kind, required_claims
const "condition""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.
…recursion truncated at depth 8; see source schema for full shape
分支必填 actions · array<string>
stringCanonical 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.
^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] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[1] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[2] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[3] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[4] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
string (enum)"realm" "space" "strand" "message" "morph" "object" "relation" "view" "event" "actor" "schema" "policy" "invite" "notification" "read_cursor" "blob" "*" "realm_actor"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string^ak:space:[A-Za-z0-9_-]{44}$stringstringCanonical 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.
^(?: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})$string^ak:strand:[A-Za-z0-9_-]{44}$string^ak:message:[A-Za-z0-9_-]{44}$string^ak:morph:[A-Za-z0-9_-]{44}$stringstringstring^ak:relation:[A-Za-z0-9_-]{44}$string^ak:view:[A-Za-z0-9_-]{44}$string^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.
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
stringstring^ak:policy:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$string^ak:invite:[A-Za-z0-9_-]{44}$string^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})$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.
"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] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[1] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[2] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[3] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[4] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[5] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[6] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[7] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[8] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[9] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[10] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[11] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[12] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[13] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
allOf · allOf[14] · ?
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
stringOptional stable identifier of this constraint within the grant; used for diagnostics and overrides.
^(?!ak:)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.
"temporal" "field_access" "kind_restriction" "scope_limitation" "authority_control" "quota" "claim_based" "confidentiality"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.
"allow" "deny" "quarantine" "require_review"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.
"stateless" "grant_local" "realm_state" "external"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.
"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.
…recursion truncated at depth 8; see source schema for full shape
$ref #/$defs/timestamp · $ref #/$defs/timestamp$ref #/$defs/timestamp · $ref #/$defs/timestamprecurrence · object
Daily/weekly recurrence is core. Unsupported frequency, unknown IANA timezone and necessary unresolved DST boundaries are unknown predicates, never implicit nonmatches.
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
stringFrom 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.
^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$stringFrom 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.
^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$stringFrom 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.
^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$stringISO 8601 duration; used by approval_workflow constraint instead of expires_after_ms.
^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$string^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$string^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$booleancondition · 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
…recursion truncated at depth 8; see source schema for full shape
allowed_write_fields · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_write_fields · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_read_fields · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_read_fields · array<string>
…recursion truncated at depth 8; see source schema for full shape
sensitive_fields · array<string>
…recursion truncated at depth 8; see source schema for full shape
string (enum)"redact" "hash" "omit"allowed_object_kinds · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_object_kinds · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_morph_kinds · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_morph_kinds · array<string>
…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.
…recursion truncated at depth 8; see source schema for full shape
denied_space_kinds · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_facets · array<string (enum)>
…recursion truncated at depth 8; see source schema for full shape
denied_facets · array<string (enum)>
…recursion truncated at depth 8; see source schema for full shape
allowed_view_ids · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_strand_ids · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_strand_ids · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_space_ids · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_space_ids · array<string>
…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.
…recursion truncated at depth 8; see source schema for full shape
allowed_view_kinds · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_view_renderers · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_view_kinds · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_view_renderers · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_relation_kinds · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_from_container_refs · array<string>
…recursion truncated at depth 8; see source schema for full shape
allowed_to_container_refs · array<string>
…recursion truncated at depth 8; see source schema for full shape
booleanfalseallowed_tracks · array<string>
…recursion truncated at depth 8; see source schema for full shape
denied_tracks · array<string>
…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
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…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.
…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.
…recursion truncated at depth 8; see source schema for full shape
integerMaximum 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>
…recursion truncated at depth 8; see source schema for full shape
booleanstring (enum)"narrowing_only" "same_scope" "custom"string · $ref ./common-ids.schema.json#/$defs/applet_idStable canonical Applet installation identity. Applet service authority is carried separately by service_id.
^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.
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
stringauthority_control(constraint_subkind=applet_authority) binding to the canonical Applet registration epoch.
^sha256:[0-9a-f]{64}$integerintegerMaximum 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.
integerintegerMaximum artifact size in bytes for applet / agent / export operations.
integerMaximum 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.
stringISO 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.
^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$integerOptional 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.
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.
"per_actor" "per_space" "per_realm" "global"integerstringbooleanstring (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.
"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.
…recursion truncated at depth 8; see source schema for full shape
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.
"responsible" "controller" "guardian" "realm_admin" "custom"stringPositive 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.
^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.
"unanimous"…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
booleanbooleanbooleanrequired_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.
…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>
…recursion truncated at depth 8; see source schema for full shape
booleanstring^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)>
…recursion truncated at depth 8; see source schema for full shape
booleanbooleanstring (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).
"none" "mls_rfc9420" "external"booleanconfidentiality(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.
booleanconfidentiality(constraint_subkind=encryption) static flag: whether the grant requires an audit trail (e.g. active Audit Applet Binding). See constraint-schema.md §12.
string^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$string^P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+W)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+S)?)?$booleanapproved_key_issuer_ids · array<$ref ./common-ids.schema.json#/$defs/did_core_id>
…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.
…recursion truncated at depth 8; see source schema for full shape
anystring (date-time) · format=date-time · $ref ./time.schema.json#/$defs/timestampCanonical 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.
^[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$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.
"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
const "account""account"$ref #/$defs/account_id · $ref #/$defs/account_idoneOf · oneOf[1] · object
此分支的 required:kind, service_id
const "service""service"$ref #/$defs/did_core_id · $ref #/$defs/did_core_idoneOf · oneOf[2] · object
此分支的 required:kind, realm_actor_id
const "realm""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
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
string (date-time) · format=date-time · $ref ./time.schema.json#/$defs/timestampCanonical 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.
^[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
const "account""account"$ref #/$defs/account_id · $ref #/$defs/account_idoneOf · oneOf[1] · object
此分支的 required:kind, service_id
const "service""service"$ref #/$defs/did_core_id · $ref #/$defs/did_core_idoneOf · oneOf[2] · object
此分支的 required:kind, realm_actor_id
const "realm""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
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
$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
…recursion truncated at depth 8; see source schema for full shape
…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
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
…recursion truncated at depth 8; see source schema for full shape
$ref #/$defs/owned_agent_authority_ref · $ref #/$defs/owned_agent_authority_refintegerReducer-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
const "realm_root""realm_root"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/event_idComplete 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.
^ak:event:[A-Za-z0-9_-]{44}$string · $ref ./decimal-integers.schema.json#/$defs/uint64_decimalCanonical unsigned decimal spelling, inclusive range 0..18446744073709551615; no sign, leading zero, exponent or JSON number alternative.
^(?: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)$$ref #/$defs/owned_agent_authority_ref · $ref #/$defs/owned_agent_authority_refanyoneOf · 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
const "calendar_schedule_source""calendar_schedule_source"string^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
const "realm""realm"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$oneOf · oneOf[1] · object
此分支的 required:kind, realm_id, sidecar_id
const "sidecar""sidecar"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/sidecar_id^ak:sidecar:[A-Za-z0-9_-]{44}$oneOf · oneOf[2] · object
此分支的 required:kind, realm_id
const "realm_control""realm_control"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$$ref #/$defs/revision · $ref #/$defs/revision$ref #/$defs/calendar_schedule_source_value · $ref #/$defs/calendar_schedule_source_valueoneOf · 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
const "policy""policy"string · $ref ./event-payload.schema.json#/$defs/policy_set_state_payload/properties/policy_id^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
const "realm""realm"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$oneOf · oneOf[1] · object
此分支的 required:kind, realm_id, sidecar_id
const "sidecar""sidecar"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/sidecar_id^ak:sidecar:[A-Za-z0-9_-]{44}$oneOf · oneOf[2] · object
此分支的 required:kind, realm_id
const "realm_control""realm_control"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$$ref #/$defs/revision · $ref #/$defs/revision$ref #/$defs/policy_value · $ref #/$defs/policy_valueoneOf · oneOf[1] · object · $ref #/$defs/exact_current_state_never_written
此分支的 required:status, realm_id, governance_generation, effective_stream_head, selector
const "never_written""never_written"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./decimal-integers.schema.json#/$defs/uint64_decimalCanonical unsigned decimal spelling, inclusive range 0..18446744073709551615; no sign, leading zero, exponent or JSON number alternative.
^(?: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
$ref #/$defs/stream_ref · $ref #/$defs/stream_refintegerstring · $ref ./common-ids.schema.json#/$defs/realm_commit_idContent-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.
^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
const "relation""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
const "tuple""tuple"?此分支的 required:to_ref
?string (enum)"tuple" "from"stringThe 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).
$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpoint$ref #/$defs/relation_endpoint · $ref #/$defs/relation_endpointPresent 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
const "agent_interaction""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
$ref #/$defs/did_core_id · $ref #/$defs/did_core_id$ref #/$defs/did_core_id · $ref #/$defs/did_core_idoneOf · oneOf[2] · object · $ref ./current-state.schema.json#/$defs/current_policy/properties/selector
此分支的 required:kind, policy_id
const "policy""policy"string · $ref ./event-payload.schema.json#/$defs/policy_set_state_payload/properties/policy_id^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
- registry row:
spec/v1/artifacts/registry/schema-registry.json - schema document:
spec/v1/artifacts/schemas/exact-current-state-read.schema.json