[New_Skill] (office/gmail_handler): Gmail IMAP/SMTP skill for agent mail workflows (#208) - #291
Merged
Conversation
…workflows (ARPAHLS#208) Structured actions for recipient resolution, preview/confirm send and reply, inbox search/read, sent-folder and send-ledger search, scan cursor, and context carry-forward. Includes mocked bundle tests, gemini and demo examples, catalog docs, and empty address book template (no personal contacts).
This was referenced Aug 17, 2026
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.
Summary
Adds
office/gmail_handler: deterministic Gmail IMAP/SMTP operations for agent mail workflows (#208).The host agent owns NLU, drafting, and user confirmation. The skill owns transport, address-book resolution, preview/confirm gates, inbox search/read, sent-folder + local send-ledger lookup, scan cursor, and
contextcarry-forward across turns.Live-tested: resolve → send → search → read → reply path against a dedicated agent mailbox.
Closes #208
Type of Change
skills/skills/skillware/core/loader, env, adaptersskillware/cli.py,docs/usage/cli.mdexamples/*.py, agent loops,examples/README.mdpyproject.tomloptional extra viasync_extrasChecklist (all PRs)
Refs #208)black/flake8pass on touched pathspytest skills/office/gmail_handler/andpytest tests/passCHANGELOG.mdupdated under[Unreleased]examples/README.mdupdatedpytest tests/test_registry_docs.pypassNew skill:
office/gmail_handlerBundle and metadata
skills/office/gmail_handler/— stdlib-only (no manifestrequirements)manifest.yaml— actions,env_vars, constitution, issuercard.jsonissuer matches manifestLogic, cognition, tests
skill.py+mail.py/addressbook.py(no LLM in skill)instructions.md— agent vs skill responsibilities, context playbooktest_skill.py— mocked IMAP/SMTP (22 tests)tests/skills/office/test_gmail_handler.py— MIME/threading edge casesSkillLoader.load_skill("office/gmail_handler")succeedsDocumentation and catalog
docs/skills/gmail_handler.md+ catalog rowgmail_handler_demo.py,gemini_gmail_handler.pyagent_loops.md,api_keys.md,.env.exampleupdatedAcceptance criteria (#208)
skill.py,instructions.mdpreview_send,preview_reply,confirmedgatedata/addressbook.yaml,update_addressbook,GMAIL_ADDRESSBOOK_PATHsince_uid,mailbox_status, scan state filetest_skill.py, maintainer testsgmail_handler.md,api_keys.md, constitutiondata/addressbook.yaml(template only)Constitution and safety
GMAIL_ADDRESS+ App Password; not for personal inboxes (documented like agent wallet guidance).send/replyrequireconfirmed: trueby default.read_messagesetsuntrusted_content: true.data/.Out of scope (follow-up issues)
skillware mail …+ global config mail sectionTest plan
pytest skills/office/gmail_handler/test_skill.py tests/skills/office/test_gmail_handler.py tests/test_registry_docs.pypython examples/gmail_handler_demo.py(mocked)