Definitions

Runtime vision and runtime evidence.

Runtime vision is the capability: an agent can look into a program while it runs. Runtime evidence is what the agent gets back. This page defines both, names the types of evidence, and says what each type is good for.

01

Two terms

Runtime vision is an agent's ability to observe a running program on its own terms. It chooses a place in the execution, declares what it wants to know there, and reads the answer, without a person setting anything up and without editing the source. Reading files and running tests are not runtime vision. They tell the agent what the code says and whether a check passed.

Runtime evidence is the data that comes back. It ranges from a single record of one call to a finding that summarises thousands of them. lensd produces it in a fixed, structured form so that an agent, a person and a test harness all read the same thing.

The distinction matters when measuring. Vision can be present and unused: an agent that has the tool and never calls it has gained nothing. So our studies are designed to measure the evidence that reached the agent, and what the agent did after it arrived.

Evidence isMeaning
ObservedIt comes from a program that ran. A prediction read off the source is a different thing, however good.
DeclaredThe agent says where to look and what to keep before it looks. Nothing is collected by default.
BoundedA budget caps hits, depth and bytes, so the cost of a piece of evidence is known in advance.
AttributedEach item names the build, the place and the flow it came from, so a later reader can tell whether it still applies.
02

Types of runtime evidence

The types differ in how many observations stand behind them. That one property decides most of what a type can do for an agent, so the list runs from a single activation to many.

RE-01

Available in Hyperset

Record

What one call did at a declared place: the arguments it received, and the value it returned or the exception it threw.

Drawn from
One activation
What it means
A fact about one execution. The agent could usually obtain it with a call of its own, so its worth is the work it saves.
RE-02

Available in Hyperset

Trace

The records of one request in order, across the functions and services it passed through.

Drawn from
One flow
What it means
The path this execution took. It settles which branch ran and where a value changed hands.
RE-03

Experimental

Delta

The records that differ between a run before a change and a run after it: a return that changed, an exception that appeared or went away.

Drawn from
Two runs of the same calls
What it means
What the edit did to behaviour, with everything unchanged left out. An empty delta is itself an answer.
RE-04

Experimental

Invariant finding

A property that holds every time a piece of code runs, and the exact activation where it stops holding.

Drawn from
Many activations of one place
What it means
A rule the program keeps without stating it. The activation that breaks the rule is where the defect is.
RE-05

Experimental

Coupling finding

Two things that move together at runtime: components writing the same state, or a value that tracks a symptom across flows.

Drawn from
Many flows compared
What it means
A dependency that no import or call graph shows. It says what else a change will touch.
RE-06

Experimental

Intervention comparison

The difference between two runs of the same flow where the agent changed one condition on purpose.

Drawn from
A control run and a changed run
What it means
That this change altered this outcome under these conditions. It is the only type here that the agent caused.
03

Records and findings

The first three types are records: they report what happened. An agent with a shell can often get the same fact by calling the program itself. Handing it over saves the work and adds no knowledge the agent could not reach.

The next two are findings: claims built by comparing or aggregating many observations. No single call reproduces one. A finding states its claim in plain language, says what was run to support it, and counts the observations behind it. The example below is written by hand in the format our bench studies use.

{
  "category": "invariant",
  "claim":    "reserved never exceeds stocked, except when one checkout reserves two lines that share an inventory item",
  "evidence": "5 single-line reservations against a stock of 5 each held. One two-line checkout left reserved = 6, stocked = 5.",
  "support":  6
}

Findings are where the methods in the technique catalogue do their work: latent invariants produce the first kind and runtime correlation the second.

04

What each type means for the measures

We hold runtime vision to four measures: speed, cost, correctness and regression. Evidence types do not serve them equally, and the reason is the split above.

EvidenceSpeed and costCorrectnessRegression
RecordYes——
TraceYesIn part—
DeltaYesIn partIn part
Invariant findingIn partYesYes
Coupling findingIn partYesYes
Intervention comparisonIn partYesIn part

Speed and cost respond to any evidence that saves a step. A record only has to spare the agent a call, a log line or a rerun it would otherwise have made. The saving is real as long as reading the evidence costs less than the search it replaces, which is what the budget is for.

Correctness needs evidence the agent could not have produced alone. A fact the agent can fetch for itself rarely changes whether it reaches the right fix. A finding can, because it carries a rule or a dependency that is written nowhere in the source.

Regression uses the same evidence defensively. A coupling finding that explains a defect also says what a fix might disturb. An invariant that located a bug is afterwards a check on every later change. It is one body of evidence with two uses.

This mapping is our working position and the thing our studies test, one cell at a time.