Structured decision answer on an ordinary task (question/options + recorded answer)
The Web UI already supports recording a durable decision via Coordination log "Add decision" with a related-task selector, and notes/outcomes can carry conclusions. The remaining gap is structured: an ordinary task has no question/options editor and no separate "Record decision" action that binds a human's answer (choice + explanation + author + time) to that task in a machine-readable field.
Proposed: optional decision_request (question + options) and decision (choice, text, by, at) on an ordinary task, plus a guarded task.decide operation that records the answer without changing task status or waiting_on. Recording is user-only under existing transport trust; no acceptance engine, quorum, veto, or closure gate. Answer and request remain immutable after recording; correction via new note or new task. No task completion semantics are attached.
Thank you to the maintainer for the #162 discussion, which drew the line this proposal stays inside. We will not ask cccc to implement acceptance, quorum, veto or closure gates in core.
How we checked
On our staging instance (cccc 0.4.44; KVM guest, 8 vCPU Intel Skylake, 15 GiB RAM, Debian 13):
- Context → Coordination log already records task-linked decisions. It held two real saved decisions, each a plain note with no task move. That part exists, and we are not asking for it.
- The task editor has status, notes/outcome, assignment, checklist and budget, but no question/options editor and no separate "Record decision" action.
- The task response has no structured decision fields. That narrow gap is the whole proposal.
Thank you for separating this from the acceptance mechanism in #162. We understand that the request is for a machine-readable question and recorded answer, not merely another place for free-text conclusions.
Before committing to a new task primitive, could you walk us through one concrete example: who creates the question/options, what consumes the recorded answer, and what that consumer does next? Please also explain what the existing task notes, outcomes, or messages cannot express for that workflow.
Task-linked Coordination notes currently have bounded retention; they are not a per-task decision archive. That is a real limitation, although preserving older notes and binding a structured answer to options are different requirements.
Our hesitation is about adding a persisted task contract and its correction behaviour, not about acceptance policy. Your proposal allows correction by a new note or task; understanding how the consumer handles that would help us assess the tradeoff.
Once the workflow is clear, we can assess the smallest useful addition. For now, please hold off on implementation while we settle the requirement.
Thank you for asking for a concrete workflow, and for adding structured choice questions and answers to messages. We checked the new feature first: it covers the interactive question, offered options and a structured answer linked to the request event. It does not by itself give an ordinary task a typed decision field or a task-to-answer and correction history, so it overlaps with our request but does not establish the whole task-level contract.
One real example is an alert-routing change. A coordinator asked which route to use for alerts from a staging service to an orchestration group. The question was recorded on a ruling card; the owner chose the option using a connection plus notifier fields, and the answer was recorded with its source. The implementation was left as separate reviewed follow-up work, rather than treating the decision as deployment.
In our board workflow, a coordinator creates a ruling with the question, options, recommendation and dependent work. The owner makes the choice; an authorized operator records the choice, explanation and source. Our external board journal is the consumer: on a later tick it processes the recorded answer and configured propagation targets, and releases dependent work only after those targets have been applied. The board owns that gate and its retry behavior; we are not asking CCCC to complete tasks or decide workflow policy.
Notes and outcomes can express the decision as text, and the new message feature can record the structured choice. What they do not provide as an ordinary-task contract is a durable, directly discoverable association between that task, the offered options, the applicable answer and a later correction. We currently carry the association in our own journal and card convention; a later reader must otherwise interpret those conventions and decide which answer supersedes which. That is not a claim that the new message answer lacks structure or that CCCC cannot store the text.
We can explore retaining the task ID, request-event ID and answer-event ID in our own journal and using the new message feature for the interaction. For corrections, our proposed external policy would create a new linked request and answer that explicitly supersede the earlier decision; we have not established that correction path as implemented. Would that approach fit the intended message contract, or is a small task-linked observation useful? We will hold implementation while the requirement is discussed.
Thank you for the concrete workflow. It makes the boundary clear, and we agree that deciding when dependent work is released belongs to your board.
Your approach fits the message contract, and the message records can carry more of the association than your journal alone:
- Link the request to its task. A question message can also carry
refs, and the standard defines a task reference,{"kind": "task_ref", "task_id": "..."}. Itstask_idmust be the ID of a CCCC task in the same Group, not an ID from your board; the daemon stores references as sent and does not check this. With that ID, the task, the question and its options are linked in the Group's ledger. - The answer names its request. The answer is the user's reply. Its
reply_tois the request's event ID, and itsanswerfield holds either the chosen option ID or the user's own words. The user's first reply closes the request, even an ordinary reply without ananswerfield, and so does the sender cancelling it. The in-place answer operation refuses a closed request, so a recorded answer never changes; ordinary replies can still follow. - Corrections. A correction is therefore a new question. It can carry the same task reference and name the earlier request in its text. CCCC gives no meaning to one answer superseding another; as you proposed, that rule belongs in your journal (for example, the latest answered request for a task wins).
Three constraints to plan around:
- A question is a new
request_replymessage touseralone, from a sender other than the user. Replies, and messages to another Group or instance, cannot carry one. useris the Group's shared human audience: the first answer closes the request for everyone with access to the Group, and the record showsuser, not which person answered. If your journal needs the owner's identity, record it there.- An answer is one option or free text, not both. An explanation or source can follow as an ordinary reply to the same request, or go in the task's notes.
Given this, we do not plan to add a task-level decision field for now. If you try this and find a case these records cannot express, please describe it here and we will look again.
The question and reference formats are in docs/standards/CCCS_V1.md, under "Questions to the user" and ReferenceV1.
Thank you for the detailed walkthrough. Our case is covered by request_reply questions that carry a CCCC task_ref, answers bound through reply_to, and corrections asked as new questions. As you suggested, the supersede rule and the owner's identity stay in our journal. Closing; we'll reopen with a concrete case if these records can't express one.