Registry Mirror
Skip to content

Conversation

@backnotprop

@backnotprop backnotprop commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

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

  • Window: the Decisions page (#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.
  • Server: packages/server/inbox-decisions.ts and its tests; GET /api/inbox/decisions, POST /api/inbox/messages/:id/decision, retire and replace; recordDecisionsForReply; decisions_waiting on the list model; decisions on the thread read; decisions and decisions_refused on a Send's answer.
  • Store and core types: InboxDecision* types, the decision record kind, writeDecision, writeQuestionDecision, decisionsOf, allDecisions, and the question fields decision_on_answer, decision_id, decision_recording, decision_draft (records and wire). draftInboxDecision*, inboxDecisionRecording and inboxDecisionWords are gone from inbox-questions.ts.
  • MCP and agent tool: list_decisions and record_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 with scripts/sync-mod-inbox-tools.ts.
  • Search: the Decisions group, decision documents, and the from=me decision rule (core types, index, palette).
  • Phone door: the messages/:id/decision and decisions allowlist rows. Both now answer 404 device_route_not_found.
  • Agent teaching: Decision: when answered is no longer taught anywhere: the help guide's Inbox-only lines and example, the MCP instructions, and the skill. QUESTION_AUTHORING_GUIDE never had it and is unchanged.
  • Scripts and tests: scripts/inbox-sim.ts, inbox-worst-case.ts, inbox-search-bench.ts, and tests/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.
  • Docs: CLAUDE.md/AGENTS.md (the Decisions section is replaced by a short "removed" note, and every other mention is updated), 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

  • An older store's projects/<key>/decisions.jsonl stays 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.
  • Question records an older Inbox wrote may keep their decision_* fields. Nothing reads them, and the wire never carries them.
  • Storage in Settings still counts the old file's bytes.
  • packages/shared/inbox/store-legacy-decisions.test.ts proves 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?) and indexQuestionBlocks(blocks, options?) take a new optional { decisionLines?: boolean }. The default true is today's behaviour. With false, a Decision: line is ordinary context, and the result never carries decisionOnAnswer or decision. 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.ts proves it through the real server). ParsedQuestion.decisionOnAnswer, ParsedQuestion.decision and QuestionDecisionLink are untouched.
  • @plannotator/ui Viewer: a new optional questionDecisionLines prop, default true. false passes the option to the cards. Every existing decision seam (questionDecisionRecording, questionDecisionScope, onToggleQuestionDecisionRecording, onOpenQuestionDecision, questionDecisionLocked) is unchanged.
  • The Inbox passes false in the thread, the attached-file viewer and the phone surface. The server's parseInboxQuestionBlocks does the same. An older agent's Decision: when answered line therefore shows as context, with no tag or row.
  • @plannotator/core/inbox-types and inbox-search dropped 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)

  • 7.21 (the decision switch) and 7.22 (a project's decisions) are marked removed. They answer 404 device_route_not_found.
  • 7.54 and 7.55 (retire, replace) will not be built.
  • These fields left the wire: decisions_waiting on the list, decisions on a thread read, decisions and decisions_refused on a Send, and the questions' decision_on_answer, decision_id, decision_recording and decision_draft.
  • The thread-state trace fixtures (packages/shared/inbox/fixtures/thread-state/v1) no longer carry counts.decisions_waiting. The events and every other expectation are unchanged. They were regenerated with PLANNOTATOR_INBOX_TRACES=write, and the README says the field is gone.
  • The iOS and Android kits read decisionsWaiting and decision_recording today. They need to drop them.

Agent tool cost

The plannotator_inbox entry 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_COST is 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/server inbox CLI, help and skill-freshness tests: 49 pass. apps/hook/hooks/mod: 173 pass, which includes inbox.test.ts against a real Inbox.
  • Inbox DOM tests (the 54 files in test.yml's list, DOM_TESTS=1 --isolate): 450 pass. The ui question and Viewer DOM tests: 191 pass, which includes a new questionDecisionLines test. bun test packages/ui: pass.
  • tests/entry-assets.test.ts, never-touch-the-real-inbox, no-browser-sentinel, package-bunfig and the DOM allowlist guard: pass.
  • bun run build:hook (with the review build first): builds. The guides.show viewer manifest is in sync.
  • Playwright on a freshly compiled binary passed 141 tests. The specs: 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.ts and surface.spec.ts.
  • Not run (they need real agent CLIs): apps/hook/tests/register.test.ts (the claude plugin test harness, edited to use submit_guide as its optional tool), apps/opencode-plugin/inbox-v2.test.ts (edited to use read_thread), and the Pi and OpenCode tool-cost tests.

Not changed

  • The launch blog post (the-age-of-the-inbox.md, dated 2026-10-07) still describes recording a decision, as it shipped.
  • Other marketing screenshots taken before this change still show the old sidebar's Decisions row.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant