Commit Graph
39 Commits
Author SHA1 Message Date
Oskar Kwaśniewski ec3b6a145a feat(agent-device): agent-device is a regular dependency again (#298) 2026-09-14 11:54:07 +02:00
Oskar Kwaśniewski 5d1ae7a7f5 docs(reference): cut the slop from the Reference tab (#295) 2026-09-14 09:42:41 +02:00
Oskar Kwaśniewski c2c5df7df9 feat(e2e)!: the runner publishes as e2e; @e2edev/e2e is retired (#294) 2026-09-14 08:56:22 +02:00
Oskar Kwaśniewski abf1958867 feat(engine)!: lock the engine contract as a UI-only, cross-platform SPI (#291) 2026-09-14 08:44:46 +02:00
Oskar Kwaśniewski d486e40e73 feat(agent): Thinking lines show the model's reasoning (#292) 2026-09-14 07:59:58 +02:00
Oskar Kwaśniewski 799b29fbfa feat(config)!: drop origin allowlists everywhere; navigation and secret fills are not gated by origin (#290) 2026-09-12 18:48:26 +02:00
Oskar Kwaśniewski aa3b05bbbd feat(agent): a judgment sees the screen and nothing else, can run on its own judge model, and answers inconclusive instead of guessing (#288) 2026-09-12 18:08:48 +02:00
Oskar Kwaśniewski fce4aafeea perf(agent): replayed trace actions carry the test origin (#286)
* 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.
2026-09-12 15:57:03 +02:00
Oskar Kwaśniewski 4480e8b0e5 perf(agent-device): deterministic steps act at once; settle is for the agent (#283)
* 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.
2026-09-12 15:57:02 +02:00
Oskar Kwaśniewski 8ad60e4aeb perf(agent-device): settle actions in 150 ms by default, configurable per engine (#281)
* 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
2026-09-12 15:57:02 +02:00
Oskar Kwaśniewski 8811ba7de9 feat(report): a markdown reporter writes the run as summary.md, with an exploration's findings, and the GitHub comment renders from it (#284) 2026-09-12 15:54:10 +02:00
Oskar Kwaśniewski 1d1255f5bb docs(cache): explain what a recording is, what must match, when it is written, and why a step was not replayed (#279) 2026-09-12 14:53:40 +02:00
Oskar Kwaśniewski f03006d47f feat(config)!: secrets declares API keys, tokens, any value the model never sees (#280) 2026-09-12 14:14:56 +02:00
Oskar Kwaśniewski ff33218345 docs: e2e is agentic testing first; quickstart for web and mobile; icons everywhere (#282) 2026-09-12 13:52:59 +02:00
Oskar Kwaśniewski 7a456094a8 feat(agent-device)!: agent-device is a peer dependency, so a project keeps one copy and one CLI (#278) 2026-09-12 11:38:51 +02:00
Oskar Kwaśniewski f53e8e2246 feat(app): url port 0 allocates a free loopback port for the run; {port} reaches the app command (#273) 2026-09-12 11:34:50 +02:00
Oskar Kwaśniewski 07cae8787c docs(cli): run the CLI as npx e2e; drop --no-install everywhere (#275) 2026-09-12 11:07:20 +02:00
Oskar Kwaśniewski 1bf533f664 feat(explore): the terminal shows the exploration step by step, each finding as it is reported, and a Findings section with the evidence (#276) 2026-09-12 11:06:59 +02:00
Oskar Kwaśniewski c553b614de feat(agent)!: the act model sees the screen; screenshot and tap_at bring pixels into the act loop (#258) 2026-09-11 20:18:59 +02:00
Oskar Kwaśniewski 38b3f1e754 fix(run): a stalled command or service reports progress at half its budget and fails with its last log lines (#270)
Refs #158
2026-09-11 20:02:35 +02:00
Oskar Kwaśniewski 454e9e24f4 fix(cli): run and list match a bare file name, and reject a flag passed as a file (#267) 2026-09-11 20:01:37 +02:00
Oskar Kwaśniewski 694c5fb9ea feat(test): test.extend defines your own fixtures with setup and teardown (#271) 2026-09-11 19:59:49 +02:00
Oskar Kwaśniewski dfc4febe46 feat(playwright)!: playwright is a peer dependency, so an app keeps one copy and one browser cache (#272) 2026-09-11 19:57:58 +02:00
Oskar Kwaśniewski cadebfaef4 feat(expect): expect.poll re-reads a value until the matcher holds (#268) 2026-09-11 19:52:34 +02:00
Oskar Kwaśniewski fcf4fe6ff7 docs: split guides and references by platform (#266) 2026-09-11 17:32:13 +02:00
Oskar Kwaśniewski afde1981c5 feat(cli): e2e mcp gives coding agents a live session on the app (#181) 2026-09-11 15:53:15 +02:00
Oskar Kwaśniewski 00ce41396d feat(report): tally the trace cache under the AI row of the run summary (#265) 2026-09-11 12:23:41 +02:00
Oskar Kwaśniewski 8287bf930b feat(run)!: run one test as several agents; --agent takes a list (#262) 2026-09-11 10:03:35 +02:00
Oskar Kwaśniewski 043d85e0fe feat(explore): configured credentials reach the explorer as step secrets (#251)
* 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.
2026-09-10 17:50:03 +02:00
Oskar Kwaśniewski b8a7824e9b feat(cli): e2e explore runs the agent toward a goal without a test file (#243)
* 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
2026-09-10 17:50:02 +02:00
Oskar Kwaśniewski 2d0c6931c4 feat(agent)!: the model is an AI SDK instance the config constructs; init asks which gateway (#255) 2026-09-10 17:26:25 +02:00
Oskar Kwaśniewski 31db98562a feat(agent): requests reuse the provider prompt cache and survive one context overflow (#253) 2026-09-10 16:49:21 +02:00
Oskar Kwaśniewski 38d4424eb1 fix(run): redact filled secrets out of the trace before it is registered or stored (#245) 2026-09-10 14:50:34 +02:00
Oskar Kwaśniewski d4a1953a85 fix(cli): load .ts config and tests as ESM in any package, pin the engine init installs (#250) 2026-09-10 14:49:45 +02:00
Oskar Kwaśniewski a0a4df01b4 feat(github): the GitHub reporter comments on the pull request from Actions (#246) 2026-09-10 14:47:36 +02:00
Oskar Kwaśniewski 658b9c22cc feat(agent): pin an agent per test, group, or call with the agent option (#249) 2026-09-10 14:05:00 +02:00
Oskar Kwaśniewski f11f8813e5 feat(playwright): reach protected previews with headers and basicAuth (#247) 2026-09-10 13:36:21 +02:00
Oskar Kwaśniewski c72b05e57f feat(config)!: agents by name replace agent, and --agent picks one per run (#244) 2026-09-10 11:59:30 +02:00
Oskar Kwaśniewski b67e4d1aac docs: move the docs site from Starlight to Mintlify (#240) 2026-09-09 18:23:08 +02:00