Technique catalogue

What an agent can do once it is inside the run.

Access to a running program is a capability. These are the methods that turn it into answers: how to explore, how to find a cause in the fewest runs, how to verify a change, and how to act inside a live process.

01

Exploration

Before there is a bug there is a program nobody has fully watched. Exploration turns execution into structure an agent can reason over: what varies, what never does, and what moves together.

LT-01

Available in Hyperset

Discriminating lens placement

A process emits far more than an agent can read. Capturing everything buries the one record that matters.

Method
Place a lens only where two live explanations predict different records. A budget caps hits, depth, bytes and sample rate, so the cost of looking is fixed before the agent looks.
Establishes
Which path this execution took, with the arguments and returns at the loci the agent chose.
Example
Feature flags resolve differently in a worker and an API. One lens on config resolution in each process shows which value each one reads: the worker takes an environment default that the API overrides at startup.
LT-02

Use case

Latent invariants

Most of what a program guarantees is written nowhere. No type or test says a total is never negative; it just never is.

Method
Aggregate the records at one locus across many activations into candidate invariants: ranges, nullability, orderings, values that always appear together. The activation that breaks one is the lead.
Establishes
Properties the code upholds in practice, and the exact activation where one stops holding.
Example
At applyDiscount, total ≥ 0 holds on every activation but one. The violation carries two stacked coupons, a combination no test exercises.
LT-03

Use case

Runtime correlation

An intermittent failure has dozens of plausible upstream causes and too few failing runs to read each one.

Method
Compare captured values between failing and passing flows and rank what moves with the symptom. The ranking decides where to intervene first.
Establishes
An ordered suspect list, each entry tied to the flows that support it.
Example
A small share of checkouts double-charge. In every failing flow two workers read the same pending order within milliseconds of each other; in the passing flows none do.
LT-04

Experimental

Counterfactual runs

A trace says what happened. The question a bug asks is what would have happened otherwise.

Method
Run a unit twice from the same starting state. In the second run bind one dependency response to a chosen value and leave everything else alone. Compare what was reached.
Establishes
Whether the bound dependency took part in the outcome at all, and what changed when it did.
Example
A shipping estimate is stuck at seven days. Binding carrier.quote to 1, 2 or 9 days changes nothing, because the cache answers first and the carrier is never called. The stale-quote explanation is eliminated in one run.
02

Diagnosis

Diagnosis is a search over explanations. Each technique here spends a bounded number of runs to remove as many explanations as possible.

LT-05

Use case

Experiment selection

With five explanations and a fixed budget, the order of experiments decides whether the agent finishes.

Method
State what each remaining explanation predicts for every available probe, then run the probe whose outcomes split the set most evenly. Repeat on what survives.
Establishes
A root cause reached in close to the minimum number of runs, with the eliminated explanations on record.
Example
Several explanations fit an empty nightly export. Each experiment is chosen to split what remains, until one is left: a broad handler discards a serialisation failure.
LT-06

Use case

Causal bisection

Bisecting commits finds when a defect arrived. It says nothing about which value carries it through the program now.

Method
Pin half of the suspect values to their expected values at their boundaries and rerun. If the symptom disappears the cause is in the pinned half. This is delta debugging on values instead of commits.
Establishes
The single boundary value whose correction removes the symptom, in a logarithmic number of runs.
Example
An order total is off by one cent on a few orders. Suspect boundary values are pinned half at a time, and the symptom disappears only when the tax adapter’s rounded rate is pinned.
LT-07

Use case

Sensitivity mapping

An agent about to change a function does not know which of its inputs the rest of the system leans on.

Method
Perturb one value at a seam, within its contract, and record how far the change propagates downstream.
Establishes
Which values are load-bearing for an outcome and which are inert, before a line is edited.
Example
Each field on a pricing request is perturbed in turn. A few reach the invoice; the rest are read and discarded. The refactor is scoped to the few.
03

Verification

A change is verified when the running program shows it, on the paths that matter, including the ones that only run when something fails.

LT-08

Available in Hyperset

Observed verification

A passing test shows the test passed. An agent that says "verified" on that basis is guessing about the running program.

Method
After the edit, capture at the changed code and at the outcome it should produce. The verdict requires a record showing the new code ran and returned the expected value.
Establishes
That the changed code executed in the real process and produced the stated result.
Example
A cache key fix is accepted only after a post-edit record shows cache.lookup missing on the stale entry and the estimate returning two days.
LT-09

Use case

Unhappy-path stubs

Most catch blocks an agent writes never execute. The vendor does not time out on demand.

Method
Declare a stub at a dependency boundary: for this flow, return a 429, a timeout, a null or a partial write. The handler under test stays real and the lens records what it does next.
Establishes
How the real handler behaves when the dependency fails in a contract-correct way.
Example
A payment client is stubbed to return 429 with Retry-After. The record shows whether the handler backs off, how often it retries, and what it surfaces when the retries run out. The retry path runs for the first time since it was written.
LT-10

Use case

Runtime induction

One observed success verifies one input. The claim an agent wants is about every input of that kind.

Method
Take the observed runs as base cases and state the property they share. Then perturb inputs at the boundary to try to break it. What survives is promoted to a standing expectation, checked on every later run.
Establishes
A general expectation backed by observed cases and by failed attempts to refute it.
Example
From the refunds it has observed the agent proposes: refund ≤ captured amount. Perturbed requests fail to break it, so it becomes an expectation, and a later partial-capture regression violates it.
LT-11

Use case

Runtime mutation testing

A suite can be green and still notice nothing. Coverage counts lines reached, not errors caught.

Method
Corrupt a value in flight at a boundary and watch whether any guard, assertion or test reacts. A mutation that reaches the outcome unnoticed is verification debt.
Establishes
Which corruptions the system would ship, located at the seam where a check is missing.
Example
Values are corrupted at each seam of a payment flow. Most are caught. The ones that reach the response unnoticed cluster at one unvalidated currency field.
04

Entering the runtime

Observation makes an agent a witness. Write actions make it an experimenter: it can act inside the live process, at any reachable point, with the consequences fenced.

LT-12

Use case

Fenced reproduction

Reproducing a bug that writes to a database or sends an email leaves rows, messages and cleanup scripts behind.

Method
Mark one flow as a reproduction. At each effect boundary that flow’s write is recorded and answered with a faithful response in place of the real call; all other traffic is untouched. The effect is blocked independently of the stub.
Establishes
A reproduction that is stateless and repeatable, with each attempted effect kept as evidence.
Example
An order-creation defect is reproduced as often as the diagnosis needs. Each attempted insert is recorded, no row is written, and every run starts from the same state.
LT-13

Use case

Direct invocation

Driving a handler through its UI costs seconds per attempt and depends on the screen being in the right state.

Method
Pick a call site the lens has already captured, with its receiver and arguments, and invoke it again in the live process with arguments the agent supplies.
Establishes
How the handler responds across many inputs. This is fuzzing at the level of application functions.
Example
A batch of payloads is run against a captured submitOrder call, with no trip through the UI for each one. The payloads that diverge all have an empty shipping region.
LT-14

Use case

State teleport

Empty, loading and error screens are the least seen and the most often broken, because reaching them takes seed data.

Method
Bind the boundary that feeds a view to a fixture for one flow: an empty list, a pending promise, a failure.
Establishes
What the interface renders in a state the data would otherwise have to be arranged to produce.
Example
A dashboard’s empty states are rendered and checked in one pass, with no account created and no rows deleted.
LT-15

Use case

Compatibility probing

A service first meets the previous and the next version of a payload after it is deployed.

Method
Inject the older or newer payload shape at the parsing boundary and leave the parser, validator and migration code real.
Establishes
Whether the code under test accepts, rejects or silently misreads a shape it will meet after deploy.
Example
A v3 webhook payload is injected at the parser of a v2 consumer. It is accepted, and the renamed amount field is read as zero.
05

Horizon

The techniques above act at a boundary in a live process. The next ones need the history of a run, or control over its schedule. Each is a research direction with one hard problem in front of it.

LH-01

Use case

Execution replay

Re-drive a recorded history with one condition changed, so the counterfactual keeps the original receiver, closure, transaction and preceding writes.

Open problem
Restoring enough state that a re-fired activation is a resumption and not a fresh call.
LH-02

Use case

Paired fork

Fork one request into two copies from identical state, intervene in one, and diff the downstream traces.

Open problem
Forking state along with the request, so caches, ordering and external responses cannot explain the diff.
LH-03

Use case

Interleaving control

Hold one flow at an async boundary while another passes, to produce a chosen interleaving on demand and show the failing order of a race.

Open problem
Per-flow holds on runtimes whose pause is global to the isolate or the process.
LH-04

Use case

Causal profiling

Estimate what speeding up one function would buy by slowing everything else relative to it, before anyone optimises it.

Open problem
A controlled virtual speedup across threads, where today’s boundary delays reach only selected calls.
LH-05

Use case

Try before edit

Apply candidate fixes to the live process, race them from the same state, and write only the winner to disk.

Open problem
Giving every candidate an identical starting state, and treating a live patch with the same care as an edit.
LH-06

Use case

Scratch identity

Run under a test principal the agent created this turn, so login-gated flows are verified without a person. The verifier is substituted; token parsing, middleware order and authorisation stay real, and expectations about authentication itself always run against the real thing.

Open problem
A gate separate from every other write action, because this is the one that changes what a run is allowed to do.

The mechanism under these techniques is on the technology page. The studies that measure them are in the research catalogue.