feat(reply-drafts): prepare replies you owe across all channels#175
Open
yustme wants to merge 2 commits into
Open
feat(reply-drafts): prepare replies you owe across all channels#175yustme wants to merge 2 commits into
yustme wants to merge 2 commits into
Conversation
Scout now detects open conversational loops where the user owes someone a reply and prepares a ready-to-send draft into drafts/<TAG>.md. Two loop types: direct-debt (someone asked, no reply yet) and promise-answered (promised -> asked elsewhere -> answer arrived). Reviewed in /scout-work; the user always sends himself — Scout never sends or creates native drafts. - phases/core/reply-drafts.md: detection + drafting synthesis phase (mode: briefing+consolidation, runs after action-items) - templates/drafts/README.md.tmpl: draft file contract, seeded into vault - bootstrap: scaffold drafts/ + drafts/archive/, seed README - commands/scout-work.md: Reply item type (show draft, sent/edit/skip/dismiss, no send tool ever) - tests: assembly + scaffolding coverage
Email/Slack/WhatsApp draft bodies are now plain sendable text (no markdown, no headings/bullets/backticks, no HTML comments) so they look right when sent as-is; markdown stays allowed only for linear/github. Recipients/CC/subject live in frontmatter — adds a cc: field to preserve the thread's other recipients instead of dropping them or listing them inline.
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.
Scout now prepares draft replies for conversations where you owe an answer, on the background runs, so you can review them in
/scout-work(or the macOS app), lightly edit, and send them yourself. Scout never sends and never creates a native Gmail/Slack draft — a text file in the vault is the only output.What it detects
Two loop types, across every enabled channel (Gmail, Slack, Linear, GitHub, WhatsApp/Messages):
How it works
phases/core/reply-drafts.md(briefing + consolidation) — runs after the connector scans and the action-items list, verifies the debt is real (reads the thread tail, applies the cold-outreach / leave-state filters), then writes onedrafts/<TAG>.mdper loop and ensures a matching action-item row with a(reply drafted → [[drafts/<TAG>]])pointer.drafts/<TAG>.mdfrontmatter is the contract the app +/scout-workkey on:tag, channel, loop_type, to, thread_ref, subject, status, created, context_answer_ref. Status vocabulary isdraft | sent | dismissed.templates/drafts/README.md.tmpldocuments the contract and is seeded into the vault;drafts/+drafts/archive/are scaffolded on install./scout-workgains a Reply item type: it shows the full drafted text and acceptssent/edit: …/dismiss/skip. It never calls a send tool.Hard constraint
Scout only ever writes draft text and flips
status:. No sending, no native drafts — that stays the user’s action.Tests
SKILL.md(briefing + consolidation), after action-items, and is excluded fromDREAMING.md/RESEARCH.md.drafts/+drafts/archive/+drafts/README.mdare scaffolded on install.Companion
Paired with the macOS app PR (Raven-Scout/Scout) that adds a Reply Drafts section rendering these files and flipping their status.