oc_chat
Loading...
Searching...
No Matches
oc_chat.registry.domain Namespace Reference

Variables

 PlanStatus
 ActorType = Literal["human_operator", "orchestrator_agent", "worker_agent"]
 QueueEnqueueReason

Detailed Description

Domain-level registry mutation API.

Purpose
-------
Expose typed queue and plan-lifecycle functions that emit canonical
operation-log rows through :class:`oc_chat.registry.Registry`.

Responsibilities
----------------
- Build versioned payloads for the queue and plan operation catalogs.
- Enforce domain-level preconditions that belong above the seam.
- Keep callers state-version and operation-uuid unaware.

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

Contracts
---------
- Every public mutating function calls ``Registry.execute_domain_command``.
- This module performs no SQL, git, subprocess, filesystem, or clock work.
- Payload version is always 1 for the v0.2.3 operation catalog.

Dependencies
------------
- typing (literal operation arguments)
- collections.abc (the hub message payload mapping)
- oc_diagnostics (structured debug logging via _dbg)
- oc_chat.registry.api (Registry facade)
- oc_chat.registry.backends.base (OperationLogRow return type)

Variable Documentation

◆ ActorType

oc_chat.registry.domain.ActorType = Literal["human_operator", "orchestrator_agent", "worker_agent"]

Definition at line 66 of file domain.py.

◆ PlanStatus

oc_chat.registry.domain.PlanStatus
Initial value:
1= Literal[
2 "draft",
3 "pending",
4 "implementing",
5 "ready_for_merge",
6 "integrating",
7 "completed",
8 "partial",
9 "failed",
10 "superseded",
11]

Definition at line 55 of file domain.py.

◆ QueueEnqueueReason

oc_chat.registry.domain.QueueEnqueueReason
Initial value:
1= Literal[
2 "initial enqueue",
3 "promoted_from_partial",
4 "restored_from_aborted_round",
5]

Definition at line 67 of file domain.py.