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
- infrastructure_id: current World gate identity.
- expected_revision: current World gate revision.
- access_policy_id: validated authored World access-policy identity.
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
| ID | Type | Units | Required | Description |
|---|---|---|---|---|
access_policy_id | string | none | yes | Validated authored World access-policy identity. |
expected_revision | revision | none | yes | Expected World gate revision. |
infrastructure_id | stable-id | none | yes | Current World gate identity. |
Errors
error.command-budget-exhaustederror.command-owner-rejectederror.command-queue-fullerror.invalid-commanderror.restricted-command
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
- 1.19.0: Revision-checked gate access-policy control added for Village Life M3.