Repository navigation
feat(platform): one template catalog, general syncs, no default automations - #4988
Merged
Merged
Conversation
DataTable took an `action` in its empty state and never showed it, so an empty list could not offer the step that fills it. The empty state now renders the caller's action under its description; a list emptied by a search still shows none.
NumberStepper was fixed at w-10 and cut a 30000 or a 100000 off; it is now as wide as the longest number between its min and max. A host that passes onOutOfRange keeps a typed number outside the range in the field, on blur and on Enter, and is told about it, so a form can show the error instead of quietly saving a clamped value; without it the field clamps as before. It also takes aria-invalid from Field.
BrandIcon renders a product's own logo by its slug — GitHub, GlitchTip, Gmail, Outlook, an IMAP/SMTP mail server, Slack, Google Drive, OneDrive, SharePoint, Microsoft and Shopify — on a tile that keeps it readable in light and dark, with a lucide fallback for anything else. GlitchTip, the mail server and Slack get icon components of their own; the logo is decorative, as the product's name always stands beside it. The design system guide shows it under Foundations › Icons (box DOCS-28).
A forEach step failed at its first failed item, and its output was lost with it: one fumbled draft reply nulled a whole triage, one unreadable pull request ended a review. A step may now declare `onItemError: continue`: a failed item is recorded as failed, its entry in the output is null and the next item runs; the step fails, and its onError decides, only when every item failed, so a broken credential or a missing model still ends the run and counts toward a schedule's failure pause. A stop, a time limit, a shutdown, a write that may already have happened and the run's execution limit are never an item's failure. Both executors apply the same rule and record the same thing (a parity suite checks it); the failed items travel in the run's cursor across a hand-off. Documents without the field run exactly as before. The validator accepts the field only on a forEach step (ONITEMERROR_INVALID), and typing marks the step's items nullable. Rule AUTO-R70.
A scheduled automation that carries on where its last run stopped — a digest window, an issue triage's last look at each repository — had nowhere to keep that place but its own run output, which retention or a person can delete and which any manual run moved. A small table keeps it (migration 0213, app.automation_positions): a value per organization, automation, project and key, saved only while it still holds the revision the run read, so an overlapping run cannot move it back. Steps read and save it through a new platform connector, `automation` (read_position, save_position; nothing to connect); the run and its automation come from the caller, never from the input. Places survive run retention and deletion and go with the automation (AUTO-R15). `task.list` gains `createdBefore`, `order: oldest` and an `after` cursor of creation time and task id, and answers `next`, so consecutive windows neither overlap nor skip a task created in the same millisecond, and a window larger than one listing carries on behind its last task (CONN-R27). Rules AUTO-R71, AUTO-R15; lanes checkAutomationPositions and checkTaskListStep on real Postgres.
Bringing a tracker's issues into a project took a hand-built chain per source — read a position, run the importer, save the position — and one failing linked issue could stall a source for good, one refused write rolled back its whole batch, and a rate limit failed the run. One native step now does it for any number of sources: task.sync_issues takes a project and a list of GitHub repositories and GlitchTip projects and, per source, reads where it stopped, lists the next bounded batch, refreshes the tasks it made (the longest-unchecked first, each issue on its own), writes each issue in its own transaction and saves its position. A failing source never stops the others; an issue the tracker refuses, or a write the database refuses for its data, is skipped and retried later; a rate limit stops that source and its wait is kept for the runs after; the step fails only when every source failed, so a schedule's failure pause speaks for a broken sync. Each source answers a receipt. Positions are keyed by source and, when one is set, by its filter, so two syncs of one repository with different labels never reset each other, and the plain owner/repo keys of earlier chains carry on. NUL characters are dropped where issues are read, and a tracker's own answer text never reaches a run record. A new tracker is one adapter. The position store takes any adapter slug and keeps a rate limit's wait (migration 0211). Natives receive the run's stop signal. Rules TASK-R53–TASK-R60; lane checkIssueSync on real Postgres.
The mail sync could lose mail for good and stall a mailbox without a word. Gmail listed newest first with a page size and moved its position to the newest email read, so a backlog larger than one pass skipped the older emails, and a burst of mail in one second could keep a Gmail mailbox re-reading the same emails forever while every run reported success. The position came from the sender's Date header, so one email dated years ahead stranded every later one. IMAP cut its window before filtering by time and stalled on a busy day; Outlook stalled when one second held more email than a pass reads; a first pass read either the whole history or only the newest page; a deleted message or a rate limit failed the whole mailbox and kept nothing it had read. A pass now reads oldest first, Inbox and Sent together in time order, and moves each folder's position — on the provider's own clock — only past what it stored. Gmail backlogs are read through windows that hold no more than a pass takes, following every page, and the ids already read in the position's own second travel with it (migration 0214), so a burst can never pin the position. A first pass reads back a set number of days (7 by default) and works forward; IMAP searches a growing span after the position instead of a year of dates per pass. Sent mail is read by default, and a reply sent from the Inbox is stored once. A rate limit stops the pass and keeps what was read; one failing mailbox never stops the others, and the run fails only when every mailbox failed. A sync with no connected mailbox says so. Each run answers a receipt per mailbox. Rules CONV-R17–CONV-R23; lane checkMailboxSyncLane on real Postgres.
Every new organization was seeded with the twelve shipped automations — mail syncs, inbox and issue triage, issue imports, a pull request reviewer — whether it used Gmail, GitHub or neither, and `tale migrate` seeded them again into every organization. Creating an organization now adds the starter project and its configuration files and no automation; `tale migrate` re-runs only that: the configuration files an organization is missing and the starter project for one with no project. People add a shipped automation from the template catalog. Organizations that already have shipped automations keep them exactly as they are. The seeding module and its tests are removed, the provisioning lane proves a new organization has no automation with the seeding switch on, and the CLI, upgrade guide and backend migration notes say what migrate does now. Rules PROVN-R9 and PROVN-R10; PROVN-R1–R4, R7 and R8 retire.
A shipped automation said what it was in a name and one line, and a starter asked a project, a member, a text, a choice, a schedule or a connection. A template now also says how it works (1–8 steps), what it changes (1–6 outcomes — creates, changes, sends, or a never-guarantee) and what it works with, carries a category and a product icon (`brand:<slug>`, from a fixed list of the logos Tale ships), and may ask for a bounded number, a toggle or a list, a text with a placeholder and a pattern, or an optional connection whose empty choice it names. An answer can write into the trigger's fixed input, so every triggered run receives it. Packs are read with the shipped-pack schema, so a pack that carries a template block is a template.
Sync GitHub issues and Sync GlitchTip issues are templates over the one task.sync_issues step: they ask the project, the repository (or organization and project), the labels or search, the batch size, when to run in the person's own time zone, and an optional connection whose empty choice is the default one. They replace the GitHub and GlitchTip import packs, which leave the catalog; copies an organization installed keep working, since every action they call still exists. Sync Gmail, Outlook and IMAP emails become templates too: which mailbox (empty is every connected one), how many days the first pass reads back, whether to read Sent, how many emails per pass and when. Each template says how it works, what it changes and what it never does, and carries its product's logo.
The shipped automations broke at production sizes and repeated work: the pull request reviewer commented on every pull request again every 30 minutes and failed from 33 pull requests (each item counts toward a run's 100-step limit), inbox triage failed from 49 threads and could report no drafts after writing 47, issue triage saved its results nowhere, the task digest looked back a fixed 24 hours, and a replayed webhook created a second task. Every list-driven template now caps its batch (10 pull requests, 40 issues, 40 threads) and leaves the rest for the next run. The reviewer lists only the pull requests due — not drafts, not its own, not already reviewed at their head — in one GraphQL query, pins each review to its commit, cuts large diffs, and lets one failed pull request wait for the next run. Inbox triage marks a thread judged only once its draft waits in it or it needs none. Issue triage tells a chosen member which issues are ready and scores an issue again only after it changed, keeping its place per repository. The digest lists every task created since the last digest, oldest first, and carries a long backlog over several digests without skipping or repeating one. The webhook template keys each task by a field it asks for, or by the whole body, so a delivery sent again updates its task. Loops that write go on past a failed item. The six starters and these packs carry their catalog presentation — how they work, what they change and never do, their product logos — and ask the time zone with their schedule. Rules AUTO-R72–AUTO-R77; the flow fixtures and analysis snapshots follow the shipped workflows.
Tale shipped two kinds of ready-made automation: packs seeded into every organization, and starters behind "From a starter" as a plain list. Every one is now a template in one catalog, read from both roots without moving a slug. Create automation › From a template opens it: category tabs, search, and a card per template with its product's logo, when it runs, Connect first when it needs a connection the organization lacks, and In use when the organization already runs one. A preview says how it works step by step, what it changes and what it never does, when it runs in the reader's time zone, what it needs (with a link to connect it) and what it works with, and draws its workflow read-only. Use this template asks its questions and creates version 1, its deployment and its trigger in one transaction with Start it now — deployed and on, or nothing — refusing a start whose connection is missing; a failed preview offers a retry, a double click can never create twice, and closing is held while a create runs. A schedule nobody answered runs in the creator's zone. The template a create came from is recorded in its own column (migration 0212, which also moves a slug an earlier build kept in the presentation), so an older release still reads every automation. An empty automations list, and the Inbox's call to set up email, lead to the catalog. The catalog's guards hold every shipped template to its presentation in all three languages and prove that any answers make an automation that validates and passes its tests. The demo seed creates its automations from templates, and the screenshot runner captures the catalog, a preview and a setup. Rules AUTO-R57–AUTO-R62, AUTO-R44 and AUTO-R45; lane checkAutomationTemplates on real Postgres.
Automation templates (EN/DE/FR) replaces the built-in automations and starters pages, which redirect to it: what a new organization has (no automation), how to browse, preview, use and start a template, and one section per template — what it does, when it runs, what it asks, what it changes and never does — under its category, with screenshots of the catalog, a preview and the setup. The trigger guide shows the native issue sync step instead of a hand-built import chain, the tutorial and the task-list pages follow the digest's window, and the connector pages the mail sync's inputs. The dispatch guide gains its screenshot, and every automation screenshot whose screen changed is captured again.
Boxes for browsing, previewing, using and starting a template and for a new organization without automations (AUTO-F184–F190, AUTO-B26–B28, AUTO-A31, AUTO-A32, AUTO-F238–F240, AUTO-B42–B45), the issue sync (AUTO-F200–F204, AUTO-B30–B32), the mail sync (AUTO-F215–F222, AUTO-B34–B37) and the hardened templates (AUTO-F230–F237, AUTO-B38–B41); the boxes that described the old packs and starters move to the template wording, and the reference rows name the specs that own each behaviour and the new error codes.
yannickmonney
added this pull request to the merge queue
Oct 15, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 15, 2026
The canvas browser tests draw the shipped Triage GitHub issues workflow, which now starts by reading its saved place and scores the issues of its batch. The first box after Start is Place, which reads the owner and the repository; the frame walks the issues of Batch; the last step saves the place; and a row of the Steps view names its step by the capitalized id.
yannickmonney
force-pushed
the
feat/automation-templates-sync
branch
from
October 15, 2026 04:57
245827a to
8c9a10c
Compare
yannickmonney
enabled auto-merge
October 15, 2026 04:58
yannickmonney
added this pull request to the merge queue
Oct 15, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 15, 2026
Finding which steps a renamed step's readers follow parsed every expression of every step, the long code bodies of the shipped templates included, only to keep the references rooted at `nodes`. A text without the name `nodes` cannot read a node, unless code spells it with a unicode escape, so such text is now left unparsed; strings inside a step's input and files are emptied in place, keeping the pointer of every string that can. The reviewed change summaries of the whole shipped corpus are unchanged. Diffing a renamed step of Triage GitHub issues drops from 1.62 ms to 1.00 ms on a laptop, back under the corpus budget on a merge-queue runner, where it had reached 5.3 ms.
yannickmonney
enabled auto-merge
October 15, 2026 05:27
yannickmonney
added this pull request to the merge queue
Oct 15, 2026
This was referenced Oct 15, 2026
5 tasks done
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.
Organizations no longer start with automations. Every automation Tale ships is a template in one catalog: a person browses it, previews what a template does, uses it with a short setup, and can start it in the same step. Ingestion is one general contract instead of glue per source, and the shipped automations are hardened for production syncing.
What changes
No automations by default (PROVN-R9, PROVN-R10). Creating an organization and
tale migrateadd, change and remove no automation; the starter project stays. Organizations that already have shipped automations keep them as they are.One template catalog (AUTO-R57–R62). The 12 built-in packs and the 6 starters are one catalog, read from both roots without moving a slug. Create automation › From a template opens it: category tabs, search, cards with the product's own logo (Gmail, Outlook, IMAP, GitHub, GlitchTip …), what each needs (Connect first) and whether it is In use. A preview shows how it works step by step, what it changes (and what it never does), when it runs in the reader's time zone, what it needs, what it works with, and its workflow drawn read-only. Use this template asks its questions (project, member, connection — optional ones start empty —, schedule with time zone, numbers, toggles, lists) and creates version 1, its deployment and its trigger in one transaction with Start it now. Answers may write into the trigger's fixed input. The template's slug is recorded outside the stored presentation, so a rollback reads every automation.
Issue sync, one step for any number of sources (TASK-R53–R60, migration 0211).
task.sync_issuestakes a list of GitHub repositories and GlitchTip projects; per source it reads its position, lists the next batch, refreshes the tasks it made, writes each issue in its own transaction and saves its position. One failing source, one refused issue or one bad write never stops the others; a rate limit stops that source and its wait is honoured by later runs; the step fails only when every source failed. A new tracker is one adapter. The position store takes any adapter (0211 relaxes the 0140 check and addsretry_after_ms). Templates: Sync GitHub issues, Sync GlitchTip issues; the old import packs are retired from the catalog (installed copies keep working, and their refresh no longer stalls on one failing issue).Mail sync that never loses or doubles an email (CONV-R17–R23, migration 0214). Positions on the provider's clock (not the sender's Date header), oldest first, Inbox and Sent in time order, a first-pass backfill (7 days by default), Gmail backlogs read through windows instead of newest-first pages, rate limits that stop the pass and keep what was read, one failing mailbox isolated, a receipt per mailbox. Templates: Sync Gmail / Outlook / IMAP emails.
Hardened automations (AUTO-R70–R77). A loop step may go on past a failed item (
onItemError: continue, opt-in; existing documents unchanged). Batches are bounded so no run meets the engine's step limit. Review GitHub pull requests reviews once per new commit, skips drafts and its own pull requests, and pins its comment to the commit. Triage the inbox marks a thread judged only once its draft landed. Triage GitHub issues tells a member which issues are ready and scores an issue again only after it changes. The Daily task digest covers exactly from the last good digest to its occurrence. Create tasks from a webhook keys each task so a replay updates it. A new platform connector,automation(read and save a place, migration 0213), andcreatedBefore,order: oldestand anaftercursor ontask.listcarry these.Docs: one guide, Automation templates (EN/DE/FR), replacing the built-in and starter pages (redirects in place); new and retaken screenshots for the catalog, preview, setup, the project Dispatch tab and every automation shot whose screen changed.
Proof
tale-dbimage + MinIO, filtered lanes):checkAutomationTemplates+checkProvisioning95/95 on a fresh database (including a real rollback of a create whose last write fails, and a new organization with no automation while seeding is switched on);checkIssueSync+checkImportCursorContinuation110/110 (two filters alternating on one repository, a NUL title skipped, a stored rate-limit wait kept);checkMailboxSyncLanewithcheckFilesandcheckConnectorCredentials97/97 before the review round and its four mail checks green after it (the edge ids round-trip through the credential row);checkAutomationPositions85/85;checkTaskListStep90/90. CI's Backend integration runs every lane.@tale/shared1,011;@tale/uiunit 4,195; ui-docs 106; docs 716; CLI 3,240 (one smoke test fails only on this laptop, as on main). Typecheck (platform, shared, ui, CLI, ui-docs), type-aware lint, format, knip, SAST (0 findings),lint:manual,lint:links.Migrations: 0211 (sync positions for any adapter, rate-limit wait), 0212 (template slug column), 0213 (
app.automation_positions), 0214 (Gmail edge ids on the credential row) — all additive and safe mid-roll. No/api/v1, MCP or OpenAPI change; the app's create route takesstartandtimezone(and still acceptsenableTriggerfor one release).The commits follow the units; a few cross-unit guards (the catalog's, which needs every template converted) are red between them and green at the head.
Known limits
onItemError,task.sync_issuesor theautomationconnector); deployments that drain before switching colours are unaffected.onItemErrorhas no inspector control yet (the field is kept and documented). A webhook run does not see its delivery id header. Inbox triage can draft one thread twice in one narrow case. Inbox summary reads only threads no triage judged yet. A place a member's run saved outlives that member's erasure (spec "Not yet").