* perf(agent): replayed trace actions carry the test origin
A replay executes recorded actions with no model reading the screen after
them; only its own relocation looks, and it polls. So a replayed action is
a deterministic step to the engine: on agent-device it acts without the
settle wait, under the same transition budget a test's tap gets. The step
accounting learns the replay span from the cache session's replaying hook
and stamps origin 'test' on the actions inside it.
* fix(agent): a replayed navigation carries the test origin too
navigate takes the step's full operation context rather than the targeted
one; the replay stamp now applies to both.
* perf(agent-device): deterministic steps act at once; settle is for the agent
A test's step verifies its outcome with expect, so it never waits for the
screen to settle. The runner now tells engines who is acting through
OperationContext.origin ('test' from the locator engine, 'agent' from the
act loop), and the device engine settles only agent actions.
The one wait a test keeps is the transition budget: accessibility frames
report a control's final position from the first frame of a transition,
so a modal's button or an alert's OK looks landed while it is still
sliding, and a tap there hits what is behind it. A control that appeared
or moved with the previous action waits out the budget (500 ms, counted
from that action's return); one already in place is acted on at once.
Nothing is observed for this, so idle steps pay nothing.
react-native-pager-view, 11 tests, one iPhone 17 Pro simulator:
190 s with agent-device's 500 ms settle, 142 s with 150 ms, 117 s now,
three runs each, all passing. Taps average 673 ms against a 600 ms
XCTest floor; the waiting moved into expect, which polls.
* fix(agent-device): transition guard edge cases from review
A transition wait that is cancelled no longer lets the action behind it
go out; a launch records no screen before it, so every control of the new
screen waits its budget; a toggle already in the wanted state sends
nothing and is not recorded as an action.
* perf(agent-device): settle actions in 150 ms by default, configurable per engine
Every tap, fill, and back asked agent-device to settle with its 500 ms
quiet window, which put a fixed second on each action: 1.6 s per tap
measured against 0.6 s without settle, 2 s on an alert, up to 5 s on a
screen push. Since the runner polls on its own (expect, actions waiting
for their node), the wait only has to keep the next observation off a
transition frame, and every frame of a running animation changes the
tree, so 150 ms catches one in flight. The window is now an engine
option, settle, with false skipping the wait.
react-native-pager-view's 11-test suite on one iPhone 17 Pro simulator:
190 s before, 142 s after, two runs, all passing.
* chore(agent-device): keep the settle helpers module-private
* feat(explore): configured credentials reach the explorer as step secrets
* fix(explore): the planner grammar accepts long fields and clips them, instead of failing gemini's plans
* fix(explore): strip provider digit padding from plans, cover one mid-run planner failure with a continuation charter
* chore(testbed): drop committed ad-hoc explore output, ignore .e2e/explore-*/
* test(explore): context-management benchmark arms: experiment knobs, a one-conversation explorer, repeats and aggregates in the bench
* fix(explore): every planner field is required, as OpenAI strict structured output demands
* test(explore): scripted planner answers carry every field
* fix(explore): the conversation arm follows the compaction signature from #253
* fix(explore): bound the credential inventory, keep long numbers, and report provider failures in the conversation arm
- an inventory that would not fit a step parameter is INVALID_CONFIG before
anything starts, instead of a failed first charter
- unpad strips digit runs of twenty or more: phone, order, and card numbers
survive; the observed provider padding is hundreds of digits
- the planner-no-history arm no longer refers to a ledger it does not show
- the conversation arm keeps only budget exhaustion as a graceful end; a
provider or app failure aborts the run, as the step body already does
- the explorer is told what to do when no type_secret tool is offered
- the bench rejects non-positive --repeats/--concurrency and never counts a
missing cost estimate as zero
* refactor(explore): ship the product, not the benchmark arms
The context benchmark is done and its verdict is the default behavior:
one act per charter, the planner given the explicit record of steps and
findings, the findings so far in each step's parameters. The knobs that
produced the other arms go: E2E_EXPLORE_EXPERIMENT, the one-conversation
explorer, EXPLORE_LEDGER_BYTES in the testbed config, and --arms in the
bench script. Exports only the deleted arm used are private again.
* refactor(explore): resolve the config once, run as the selected agent, keep evidence as attempt artifacts
The explore entry resolved the raw config three separate ways before the
runner resolved it again: a target pick that swallowed errors, an agents
remap that re-implemented resolveAgents, and a credential pass with its own
object guards. It now calls resolveConfig once, with the --agent override,
and reads the target, the agent's executor, and the credentials from the
result. An unknown target is UNKNOWN_TARGET through selectTargets, as for
run; an unknown agent or a config that does not resolve fails before the
run, as the goal and budget flags already did.
The explorer is installed under the selected agent's name and `agent` is
passed to run, so the report's steps name the agent the exploration ran as
instead of claiming `default`.
Finding evidence went to a private folder under the artifact root, outside
the attempt directory, the report's artifact records, and any configured
ArtifactStore. StepExecutorContext gains attachScreenshot(pixels, label),
exposed on the tool context, so the finding tool keeps its evidence as a
screenshot artifact of the act step; the finding references it by
artifactId.
The loop returns why it ended and the state is closed once, so the two
dead `aborted` assignments before throws are gone. Text is bounded in the
state only: beginStep returns the bounded step and the body acts on it;
plan.ts keeps repairPlan, which lists every provider-quirk repair in one
place. DefaultAgent exposes its options as one field. The runner has one
in-memory seam and one narrowed worker config path. The CLI shares one
action body between run and explore and derives the explore exit-code
table from EXIT_CODES.
* feat(cli): e2e explore runs the agent toward a goal without a test file
* test(testbed): bug garden with planted defects and an explore benchmark
* fix(explore): review round: resolved target names, no app.open without a URL, clock recheck, garden and bench hardening
* fix(explore): review round two: one config for the target pick and the run, pickTarget under test, clock wording
* feat(explore): build the explorer from agents.default or --agent, on the agents config
* docs(explore): the loop clock is a normal ending, a planner call timing out is not
* fix(explore): review round three: --agent default works without an explicit default, docs qualify the model and executor cases