docs: align TAMQ worker adapter contract
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
parent
c69f1346ec
commit
3fc4d67cf1
2 changed files with 73 additions and 29 deletions
33
README.md
33
README.md
|
|
@ -1 +1,32 @@
|
|||
Framework for digital coordination as goal-driven communication .
|
||||
# Coordination Engine
|
||||
|
||||
Framework for digital coordination as goal-driven communication.
|
||||
|
||||
## TAMQ worker-session adapter
|
||||
|
||||
Coordination-engine owns trigger observation, actionability and safety policy,
|
||||
coordination leases, checkpoints, and State Hub receipts. TAMQ separately owns
|
||||
local repository sessions, durable messages, terminal delivery attempts, and
|
||||
acknowledgement state.
|
||||
|
||||
The implemented async boundary is provided by `tamq.client`:
|
||||
|
||||
```python
|
||||
from tamq.client import CoordinationEngineAdapter, WakeRequest
|
||||
|
||||
receipt = await CoordinationEngineAdapter().wake(
|
||||
WakeRequest(
|
||||
lease_id="lease-123",
|
||||
trigger_id="task-456:r7",
|
||||
target_repo="audit-core",
|
||||
prompt="Resume the actionable task and publish a checkpoint.",
|
||||
)
|
||||
)
|
||||
```
|
||||
|
||||
The coordination lease ID makes wake admission idempotent. An exact live TAMQ
|
||||
endpoint is required; the adapter will not choose between multiple sessions or
|
||||
start an agent implicitly. Transport states (`pending`, `awaiting_ack`,
|
||||
`injected`, `acknowledged`, `failed`) are receipts, not workflow completion.
|
||||
See `spec/worker-coordination-service-v0.1.md` and the canonical
|
||||
`tmux-amq/spec/coordination-engine-adapter-v0.1.md` contract.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue