Skip to content

feat(platform): debug automation runs on their page — failures in words, replays, playback, comparison - #4658

Merged
yannickmonney merged 56 commits into
feat/automation-run-debuggerfrom
feat/automation-run-view
Oct 9, 2026
Merged

yannickmonney merged 56 commits into
feat/automation-run-debuggerfrom
feat/automation-run-view

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #4647 (the run record and its read API); review that first. Its base retargets to main when #4647 lands.

What changes

A run's page becomes a debugger built on the run's record (#4647):

  • Why it failed, in words — a failure card names the step, says what went wrong, its concrete cause
    with what was read, and the fix (en/de/fr); the engine's English sits under Technical details. Show
    step, Show in editor (the run's version, the step selected), Retry from this step. The Runs list
    names a failed run's cause with the same title.
  • Run it again — Run again (same version, input, mode; live asks first when writes repeat), Edit
    input and run…, on the latest version as a test, as a test, live on the live version, compare with
    the previous run, copy ID/link. Retry from a step plans first: what is reused, what runs again,
    writes that repeat, refusals explained. A replay names the run it came from, links back and to the
    comparison; steps a retry took over read Reused on the canvas.
  • Play the run — the run's record plays on the canvas with the playback bar (opens on the end,
    steps, scrubs, speeds, real elapsed clock, follows a live run).
  • Why a step ran or was skipped — a sentence, then each condition in words with the values it read
    ("amount of the run input (250) is not greater than 1,000"), Yes/No, parts of joined conditions.
  • What a step read, received and returned — reads in words with values, received, returned,
    secrets hidden, cut values noted; items and passes (failed only, more on demand, one read whole);
    attempts; the step's call to a service.
  • Compare two runs — /runs/compare?a=&b=: what differs in sentences, both runs, every step.
  • Runs table — the Runs tab is a table read a page at a time from a keyset route (/runs/page),
    filtered by status and mode, a failure's title in words per row, two selected runs compared.

How it was verified

  • Unit/component suites (automations + tasks + routes 1,867 green), axe audits on every new part,
    Chromium tests (automations browser suite 87 green incl. playback on a shipped pack), i18n guards
    (catalog held to the engine's 29 reasons and 30 run codes; replay refusals), knip clean but main's 3.
  • Driven in a real browser on a local stack: failure card en/de, editor link, Last run, conditions,
    items, retry → replay → Reused, comparison en/fr, edit and run, run again. Three defects found there
    are fixed in this branch (step failure wording in Last run, Reused on replays, split reason).
  • Docs en/de/fr (execution-logs), manual boxes AUTO-F106–F116, B21–B22, A19.

Since opening

  • @tale/ui data components (ValueTree, DataView, DataDiff, formatDuration, useNow) — JsonViewer is rebuilt on ValueTree; a step's Received and Returned read as trees with Values / Shape, copy, download and full screen, and What it changed diffs a step's input and output.
  • Flow run extensions — FlowRunTimeline and the compare overlay in @tale/ui; the run page gains Chart / Steps (the same run in time order, on the playback clock, step durations, short runs in seconds), and the comparison shows Input: A → B / Output: A → B side by side.
  • The retry dialog starts the version its plan showed (a deploy landing between the plan and the click cannot start an unseen version).
  • Merged feat(platform): keep, read and replay a step-by-step record of every automation run #4647's and feat(platform): draw automations on a canvas that lays itself out #4621's review fixes. Docs (en/de/fr) and manual boxes AUTO-F117–F119. Checked in Chromium on a local stack: Steps view, row → inspector + clock, Values/Shape, compare input diff.
  • Both runs on the chart — the comparison draws A and B on B's version: each step says how each run left it, the step where they part is ringed, a step A's version lacks is dashed.
  • Items and passes in the Steps view — a step that ran per item or repeated opens to its items or passes, read from the record when it opens (pages of 200), each with its state, duration and bar on the same clock; choosing one opens it in the inspector, whose item list follows.
  • Links to a part of a run — ?view=steps, ?node=, ?item=/?pass= and ?t= (the moment the playback rests on) open the run there and follow the reader without history entries.
  • Fixes on the way — conditions that test a value's truth say "counts as yes / no" (a flag set to false was "set"); Start and End keep their size whatever the check answers (a notice takes the strip's place, End's shape row is held while the check runs); a step's first pass reads Pass 1; a Select value that does not fit ends in an ellipsis; a node that carried on past a failed item plays as it ended.
  • Checked in Chromium on a local stack (fr): Label → three items read from the record, item → inspector, Chart ↔ Steps keep the step and the moment, a ?view=steps&node=label&item=1 link opens there, the URL follows. Docs en/de/fr and manual box AUTO-F120.

Not in this PR

Item labels taken from the items' values (Item 3 says its title), and docs screenshots for the new sections.

The app reads a run's record, one step of it whole, a step's items a
page at a time, two runs side by side and a replay's plan, and runs a
run again, typed by the engine's own record types. A comparison and a
replay plan are keyed apart from the run, so a run's progress does not
compute them again. A run's record plays on the canvas as real moments
(each step's stretch, a condition's decision in its gate, the values
that moved along its lines, its waits), and the run page's URL says
which step, item, tab and moment it opens at.
A run's progress hint names the run, so it now refreshes that run's own
reads (its row, question, write in doubt, record, open step and pages)
and the run listings and figures, instead of every open run's. A hint
that names no run, from an older server, still refreshes them all.
A run retried from a later step takes the results of the steps before it from the run it retries. The canvas now has a state for such a step: a dashed node with a clock icon, labelled Reused in every language, whose result its readers got — so the lines out of it read as travelled, and a failure further on is traced back through it.
A step's failure carries a stable reason and the facts its sentence needs; a run carries its failure code. The new automationRuns catalog words every reason (title, what it means, the concrete cause, the fix) and every run failure code in English, German and French, and run-failure.ts renders them with names the way the canvas shows them — a connector's display name, a field's label, a limit in words — never the engine's own English. A model provider's or an agent's failure leads with its run code, and a reason this build does not know reads as the run's code. A guard holds the catalog to the engine's reasons, the run codes and the params each reason carries.
The retry dialog reads the server's plan for running a run again from one of its steps: which steps it reuses and which run again, the writes that go out a second time when it runs live, and on which version and in which mode. A refusal (the version changed a reused step, the run has not finished, its input was not kept, …) is explained instead of offered; a test run's retry stays a test, and only a role that may start live runs gets the live choice. Words in English, German and French; a guard holds the refusals to the engine's codes.
Nothing outside the parser reads the inspector's tab list or its type yet, so neither is exported; the step inspector exports what it needs when it lands.
A failed run's page now says where it failed and why in the reader's language — the failed step from the run's record, what the failure means, its concrete cause and the fix — with the engine's sentence folded under technical details instead of standing in for an explanation. From the card the reader shows the step on the canvas, opens it in the editor on the version the run ran, or retries the run from it. A run without a record reads its failure code's words.
A finished run's header now offers Run again: the same version, mode and input in one click, asking first when running live would send the run's writes to its services again. The menu runs it again as a test on the latest version, as a test when it ran live, or live on the version that runs live now, and copies the run's ID or link. Running live again explains itself when the version is no longer live or the reader's role may not start live runs.
Run again's menu now opens the run dialog with the run's own input to change against the version's input schema; the new run takes the changed input, or runs the run again unchanged when nothing changed, in the mode the run ran in unless it cannot run live now.
A replayed run's header now names the run it ran again and how — as it ran, with an edited input, or from one of its steps — with a link back to that run, and says so when that run was deleted. The run's short name lives in one place for the page, its replays and its lineage.
A run's page now reads the run step by step and plays it on the canvas: each step's stretch of work, each condition's decision, each value along its line, compressed so a long wait does not stall it. The chart opens on the run's end, the playback bar steps, scrubs and plays at a chosen speed with the run's real elapsed time, and a run still going is followed live. A failed or skipped step and a wait say why in the reader's language; a run recorded before records were kept still shows where each step ended.
…ition read

A step of a run now says in its inspector why it ran or not — its condition held or did not, the step it stood aside for ran, a step it reads was skipped, or it failed and the run went on — and shows each condition it evaluated in words, with the value each reference read beside it and said the way it came out: "amount of the run input (250) is not greater than 1,000". A condition joined with && or || reads part by part, each Yes, No or Not checked. The condition wording learned its negated forms in English, German and French.
A new page shows two runs side by side: what differs between them in words — the versions they ran, their input, the step where they split and why, how each ended, their output and their writes — then every step as each run left it. A replay links to the comparison with the run it ran again; the page swaps A and B, and says so when the two runs cannot be compared.
Boxes for the failure card, retrying from the failed step, Run again and its menu, editing a run's input, playback, why a step ran or was skipped, comparing two runs, and the run page in every language — with the refusals at their edges and a keyboard and screen-reader pass. The suite's routes name the comparison and its two runs. IDs continue after the schedule boxes already in review, so the two land without a clash.
…es in the runs list

Run again's menu now opens the comparison of a run with the run of the same automation that started before it. The Runs list says why a failed run failed in the reader's words — the title of its failure code — instead of the engine's sentence; a run from before failures carried a code keeps that sentence.
A step's Last run now reads the step from the run's record: what it read from the run input and from other steps, each in words with the value it read ("issues of Open issues: 12 items"), the input it received and what it returned — with a note when a value was too large to keep in full or held a secret that is hidden, and the value's summary in words when the run kept no more of it.
A step that ran once per item, or repeated, now lists its items or passes in its Last run: each with how it ended and, when it failed, why in the reader's words, failed ones alone on request and more on demand — and the one picked reads whole below, with what it read, received and returned. A step's record reaches the inspector as one prop.
A step that took more than one try, or whose try a restart cut short, now lists its attempts in its Last run: each done, failed, retried or interrupted by a restart, and a failed one's reason in the reader's words.
A step's data now names its call to a connector or a model, whether it was done, failed, or may already have run when a restart cut it short, which try it was, and what a person chose about a call whose outcome was not known.
A step whose run kept a record now says why it failed in the reader's words in its Last run tab, where the engine's English sentence stood, and drops the trace's English note once the record explains the step. A failure sentence names a step the way the canvas titles it ("Fetch customer", not "fetch customer").
On a run retried from a step, the steps whose results came from the run it retries now play and stay as Reused on the canvas, not Succeeded.
When one run skipped a step by its condition and the other ran it, the comparison now says the step's condition went the other way instead of that it ended differently.
The run guide in English, German and French now covers the failure card and its ways on, why a step ran or was skipped with the values its condition read, what a step read, received and returned with its items and attempts, playing a run back, running it again (as it ran, with an edited input, on another version), retrying from a step, and comparing two runs. Written from the run page as it behaves on a local stack.
The failure card, the step's conditions, data, attempts and items, the retry dialog, Run again and the comparison each pass a WCAG 2.1 AA axe audit in their suites.
The retry dialog moved focus to its first control, the mode switch. It now opens on Cancel: the start waits for the plan, and Cancel is the safe place when the retry would send writes again.
The run's record lands after the run itself, and the canvas swapped its chart for a playing one when it did — a second chart that laid itself out again. One chart now stays mounted and gains its playback when the record arrives, opening on the run's end as a chart that had the record from the start does.
A value a step read is written the way the sentence writes numbers only when its text reads back exactly; a 64-bit id stays as recorded instead of losing its last digits.
A template read once per item shares its place in the document across items, so keying the What was read rows by that place repeated keys; each row is now keyed by the source and path it read.
…mpare

The Runs tab is now a table read a page at a time from a new keyset route (/runs/page: name, project, statuses, mode, cursor; run summaries, never traces): status, start, result in words — a failure's title, a waiting run's reason —, version, mode and starter. It narrows by status and mode, loads older runs as the reader scrolls, opens a run from its row, and compares two selected runs. Docs in English, German and French and a manual box follow; the old list and its tests are folded into the table's.
FlowRunTimeline (@tale/ui/flow/run-timeline) is the Steps view: a run's steps in time order with time bars, condition decisions, waits, restarts and per-item rows, driven by the same playback timeline the canvas plays — choosing a row seeks the shared clock. It is a keyboard tree (arrows move and open, Enter goes to a step), windows long lists and follows a live run only while scrolled to the end.

WorkflowCanvas takes a compare overlay (@tale/ui/flow/compare builds it from two runs): each node strip says how each run ended, differing nodes are marked, nodes missing from one version are dashed, and lines say which run took them; it wins over a run overlay and playback. A step's explanation now reaches its tooltip, its accessible description and the List view.
ValueTree (@tale/ui/value-tree) shows a JSON value as a keyboard tree (WAI-ARIA tree: arrows move and open, typing a field name jumps to it) with summaries for long text and lists, what was not kept, hidden secrets, and marks for what changed; JsonViewer is rebuilt on it with its public props unchanged. DataView (@tale/ui/data-view) switches a value between its values and its shape, checks it against an expected shape, and copies, downloads or opens it full screen. DataDiff (@tale/ui/data-diff) compares two values on the shared value diff, as a list of changes or two marked trees, with a one-line summary.

formatDuration, useFormatDuration and Duration (@tale/ui/format-duration) say a span of time in the reader's words with Intl.NumberFormat units joined by Intl.ListFormat, and useNow (@tale/ui/use-now) ticks a shared clock. Strings in English, German and French; ui-docs guides and live demos for each.
…to feat/automation-run-view

# Conflicts:
#	packages/ui/src/components/flow/describe.ts
#	packages/ui/src/components/flow/flow-step-list.tsx
The retry dialog resolved "deployed" or "latest" again when it started, from what the page knew at that moment, so a deploy landing between the plan and the click started a version, and writes, nobody had been shown. It now sends the plan's resolved version number; the server refuses a live start of a version that is no longer deployed.
…ation words

formatDurationWords was a second copy of what @tale/ui's formatDuration now does (in its long style, one unit) — the same words, and an hour reads as an hour rather than 60 minutes. The failure catalog uses the package's helper, and the platform copy is gone.
…changed

A step's Received and Returned values on the run page now read in @tale/ui's DataView: a keyboard tree with what was not kept and hidden secrets marked, one Values / Shape switch for both, copy, download for large values, and full screen. Where the record says the input and output compare (both objects, or both lists), "What it changed" lists the differences with DataDiff.
A run's chart gains a Chart / Steps switch. Steps is @tale/ui's FlowRunTimeline on the same timeline and clock as the chart's playback: the run's steps in time order with their time bars, decisions, waits and items; choosing a row opens its step and moves the clock there, and switching back shows the chart at the same moment.
…y field

Where two compared runs' input or output differ, the comparison page now shows them side by side with @tale/ui's DataDiff (a list of the changes on a narrow screen), labelled A and B, under what differs in words.
… words

The Steps view now names how long each step worked (from the record; a skipped step has none), and a run of under a minute reads its clock and axis in seconds or milliseconds ("34ms of 50ms") rather than 00:00 everywhere.
…s' differences

The execution logs page in English, German and French now covers the Steps view beside the chart, a step's values as trees with their shape and what the step changed, and the input and output diffs of a comparison; manual boxes AUTO-F117 to AUTO-F119 cover them.
The comparison page draws both runs on the chart of B's version with @tale/ui's compare overlay: each step's strip says how A and how B left it, a step where they part is ringed, and a step A's version lacks is dashed. AutomationCanvas takes a compare input (each run as one run's overlay, then combined), its inspector id is optional for a chart that opens nothing, and runOnCanvas is the one place a run becomes what a canvas draws.
The comparison section in English, German and French and box AUTO-F119 now cover the chart that draws both runs.
A node that runs once per item failed in the playback as soon as one of its items had failed, even when its own stretch of work ended in success because it carried on past the item. Once that stretch is over, it now says how the node ended; without one, a failed item still fails the node.
A Steps view host that reads a step's items only when the reader opens it passes onExpand: a node row whose items exist but are not read yet (a childrenTotal without children) then opens too, says its items are loading in their place, and asks the host for them. An item chosen before its step's items were read opens its step once they are. Hosts that pass no onExpand see no change.
The record numbers a repeat's passes from 0, and the step's list of items and passes showed that number as is, so a step's first pass read "Pass 0". People count from 1, as the canvas and the Steps view do.
A step that ran once per item or repeated opens to its items or passes in the Steps view. They are read from the run's record when the reader opens the step (a page of up to 200 at a time, until the last), not with the page, and join the timeline where they ran on the same clock, so the chart and the bar keep their moments. Each shows how it ended and how long it worked; choosing one opens it in the inspector, whose list of items follows, and choosing one there selects it in the Steps view.
The run page reads ?view=steps, ?node= and ?item= or ?pass= when it opens, so a link lands on the Steps view, the step and the item it names (the item's step is read and opened for it), and the page survives a reload. Switching the view or choosing a step or an item writes them back without a history entry, as the editor does with its own view and node.
The run page docs in English, German and French now say that a step that ran per item or repeated opens to its items or passes in the Steps view, that choosing one opens it in the Last run tab, and that the page's address keeps the view, the step and the item. Manual box AUTO-F120 checks both.
A condition that tests a value for its truth, such as {{ input.notify }}, read "notify of the run input is set", yet a flag set to false, a zero or an empty text skips the step. It now reads "counts as yes" ("counts as no" when negated), in English, German and French, which is what the condition tests and matches the chart's Yes and No.
A notice on Start or End added a row and a shape on End added another, so an answer from the check that brought either moved every box on the chart. A notice now takes the place of the strip's words at the box's foot, and End's shape may be null to hold its row with a placeholder while the host works it out (or carry words instead of a shape), as a step's returns row already does.
End showed the shape of what a run returns only once the check had answered, so End grew on every author's first check. Whenever the check runs and End returns something, the row is there from the start: a placeholder while the check runs, the shape once known, and "Shape known after a run" when the check could not tell.
The trigger keeps its value on one line, and its line clamp draws an ellipsis only on a line that wraps, so a long value (a German missed-runs choice, for one) was cut off mid-word with nothing to say so. The value now truncates with an ellipsis and may shrink, the chevron always in view.
The steps whose items the run page read followed the selection: a link that opened on an item read its step and opened it, but choosing another step dropped the read, and the step, still open, said its items were loading for good. A step once read now stays read.
The run page opens on ?t= (real milliseconds since the run started) and writes where the playback rests, 300 ms after it stops moving, without a history entry; the run's end, where the page opens, drops it. A link to the moment a step started, or to where a reader paused, opens there.
The run page docs in English, German and French and manual box AUTO-F120 now say that the page's address keeps the moment the replay rests on, with the view, the step and the item.
@yannickmonney
yannickmonney merged commit e401402 into feat/automation-run-debugger Oct 9, 2026
@yannickmonney
yannickmonney deleted the feat/automation-run-view branch October 9, 2026 22:21
yannickmonney added a commit that referenced this pull request Oct 9, 2026
Failures in words, replays, playback, the Steps view with items, comparison, step data and the runs table — the run view squashed onto the run debugger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant