# Public operation naming

Use the same `resource.operation` names and argument meanings in the SDK, CLI,
MCP and service API. CLI spells the separator as a space; MCP uses the
`op_sys_` prefix and underscores. HTTP uses resource URLs and meaningful HTTP
methods. Transport does not change authorization or resource behavior.

## Small vocabulary, explicit effects

| Name | Meaning |
| --- | --- |
| create | Create a new resource; never replace an existing one. |
| get | Retrieve a resource or its metadata by identity. |
| list | Enumerate a bounded resource snapshot. |
| search | Retrieve resources matching supplied filters within the selected scope. |
| update | Change an existing resource; never implicitly create it. |
| inspect | Return the richer ledger diagnostic report: resource, available rules and effective permissions, each independently authorized. |
| status | Observe an ongoing operation, synchronization or contribution. |
| feed | Poll incremental activity with a checkpoint; no persistent connection or push delivery is implied. |
| upload / download | Transfer file bytes; get retrieves file metadata. |
| delete | Apply a ledger's governed deletion lifecycle. |
| remove | Remove a local connection or remote configuration; never delete its remote ledger. |
| erase | Irreversibly remove retained record or file content under its rules. |

Domain actions keep meaningful names: append a record, publish an immutable
contract, clone or sync a ledger, transfer authority, resolve a reference, or
withdraw a contribution. These actions are not interchangeable CRUD operations.
`records.state` and `records.outcome` are explicit specialized reads of derived
state and an append's acceptance outcome, respectively.

## Inputs, updates and retries

Use resource-specific selectors: `ledger_id`, `record_id`, `file_id`, `group_id`
and `collection_id`. Named client configurations use `name`. Updates to ledger,
access, group and collection resources require `expected_revision`.
Group/collection creation takes no revision. Retain the caller-selected stable
ID for retries. An identical create or update can replay its result; changed
input at an existing identity or stale revision is rejected. Group/collection
update supplies the complete desired settings. Ledger update uses a `changes`
object; omitted settings remain unchanged. Connection changes retain their
existing credential-binding and concurrent-edit checks.

Snapshot reads use `continuation` and return `next`; ledger and record search use `cursor`
and `next_cursor` because it has a separately bounded cross-ledger snapshot
contract. Both are opaque pagination tokens, not domain resources. Both feed
operations take and return `checkpoint`, report `caught_up`, and preserve their
scope and authorization on resumption. Follow `records.list.changes_from` only
after completing the snapshot. Feed checkpoints can redeliver activity; persist
a new checkpoint only after processing the page.

`records.feed` follows accepted records across ledger IDs or a saved collection
within one service. `changes.feed` follows one ledger's accepted records,
authorized definition changes and removals, locally or through a service. Their
different coverage and recovery requirements remain explicit in discovery and
documentation; their shared polling pattern does not imply identical events.

Errors remain structured and machine-readable. An operation name alone never
authorizes a call. Inspect schemas, environment support, permissions and retry
rules through `capabilities.list/get`.

## Current ledger and client capability map

The following map covers every operation in the foundational ledger catalog.
Account administration and optional execution retain their separate domain
protocols; this convention does not collapse them into ledger operations.

| Resource | Operations |
| --- | --- |
| `ledgers` | `create`, `list`, `search`, `get`, `inspect`, `update`, `archive`, `reopen`, `delete`, `export`, `import`, `publish`, `clone`, `sync`, `status`, `receive`, `checkpoint` |
| `contracts` | `publish`, `get`, `list` |
| `records` | `append`, `outcome`, `get`, `list`, `erase`, `state`, `search`, `feed` |
| `access` | `get`, `grant`, `revoke`, `update` |
| `files` | `upload`, `download`, `get`, `erase` |
| `references` | `resolve` |
| `changes` | `feed` |
| `capabilities` | `list`, `get` |
| `connections` | `create`, `list`, `get`, `update`, `remove`, `select`, `check` |
| `remotes` | `create`, `list`, `update`, `remove`, `select` |
| `auth` | `login`, `status`, `logout` |
| `organizations` | `list`, `create` |
| `identity` | `get`, `associate` |
| `contributions` | `withdraw`, `status` |
| `authority` | `transfer`, `status`, `resume` |
| `selection` | `get`, `update` |
| `groups` | `create`, `update`, `get` |
| `collections` | `create`, `get`, `list`, `update`, `delete` |

The former configure/reconfigure, capability describe, context inspect, connection/remote add, group/collection put, access inspect, file put/inspect and changes list names are removed, not compatibility aliases. Ledger inspection is the single diagnostic report.

`ledgers.publish` composes existing synchronization and authority handoff for a
local ledger. Its default shared mode moves write authority; `mode=copy` keeps
local authority. `contracts.publish` still publishes an immutable contract. URL
cloning and publishing return structured setup steps when authentication is
needed. They are client workflows over the public HTTP exchanges, not service
endpoints that control a caller's device.

Authentication and workspace discovery use `auth` and `workspaces`, shared
by CLI, SDK and MCP. `selection.update(workspace=...)` verifies workspace access
and clears the previous ledger and remote unless supplied explicitly. The former cloud setup/login/session/
logout/connect/configure/disconnect/organizations/create-organization/use bindings
are removed. Browser setup is composed by auth.login; machine login accepts one
private credential reference and verifies it before replacing credentials.

Account administration follows the same pattern: `memberships.list/update/remove`,
`invitations.create/inspect/accept/list/revoke`, `api_keys.create/list/revoke`,
`billing.get/checkout/portal`, `usage.get`, `deletion.status/request/cancel`,
`service.health/metrics/inspect` and `connections.check`. CLI uses `api-keys` for
the Python/MCP `api_keys` namespace. See [account administration](/docs/raw/manuals/account-administration.md)
for the verified-email invitation flow and HTTP routes. `invitations.create`
requires one explicit `workspace_id` or `ledger_id`. Inspect and accept use the
link alone. The target determines whether acceptance creates a workspace membership
or grants permissions in one ledger.
