oc_chat
Loading...
Searching...
No Matches
oc_chat.registry.backends.base Namespace Reference

Classes

class  BackendCapabilityError
class  OperationLogRow
class  LockHandle
class  StorageBackend

Detailed Description

Storage backend contract for the orchestration registry.

Purpose
-------
Define the minimum backend interface and construction-time capability
check required by the M11 registry storage layer.

Responsibilities
----------------
- Define :class:`StorageBackend`.
- Define :class:`BackendCapabilityError`.
- Define :class:`OperationLogRow` and :class:`LockHandle` return types.
- Check that backend integrity reporting follows the OI-326 shape.

Diagnostics
-----------
Domain: OC_CHAT.MAIN
Levels:
    L2 - lifecycle events
    L3 - semantic details
    L4 - deep tracing

Contracts
---------
- Backends that cannot satisfy the minimum capability contract raise at
  construction time.
- Storage code remains below the future Registry API layer.

Dependencies
------------
- oc_diagnostics (structured debug logging via _dbg)
- abc (ABC and abstractmethod for the StorageBackend contract)
- contextlib (AbstractContextManager return type of the transaction method)