Proposal: let scheduled reminders deliver Mail to a group lead
Problem
A group can record an objective and schedule reminders, but a long-running workflow also needs a way to leave a question for its owner without preventing other work from continuing. An operator may want the lead to revisit the objective and an operator-maintained workflow while the owner is away, then continue after the owner answers a decision request.
CCCC v0.4.47 already has group objectives, interval automation, actor Mail and tasks with waiting_on=user. Could the existing scheduler connect these pieces without introducing another scheduler or task board?
Small first step
Add an optional delivery field to the existing automation notify action: notification remains the default; mail sends an ordinary addressed Mail to eligible enabled actors under existing permissions and inbox semantics. A configured interval rule can send the lead a short reminder containing a workflow reference. The daemon does not read, validate or execute that file, and Mail does not guarantee that the lead reads it or starts a turn. Reject invalid delivery values and user recipients; preserve existing pause and disable behavior.
Keep the objective in coordination.brief.objective. For a decision, the lead can create an ordinary task with waiting_on=user, describing the question, options, recommendation and blocked work. The task is the authoritative decision record; a site-maintained summary may link to it. An answer or a reference to its message is recorded on the task, and a later pass uses the existing revision checks to update it. Other tasks can continue under their existing rules. A waiting task or answer does not authorize actions that require separate approval.
Prototype evidence and limits
A fork prototype based on v0.4.47 was exercised with isolated groups and a copied workflow file. The candidate emitted five interval Mail events, and one was read from the lead inbox. A user-waiting task and an independent active task were recorded; the installed control rejected the new Mail option but accepted its existing notification option. All captured candidate Mail events preceded the successful rule-disable operation.
No model turn or workflow-file read was demonstrated. The control's attempted notification delivery did not complete because its test group lacked a project scope. These observations do not establish delivery to a working agent, fresh context, behavior after a crash, or exactly-once scheduling.
Boundaries and questions
Work selection, approval policy, workflow contents, spend limits and any fresh-session supervisor remain site-side. Disabling a rule prevents future emissions; it does not retract queued Mail or stop an in-flight turn. A reminder count is not a token, cost or wall-time limit.
- Is an opt-in Mail delivery mode on existing automation a useful fit, or would another existing mechanism be preferable?
- What retry and duplicate behavior should be documented for interval Mail around daemon restart or uncertain writes?
- Should bounded reminder count and expiry be separate follow-up work? How should a site expose unsupported turn or spend limits?
- Would using the ordinary user-waiting task as the decision record fit the intended task workflow?
A first change could test backward-compatible notification delivery, authorized Mail routing, disabled recipients and rules, interval/restart behavior, task replay and independent work while a decision waits. Fresh isolated sessions and runtime-enforced budgets would remain separate proposals.
Thank you for the careful write-up, and for testing the prototype against an unmodified control.
Before adding a delivery option, we’d like to check whether the existing notify action already covers your case. For the goal you describe, it has a different delivery behaviour from Mail, and the tradeoff depends on what you need.
What a scheduled notify does today:
It writes one system.notify for each enabled Actor it targets (@foreman by default), addressed to that Actor’s ID. It uses the normal runtime delivery path, which can queue the notification and attempt delivery later; acceptance and failure are reported separately. How a session that is busy at that moment receives it depends on the runtime. If the lead is enabled but its managed process has exited, delivery can attempt to start it. A lead that a person stopped is disabled and is not started. Mail is deliberately different. CCCS 6.1 stores Mail in the Inbox “without immediately invoking, waking, steering, or writing to the recipient runtime”. A scheduled Mail would be written to the lead’s Inbox, but the Mail itself would not start a lead that has stopped. A running lead finds it when it reads its Inbox; Mail addressed to a named Actor can also bring a notice when notices are enabled, while Mail to a broadcast selector gets none. So for “have the lead revisit the objective while the owner is away”, notify requests a prompt, while Mail is stored for the Inbox and may lead to a notice under the existing rules.
For the decision itself, the existing pieces fit as you describe: a task with waiting_on=user can be the record. An agent can also ask the user directly with a request_reply question, with options and a recommendation that the user answers in place, while other work continues.
So our question back: in your workflow, what does the scheduled notify fail to do? For example, is the problem that the prompt reaches the lead in the middle of other work, that you need a read state you can check later, or something else? If there is a concrete gap, an opt-in Mail delivery on the existing rule is a reasonable shape. We would then scope it around recipient expansion, disabled Actors, how one-shot rules complete and restart behaviour, without promising exactly-once delivery or that the Mail is read. We’d like to understand the case before choosing between the two behaviours.
Thank you, that's a fair question, and having gone through it, the scheduled notify covers our case.
Our lead is a managed Actor that can exit between reminders. What we needed was for the reminder to reach it and to start it again if its process had exited, without reviving it if a person stopped it. From your description, notify does exactly that through the normal delivery path, and Mail would not. We don't need a read state for the reminder; the decision record is the waiting_on=user task, and request_reply for a direct question to the user fits the rest.
So there's no gap to fill here. We'll use notify, and I'm closing this. Thank you for walking through it.