Practical guide

Use a development-only restricted command

Exercise an explicitly restricted owner command during development without exposing it to standard packages.

Procedure

  1. Declare the package origin as development and validate that the restricted namespace is present.
  2. Query current target and authority revisions.
  3. Submit only a registered restricted command through restricted.command.submit.
  4. Observe the receipt and post-commit completion event through the normal evidence path.
  5. Handle error.restricted-command if the host origin does not authorize the call.

Example

local receipt = restricted.command.submit(
    "restricted.actor.crisis-override",
    {
        actor_id = actor.actor_id,
        expected_actor_revision = actor.revision,
        expected_authority_revision = actor.authority_revision
    },
    1
)

Constraints and recovery

Related symbols

Project references