Repository navigation
feat(mcp): agents create and complete tasks and set Remind Me under ;write - #84
Merged
Merged
Conversation
Plan 0012's Phase 3 (ADR-0042). thread.awaitingReply answers the threads waiting on the user: the newest message, past drafts and what is only in Drafts, Trash or Junk, is from someone else to one of its account's identities in To, from no list or no-reply sender, not answered, muted or blocked, and in an inbox. thread.awaitingOthers answers the user's own mail with no reply since. Both put VIPs first, then the newest, take a window of days, and keep an agent to its scope. store.NewestMessages finds each thread's newest eligible message in one query over the window. mailctl waiting prints both. /mcp/mail gains threads_awaiting_reply and threads_awaiting_others, with time_zone for their dates. A test per rule and boundary, a Gmail INBOX label among them; the tools and their limits through kittest and the SDK client. On 50,000 mailgen messages each method answers in p95 under 70 ms at 90 days. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…write Plan 0012's writes (ADR-0042). tasks.create, tasks.update and message.remind open to agents whose scope has ;write. The engine keeps them to the scope: another account's task list, parent task, task or message is notFound, and a new task without a list goes to the default list of the first account the scope reaches. /mcp/mail gains create_task, complete_task (which reopens with completed false) and remind_me, with their limits: a title of 1 to 1,024 bytes, notes up to 32 KiB, a reminder after now and within 365 days. No tool writes an event, under any scope; the server's instructions say so. The spec's PIM section, plan 0012, the roadmap and AGENTS.md now say Phases 1 to 4 are built; Phase 5's live check waits on lodge's agent socket. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 task done
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.
Plan 0012's writes, and the end of its build (M8.5, ADR-0042). Agents with
;writecan create and complete tasks and set Remind Me. Nothing writes an event.This PR is based on #83, which is based on #82, and contains both PRs' commits. Merge #82, then #83, then this one. Its own commit is 62392da.
What changes
The IDL opens
tasks.create,tasks.updateandmessage.remindto agents, withscope: write.The engine keeps these writes in the scope:
notFound;tasks.createwithout a list picks the default list of the first account the scope reaches. The test checks this underaccount=B, with account A first.New write tools, all
destructiveHintfalse and offered only with;write:create_tasktitle1 to 1,024 bytes, more than spaces;notesup to 32 KiB;dueYYYY-MM-DD;list_idoptionalcomplete_taskcompleted: falsereopens itremind_meatatis RFC 3339 with an offset, after now and at most 365 days aheadcalendar.*writes returnmethodNotFoundunderaccount=*;write;send.specs/lodge-app.md: the PIM section is now marked built, the Methods and callers table includes these methods, and;write's meaning is updated;Tests
internal/lodge/mcp_pim_write_test.go, throughkittestand the SDK client:;writeall three methods returnmethodNotFound; underaccount=B;write, B's own data works and A's list, parent task, task and message arenotFound, and A's task and message are left unchanged.;write. Under;write:create_task"Call Iris back", due Friday, lands in Tasks A and shows inlist_tasks;complete_taskcompletes it and reopens it;remind_mesets a reminder and clears it;titleof 1 and 1,024 bytes passes; empty, spaces only and 1,025 bytes fail;notesof 32 KiB passes, one byte more fails;remind_me365 days ahead passes; one second past that, now, a second ago, and a time with no offset all fail.The test seed now stores real VTODO sources, so updates patch them as they would on a server. It also gives the seed a fixed clock, so reminder times don't drift with the real date.
Gates
On this branch, which contains the whole chain:
make checkandmake build-windowspass;make ui-check(1,327 tests),make app-testandmake app-buildpass.🤖 Generated with Claude Code