Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

What

To-dos an agent needs the person to go do, as approved in .product/approved/inbox-next-actions/ (2026-10-21, direction "In the thread"; A/B/C rejected). An agent writes an Inbox-only :::action block; the thread shows a To do card; Done / Can't do it… go to the agent right away with a 10 s Undo (as 👍 Looks good). No new section, page, strip, notification kind or tab-count change: an open to-do counts like an open question for every list rule, the notification and the question sound, and the row reads "1 to do" / "1 question, 1 to do".

How

  • Block and records (packages/core/inbox-actions.ts): first line = what to do; Where: (http(s) link → Open button, or a place in words), Run: (copy), Stopped: / Holds up: (same negative-word guard), Watching:, Replaces: (ids only). Key a- + hash8. Found with a new core findDirectiveBlocks (the scanner findQuestionBlocks now uses), so plan review's question grammar is unchanged (:::action is not a question kind; tested). Stored as question records of kind "action" (readInboxQuestionKind reads kinds fail-closed), numbered A1, A2… on their own, with additive action and action_result.
  • State: open → picked inside the Undo window → sent; closed when the agent saw it done, Mark read set it aside, or the archive closed it; superseded as questions (supersedes / Replaces: take a- keys).
  • Person: POST /api/inbox/messages/:id/actions/:key ({ outcome: "done" | "cant" | null, note? }); settleActions writes ONE person reply per asking message once the window passes, delivered by the reply machinery (wake, Send now, wait_for_reply, claims):
    Did 1 action.
    
    ## Actions you asked for
    
    1 of 1 done.
    
    ### A1. Approve the production deploy on Vercel
    Done, 3:12 PM.
    Note: …
    
    or Can't do it: <reason>. Mark read sets an open to-do aside (note lists - A1. …); Re-ask asks for questions only.
  • Agent's own done on send_message / submit_guide: validated like supersedes (invalid_done), the card reads " saw it done", nothing is sent.
  • Window: ui Viewer gains renderDirectiveBlock (a host's drawing of a non-question directive); the Inbox moves to-dos out of questions into actions as it reads a thread, so picks / Send / skip / Re-ask never meet one. ActionCard per the prototype. Push: a to-do pushes like a question, no lock-screen Done.
  • Phone contract: 7.63 in adr/implementation/inbox-mobile.md (additive wire, fail-closed kind, door route).

Model-facing instructions (the owner: "only when there's like a true blocker")

INBOX_ACTION_GUIDE (in send_message's body description and plannotator inbox --help), INBOX_DONE_DESCRIPTION (the done field), the connection's short body paragraph and done. Not in QUESTION_AUTHORING_GUIDE.

Tool size (generated plannotator_inbox entry in Pi's request shape): 7,362 → 8,223 bytes, 1,744 → 1,965 o200k tokens (+861 / +221). INBOX_TOOL_COST now 8,189 bytes ("about 8 KB, roughly 2,300 tokens"), estimated, not re-measured on real Pi. The agent tool description stays 1,736 chars (< 2,048).

Tests

  • packages/core/inbox-actions.test.ts, packages/shared/inbox/store-actions.test.ts, the op model in store.test.ts (to-do bodies; todo / settle / agentDone ops in the round trip; the thread-state model knows a to-do is never picked, skipped or re-asked)
  • packages/server/inbox-actions.test.ts (MCP send, route + guards, the exact wake text, wait_for_reply, done / invalid_done), door 7.63 in inbox-devices.test.ts
  • DOM: packages/inbox/actionCard.test.tsx (added to test.yml's DOM list)
  • e2e on the compiled binary: tests/e2e/inbox-actions.spec.ts (Chromium desktop light/dark, WebKit iPhone 15)

Not built (per the brief): the phone app's native card, a lock-screen Done.

… archive holds a Done back, supersede by kind, done only own and never over the person) plus minors and HANDOFF
… its Undo window; the result names a superseded to-do as a to-do
… action items done; the report names what stays open; the trailer and Re-ask wake name action items; 'Action items you asked for'
@backnotprop
backnotprop merged commit a6f526f into main Oct 22, 2026
32 checks passed
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