Decisions store a team's answers to open questions and accepted comments as attributed records separate from document prose. Use a Decision for a choice people need to make, such as "How should onboarding work?" Use repository reading or /research for factual questions such as "When does onboarding run?"
A decision can be opened before anyone knows all the options. When someone or the Planner raises a decision, it appears as an open card in the Decisions tab and beside the relevant section of the document. Anyone with write access can collaborate on its working answer. Decisions come in two kinds:
- Choice decisions list selectable options (single-choice or multi-choice) and can optionally include a comparison table of criteria.
- Written decisions provide a shared text field for a free-form answer.
Click Save to settle a decision. On a phone, the shared Save bar submits every answer you edited. Chopin records who settled it and when. A draft answer, a Planner recommendation, or casual agreement in Chat never settles a decision on its own.
Click Reopen to reconsider a settled decision. The previous answer stays visible in the decision's history while the team works on a new one. Click Discard to set a decision aside while keeping its history intact. Questions keep their original wording so reconsidering an answer never quietly changes what was asked.
The Planner has three tools for creating decisions:
open_decisionsopens a batch of up to 10 choice or written decisions beside provisional document passages and returns immediately. Each card has a stable key so retries reuse the existing card rather than creating duplicates. If the same key is reused with a different question, type, options, or passages, the batch is rejected so unrelated questions never collide. Discarded cards are never recreated under the same key. If the document changed since the Planner last read it and a target paragraph was rewritten or duplicated, Chopin asks the Planner to re-read the document rather than placing a card next to the wrong paragraph. Stopping the Planner never removes cards that were already saved.open_decisioncreates one open written decision and returns immediately. If it names a section heading or paragraph, the card anchors there; otherwise (or if that passage changed), it anchors next to the document's first section. It is meant for general questions that do not need an automated prose update.askpauses the Planner turn and waits for a person to answer a choice or written question (response: "text"with emptyoptionsandmultiple: false).
Saving a decision can trigger two follow-up actions:
- Updating the document prose. If the decision is tied to specific document passages, Chopin queues a background update to weave the saved answer into those passages while preserving answers from any other decisions sharing the same passage. If the passage was deleted or became ambiguous, the update fails cleanly instead of guessing where to write.
- Notifying the Planner. When a decision the Planner left open is saved, Chopin hands the answer to a Planner turn so the Planner can act on it. Answers saved within 5 seconds of each other (up to 30 seconds after the first) batch into one Planner turn, and Chat displays a short notice such as
@ana answered 3 decisions. Answers wait safely in storage until an authorized Planner is available (for example after a restart or reconnect) and are never delivered twice.- Caller authority: A turn carrying browser Saves runs as the request of whoever saved the earliest still-standing answer. That lets the Planner create documents or call
orchestrateunder that person's write access. - No delegated authority: A turn carrying an agent-submitted answer (via MCP
answer_decisionororchestrate), delivered after a restart, or delivered more than an hour after the Save runs with no person's authority (saver identity stays in memory for at most one hour). Ask the Planner in Chat instead.
- Caller authority: A turn carrying browser Saves runs as the request of whoever saved the earliest still-standing answer. That lets the Planner create documents or call
If the Planner rewrites a section directly, it uses anchor_plan to re-link existing decisions to the new passage (up to 8 blocks per passage) so future updates still know where to write. When an external coding agent replaces the whole document via MCP update_document, Planner cards automatically stay linked to their surviving block (or the nearest heading above it if deleted), and any answered decision still reaches the Planner as a turn.
Choice options can include a preview: a visual Markdown block shown beneath the option's label and description. Previews support uploaded images, Mermaid diagrams, compact tables, or short code snippets (up to 16,000 characters). The Planner's ask, open_decision, and open_decisions tools all support option previews, as do remote Planners and Atomic's ask_user_question.
- To attach an image, the Planner uploads it with
upload_plan_image(up to 1 MiB, with required alternative text) and inserts the returned Markdown into the preview. Only people with read access to the document can view uploaded images. - Previews render everywhere a decision appears: the Decisions tab, inline document cards, mobile sheets, settled cards, and decision pages. Clicking an image zooms it without accidentally selecting the option.
- Options remain accessible radio controls, with each preview grouped separately and preserving image alternative text.
You can collapse any card in a document's Decisions tab to a compact summary showing each question and its chosen answer—or Unanswered, Discarded, or Expired if unresolved.
- Click Collapse decision in an open card's header to collapse it, or click a collapsed card to expand it again.
- Use Collapse all and Expand all above the list to toggle every card at once; Chopin remembers your choice in that browser. When all open cards are collapsed, they display as a compact list instead of stacked cards.
- Following a link to a specific decision (such as from Decisions inbox search) expands that card even when others stay collapsed.
- Collapsing affects only your browser view; collaborators and the document stay unchanged.
Written and choice decisions share the same real-time editing and persistence rules. Creating a decision saves the record, shared draft, and document link before showing it to collaborators. Saving checks that you are submitting the current revision so stale browser tabs cannot overwrite newer edits. Reconnecting restores the shared draft, and reopening or discarding preserves the full answer history.
Every open decision in a top-level document has a Research menu with three ways to gather evidence before deciding:
- Research the web: starts a background web research task focused on an optional prompt you enter.
- Investigate the codebase: runs an investigation on your connected machine (disabled with a reason if no machine is online).
- Ask someone: pings another team member to share their take on the decision.
While research or an investigation is running, the button switches to a Researching or Investigating status badge with a Stop option while Save remains usable. Completed results are saved as findings on the decision (up to 20 per decision) and accessible from the N findings button in the card footer.
- Only the person who started a finding (or asked a teammate) can stop it.
- When a teammate is asked, the card footer shows "Waiting for " and Chat notifies them. Only the asked person can submit their reply, optionally tagged as Supports or Objects under Takes on the decision page.
- Completed findings are automatically included as context when Chopin drafts the document update after the decision is settled.
- When a decision reaches 20 findings, the oldest completed research or investigation drops to make room while active work and teammate takes are always kept.
Click Expand decision on any decision in a top-level document to open it as its own full-page child document for deeper discussion and notes. Re-clicking it or having a teammate expand the same decision always opens the same page.
The page displays, from top to bottom:
- A status bar showing Open, Exploring, Waiting for, or Settled (with avatars and dates), along with Research, Save (or Reopen), and a ⋯ menu for copying the link or discarding the decision.
- The question and full-width answer options or text field (read-only once settled).
- Findings (shown once research or investigations exist), expanded with summaries, source links, and branches.
- Takes (shown when teammates were asked).
- Notes, a shared space for extra context or scratchpad thinking.
Decisions inside a child document cannot be expanded into another nested page.
Every settled decision can record a short why: one plain sentence (up to 300 characters) explaining the rationale behind the choice. Any writer can add, edit, or clear it at any time after settling.
Chopin also drafts a why sentence automatically when a decision is settled, based on the question, chosen answer, findings, and teammate takes (whenever an authorized Planner is available). If a person edits or clears the why, Chopin never overwrites their choice with a later draft. Reopening the decision moves that why into the previous answer's history entry so the next settlement gets its own explanation.
Choice decisions can include criteria: up to five named qualities (such as "New device", "No new storage", or "Easy reset", up to 40 characters each) displayed as a comparison matrix. Criteria are columns, options are rows, and collaborators can mark each cell Yes, Partly, or No (or leave it blank).
- The Planner can propose criteria when calling
ask, and any writer can add new criteria while a choice decision is open (up to 5 total, no duplicate names). Editing or removing an existing criterion is not supported; open a new decision instead. - Cell marks are shared live across collaborators just like draft answers, and are optional so a partially filled matrix can still be saved.
- The Planner never fills in or suggests cell marks; judging options against criteria is strictly a human decision.
- When the decision is settled, the marked table is saved permanently with the answer and included as context in the follow-up prose update. Reopening archives the old matrix in history and starts a fresh blank table.
External coding agents using /mcp (and the orchestrate tool's decisions and answer actions) read and settle decisions using the same rules as the browser:
read_documentacceptsincludeDecisions,decisionStatus("all", one status, or a list of statuses), anddecisionOrigin("planner","conversation", or"human"). It returns matching decisions (including current revision, whether someone has an unsaved draft, settled answers, and history count) alongside document-wide counts.answer_decisionaccepts a decision ID (or question ID), the open revision, a uniqueidempotencyKey, and the answer (optionIds,text, or per-questionanswers). It refuses to overwrite an unsaved human draft (draft-in-progress), prevents duplicate submissions when retried with the same key, and triggers the same Planner follow-up as clicking Save in the browser. See Answering decisions withanswer_decision.
The global Decisions tab gathers every open decision card across your sidebar projects (including child documents, excluding archived documents) into one list, newest asked first. It counts cards rather than individual questions, checks GitHub read access on every request, and tracks per-person seen state (reopened cards become new again). The list updates live over /ws/sidebar.
- Saving from the inbox: Follows the same rules as Save in a document: write access required, active document, revision-checked, and never overwriting an unsaved human draft in the document. If two people save at once, the first wins: in the document the card updates to the winning answer and who saved it, while in the inbox the card leaves the list with Answered elsewhere. A saved inbox answer triggers the same Planner turn, prose write-up, and rationale draft under your sign-in, holding the document loaded briefly (up to 10 minutes) while work runs. Reading a card in the inbox joins nothing and starts no work. To discard a card or add an option, open it in its document.
- Past decisions: Listed below the open decisions, newest asked first, with Show more past decisions for pagination. Each row shows the chosen answer (or Discarded, Cancelled, or Expired) and opens read-only in the inbox with Open in document (K and J step through open decisions only). Cancelled cards leave their document, so the inbox shows their questions and who cancelled them. Answering an open decision moves it from Open to Past.
- Searching decisions: Search decisions narrows both open and past decisions as you type and queries the server for older settled decisions matching every word (up to 10 words and 200 characters) across title, first question, first answer, project, or document. Use
⌘K/Ctrl+Kfor general document search. See Repository channels for the HTTP routes.
When CONVERSATION_PLAN=on is set on the server (default off), Chopin watches ordinary Chat messages to raise sourced decision cards and attach options, reasons, constraints, support, or objections—without settling anything automatically. Startup requires a helper model (DECISIONS_MODEL, or JEV_API_KEY for typesafe/jev-latest, or OPENAI_API_KEY for openai-decisions/gpt-6-luna; DECISIONS_TIMEOUT_MS defaults to 30,000 ms, range 100–60,000 ms). CONVERSATION_PLAN is independent of AGENT=off and runs separately from research offers.
Saved Chat message
→ durable analysis queue (outside the document lock)
→ classification of bounded, exact source spans
→ policy validates attribution, target, and permitted transitions
→ conversation events and pending effects commit to the channel sidecar
→ effects create/update cards and enqueue scoped Planner work
Human Save
→ decision record, document projection, and pending work commit
→ card action is mirrored into conversation history
→ scoped Planner writes prose for that saved decision generation
Before committing a classification result, processing rechecks affected conversation and card state so a stale result never overwrites an intervening human choice. Failed analysis can be retried; uncertain classification leaves a message unapplied. All durable state for decision analysis, research analysis, pending effects, mirrored card actions, and scoped Planner jobs lives in the channel's versioned sidecar in PostgreSQL (see Storage and Architecture).
| Responsibility | Entry points |
|---|---|
| Classifier transport and config | jev.ts, config.ts |
| Source spans, interpretation and policy | quotes.ts, interpret.ts, policy.ts |
| Accepted events, replay and corrections | domain.ts, events.ts, state-restoration.ts |
| Processing, effects and card mirroring | runtime.ts, service.ts, effects.ts, card-mirror-runner.ts |
| Decision records and Save | records.ts, service-submit.ts, card-actions.ts |
| Scoped Planner work | planner-jobs.ts, job-prompts.ts, job-scope.ts |
| Persistence and wire contracts | plan/service.ts, conversation-plan.d.ts |
| Chat and evidence UI | room-workspace.tsx, decision-entry.tsx, evidence-popover.tsx, analysis-overview.tsx |
| Research consent and execution | processor-research-consent.ts, accepted-research.ts, research/service.ts |
- Records own decisions: Classifier suggestions and inferred agreement are advisory; saving always requires an authorized human action, keeping stable option IDs, previous answers, and attribution across reopen, discard, and retry.
- Exact source evidence: Quoted spans reference offsets in saved Chat messages; generated labels or prose must never masquerade as a participant's exact words.
- Commit before publishing: Fenced commits precede broadcasts; failed Saves retain their draft for retry, and card mirroring never lets stale inference override a committed card action.
- Scoped Planner authorization: Background heading, refinement, suggestion, and saved-prose jobs use the active Planner owner's repository authorization with scoped tools; restarts do not replay interrupted tool calls.
- Research consent stays separate from publication: Accepted briefs and option snapshots survive retries, authorization rechecks before execution, and completed reports publish atomically as child documents (see Background jobs).
- Known limits: Multi-step Planner refinement can leave earlier durable edits behind if interrupted (retrying does not make a whole semantic edit atomic). Capacity guards do not rewrite oversubscribed historical state, useful discussion can remain unapplied, and deterministic fixture suites verify mechanics rather than live model semantic quality. Real browser checks (
e2e/source/playwright.config.tsandbun run e2e) remain required for shared drafts, focus, and anchor geometry.