Finding 0day Using LemmaScript

Contents
↑ Top

Motivation#

There’s been a lot of renewed enthusiasm recently around applying formal methods to software verification. Lots of approaches that would have traditionally been out of reach due to the sheer effort and expertise involved are now tractable with models trained on the tooling.

In addition to the usual suspects like Lean and Rocq, more use of in-language verification toolkits have also made progress in recent years. Amazon uses Verus on various projects internally to validate Rust code, for example. Similar options are available in Veripy and LemmaScript. The ergonomics of this approach can be quite nice. It avoids the problem of producing a separate shadow model of the algorithms and code in use. Rather, you attach the pre-condition and post-condition contracts directly to the functions themselves. This keeps verification and proof resources within the code rather than beside it, and can conveniently remove some of the reward-hacking surface for models when proving correctness, which typically comes with writing a shadow model of your code. And unlike proof assistants where a broken property leaves you with a stuck proof goal, or model checkers like TLA+ or Quint that return an abstract state trace, SMT powered contract verifiers like these can hand you a concrete breaking input to test directly against your code.

We’ll take a quick tour through LemmaScript and how it works, then explore how I used it to find GHSA-92p4-j3wq-jmqx in HonoJS.

Down the Verification Stack#

LemmaScript & Hoare Triples#

A verification contract in LemmaScript, for example, looks somewhat like this:

max.ts
//@ backend dafny

//@ requires arr.length > 0
//@ ensures forall(k, 0 <= k && k < arr.length ==> arr[k] <= \result)
//@ ensures exists(k, 0 <= k && k < arr.length && arr[k] === \result)
export function max(arr: number[]): number {
  let m = arr[0];
  for (let i = 1; i < arr.length; i++) {
    //@ invariant 1 <= i && i <= arr.length
    //@ invariant forall(k, 0 <= k && k < i ==> arr[k] <= m)
    //@ invariant exists(k, 0 <= k && k < i && arr[k] === m)
    if (arr[i] > m) {
      m = arr[i];
    }
  }
  return m;
}

Note the expression of a Hoare triple in the contracts. A Hoare triple has the form {P}C{Q}. Once we’ve proven that the Command C (aka the code) upholds the contract, then any caller that satisfies the Precondition P can rely on Postcondition Q holding after execution.

Hoare triple {P} C {Q} mapping requires, function body, and ensures

These rules also support composition, meaning you can check a chain of functions using only their pre- and post-conditions, effectively skipping the evaluation of each function body at its call site! This is what makes verifying large codebases feasible, rather than having to re-evaluate every function body in full context. Very powerful approach.

Hoare rule of composition chaining f() and g() through shared contract {Q}

How does LemmaScript verify that these hold? It lifts compatible chunks of your TypeScript code to code in a compatible verification backend. Two are currently available, Lean and Dafny. Since //@ backend dafny is set at the top of the file, we can verify the code with lsc check max.ts, which will batch-generate the corresponding Dafny code and run the Dafny verifier over it.

$ lsc check max.ts
Generated: max.dfy.gen
Created: max.dfy
Running dafny verify...

Dafny program verifier finished with 2 verified, 0 errors

Dafny#

We can peek directly into the generated Dafny and see the relevant pre/post conditions and loop invariant annotations retained:

max.dfy
// Generated by lsc from max.ts

method max(arr: seq<int>) returns (res: int)
  requires (|arr| > 0)
  ensures forall k: int :: ((0 <= k) ==> (k < |arr|) ==> (arr[k] <= res))
  ensures exists k: int :: (((0 <= k) && (k < |arr|)) && (arr[k] == res))
{
  var m := arr[0];
  var i := 1;
  while (i < |arr|)
    invariant (1 <= i)
    invariant (i <= |arr|)
    invariant forall k: int :: ((0 <= k) ==> (k < i) ==> (arr[k] <= m))
    invariant exists k: int :: (((0 <= k) && (k < i)) && (arr[k] == m))
  {
    if (arr[i] > m) {
      m := arr[i];
    }
    i := (i + 1);
  }
  return m;
}

In both LemmaScript and Dafny, requires corresponds to the precondition, and ensures corresponds to the guaranteed postcondition. Loop invariants state the properties that hold on every iteration so the verifier can prove the postcondition without unrolling the loop (while termination is checked separately via a decreases clause, which Dafny synthesizes automatically here).

Dafny code itself can also compile to other target languages, such as Go, Java, C#, Python, and JS. So one could write their security sensitive parser or implement a spec with the relevant contracts in Dafny, then run dafny build mycode.dfy --target:python, then import and use that code in their existing projects!

Boogie#

Dafny in turn compiles down to the Boogie language, which you can think of as a popular IR (intermediate representation) for verifiers. There are plenty of frontends that emit Boogie, and many other backends that consume it.

We can manually run the Boogie generation step to inspect it, then peek inside the generated code: dafny verify --bprint max.bpl max.dfy

max.bpl (excerpt)
procedure {:verboseName "max (correctness)"} Impl$$_module.__default.max(arr#0: Seq)
   returns (defass#res#0: bool, res#0: int, $_reverifyPost: bool);
  // user-defined preconditions
  requires {:id "id9"} Seq#Length(arr#0) > 0;
  // user-defined postconditions
  ensures {:id "id10"} (forall k#1: int ::
    { Seq#Index(arr#0, k#1) }
    LitInt(0) <= k#1 ==> k#1 < Seq#Length(arr#0)
      ==> $Unbox(Seq#Index(arr#0, k#1)): int <= res#0);
  ensures {:id "id11"} (exists k#3: int ::
    { Seq#Index(arr#0, k#3) }
    LitInt(0) <= k#3 && k#3 < Seq#Length(arr#0)
      && $Unbox(Seq#Index(arr#0, k#3)): int == res#0);

implementation {:verboseName "max (correctness)"} Impl$$_module.__default.max(arr#0: Seq)
{
    // m := arr[0]  (Dafny emits an explicit bounds check)
    assert {:id "id12"} 0 <= LitInt(0) && LitInt(0) < Seq#Length(arr#0);
    m#0 := $Unbox(Seq#Index(arr#0, LitInt(0))): int;
    i#0 := LitInt(1);

    $decr_init$loop#00 := Seq#Length(arr#0) - i#0;
    while (true)
      invariant {:id "id16"} $w$loop#0 ==> LitInt(1) <= i#0;
      invariant {:id "id18"} $w$loop#0 ==> i#0 <= Seq#Length(arr#0);
      invariant {:id "id21"} $w$loop#0 ==> (forall k#5: int ::
        LitInt(0) <= k#5 ==> k#5 < i#0 ==> $Unbox(Seq#Index(arr#0, k#5)): int <= m#0);
      invariant {:id "id24"} $w$loop#0 ==> (exists k#7: int ::
        LitInt(0) <= k#7 && k#7 < i#0 && $Unbox(Seq#Index(arr#0, k#7)): int == m#0);
    {
        if (Seq#Length(arr#0) <= i#0) { break; }

        $decr$loop#00 := Seq#Length(arr#0) - i#0;
        // if (arr[i] > m) { m := arr[i]; }
        assert {:id "id25"} 0 <= i#0 && i#0 < Seq#Length(arr#0);
        if ($Unbox(Seq#Index(arr#0, i#0)): int > m#0) {
            assert {:id "id26"} 0 <= i#0 && i#0 < Seq#Length(arr#0);
            m#0 := $Unbox(Seq#Index(arr#0, i#0)): int;
        }
        i#0 := i#0 + 1;

        // loop termination check (automatically synthesized by Dafny)
        assert {:id "id29"} 0 <= $decr$loop#00 || Seq#Length(arr#0) - i#0 == $decr$loop#00;
        assert {:id "id30"} Seq#Length(arr#0) - i#0 < $decr$loop#00;
    }

    res#0 := m#0;
    return;
}

Notably, we see Dafny also injected some other guards in addition to the contracts we wrote, namely bounds checks and loop termination checks.

Z3: SAT, UNSAT, and Free Payloads#

To do verification, Boogie compiles each method into a Verification Condition (VC), then takes the negation of those conditions and hands them off to Z3, an SMT (Satisfiability Modulo Theories) solver. Z3 searches for a set of inputs for which requires holds, but for which Boogie level assert or ensures fails.

If Z3 returns UNSAT (that is, !VC is not satisfiable), then we find no violating inputs are assignable. If Z3 returns SAT, then we have found a set of inputs which can violate our contracts! The solver can return the satisfying inputs to us as well for replay or further narrowing. In the cases where your contracts are intended to describe security properties, then Z3 would be straight up returning you a trigger payload. How convenient!

LemmaScript verification stack lowering from max.ts through Dafny and Boogie to Z3

Who Validates the Validators?#

Let’s apply LemmaScript to a security-critical feature of a real codebase to try and shake 0day out. The target in question here is HonoJS, a popular web app framework written in TypeScript.

The Target: Hono’s Form Validator#

Hono has a validator middleware feature, which provides a callback to reject invalid form values. This can be used to reject requests which contain forbidden or malformed fields before they reach the handler for the target endpoint.

Consider the following illustrative example, where updates to a user’s profile fields can be applied via POST. The fields are applied to the user model directly. Of course, the user model may also contain some sensitive fields that define permission levels such as role, so we’d want to avoid those being included in the user-supplied update operation. This example is intentionally kept simple for purpose of illustration.

app.ts
const app = new Hono()

app.post(
  '/profile',
  validator('form', (value, c) => {
    if ('role' in value) return c.text('Blocked', 400)
    return value
  }),
  async (c) => {
    const body = await c.req.parseBody()
    const user = await db.users.update(body)
    return c.json(user)
  }
)

This could work, but note that the update operation being safe depends entirely on the validator middleware correctly intercepting the form body and extracting the supplied fields correctly. How is this implemented under the hood?

The validator attempts to recognize when a form is supplied by matching a Content-Type header by regular expression. If one is detected, then the validator runs for that request.

const jsonRegex = /^application\/([a-z-\.]+\+)?json(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i
const multipartRegex = /^multipart\/form-data(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i
const urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i
    let value = {}
    const contentType = c.req.header('Content-Type')

    switch (target) {
      // ...
      case 'form': {
        if (
          !contentType ||
          !(multipartRegex.test(contentType) || urlencodedRegex.test(contentType))
        ) {
          break
        }

        let formData: FormData

        if (c.req.bodyCache.formData) {
          formData = await c.req.bodyCache.formData
        } else {
          try {
            const arrayBuffer = await c.req.arrayBuffer()
            formData = await bufferToFormData(arrayBuffer, contentType)
            c.req.bodyCache.formData = formData

The Second Parser: parseBody()#

Later on, once the request handler for that endpoint runs, the handler may want to retrieve the request body to engage with the supplied fields, which it will do through parseBody(). This code also checks for the presence of an appropriate Content-Type header, and if it finds one, extracts the form:

export const parseBody: ParseBody = async (
  request: HonoRequest | Request,
  options = Object.create(null)
) => {
  const { all = false, dot = false } = options

  const headers = isRawRequest(request) ? request.headers : request.raw.headers
  const contentType = headers.get('Content-Type')

  const mediaType = contentType?.split(';')[0].trim().toLowerCase()

  if (mediaType === 'multipart/form-data' || mediaType === 'application/x-www-form-urlencoded') {
    return parseFormData(request, { all, dot })
  }

  return {}
}

Note how the presence of an extractable form is detected and parsed two different ways, at two different stages in a security-relevant path. This is ripe for parser differential bugs.

Hono request flow showing Content-Type parsed first in validator middleware via regex.test and again in the route handler via parseBody

The angle for us as attacker is clear: Is there a header that fails the validator middleware regex (suggesting that the request has no form), yet still gets parsed correctly by parseBody(), bypassing validation and reaching the sensitive update operation?

Teaching LemmaScript to Speak RegExp#

Exploding State Machines#

Naturally, we’ll want to define the contracts for each of these matchers in LemmaScript so that we can run the verifier and see if they agree down to a bit level. Unfortunately, we immediately run into one significant issue: LemmaScript doesn’t currently support lifting regexes, so we can’t validate Hono’s use of RegExp.test(). While we could technically translate the regex to raw string comparison checks one time for the sake of finding bugs here, that sort of defeats the point of in-place verification, you end up modeling code that doesn’t actually exist in the codebase you’re verifying. We can add support in LemmaScript, but there are some complications to deal with.

The first of these significant complications is that Dafny doesn’t actually have built-in regex representation. While Z3 (the solver) does have it in the form of SMT-LIB’s String / RegLan with str.in_re, Dafny doesn’t have a native way to represent regexes. Dafny encodes string as seq<char> (a sequence of characters), and has general sequence axioms like Seq#Length, Seq#Index, and Seq#Take. Recall that Boogie is the representation which selects the representable state space and solvable parameters to feed to Z3, and Dafny just compiles down to Boogie. This will require us to represent regex machinery using more generic constructs.

If we tried to write a general ECMAScript regex matcher inside Dafny (one that accepts any pattern string and accepts any input string), it would fall apart quickly. A real matcher backtracks across quantifiers and alternations. It would additionally need to support non-regular features like backreferences. As part of our Hoare logic, we’d have to prove termination over an arbitrarily backtracking search tree! Gross!

The deeper issue is that the input string itself is basically unconstrained, so every * or | in the regex pattern results in a branch in Z3’s search space. Recursively unfolding this tree results in an exponential explosion of state space, and Z3 will simply time out or give up, returning unknown rather than SAT/UNSAT. As you can imagine, when formally verifying an implementation, your verifier giving up is not really an ideal outcome.

Honey, I Shrunk the State Space#

What if we didn’t try to create a generic regex machine, but rather made a machine that only models the lifted pattern? These regex patterns are known ahead of time and stay within “regular” fragments (i.e., they don’t use backreferences or lookaround features). All regular expressions can be converted to Nondeterministic Finite Automata (NFAs) using Thompson’s construction. We can then use techniques to reduce those to Deterministic Finite Automata, which are very tractable for SMT solvers, as they avoid any recursive state space expansion.

Static RegExp compilation pipeline: RegExp AST to NFA to minimized DFA to Dafny Step and Run functions
Compiling a static RegExp into pure Dafny transition functions.

What’s the difference between an NFA and DFA? For simplicity, you can just consider them to be kinds of state machines. In a deterministic one, for each (state, input) pair, we’d need to have at most one outgoing transition/edge. Essentially for each input value, we must have a deterministic next hop. We also can’t just jump between states without reading input. However, when we try to wire up alternations (regex |), nested groups, quantifiers (such as *, +, and ?), each new operator forces you to globally untangle overlapping transitions across the entire state graph.

Deterministic Finite Automaton (DFA) for /;\s*k/ with a single deterministic transition per input character
A 3-state DFA for /;\s*k/: one deterministic next state per input character.

An NFA gets around these issues when translating from the regex AST by not having to make these guarantees at all, it is allowed to have multiple outgoing transitions for the same input value, and it can follow ε (epsilon) transitions that move to another state without consuming any input value at all. Why does the difference matter for us? At every epsilon fork or duplicate edge, the machine can be in one of several possible states at once. An SMT solver would have to model all of them, and these combinatorics explode very quickly.

Nondeterministic Finite Automaton (NFA) for /;\s*k/ showing dashed epsilon transitions that branch without consuming input
The equivalent Thompson NFA for /;\s*k/, with ε-transitions that branch without consuming input.

Subset construction can be used to convert our NFA to a DFA at compile time by collapsing each reachable set of NFA states into a single concrete DFA state, eliminating epsilon jumps and ambiguous branches. One final minimization pass can be done with Hopcroft’s algorithm to merge any equivalent DFA states to make the transition table as small as possible. Not strictly needed, but your solver will thank you. By the time we generate Dafny code, the resultant state machine is just a single active state advancing one char per step with deterministic transitions over a very small space.

Hopcroft DFA minimization merging equivalent state pairs {s1, s2} and {s3, s4} into a smaller 3-state machine
Hopcroft minimization merges equivalent states ({s1, s2} and {s3, s4}) into a smaller transition table.

The generated Dafny is a single linear pass over seq<char>. LemmaScript emits a Step(state, ch) and accompanying lookup table, and a recursive Run(s, idx, state) loop that advances idx (the input index) one character at a time. Termination becomes simple to prove (decreases |s| - idx in Dafny, “the distance between the current index and length of the string decreases monotonically”). The entire matcher reduces to a small, finite set of integer states (in fact, only 24 for Hono’s multipartRegex!) which Z3 can invert directly when hunting for counterexample values.

This regex support was implemented on a feature branch of my fork of LemmaScript, if you’re interested in trying it out. Haven’t gotten around to putting a PR in yet.

Under New Pwnership#

Writing the Contracts#

After that ordeal of adding RegExp support to LemmaScript, we can return to trying to shake bugs out of Hono. Let’s attach contracts to our two functions, and then connect their dataflow to evaluate the compatibility of the contracts.

form-gate-native-regex.verify.ts
//@ backend dafny
//@ option string-semantics javascript-utf16
//@ option dafny-library local

// Hono's literal RegExp constants from src/validator/validator.ts:25-26
const multipartRegex = /^multipart\/form-data(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i
const urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i

export function validatorIsForm(contentType: string): boolean {
  return multipartRegex.test(contentType) || urlencodedRegex.test(contentType)
}

export function readerIsForm(contentType: string): boolean {
  const semi = contentType.indexOf(';')
  const firstPart = semi === -1 ? contentType : contentType.slice(0, semi)
  const mediaType = firstPart.trim().toLowerCase()
  return (
    mediaType === 'multipart/form-data' ||
    mediaType === 'application/x-www-form-urlencoded'
  )
}

export function checkFormGate(mediaType: string, params: string): boolean {
  //@ requires mediaType === 'multipart/form-data' || mediaType === 'application/x-www-form-urlencoded'
  //@ requires forall(k: nat, k < params.length ==> 32 <= params.charCodeAt(k) && params.charCodeAt(k) <= 126)
  //@ requires params.length === 0 || params.trimStart().startsWith(';')
  //@ ensures readerIsForm(mediaType + params) ==> validatorIsForm(mediaType + params)
  const contentType = mediaType + params
  return !readerIsForm(contentType) || validatorIsForm(contentType)
}

Because these two parsers don’t call each other directly in Hono, we wrap them in checkFormGate to relate their outputs. We also split the header into mediaType and params with a few //@ requires guards (printable ASCII starting with ;) so Z3 stays focused on realistic HTTP header parameters instead of handing back control characters or junk, and we use indexOf/slice in readerIsForm since LemmaScript doesn’t lift String.prototype.split() yet.

When we run lsc check, we can see immediately that the contracts don’t hold!

$ lsc check form-gate-native-regex.verify.ts
Generated: form-gate-native-regex.verify.dfy.gen
Created: form-gate-native-regex.verify.dfy
Running dafny verify...
form-gate-native-regex.verify.dfy(163,0): Error: a postcondition could not be proved on this return path
    |
163 | {
    | ^

form-gate-native-regex.verify.dfy(162,65): Related location: this is the postcondition that could not be proved
    |
162 |   ensures (readerIsForm((mediaType + params)) ==> validatorIsForm((mediaType + params)))
    |                                                                  ^

form-gate-native-regex.verify.dfy(138,28): Related location: this proposition could not be proved
    |
138 |   (RegexTest'0(contentType) || RegexTest'1(contentType))
    |                             ^^

Dafny program verifier finished with 19 verified, 1 error

Asking Z3 for a Payload#

Let’s exploit the beauty of Dafny now by extracting the counterexample value:

$ dafny verify --unicode-char:false --extract-counterexample form-gate-native-regex.verify.dfy
form-gate-native-regex.verify.dfy(163,0): Error: a postcondition could not be proved on this return path
 Related counterexample:
 WARNING: the following counterexample may be inconsistent or invalid. See dafny.org/dafny/DafnyRef/DafnyRef#sec-counterexamples
 form-gate-native-regex.verify.dfy(163,0): initial state:
 assume |params| > 0 && ['m', 'u', 'l', 't', 'i', 'p', 'a', 'r', 't', '/', 'f', 'o', 'r', 'm', '-', 'd', 'a', 't', 'a'] == mediaType && 1 == |params| && ';' == params[0];

Dafny program verifier finished with 19 verified, 1 error

Look at that, Z3 identified that multipart/form-data; is stated to reach parseBody() without matching the validator regex!

Bypassing /profile#

Both multipartRegex and urlencodedRegex share the same parameter-matching tail, so we can test this trailing-semicolon bypass against our /profile endpoint with a one-line application/x-www-form-urlencoded; request (skipping the multipart boundary boilerplate):

# Normal form submission: caught by validator('form')
$ curl -i -X POST http://localhost:3000/profile \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'name=alice&role=admin'
HTTP/1.1 400 Bad Request

Blocked

# Trailing semicolon (from Z3's counterexample): validator skips it, parseBody() parses it
$ curl -i -X POST http://localhost:3000/profile \
  -H 'Content-Type: application/x-www-form-urlencoded;' \
  -d 'name=alice&role=admin'
HTTP/1.1 200 OK

{"name":"alice","role":"admin"}

The same differential holds for multipart/form-data as well: a trailing semicolon (multipart/form-data; boundary=B;) or whitespace before the semicolon (multipart/form-data ; boundary=B) misses multipartRegex while parseBody() still extracts role=admin (HTTP 200).

Trust, Then Verify (the Patch)#

We can also use LemmaScript to check if the fix made by the maintainer is correct. The issue was fixed in v4.13.18 by replacing multipartRegex and urlencodedRegex with the same split(';')[0].trim().toLowerCase() extraction style that parseBody() uses.

-const jsonRegex = /^application\/([a-z-\.]+\+)?json(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i
-const multipartRegex = /^multipart\/form-data(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i
-const urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/i
+const jsonRegex = /^application\/([\w.-]+\+)?json$/i
+// Decide by the media type alone, like `parseBody()`, so that the two can never disagree on a body
+const getMediaType = (contentType: string): string => contentType.split(';')[0].trim().toLowerCase()
    let value = {}
    const contentType = c.req.header('Content-Type')
    const mediaType = contentType ? getMediaType(contentType) : ''

    switch (target) {
      // ...
      case 'form': {
        if (
          mediaType !== 'multipart/form-data' &&
          mediaType !== 'application/x-www-form-urlencoded'
        ) {
          break
        }

When applying our contracts, we don’t need the //@ requires contract constraints anymore.

form-gate-fixed.verify.ts
//@ backend dafny
//@ option string-semantics javascript-utf16
//@ option dafny-library local

function getMediaType(contentType: string): string {
  const semi = contentType.indexOf(';')
  const firstPart = semi === -1 ? contentType : contentType.slice(0, semi)
  return firstPart.trim().toLowerCase()
}

export function validatorIsFormFixed(contentType: string): boolean {
  const mediaType = getMediaType(contentType)
  return (
    mediaType === 'multipart/form-data' ||
    mediaType === 'application/x-www-form-urlencoded'
  )
}

export function readerIsForm(contentType: string): boolean {
  const semi = contentType.indexOf(';')
  const firstPart = semi === -1 ? contentType : contentType.slice(0, semi)
  const mediaType = firstPart.trim().toLowerCase()
  return (
    mediaType === 'multipart/form-data' ||
    mediaType === 'application/x-www-form-urlencoded'
  )
}

export function checkFormGateFixed(contentType: string): boolean {
  //@ ensures readerIsForm(contentType) ==> validatorIsFormFixed(contentType)
  return !readerIsForm(contentType) || validatorIsFormFixed(contentType)
}

Running lsc check after attaching the same contracts to the updated v4.13.18 release version returns cleanly. This verifies (returns UNSAT) for every arbitrary UTF-16 string value.

$ lsc check form-gate-fixed.verify.ts
Generated: form-gate-fixed.verify.dfy.gen
Created: form-gate-fixed.verify.dfy
Running dafny verify...

Dafny program verifier finished with 9 verified, 0 errors

Conclusion#

I think there’s a lot more potential to be squeezed out of this style of in-language verification tooling (LemmaScript, Veripy, Verus). There are obviously still rough edges as we’ve seen, such as the full range of language features not being implemented yet. You can hill-climb counterexamples of a spec when the real target is too difficult to build or run. You get backpressure on agent assumptions about what is or isn’t buggy during an audit. And you can create trigger repros and validate that the fix is correct using the same tooling in the same workflow. I’ll definitely be exploring more ways to apply this for bug hunting.