Intake
Turning chat, email and stalled work into issues, with filters, watermarks and three outcomes.
Intake¶
Intake turns signals into issues. It runs as one full daily sweep plus short incremental windows during the workday.
Sources¶
- Chat: direct and group messages to the owner, @mentions, new replies in threads the owner posted in recently, and items the owner saved for later.
- Email: mail to the owner, filtered by a sender gate.
- Shared docs: mentions and comments addressed to the owner.
- Calendar: deadline-bearing events and commitments to follow up (read only; intake never writes to the calendar).
- Tracker issues: comments on issues the owner is involved in.
- Stalled issues: Waiting past its follow-up date, In Review for more than two working days, Todo unchanged for seven days.
- Rule changes: decisions that change a project rule (pricing, eligibility, behavior, terms), collected separately and recorded in the project's rules document.
Reading is code; judging is the model¶
Sources are read by fixed scripts, not by the model making its own searches. Each run:
- Plan: compute each source's window from its own covered-through time, minus a small overlap (for example ten minutes).
- Read: a script reads each source in full for that window and writes the
raw items to a file per source, with a
completeflag. For chat: direct and group conversations with new activity, mentions, new replies in threads the owner is part of, and saved items. For email: every folder, split into smaller time ranges until each range is fully listed. For shared docs: the notification inbox, read without marking anything read. - Pre-sort: items that a rule can settle are marked by the script: the owner's own messages, bots, no-reply senders, reactions.
- List: only the remaining items, minus those an earlier run already judged, go to the model.
- Finalize: a source's covered-through time moves forward only if its
file says
complete.
Why: a model that searches for itself skips items silently (date filters, search gaps) and spends tokens on reading. A script reads the same way every time and makes gaps visible. The model only does what needs judgment.
Filters before judgment¶
Drop, before thinking about it:
- bots, automated notifications, newsletters, marketing;
- FYI messages and pure acknowledgements;
- email from senders who fail the gate: internal humans pass by default; external senders pass only with verified prior contact; no-reply and system senders never pass;
- anything already tracked (the duplicate check decides, not memory).
Then check each candidate against its raw source:
- Who is actually asking whom? A mention on a thread root does not make a later reply in that thread addressed to the owner.
- Whose words are these? A relayed view belongs to the person it came from.
- Is the decision settled? Read the whole thread; a later message may reverse the first reply.
- Is it still open? The owner may already have answered from another device.
- What is the owner's role? Write one of three on every candidate: responsible (the owner must deliver), waiting for a result (someone else delivers and the owner needs it; name the step being waited for), or informed (the owner only needs to know). An informed item creates no issue.
Each surviving candidate is written as one record: the ask in one line, who asked, who must act, the owner's role, any deadline the source states, and the source link.
Three outcomes¶
Every candidate that survives gets exactly one outcome in the same run:
- Do it: the work is whitelisted or already authorized. Do it, then show the owner the result.
- Needs the owner's judgment: write a decision card.
- Someone else owns it: track it in Waiting with a follow-up date.
Agent-created issues never sit in Todo or Backlog without one of these.
Watermarks¶
- Keep a covered-through time per source, not one global watermark.
- Never advance a source's watermark if that source was not fully read in this run.
- Do not use the creation time of the newest issue as a watermark: an issue may have come from a manual dispatch that skipped the sweep.
Guard against duplicate runs¶
Scheduled runs can be dispatched twice. Before any shared write, check for a sibling run of the same routine in the same window. If one is live, stop. If one finished, verify its output read-only and do not repeat its writes.
Coverage is not proof of absence¶
A search result is a candidate list, not the truth. Date filters in mail and chat search drop items silently; chat search misses messages that channel history returns. An empty result from a degraded source is reported as a coverage gap, not as "nothing new".