Repository navigation
feat(automations): run outcomes, calendar triggers and jitter, fan-in handoffs (#752, #753, #754) - #781
Merged
Conversation
…es its own bot (#752) Every run conversation gets bot_no_update, bot_report_failure and bot_pause. A reported failure settles a completed turn as failed with the run's reason; a no-update run settles quiet unless it changed a file or hit a refused approval; a pause applies when the run succeeds and is recorded as pausedBy on the definition. /bots folds consecutive quiet runs and names the run that paused a bot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…753) A calendar trigger fires offsetMinutes from each matching event of the owner's Google or Outlook calendar; account integrations registers a calendar source that reads events over REST with the connector's own token, no MCP process and no model turn. Recurring schedules take jitterMinutes; the delay derives from the bot id and the occurrence, so every Host fires, names and deduplicates the same run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…op as a chain (#754) A bot trigger names up to eight senders with join all or any. Every handoff records the run that started its chain; a sender that settles without handing work on, or that the join times out waiting for, is a failed input. The joined run is admitted once per chain, reads every input, and a join whose inputs all failed is one skipped run. Stopping a run refuses its chain's open handoffs and stops the chain's runs. The board card shows the latest chain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #752, closes #753, closes #754. #740 stays open for the channel event sources (WhatsApp, Telegram, Slack, Discord).
#752 — run outcomes
bot_no_update,bot_report_failure(reason) andbot_pause; the run notice names them.bot_report_failuresettlesfailedwith the reason; carried handoffs fail with it and awaitreply carries the reason.bot_no_updatemakes a succeeded runquietunless it changed a file (diff card oredit/delete/movepresentation) or hit a refused/cancelled/unavailable approval.lastRunskips quiet runs;/botsfolds consecutive quiet runs of one bot into one row.bot_pausepauses the bot only when the run succeeds and storespausedBy; the pill reads "Paused by its 08:00 run". The owner's pause/resume clears it.#753 — calendar triggers and jitter
{ kind: 'calendar', calendar?, filter: { title, attendee, hasExternalAttendee, accepted }, offsetMinutes }.CalendarSource/registerCalendarSource; account integrations registers a source that reads Google Calendar (primary) and GraphcalendarViewover REST with each connector's token — no MCP process, no model turn. Read everycalendarPollSeconds(300); the scheduler timer fires each event at its instant.jitterMinutes(1–30) on every recurring kind: deterministic delay fromsha256(botId, instant), so all Hosts agree on the run.#754 — joins and chains
bottriggerfromis a list (≤ 8) withjoin: all | anyandjoinTimeoutMinutes(60); a stored singlefromstill reads.chain. Senders that settle without handing work on, or that time out, become failed inputs; the joined run is admitted once per chain with every input named; all-failed joins record one skipped run.Agent Note:
.agents/notes/implemented/architecture/2026-11-23-bot-run-outcomes-calendar-joins.md.Checks (local, clean tree)
AVN_GATE_FAIL_FAST=1 pnpm run check:ci: 56 passed, 0 failedpnpm run test: 1440 files passed, 10 skippedpnpm run typecheck: passedNo new specs were added. Not yet verified live on web or desktop.
🤖 Generated with Claude Code