* docs: fix stale and wrong claims in guides
- output: --artifacts -> --output in bug-bash guide and skill; sessions and
cache locations follow output / cache.dir in security; artifact path
gains the agent segment in github
- ci: upload artifacts on !cancelled() in ci guide and skill
- mcp: several sessions (--max-sessions) in security
- replay cache naming: "Commit the replay cache" heading and anchors
(old anchor kept, e2e init links the new one),
trace replay -> replay cache in writing-an-engine and executors
- timeouts: STEP_TIMEOUT / STEP_BUDGET_EXHAUSTED advice names config
timeout, judgmentTimeout, maxSteps, maxModelCalls (debugging, skill)
- mobile: app.open() in device examples and quickstart, mobileTools pack
all mutating, Android toolbar anchor, drop agent-device release note
- executors: verdict code rules, missing ctx members and scrollUntil,
a replay cache section; agent-steps passed+code rule
- migrate: swipe direction is the content's, `!` test exclusions,
video row status, Kernel for Selenium Grid
- secrets: an unset env string fails config load, a provider's value is
redacted only from its first fill; three secret sinks
- misc: Models link text, telemetry links outbound connections, integration
config wording, web-only expect(web) in a cross-platform block,
capabilities heading in engine reference, swipe direction in screen reference
* docs(skill): separate the credential redaction paragraph
* docs(reference): KERNEL_API_KEY names @e2e-dev/kernel
* feat(agents)!: plain-object agents entries, createAgent and limits removed
Each agents entry is one AgentConfig object: model, judge, system, context,
tools, maxSteps, maxModelCalls, judgmentTimeout, maxObservationBytes,
maxInputTokens, providerOptions, or executor for a custom brain (system and
tools rejected beside it). No inheritance between agents.
- createAgent() kept as a stub throwing INVALID_CONFIG; bare StepExecutor or
legacy createAgent value as an entry fails naming { executor } / the object
- timeout -> judgmentTimeout, maxTurns removed (entry and
createToolLoopExecutor), unknown keys get did-you-mean
- top-level limits removed; maxModelTokensPerCall -> per-agent
maxInputTokens, the rest internal constants; report-1 run.limits keeps
its shape, filled from max across agents plus the constants
- tools validated at config load; built-in agent built from the entry at
fixture time; explore and the MCP catalog read the entry's tools
- migrate apps, docs, docs examples, init scaffold, skills, mobile README
* docs: AGENTS.md names the agent entry's model, not createAgent
* refactor(agents)!: delete createAgent instead of a throwing stub
* docs: MODEL_UNAVAILABLE scoped to the built-in agent, fixture-acquisition timing
* feat(config)!: remove specVersion from the config
The runner version is the format version. A config that still sets
specVersion fails INVALID_CONFIG telling the author to remove it. The
report's run.specVersion and the replay cache key keep their hard-coded
copies.
* feat(collect): "!" exclusions in the tests globs
An entry starting with "!" removes files an including glob matched,
in any order. Discovery never reads a directory an exclusion takes
whole, unless an including glob could reach a dot name beneath it.
A list of only exclusions is INVALID_CONFIG.
* refactor!: CacheStore and web({ screencast }) renames
TraceCacheStore is CacheStore, and the docs, skill, and CLI call the
cache the replay cache. web({ video: { size, quality } }) is
web({ screencast }) with WebScreencastOptions; web({ video }) fails
INVALID_CONFIG naming screencast.
* feat(secrets): secrets.get() in engine options, resolved per attempt
At config evaluation, before any run exists, secrets.get(name) returns
a reference by name. An engine declares the handles its options hold
in defineEngine({ secrets }); the config load fails INVALID_CONFIG for
a name no secret or credential has. The engine reads the value through
EngineAttemptContext.resolveSecret, which runs a provider fresh and
registers the value in the session and process ledgers before it
returns, without tainting the viewport. e2e/engine exports isSecret.
web({ basicAuth: { password } }) takes a Secret and declares it. Docs
show process.loadEnvFile('.env') in the config.
* feat(run)!: trace and video share recording modes; artifacts holds only store
One RecordingMode ('off' | 'on' | 'retain-on-failure' | 'on-first-retry' |
'on-all-retries') for trace and video, set on the config, a target, the CLI
(--trace [mode], --video [mode]) and a test, one precedence rule: config,
target, CLI, test. Trace defaults to on locally, on-first-retry in CI, with
a plan-time notice when a retry mode meets retries: 0. Serial members cannot
set trace.
Capability rule: a mode from the config root or a flag applies to targets
whose engine can record it, one notice naming the rest; a mode set on a
target or a test is required and fails with UNSUPPORTED_ARTIFACT.
artifacts.kinds (both forms) and artifacts.trace are removed and fail
INVALID_CONFIG naming the trace mode they meant. Failure screenshot and
screen text are always captured when the engine can. MCP sessions keep the
target's trace mode and trace only under 'on'.
* feat(run)!: output directory for every run result; ArtifactStore.putLink
output (default .e2e) and --output <dir> on run and explore hold report.json,
junit.xml, summary.md, ai-trace.json, artifacts/, sessions/ and the e2e mcp
session files; --last-failed reads <output>/report.json. The reportSibling
derivation from the artifacts dir is gone. --artifacts stays as a hidden
flag that fails with the --output it maps to.
A run clears <output>/artifacts at start. cache.dir stays independent. An
output that is the project root or outside it, is or sits in cache.dir,
would hold cache.dir under artifacts/, sessions/ or videos/, or holds a
tests glob root fails INVALID_CONFIG with the reason.
ArtifactStore gains optional putLink(link) for provider-hosted video links;
its ref lands beside the url. A passed retain-on-failure attempt's link is
never handed over, and a failing putLink never fails the run.
bench-ab and the mobile workflow move to --output.
* test(secrets): a hold's registry is probed by an unknown name, now that get() defers without one
* test(web): the download trigger's measured wait tolerates a timer firing early
* fix(secrets): rewrite the trace of an attempt whose engine holds a secret
A Playwright trace records the context options, basic-auth password in
plaintext, but a trace was rewritten only after a fill. resolveSecret now
marks the session so its trace goes through the redactor, screencast
frames kept since the value never reached the screen. The fake engine
writes a real trace archive, and the basic-auth fixture escapes its echo
and refuses a malformed header.
* fix(web): race the basic-auth secret with the attempt's signal
A provider still resolving after the launch timeout set the session after
the runner ended the attempt, so the retry failed with an attempt already
running. Resolution now runs first, raced with the signal.
* fix(mcp): a session notes a configured trace its engine cannot record
* test: a shadow-free fake trace archive and an ungarbled exclusion title
* docs: output paths, replay cache wording, and review corrections
--last-failed, --ai-trace, and the json reporter name <output> paths;
the skill says output never moves cache/ or the app's log; the
INVALID_GLOB row states the check the code makes; serial members list
only; the engine vocabulary names Secret and isSecret; the basic-auth
example uses a provider; the last trace cache wording is replay cache.
* chore(changeset): leave released notes alone; pending notes match the renames
Released CHANGELOG entries keep TraceCacheStore, the name they shipped
with; cache-store-rename.md announces the rename. The pending video and
provider recording changesets name on-all-retries and web({ screencast }).
* chore(bench): refuse a forwarded --output the harness would not clean up
* fix(secrets): a rewritten trace drops its screencast frames, engine-held secrets included
* test(testbed): admin session saved from a cookie, no secret fill
A setup that signs in without filling a secret carries no pixel taint, so tests and explorations restoring it keep screenshots.
* feat(explore): --session starts the exploration signed in
Explore collects the config's test files unselected, so the runner's own session selection runs exactly the setup that declares the name, then restores it into the exploration. In-process runs adopt the in-memory registration only for its virtual file; setup files import as usual. Planner and explorer are told they start signed in. A missing session producer now lists declared sessions with did-you-mean. Docs: a restored session keeps its setup's taint (authentication.mdx claimed otherwise).
* fix(explore): a --session setup runs as the project's agents
The explorer replaced the configured agent for the whole run, so an agentic setup pulled in by --session got the exploration rules, report_finding, explorer budgets, and cache off. In-memory tests now carry their own agents (InMemoryAttempts) and run with the trace cache off; setups keep the config's agents, cache, and retries. Uncollected-file notice no longer mentions positionals under explore; consumesSession drops the unreachable group walk.
* docs(explore): qualify app.open and screenshot claims, fix errors.mdx clause
* fix(web): show whole link targets in observations
Engine cut href at 80 chars unmarked; explorer read a cut UUID as a bug.
Engine now sends origin + whole path, ?… / #… for dropped query/fragment,
scheme for origin-less links. Harness renders same-origin targets as
paths and cuts past 256 chars with a trailing …, after redaction.
* fix(agent): render href paths only on the app origin, bound opaque and executor hrefs
- path form only when the href is on the app base origin: navigate resolves
paths against it, so a path off a foreign page sent the model back to the app
- engine reduces data:/javascript: to scheme:…, keeps blob: inner URL once
- projectTree bounds href like the line; cut never splits a surrogate pair
* fix(agent): keep app link paths whole in executor trees, strip blob userinfo
- projectTree bounds an app-origin href by its path, as the line does
- blob: rebuilds its inner URL as origin + path, blob:… when opaque
- docs name mailto:/tel:/blob: and inline payload forms
* feat(run)!: video modes on the config, targets, the CLI, and tests, with step captions
video: off | on | retain-on-failure | on-first-retry at the config root, per
target, --video [mode], and per test or describe, innermost winning.
artifacts.kinds: ['video'] and artifacts.video are removed. Kept recordings
get WebVTT step captions; a video can be a link to a hosted recording. The
engine contract's VideoSegment is a file or a link, and e2e/engine exports
the provider recording seam.
* feat(web): a browser provider records the attempts it serves, and the screencast takes a size and quality
BrowserProvider.record starts the service's own recording of the browser in
place of the page screencast. The session drives one AttemptVideo, the
screencast or the provider's. web({ video: { size, quality } }) tunes the
screencast.
* feat(mobile): a device provider records the attempts it serves
DeviceProvider.record starts the service's own recording of the leased
device in place of agent-device's. The worker learns its slot's lease id,
so record gets the lease as it traveled.
* feat(integrations): Kernel replays record the attempts that record video
* fix(run): captions never fail a video, provider values are normalized, and one list of modes
- Step captions create their directory and are best-effort.
- A provider's recording is checked at start in both engines and its URL
and start time are stored in the shapes the report schema admits; the
list reporter bounds a hosted URL.
- --video no longer hides an invalid target mode.
- A describe inside a serial group cannot set video.
- A mobile provider may keep its own leaseId field on a lease.
* fix(mobile): keep the lease type narrowed when checking its declared fields
* fix(run): MCP recordings get their step captions, a step spanning a restart is captioned in both recordings, and video.size refuses unknown keys
* fix: address review on the video API
- One stop in flight per provider recording, shared by a retry; mobile
dispose stops it, and a cancelled operation never starts one.
- Kernel retries a failed download without stopping the replay twice.
- Links from any engine are held to an http(s) URL with a host; a file a
provider names must be a regular file; media types are trimmed.
- web({ video }) takes a plain object only; the markdown page labels a
hosted artifact by its kind.
- Tests: fixture byte totals, captions linked by id, temp directories
removed, signals asserted, empty sizes, non-object options.
- Docs: engine support qualified, the explore row, the standalone preflight,
caption status text, a checked stop in the provider example.
* fix(run): a bad engine video link costs no other recording, captions path per recording in debugging guide
* test: fake engine video links doc matches segment order
* fix(mcp): session recordings follow video modes and list a provider's link
* test(web): provider test's fake page reports its viewport
* refactor(run): drop step captions from the video API, tracked in #636
* fix(web): a late provider start never replaces a newer recording, abandon keeps a failed stop's handle, video.size must be a plain object; provider recording errors and hosted URLs bounded
* feat(mcp): record video of a live session on demand
start_recording and stop_recording in the session catalog when the
engine records video. Files move to .e2e/videos/<session>/ on stop;
close_session saves one still running. Sessions no longer record from
launch when the config asks for video.
* fix(mcp): serialize recorder calls, retry a failed stop safely
Review: close could race an in-flight start or stop, and a failed file
move lost the recording. Calls now queue; a stopped recording stays
until its files move. Recording tools lose the read-only mark.
* fix(mcp): queue the close's save behind a start in flight
Review: close checked isRecording first, which is false while a start
is still pending, so that recording ran past the close.
* fix(mobile): Android status icons stay out of the tree
agent-device 0.21.15 reports each status icon as its own top-level node, so
the full-width bar rule no longer caught them. Found by the golden device
trees: every Android tree loses the clock, signal, and battery lines.
* docs(mobile): status icons are left out with the bars
* fix(mobile): a narrow systemui popup with a control stays in the tree
* fix(e2e): redaction catches a secret cut short by an observation limit
* fix(e2e): cut-secret redaction handles overlapping values and uncut long values
redactCut finds the cut fragment before whole-value rewriting, so a value
that starts with another is not half rewritten; only fields exactly at the
limit count as cut; share filesUnder test helper
* docs(e2e): cut-field contract says exactly-at-limit, names every cut field
* fix(e2e): trace scrubs secret fragments, cut redaction needs 8 chars
Playwright trace keeps the page's raw read (cut text, selections), so a tainted
trace now masks any run of 8+ chars of a registered value. redactCut masks a
trailing prefix only from 8 chars (half of a value under 16): a 1-char mask
mangled plain text and told the model the first char. Scan helper reads zip
entries so 'absent everywhere' checks cover trace.zip.
* test(e2e): trace check matches every archive segment
* fix(web): a multi-row select is a listbox, a datalist input a combobox, a grid's cell a gridcell
Found by the axe-core conformance check; each matches what Playwright's
getByRole finds, so a role read off the tree locates the control.
* fix(web): an unknown input type with a datalist is a combobox, and a padded role attribute still names its role
Chrome and Playwright both read input type=file as a button; the tree read
it as a textbox, a role the agent may type into and fill secrets into.
Found by the tree cross-check. Re-records the benchmark upload step.
Stacked on #547. The one-off refuse hook and secureRefusal() give way to a
declarative readsWithheld flag on the matcher spec: value, text, and
attribute matchers set it, poll() runs denySecureRead() on it. Every
attribute name is denied, same as getAttribute(), since the contract does
not say which attributes an engine withholds.
* fix(expect): toHaveValue refuses a secure field instead of judging its withheld value as empty
The engine withholds a secure field's value (states.secure, no value), and
readField turned that gap into '' on any value control. So after filling a
password input, expect(locator).toHaveValue('') passed and
.not.toHaveValue('') failed with observed: value "". A test checking that a
sign-in form was cleared could pass falsely. inputValue() already denies the
read with POLICY_DENIED; the matcher now does the same before its predicate
runs, negated or not, so the message never carries the value. Plain fields
are unchanged and an empty non-secure control still reads as ''.
* fix(expect): toHaveText and toContainText refuse a secure field too
The engine withholds a secure field's text as well as its value, and
readField read the gap as '' for text matchers the same way. Same invariant
as toHaveValue: textContent() already denies the read, the text matchers now
do too, negated and in list form. toHaveAccessibleName and the state
matchers still answer on a secure field.
* refactor(expect): share one secure-field read guard with the locator getters
* fix(web): toHaveClass polls for a node that is not there yet
Repro: `expect(web).toHaveClass(target, 'ready', { timeout: 1800 })` on an
element that appears after 600 ms failed after a few milliseconds with
LOCATOR_NOT_FOUND, while `expect(target).toHaveAttribute('class', ...)` on
the same locator waited and passed.
The matcher caught the read error and asked `error instanceof TestError` to
decide whether to keep polling. A project loads the engine from its config
file in one module realm (tsx) and the runner's core runs in another, so the
LOCATOR_NOT_FOUND the locator engine threw was a TestError from a copy of
`e2e` the engine never imported: same name, same code, instanceof false. The
error escaped the poll and ended the assertion.
The engine now recognizes a runner error by name and code
(`isTestErrorCode`), and only LOCATOR_NOT_FOUND is one more poll:
LOCATOR_AMBIGUOUS, policy errors, and every other code still surface at
once. `isClassified` learns the same lesson for TestError,
ConfigurationError, and InfrastructureError so a foreign runner error is
never rewrapped as ENGINE_FAILURE.
toHaveClass('') keeps reading the class attribute: it matches class="" and
not an element without the attribute. Playwright accepts both; the docs now
say so.
* test(e2e): class assertion fixtures live on their own page
The late-arriving card added to the home fixture landed between the MCP
suite's two observations of the same page, so a stale-id tap reported
"Screen changes since revision" instead of the unchanged-screen text with
its re-observed hint (Node 22 job of run 36166735299, and 4 of 10 local
runs). The engine change is not involved; the shared page's timing is.
The class assertion markup moves to /classes and the home page is back to
what main serves.
* test(web): keep timeout case under translatePwError
* fix(web): an editor's value keeps the whitespace it renders
The in-page reader trimmed a contenteditable host's innerText before
reporting it as the textbox value. A `white-space: pre-wrap` editor holding
" keep spaces " therefore failed toHaveValue(' keep spaces ') and passed
toHaveValue('keep spaces'), while a native input with the same value did
what docs/reference/expect.mdx promises: the value is compared as it is,
spaces and newlines included.
The trim existed for one case, the `<p><br></p>` an empty editor renders,
which innerText reads as a newline. Keep that outcome without losing data:
a whitespace-only document reads as '', anything else is the rendered text
as is. innerText already follows the editor's white-space rule, so a normal
editor still collapses and a pre-wrap one keeps its spaces.
* fix(web): a pre-wrap editor holding only spaces keeps them
The empty-editor rule read "whitespace-only innerText is empty", which
also emptied a white-space: pre-wrap editor whose document is typed spaces
or newlines. Tell the two apart through the DOM: the `<p><br></p>` an empty
editor renders has no text nodes (textContent ''), and formatting whitespace
between blocks renders as the one newline innerText reports for it; typed
spaces are text nodes and render as themselves, so they stay.
* fix(web): an empty Slate editor reads as empty
* fix(web): name checkboxes, radios, switches, cells, and shadow-hosted buttons from content, and a reset input by its value
The reader named from content only for button, link, heading, tab, menu
items, option, tree item, tooltip, and a few structural roles. A
`<div role="checkbox">Remember me</div>` had no name, nor did a `<td>`,
a `role="gridcell"`, a `role="switch"`, or a custom element with
`role="button"` whose text lives in its shadow root. `<input type="reset"
value="Clear">` read empty too: `reset` was mapped to `button` but only
`button` and `submit` took the value.
Repro through the runner: `getByRole('switch', { name: 'Dark mode' })`
resolves one node through Playwright's role selector while
`toHaveAccessibleName('Dark mode')` on the same locator fails with
`observed: name "" (match count 1)`, and the agent tree lists an unnamed
switch.
The role list is now accname's (the one Playwright's `roleUtils` uses)
plus the `listitem`, `status`, and `alert` the tree has always named.
Content collection mirrors Playwright's walk: a `<slot>` reads its
assigned nodes, a host reads its unslotted light children then its
shadow tree (a closed one from the record the init script keeps).
`submit` and `reset` read their value, else `Submit` or `Reset`.
* fix(web): read a closed root's slotted children once when naming from content
`contentChildrenOf` skipped a light child by its `assignedSlot`, which a
closed shadow root hides from the outside: the child read as unslotted, was
kept in the light pass, then read again through the slot. A
`<x-action role="button">Save</x-action>` with a tracked closed root holding
`<b>[</b><slot></slot><b>]</b>` read `Save[ Save ]`.
The slotted set now comes from the tracked root's own slots, whose
`assignedNodes()` answer from inside, so the text is read once at the slot.
The regression case installs the closed-root init script and navigates
first, since `setContent` alone runs no init script.
* docs(changeset): note bare submit input now reads Submit
* fix(web): a response body the browser could not read rejects text() and json()
`web.waitForResponse` swallowed a failed body read into an empty buffer.
A server answering 200 with `Content-Length: 1000`, a fragment, and a
connection reset resolved with status 200 and `text()` of `''`, so a test
asserting an empty body passed and a test after the transport failure
could not see one. The read now keeps its outcome: `url`, `status`, and
`headers` stay readable, `text()` and `json()` reject with `ACTION_FAILED`
naming the browser's reason (`net::ERR_CONTENT_LENGTH_MISMATCH`), and a
genuinely empty 200 or 204 body still reads as `''`.
* fix(web): document redirect and aborted body rejections
* fix(runner): a download is redaction incomplete unless the runner rewrote it
Every download artifact was recorded redaction: 'complete' without the
runner reading a byte of it. Fill a field through a secret, have the app
serve an export that contains the same value, and the file landed in the
attempt's artifacts as complete, and an artifacts.store received the
plaintext with metadata that said it was clean. A store exporting only
complete artifacts would have exported the secret. Screenshots on the same
session were already withheld by the pixel taint.
A download now defaults to 'incomplete', the label a video carries: bytes
the app served that the runner did not rewrite. After a secret fill on the
session, a text-like download (.txt, .csv, .json, .html) is rewritten
through the session's secret ledger before it is hashed or stored and is
labelled 'complete', the way trace text entries are. A binary or a file
that is not UTF-8 stays as served and 'incomplete'. StoredArtifact carries
the redaction the report records, so a store can act on it.
* fix(runner): a rewritten download keeps its byte order mark
TextDecoder drops a leading UTF-8 BOM by default, so a CSV served with one
and rewritten through the ledger lost its encoding marker. Decoding with
ignoreBOM keeps it as part of the text and the write puts it back.
* fix(runner): redactor matches a value csv-quoted
A CSV field doubles each double quote, so a secret holding one survived the ledger in a text download that was then labelled complete. The ledger now spells a double quote doubled too.
The scrollUntil loop already reads a settled destination on engines without scrollIntoView. Arming another change wait against that destination adds 500 ms and repeated captures before the next action.
Keep the normal stability check and the change wait after an engine makes its final scrollIntoView adjustment. Cover live execution, zero-turn replay, an already-visible row, and a delayed final adjustment through the built runner.
* fix(mobile): the build installs in prepare, setPermission and setLocation hold up on a bare session and a cold emulator
Three sources of red mobile gates that were ours, not agent-device's:
- prepare boots the device and opens the pinned app, but with appPath the
app was not installed yet, so the warm-up opened nothing and the first
test on every device paid the install and the automation runner's cold
start. The install moves into prepare; a worker without one still
installs in init.
- device.setPermission before app.open() failed with "permission setting
requires an active app in session" once the previous test left the
session on no app. The engine brings the pinned app to the foreground
first, and once more on that refusal.
- device.setLocation on Android set a fix the app could not read: the
previous run's clearLocation had switched location services off and the
emulator keeps that. The fix switches them on first.
The pull-to-refresh test tapped the claim button inside expect.poll; once
the button was gone the tap held the poll for its whole budget and the poll
timed out on a claim that had landed (0/3 locally before, 3/3 after).
mobile.yml skips the agentic suite for Dependabot, whose runs carry no
model key, and uploads reports on failure only, since the artifact quota
was full and ~20 failed jobs had lost theirs.
* fix(mobile): a longPress with no duration holds for one second
The agent's long_press names no duration, so agent-device's default hold
applied: under half a second, shorter than a React Native Pressable's
delayLongPress of 500 ms and the 800 ms the Gestures scenario sets. The
model's long press registered as a tap and the scenario never advanced
(android agentic on #539's first run, 5 model calls, rerun the same).
One second clears those, as Detox's default does; a test passes duration
for more.
* test(mobile-benchmark): the location read polls without an assertion inside
The poll asserted "not reading" on every iteration with the assertion's
own budget, so a first fix the emulator's provider took long to produce
held the poll past its deadline (android deterministic on #539's second
run, rescued by the rerun). The poll now only looks, taps read again once
the last read has answered, and gives the first fix after location
services come back on a minute.
* feat(mobile)!: the engine installs nothing on its own; the suite installs with device.installApp()
appPath stays the build the suite runs against, but neither prepare nor
init installs it any more. device.installApp() with no path installs it,
once per device, where the suite says so, and pins what it installed when
no app is; a device provider still installs on the device it leases. A
pinned app is opened by the warm-up whether or not its build is on yet.
The mobile benchmark installs through a `build` fixture in tests/fixtures.ts
that every test takes: one install per worker, kept on globalThis because
the runner re-imports the module per retry and serial group. The step shows
in the first test's report as device.installApp.
* fix(mobile): the warm-up skips a pinned app whose build the suite has yet to install, and CI keeps every run's report
With appPath and no install, prepare tried to open the pinned app on each
device and logged the failure as a runner that did not warm up. There is
nothing to open yet; the log now says the suite's device.installApp() is
what comes first.
mobile.yml uploads the report from every run (it is small and holds what
the first attempt of a flaky test met) and the artifacts only from a red
one, so a rescued attempt keeps its evidence without the quota cost.