Numal
All docs pages

The morning routine

One run each weekday morning, before the brief. The agent starts with get_setup, works through six steps, and ends by saying what each step did.

View as Markdown

Start: ask what to do

Call get_setup first. It returns the boards the workspace already knows, with the time of each one’s last snapshot, and what this run should do.

1. Send the tracker

For each board, call send_snapshot with every open task, plus the ones closed in the last 2 days: key, link, title, status, assignee, due date, comments, and the history of changes when the tracker gives it.

  • Up to 200 tasks per call. A bigger board goes in parts: the same snapshot id on every call, part 1, 2, 3, and final: true only on the last one.
  • Send every open task every time, not only the ones that changed. Numal finds the changes itself.
  • If a board fails to load, don’t send a partial list as final. Send nothing for that board and say what went wrong.

The tracker is only read in this step.

2. Bring new recordings

Only when the workspace lets agents bring recordings by themselves. Take the recordings whose title has one of the rule’s words, or that sit in its folder, and skip the ones Numal already has.

Call add_sync for each one with auto: true and the whole transcript, each turn on its own line with the speaker and the time, like [4:12] Dana: …. No summaries and no notes.

3. Read the syncs that wait

Call list_unread_syncs. For each sync:

  1. get_sync returns the transcript by turns, the workspace’s state and the rules of the reading. A long transcript comes in parts: ask for each one.
  2. Read the sync by those rules.
  3. Call submit_review once. Numal looks every quote up in the transcript and says what it left out and why. Fix those quotes and send the reading again.

Nothing reaches the tracker from this step.

4. Add the approved tasks

Call list_ready_tasks. For each task, search the board for its mark numal:<id> first, so nothing is added twice. Then create it with the title, description, assignee and due date as given, and call mark_added with the tracker’s key and link, or mark_failed with one sentence on what went wrong.

The agent only creates tasks here.

5. Write decisions into tasks

Call list_block_updates. In each task’s description, replace only the section “Decisions from syncs (Numal)”, add it at the end when it is missing, and delete it when remove is true. Change nothing else. Then call mark_block_written or mark_block_failed with the reason.

6. Send the calendar

Only when get_setup says calendar.wanted is true. Read the person’s calendar for the next calendar.days days, find the calls listed in calendar.calls, and send those with send_calendar, and nothing else. Send an empty list when none of them is there.

End: say what happened

The agent ends the run by saying what each step did: boards sent, recordings brought, syncs read, tasks added or failed, decisions written.