Reference/Optional coordination

Append event

Append event through the retained LedgerService adapter.

op_sys_legacy_append_event
Optional local integrationOptional integrationRead as Markdown ↗
On this page

Use this capability

CLI invocation · Shell
op-sys --output json tools call op_sys_legacy_append_event \  --arguments '{"actor":"<actor>","entity_id":"<entity_id>","event_type":"<event_type>"}'

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.

SDK convenience: client.ledger().append_event(…). The capability adapter wraps the method value in result. Nested fields arguments are expanded into keyword arguments by the adapter.

Parameters

Arguments are a JSON object. The published schema does not permit unknown top-level fields. Native record payloads and structured arguments are JSON values, not JSON-encoded strings.

actorstringRequired

Cooperative local actor. This does not change the authenticated hosted principal.

approval_idnull | stringOptional

Schema default: null. Omit the field; send null only if its schema permits null.

causal_refsarray | nullOptional

Schema default: null. Omit the field; send null only if its schema permits null.

Nested schema
causal_refs schema · JSON
{  "default": null,  "items": {},  "type": [    "array",    "null"  ]}

entity_idstringRequired
entity_typenull | stringOptional

Schema default: null. Omit the field; send null only if its schema permits null.

event_typestringRequired
idempotency_keynull | stringOptional

Caller-retained retry identity. Reuse only with the identical intended request.

Schema default: null. Omit the field; send null only if its schema permits null.

payloadnull | objectOptional

Consumer-defined JSON value validated against the selected admitted contract.

Schema default: null. Omit the field; send null only if its schema permits null.

strict_contractbooleanOptional

Schema default: false

workflow_contractnull | object | stringOptional

Schema default: null. Omit the field; send null only if its schema permits null.

workflow_namespacenull | stringOptional

Schema default: null. Omit the field; send null only if its schema permits null.

workflow_versionnull | stringOptional

Schema default: null. Omit the field; send null only if its schema permits null.

Complete input JSON Schema
Complete input schema · JSON
{  "additionalProperties": false,  "properties": {    "actor": {      "type": "string"    },    "approval_id": {      "default": null,      "type": [        "null",        "string"      ]    },    "causal_refs": {      "default": null,      "items": {},      "type": [        "array",        "null"      ]    },    "entity_id": {      "type": "string"    },    "entity_type": {      "default": null,      "type": [        "null",        "string"      ]    },    "event_type": {      "type": "string"    },    "idempotency_key": {      "default": null,      "type": [        "null",        "string"      ]    },    "payload": {      "additionalProperties": {},      "default": null,      "type": [        "null",        "object"      ]    },    "strict_contract": {      "default": false,      "type": "boolean"    },    "workflow_contract": {      "additionalProperties": {},      "default": null,      "type": [        "null",        "object",        "string"      ]    },    "workflow_namespace": {      "default": null,      "type": [        "null",        "string"      ]    },    "workflow_version": {      "default": null,      "type": [        "null",        "string"      ]    }  },  "required": [    "actor",    "entity_id",    "event_type"  ],  "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 {result: value}. The result retains the SDK method’s value, including null where allowed. It is not the resource-keyed CLI command envelope.

SDK return annotation: dict[str, typing.Any].

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.