command · command.infrastructure

Set gate access policy

Changes one gate to a validated World access policy through revision-checked World authority.

command.infrastructure.set-access-policy(infrastructure_id, expected_revision, access_policy_id) -> command.receipt
Stable ID
command.infrastructure.set-access-policy
Owner
sim.world
Authority
request
Timing
fixed_tick
Availability
active-session
Side effects
may change gate traversability and field access at the committed tick
Determinism
record request and World result in engine sequence order
Introduced
1.19.0

Usage

Change one retained gate to a validated authored access policy. Submit the current gate identity and World revision from world.infrastructure.local; World applies the policy and updates traversability and field access atomically at the fixed tick.

Parameters

Returns

A fixed-tick command receipt with the World owner result. Unknown policies, non-gate targets, and stale revisions change no state.

Cost

Indexed gate and policy lookups plus one bounded World navigation synchronization when the mutation succeeds.

Fields

IDTypeUnitsRequiredDescription
access_policy_idstringnoneyesValidated authored World access-policy identity.
expected_revisionrevisionnoneyesExpected World gate revision.
infrastructure_idstable-idnoneyesCurrent World gate identity.

Errors

Examples

command.submit("command.infrastructure.set-access-policy", {infrastructure_id = gate.infrastructure_id, expected_revision = gate.revision, access_policy_id = "access.public"}, 1)

API history

Related symbols

Project references