Conversation
Owner ruling: Decisions are removed from the Plannotator Inbox (and from
Workspaces). Gone: the Decisions page and sidebar row, the decision tag,
switch, card and Settled line on question cards, the decision routes
(GET /api/inbox/decisions, POST /api/inbox/messages/:id/decision, retire,
replace), decisions_waiting, decisions/decisions_refused on thread reads and
Sends, the question wire's decision fields, the record_decision and
list_decisions MCP tools (and the agent tool's actions), the search group, and
the phone door rows.
Kept for old data: an older store's decisions.jsonl stays on disk untouched
and is never read; only its highest seq counts, so a seq is never reused.
Question records an older Inbox wrote may keep their decision_* fields;
nothing reads them.
Core: parseQuestionBlock / indexQuestionBlocks take an optional
{ decisionLines } (default true, unchanged); ui Viewer gains
questionDecisionLines (default true). The Inbox passes false, so an older
agent's Decision: line shows as context.
…above it
With { decisionLines: false } a Decision: line no longer reset the open
choice, so a line right under a plain-bullet choice folded into its label
("SQLite Decision: when answered" against a stored "SQLite") and the Inbox
refused the window's pick with 422. A line the default parse reads now ends
the choice, bullet or recommendation exactly as before and is kept as
context, so prompt, key and choices always equal the default parse's. The
default parse is unchanged.
Docs: decisions.jsonl is kept only so sequence numbers are never reused.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Owner ruling (Michael Ramos): "I'd like to have it fully removed from both." Decisions come out of the Plannotator Inbox here. Workspaces is handled in a separate change.
What was removed
#decisions,&decision=), its sidebar row and count,DecisionsProjectPicker,DecisionCard, the "Settled: …" line in threads, the decision tag and switch on question cards, the decision stacking (stack.decision), and their CSS and tests. An old#decisions=…link opens the list.packages/server/inbox-decisions.tsand its tests;GET /api/inbox/decisions,POST /api/inbox/messages/:id/decision, retire and replace;recordDecisionsForReply;decisions_waitingon the list model;decisionson the thread read;decisionsanddecisions_refusedon a Send's answer.InboxDecision*types, thedecisionrecord kind,writeDecision,writeQuestionDecision,decisionsOf,allDecisions, and the question fieldsdecision_on_answer,decision_id,decision_recording,decision_draft(records and wire).draftInboxDecision*,inboxDecisionRecordingandinboxDecisionWordsare gone frominbox-questions.ts.list_decisionsandrecord_decision.INBOX_MCP_TOOLS, the server instructions,INBOX_TOOL_ACTIONS, the mod's copy of the contract, the shim's filled-tool sets, the help guide, and the mod's bundled tool list are updated. The bundled list was regenerated withscripts/sync-mod-inbox-tools.ts.from=medecision rule (core types, index, palette).messages/:id/decisionanddecisionsallowlist rows. Both now answer404 device_route_not_found.Decision: when answeredis no longer taught anywhere: the help guide's Inbox-only lines and example, the MCP instructions, and the skill.QUESTION_AUTHORING_GUIDEnever had it and is unchanged.scripts/inbox-sim.ts,inbox-worst-case.ts,inbox-search-bench.ts, andtests/e2e/inbox-decisions.spec.ts(deleted). The other specs that drew decisions are updated. The seen-on-sight phone sheet case now uses the reply box's annotations list.adr/implementation/inbox-mobile.md,inbox-thread-state.md, the marketing reference and the Inbox landing page. On the landing page the decision beat and its 3.1 screenshots are gone. The Pi README is updated too.What was kept for old data
projects/<key>/decisions.jsonlstays on disk untouched. It is never read and never rewritten, and a thread deletion leaves it alone. Only its highest seq is read (legacySeqFloor), so a new line never reuses a seq a decision line holds. Without that, a client's cursor could skip a line.decision_*fields. Nothing reads them, and the wire never carries them.packages/shared/inbox/store-legacy-decisions.test.tsproves all of this. It covers a store with a decisions file and decision-carrying question records: it loads, writes the next line above the decisions' seq, leaves the file byte for byte, and keeps the wire clean.Core and ui (for the Workspaces side)
The changes are additive only, and every default is unchanged:
@plannotator/core/question-block:parseQuestionBlock(kind, body, options?)andindexQuestionBlocks(blocks, options?)take a new optional{ decisionLines?: boolean }. The defaulttrueis today's behaviour. Withfalse, aDecision:line is ordinary context, and the result never carriesdecisionOnAnswerordecision. A line the default parse reads still ends the choice, bullet or recommendation above it, so prompt, key, numbering and choices are always the default parse's: an answer stored against one parse matches the other (fixed in the second commit after review;packages/server/inbox-legacy-decision-line.test.tsproves it through the real server).ParsedQuestion.decisionOnAnswer,ParsedQuestion.decisionandQuestionDecisionLinkare untouched.@plannotator/uiViewer: a new optionalquestionDecisionLinesprop, defaulttrue.falsepasses the option to the cards. Every existing decision seam (questionDecisionRecording,questionDecisionScope,onToggleQuestionDecisionRecording,onOpenQuestionDecision,questionDecisionLocked) is unchanged.falsein the thread, the attached-file viewer and the phone surface. The server'sparseInboxQuestionBlocksdoes the same. An older agent'sDecision: when answeredline therefore shows as context, with no tag or row.@plannotator/core/inbox-typesandinbox-searchdropped their decision types and fields. Workspaces does not import these modules today; I checked a local Workspaces checkout.Phone contract (
adr/implementation/inbox-mobile.md)404 device_route_not_found.decisions_waitingon the list,decisionson a thread read,decisionsanddecisions_refusedon a Send, and the questions'decision_on_answer,decision_id,decision_recordinganddecision_draft.packages/shared/inbox/fixtures/thread-state/v1) no longer carrycounts.decisions_waiting. The events and every other expectation are unchanged. They were regenerated withPLANNOTATOR_INBOX_TRACES=write, and the README says the field is gone.decisionsWaitinganddecision_recordingtoday. They need to drop them.Agent tool cost
The
plannotator_inboxentry loses the two actions. The description is now 1,691 characters (it was 1,969). Comparing the generated tool JSON before and after, the entry is 668 bytes smaller.INBOX_TOOL_COSTis set to 6,390 bytes, about 1,800 tokens (the measured 7,058 less 668). The window now says "about 6 KB, roughly 1,800 tokens". Not re-measured on the real Pi and OpenCode hosts: those cost tests run the real agent CLIs, which I did not run. They allow 5% drift.Tests run
bun run typecheck: clean.bun test packages/core: 527 pass.bun test packages/shared: 1760 pass, which includes the thread-state model, the regenerated trace fixtures and the new legacy test.bun test packages/server/inbox*: 549 pass (45 files).apps/hook/serverinbox CLI, help and skill-freshness tests: 49 pass.apps/hook/hooks/mod: 173 pass, which includesinbox.test.tsagainst a real Inbox.test.yml's list,DOM_TESTS=1 --isolate): 450 pass. The ui question and Viewer DOM tests: 191 pass, which includes a newquestionDecisionLinestest.bun test packages/ui: pass.tests/entry-assets.test.ts,never-touch-the-real-inbox,no-browser-sentinel,package-bunfigand the DOM allowlist guard: pass.bun run build:hook(with the review build first): builds. The guides.show viewer manifest is in sync.inbox.spec.ts,inbox-mobile.spec.ts,inbox-search.spec.ts,inbox-replaced.spec.ts,inbox-thread-folding.spec.ts,inbox-seen-on-sight.spec.ts,inbox-worst-case.spec.ts,notifications.spec.ts,inbox-soft-polish.spec.ts,inbox-tooltips.spec.ts,inbox-sidebar.spec.tsandsurface.spec.ts.apps/hook/tests/register.test.ts(theclaude plugin testharness, edited to usesubmit_guideas its optional tool),apps/opencode-plugin/inbox-v2.test.ts(edited to useread_thread), and the Pi and OpenCode tool-cost tests.Not changed
the-age-of-the-inbox.md, dated 2026-10-07) still describes recording a decision, as it shipped.