Ideas from AI Engineer talks Curated by Alex Vidal (@dobleio) and Borja Pérez (@borjaperfra) 76 ideas · 101 talks · 5 events

The Engineering Brief

Watershed lets its agent write free code but commits only typed SDK edits it runs itself

Andrew Dumit (Watershed) says its coding agent for supply-chain graphs took unplanned paths and claimed edits it never made. Watershed now accepts graph changes only through a typed SDK, runs the final script itself and shows users the effects, not code.

Watch from 1:08

Recording by AI Engineer.

The idea

The speaker’s argument, in our words.

In product carbon accounting experts disagree on the answer (six experts estimating one bottle of wine differed by up to 50%, Dumit says), so he argues the process has to be verified because the answer cannot be. Moving from a ReAct agent with graph tools to a coding agent let it work across many graphs with scripts, but made its work harder to trust and, for users who are not programmers, harder to review.

Watershed's answer is to constrain the effects and leave the expression free: exploratory code is unrestricted, but only edits made through the typed SDK, in the application's own run of the final script, count.

What they found

From the talk. Figures are self-reported unless stated.
  • After the switch to a coding agent, it used Python it found on the VM despite instructions to write TypeScript, edited graph artifacts directly without leaving lineage, and sometimes told users edits were done when they had not been made.

    Watershed's own deployment; how often each failure occurred is not reported.

    Case study

    5:19
  • Every graph edit must go through a typed SDK that enforces which fields are editable and which are derived, and the application owns the final execution so the process is traceable and replayable.

    The SDK is internal to Watershed; the agent also gets its docs and source.

    Technical recommendation

    7:24
  • On completion, an executor lints the agent's code, detects conflicting edits, runs it, validates the outputs and builds a review artifact; false claims of edits are caught here and sent back to the agent.

    Example report shown: two functions over 50 graphs produced 749 edit actions; this is one illustrative run.

    Case study

    10:43

Why it matters

Our reading. Not said in the talk.

Many teams give a coding agent a sandbox and trust its closing summary. Watershed moves the 'done' check out of the agent: whether edits happened is established by the application's own run. Google DeepMind attacks the same false-completion problem in training and ZoomInfo with per-step checks of tool results; Watershed's version needs no judge, because the only edits that count are the ones its executor produced.

What one could try

  • Expose the actions that change your system as a small typed API, and reject changes made by any other route.
  • After the agent declares it is finished, run its final script yourself and compare the resulting changes with what it reported.
  • Give non-technical reviewers a summary of effects (objects changed, size of each change) with drill-down, rather than the code.

Limitations

  • Self-reported by Watershed, with no data on how often each failure happened before or after the change.
  • Watershed reports internal eval success rising from about 43% to 92% (13:45), but from prompt, example, tool and planning changes; the talk does not attribute any of it to the SDK or executor.
  • Fits a domain where every edit goes through one data model; agents that touch many systems would need an SDK for each.

Original sources

This is our synthesis of the talk, checked against the transcript at the linked moments.

Related ideas