Ledger batch
Apply a batch of retained ledger operations.
op_sys_command_ledger_batchOn this page
Use this capability
op-sys --output json tools call op_sys_command_ledger_batch \ --arguments '{"operation":["<operation>"]}'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 ledger batch. 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.
actorstringOptionalActor recorded on writes and audit entries.
Schema default:
"operator"approvalstringOptionalApproval id required by policy-gated writes.
contractstringOptionalWorkflow contract JSON path used for strict contract validation.
idempotency_keystringOptionalReplay key for the full batch.
operationarrayRequiredOperation JSON or one explicit operation envelope.
Nested schema
operation schema · JSON{ "description": "Operation JSON or one explicit operation envelope.", "items": { "type": "string" }, "type": "array"}preconditionarrayOptionalBatch precondition JSON, repeatable.
Nested schema
precondition schema · JSON{ "description": "Batch precondition JSON, repeatable.", "items": { "type": "string" }, "type": "array"}strict_contractbooleanOptionalValidate every write against the workflow contract.
Schema default:
false
Complete input JSON Schema
{ "additionalProperties": false, "properties": { "actor": { "default": "operator", "description": "Actor recorded on writes and audit entries.", "type": "string" }, "approval": { "description": "Approval id required by policy-gated writes.", "type": "string" }, "contract": { "description": "Workflow contract JSON path used for strict contract validation.", "type": "string" }, "idempotency_key": { "description": "Replay key for the full batch.", "type": "string" }, "operation": { "description": "Operation JSON or one explicit operation envelope.", "items": { "type": "string" }, "type": "array" }, "precondition": { "description": "Batch precondition JSON, repeatable.", "items": { "type": "string" }, "type": "array" }, "strict_contract": { "default": false, "description": "Validate every write against the workflow contract.", "type": "boolean" } }, "required": [ "operation" ], "type": "object"}Behavior & authority
Existing local policies, approvals and cooperative actor controls apply. These operations are retained capabilities, not the definition of a Veylar Record ledger.
Rules shared by optional coordination operations
- Entities, claims, comments and artifacts use the retained event model. They do not create a universal task schema in generic ledgers.
- Mutation operations can record local execution events and audits. The former automatic source-upload path is removed; these events do not synchronize as ledger records.
- Where idempotency keys are accepted, preserve them across uncertain retries. Where no retry identity is available, inspect the result before repeating a mutation.
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
This operation uses the shared runtime error contract; no exhaustive operation-specific reason list is published.
For an uncertain write, preserve the original request and retry identity. On conflict, inspect current state before deciding what to change.