I also give an update download/verify letting a refused corrupt bundle survive as an example.
I give background preview refreshes overwriting newer revisions as an example of a check-then-act bug.
I use agents to look for bugs caused by implicit state machines, as well as lifecycle and failure cases that leave software in an invalid or corrupted state.
I told an agent to look for implicit state machines and bugs that happen bc of them, and it found and fixed 4 real bugs in Exact.
I described a broader set as 15 Other kinds of bugs I've found in Exact that you can tell an agent to look for.
I identify Mid-flight cancellation & teardown as item 1/ to look for: work can start asynchronously and then be cancelled, closed, or unmounted before finishing.
I give this example: A worker teardown freeing a WASM handle while queued rAF callbacks still fired.
I also describe this example: A pending timer resurrecting a closed host.
I describe Trust boundaries as item 6/: data from a file, URL, network, or save state can be trusted without validation.
I give this example: javascript: URLs sneaking into hrefs (XSS).
I also flag these examples: Unvalidated remote refs passed to git fetch (arg injection).; Corrupt saves aborting release builds.
I describe Halfway failure as item 7/: a multi-step write can fail partway and leave state half-mutated or wedged.
I give failed payment persistence swallowed without rollback so retries consumed an unpersisted IAP as an example of halfway failure.
I also flag numeric narrowing, Unicode, and escaping as bug patterns at format seams, where silent integer truncation, unescaped raw text, or coercion can cause errors.
I give the example of 16 casts colliding with 0xFFFF sentinels.
I also point to nulls zeroing Google Pay totals as an example of a coercion bug.
I identify check-then-act as a bug pattern: code checks a precondition, then acts later after another thread, file, or revision has changed what was underneath.
I also identify GPU window flags mutated before configure succeeded as a halfway failure case.
Related: input and data boundary bugs, integration and verification gaps, agent feedback loops