Reference/State portability & schema

State permissions

Inspect, or explicitly repair, private state permissions.

op_sys_command_state_permissions
On this page

Use this capability

CLI invocation · Shell
op-sys --output json tools call op_sys_command_state_permissions \  --arguments '{}'

Request template: replace placeholder identities and supply complete contract-specific objects before use. Required arguments are shown; optional arguments are listed below. MCP requests assume an initialized connection.

Named CLI command: op-sys state permissions. Use --help for command-specific flag syntax; the CLI/SDK/MCP examples share arguments; HTTP uses the documented route and body.

Parameters

Arguments are a JSON object. The published schema does not permit unknown top-level fields. Some retained CLI JSON flags are strings containing JSON; follow the declared type.

actorstringOptional

Actor recorded on writes and audit entries.

Schema default: "operator"

repairbooleanOptional

Repair managed state permissions and project Git exclusion.

Schema default: false

Complete input JSON Schema
Complete input schema · JSON
{  "additionalProperties": false,  "properties": {    "actor": {      "default": "operator",      "description": "Actor recorded on writes and audit entries.",      "type": "string"    },    "repair": {      "default": false,      "description": "Repair managed state permissions and project Git exclusion.",      "type": "boolean"    }  },  "required": [],  "type": "object"}

Behavior & authority

Use an owner-private state root. Imports require the applicable policy, trust and approval; verification alone never grants replacement authority.

Rules shared by state portability & schema operations
  • Stop every writer before a state import. This replaces state offline; it is not synchronization or a cross-ledger merge.
  • Verify provenance and database compatibility before admission. Unsigned or merely cryptographically valid data is not necessarily trusted.
  • Schema inspection is read-only; migration requires its explicit confirmation. Unsupported layouts are not silently rewritten.
  • On an interrupted restore, preserve receipts and backups, keep writers stopped and follow documented recovery. Do not repeatedly import into an uncertain target.

Response

Returns the command’s structured payload. The runtime output manual documents the payload families; no standalone response JSON Schema is published for this operation.

CLI tools/call result: payload.tool.result. Response envelopes across CLI, SDK and MCP ↗

The runtime does not publish a standalone response JSON Schema for this operation. Use the response description and linked output manual; the downloadable input schema is not a response contract.

Errors & retries

bundle_restore_recovery_required
Keep writers stopped and retain private recovery receipts for explicit recovery.
state_permissions_unsecured
The runtime cannot prove safe ownership or path handling.
schema_migration_busy
Stop competing writers before retrying the bounded migration operation.

The family-level reasons above are representative, not an exhaustive operation error list.

For an uncertain write, preserve the original request and retry identity. On conflict, inspect current state before deciding what to change.