Repository navigation
Description
Problem
Maka's Agent Graph already provides durable scheduling, operator Sessions, runtime-event-backed records, downstream handoff, reconciliation, and supervisor wakes. That gives the graph a clear control plane for dependency-driven work.
The boundary is less clear for interactions that are not naturally modeled as a final upstream result or a predefined dependency edge, for example:
- an operator emits a partial or typed notification that may affect the next scheduling decision;
- an operator needs to report an exception or changed assumption before completing;
- a long-lived operator wants to notify another logical operator asynchronously;
- a workflow needs interruption or coordination without turning every interaction into polling.
Today these cases can potentially be represented with output records, graph edges, and supervisor reconciliation. Maka does not appear to expose a general agent-addressed inbox or send-message primitive. It would be useful to clarify whether this is an intentional architectural boundary or an area planned for expansion.
A central design question is whether communication should remain graph-scoped and supervisor-controlled, or whether Maka intends to support general bidirectional inter-agent communication. Arbitrary directed messages—especially when they can wake the recipient—would effectively introduce a second scheduling/control plane similar to an actor mailbox.
Desired outcome
Discuss and document Maka's intended direction, and consider a narrowly scoped Agent Graph extension if it fits the architecture.
One possible graph-scoped capability would be a durable signal/event that:
- is emitted by an operator and persisted in the existing runtime/event ledger;
- addresses only the root supervisor, a declared graph operator, or a declared graph edge;
- carries bounded inline data plus artifact/event references;
- remains visible to graph audit, replay, and recovery;
- does not silently bypass graph admission or scheduling policy;
- has explicit semantics for whether it merely wakes the supervisor or may directly activate a target operator.
Questions for the maintainers:
- Is general bidirectional agent-to-agent communication part of Maka's roadmap or intended model?
- Should Agent Graph remain the sole scheduling authority, with signals only informing the root supervisor?
- Would a graph-scoped signal be useful beyond the existing record/handoff and supervisor-wake mechanisms?
- If direct recipient wake is allowed, should Maka treat that explicitly as a durable mailbox/actor subsystem?
- What guarantees would be expected around identity, ordering, deduplication, delivery, backpressure, cancellation, permissions, and restart recovery?
- Should communication be restricted to one graph/root execution, or eventually work across independent Runtime Hosts?
The desired result does not need to be a specific API immediately. A documented architectural decision and explicit non-goals would already make future Graph extensions easier to evaluate.
Alternatives or workarounds
- Model every interaction as an Agent Graph record and explicit dependency edge.
- Wake the root supervisor at useful checkpoints, then let it inspect records and revise the schedule.
- Poll shared artifacts or runtime state from downstream operators.
- Add a general
agent_notify(targetSessionId, ...)or mailbox API. This is flexible, but arbitrary bidirectional notification plus direct wake would need to be designed as a full communication and scheduling subsystem rather than a small helper.
Related exploration: https://github.com/nicobailon/pi-intercom
Activity
somewan820 commentedon Aug 14, 2026
Thanks for laying out the design question clearly. Since I'm coordinating #2290 (Task Ledger) and #2560 (Work Board), here is my recommended position. Everything below is a proposal, not a settled contract.
Current-code context
main.claim/settleon the Task Ledger is an ownership protocol (packages/storage/src/task-ledger-store.ts:386,468), not a notification mechanism. A signal is not the same abstraction.Recommendation
claim/settleas an ownership protocol. Ownership, lease, retry, stale-claim handling, and settlement belong to Agent Graph. A signal could replace the coordination role Task Ledger'sclaim/settleplayed, but only because Graph owns the actual semantics; the signal itself is just the communication channel.waiting_for_usershould be representable as a Graph/session continuation fact, not as a general message type.Answers to the listed questions (proposed v1 semantics; delivery guarantees still need a contract)
If maintainers agree with this shape, I can draft the signal contract and explicit non-goals here. If not, the first question to settle is whether Graph should remain the sole scheduling authority.
简体中文
感谢把这个设计问题讲清楚。我正在统筹 #2290(Task Ledger)和 #2560(Work Board),以下是我建议的立场。所有内容都是 proposal,不是已定契约。
当前代码上下文
main中没有找到通用 agent 定向 signal 或 mailbox。claim/settle是 ownership 协议(task-ledger-store.ts:386,468),不是通知机制;signal 不是同一种抽象。建议
claim/settle的等价替代品。 ownership、lease、retry、stale claim 处理和 settlement 属于 Agent Graph。Signal 可以取代 Task Ledger 的claim/settle曾经承担的协调角色,但前提是真正语义仍由 Graph 持有;Signal 本身只是通信通道。waiting_for_user应表示为 Graph/session continuation 事实,而不是通用消息类型。对所列问题的回答(提议的 v1 语义;投递保证仍需契约确认)
如果 maintainer 认可这个形状,我可以在这里起草信号契约和明确的 non-goals。如果不认可,首先要定的问题是:Graph 是否应继续保持唯一调度权威。
github-actions commentedon Sep 14, 2026
This issue has had no human activity for 30 days and has been marked stale. It will be closed in 30 days unless someone comments.
If the issue is still current, please confirm it against the latest
mainand add any information that would help move it forward. Assigned issues and issues labelledpinnedare exempt from this policy.Astro-Han commentedon Sep 17, 2026
The direction question has an answer in this thread: Agent Graph stays the sole scheduling authority, and a general agent-addressed mailbox that can wake a recipient directly is a non-goal for now.
What remains is an open design conversation rather than a proposed change, so please continue it at https://github.com/apache/maka/discussions. An issue is welcome once a narrow graph-scoped signal has a concrete use that the existing record, handoff and supervisor-wake paths cannot cover.