* fix(secrets): rewrite traces and text downloads whenever the run has a secret value
A registered value a test passed as a plain string (an app.open URL, a fill)
was redacted from titles, labels, and agent input but kept verbatim in
trace.zip: trace and download rewriting was gated on the exposure level,
which only a fill or an engine-held secret raises. Rewriting now depends on
the session ledger holding a value. The engine exposure level had no other
consumer and is removed; exposure now only decides pixels and saved-session
taint.
* fix(secrets): cover a plain-string fill, scope docs to the session's known values
* docs(secrets): download redaction is whole-value; TRACE_WITHHELD outside-path case
* docs(secrets): name the download rewrite failure path
* fix(security): allow only http(s) navigation, refuse wrapped schemes on device links
view-source:file:// passed the file:/data:/javascript: denylist and loaded local files via app.open, browser.goto, and the navigate verb. resolveNavigationUrl now admits http: and https: only; mobile links also refuse view-source:, blob:, filesystem:.
* fix(security): admit exact about:blank, sync rule text in AGENTS.md and SECURITY.md
* fix(web): refuse about:blank cookie URL, qualify scheme rule text
* fix(expect): matcher options are honored or rejected, never silently ignored
* refactor(web): reuse core rejectUnknownOptions, presence toHaveAttribute reads third arg
- e2e/engine exports rejectUnknownOptions; web drops its timeout-only copy
- toHaveAttribute(name, undefined, options) validates and times out on options
- waitForURL waitUntil refusal tested and noted in migration table
* docs(engine): rejectUnknownOptions takes code, options must be plain object
* fix(expect): toHaveAttribute refuses a null value or options; tests use the @e2e-dev scope
* fix(expect): use the browser fixture name after the web rename
* feat!: the app is declared on its target; engines only drive it
The app under test moves from the engine's options to `targets: [{ engine,
app }]`: `url`, `bundleId`, `appPath`, `identity`, `environment`,
`launchArguments`, `permissions`, `command`, and `readyUrl`. `web()` and
`mobile()` refuse every moved option in one `INVALID_CONFIG` naming the
target block; `defineEngine({ app })` is gone and engines check what their
platform needs in `validateApp`. `requires: ['browser' | 'native-app']` is
derived from the target's app. Replay cache and session keys are byte for
byte what they were, pinned by target-identity.test.ts.
Dependency services are not part of this version: `services` anywhere, and
`web({ services })`, fail saying so. `app.command` on port 0 without a
command, and `reuseExisting` on a free port, are refused. An `e2e mcp`
open cancelled or disconnected mid-start stops what it started, and a hung
shared start is abandoned once no session waits on it.
* fix: review follow-ups: cancelled opens, abandoned starts, null targets, stale docs
* refactor: drop the moved-option messages; old app keys are unknown keys
* test: give the replaced-nodes suite a budget that survives a loaded runner
* test: size the replaced-nodes hook budget to its seven tests
* test(skill): fail a skill or docs paragraph that passes the removed --artifacts
* fix(config): name the replacement for a removed createAgent import
* fix(config): keep the code of a config error raised while the config evaluates
* fix(secrets): refuse a secrets.get() reference where a string is needed
* fix(config): reject unknown keys in engine, command, test, and query options
* fix(config): refuse a tests entry naming a directory, name the ! entry excluding a positional
* refactor(config): derive option key lists from their types
* fix(config): one shared unknown-key check; drop undefined env values
Setup and describe option keys typed from their interfaces; a directory tests entry is INVALID_GLOB like a trailing slash.
* fix(collect): name the excluding ! entry when exclusions left nothing, and in on-disk casing
* fix(config): address review - exclusion hint for bare names, array env, qualified hints
* test(select): use a missing tmp root, not /root, which CI cannot stat
* fix(mobile): accept videoTouches, added on main by #671, in the mobile() key list
* fix(mobile): reject unknown permission names and states in mobile() and device.openApp
Names and states are checked against DevicePermission and PermissionState
through satisfies-typed key lists. INVALID_CONFIG at load, INVALID_ARGUMENT
from device.openApp, before any device command. rejectUnknownKeys takes an
optional code for the test-time case.
* fix(eas): reject unknown easSimulators() options with INVALID_CONFIG
Its options are its own, mapped onto EAS's create input, not a passed-through
SDK body, so a typo such as buildID was dropped silently. Its two other option
refusals are INVALID_CONFIG too. e2e is now a peer, for e2e/engine.
* fix(mobile): require a plain object for permissions; clarify eas and permission notes
A Map passed the object check with no own keys, and the preset applied none
of it.
* 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(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
* 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
* 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(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.
Closes#486.
- The act grammar mapped 5 of the 16 engine actions. Every declared action is now a tool: `hover` (and `hover_at` at a point), `double_tap`, `long_press`, `right_click`, `check`, `drag`, `scroll_to`, `upload`, `back`. A verb the engine does not declare is not offered; `check` needs both `check` and `uncheck` because it sets a state rather than flipping one.
- One pattern end to end: the verb table in `packages/e2e/src/engine/session.ts`, `ExecutorActions`, the dispatcher, trace-1 record variants with replay (`relocatePair` re-finds both ends of a drag on one screen), the model tools built from one table per verb family, the `e2e mcp` catalog, docs, skill references.
- `upload` is policy-gated before the engine sees a path (`packages/e2e/src/agent/upload-paths.ts`): project-relative, resolved inside the project root through symlinks, no hidden segment such as `.env`, `.git`, `.e2e`. A refusal is `POLICY_DENIED` and an `upload.path` policy event on the step; a missing file is `INVALID_ARGUMENT`. A page can talk a model into naming any path; the harness decides.
- Web benchmark: drag-and-drop and kanban-board join the agentic suite with committed recordings; hover-menu is re-recorded as hover, hover, tap (the old recording was three taps, which passed because a click moves the pointer first). Testbed: `tests-agent/verbs.e2e.ts`, one live step per verb.
- Left out: tab switching (no engine contract yet) and mobile `home`/`openLink` (device fixture only, outside the engine SPI).
```mermaid
flowchart LR
A[engine.actions] --> B[VERBS_BY_ACTION]
B --> C[target.verbs]
C --> D[createGrammarTools]
D --> E[ActionDispatcher]
E --> F[engine.perform]
E --> G[trace-1 record]
G --> H[zero-turn replay]
H --> E
```
The vocabulary a web target offers, in the order the model sees it:
```
observe, tap, double_tap, long_press, right_click, hover, scroll_to, type, press,
select, check, drag, upload, scroll, navigate, back, screenshot, tap_at,
hover_at, type_at, press_at, select_at, type_secret, complete_step
```
The tap variants are separate tools, not a `kind` option on `tap` as #486 proposed. Offered as an optional enum, gpt-6-luna-fast filled it on ordinary controls and kept doing so after the description and system rule said not to; a double-click on a submit button submits twice. Live traces, same steps:
| Step | `tap {target, kind?}`, two rounds | separate tools |
| --- | --- | --- |
| Accept terms (sticky-chrome) | `kind: "double"` | `tap` |
| Rename menu item (context-menu-trap) | `kind: "long"` on every tap | `tap` |
| Archive card (testbed board) | `kind: "double"` | `tap` |
| report.pdf context menu (testbed controls) | `secondary`, then `long` | `right_click` once, 3 model calls instead of 4 |
Live on gpt-6-luna-fast: hover-menu, drag-and-drop, kanban-board, context-menu-trap, sticky-chrome pass; the testbed verbs suite passes 8 of 8. The three new recordings replay read-only in under a second each.
* fix(mobile): React Native controls read right on iOS, closeApp closes the app, a lost session is APP_NOT_OPEN, a discovered emulator boots by serial
A view with accessibilityRole checkbox or radio has no UIKit trait, so React
Native spells role and state into the accessibility value and XCTest reports
an Other; the node takes the spelled role and state. getByLabel answers with
the innermost match, since iOS reports a TextInput as a labelled host around
the labelled field. doubleTap sends two presses. closeApp terminates the app
before ending the session; foregroundApp after it is APP_NOT_OPEN. Device
verbs count as actions for the transition budget. The pool bound a discovered
device by id and selected it through the name field, which agent-device
refuses for an adb serial: SlotBinding.deviceId, deviceSelection by platform
field. The fixture engine maps its errors through the engine error table.
* fix(mobile): only an XCTest Other carries React Native's spelled role
A native iOS control's value is content, whatever words it starts with; a
text field holding "checkbox, unchecked" kept its value and role.
* fix(agent): recover semantic timeouts with masked pixels
Distinguish unavailable semantics from an empty tree so a proven fresh screenshot can remain useful without supporting an absence judgment. Reserve time for independent masking, reject stale references, and stop trace replay or recording after evidence degrades.
Respect judgment vision settings and attempt pixel taint. Keep device capture closed when accessibility bounds cannot prove masking. Report pre-model capture failures without inventing a revision or verdict.
* fix(agent): isolate fallback capture and evidence ownership
Reserve document node IDs before readers run and bound the entire semantic transaction, including metadata and handle readback. Quarantine late handles and publish each capture only while its page and generation remain current.
Carry semantic or pixel evidence through the internal session and agent paths. Preserve completed cache captures for one executor handoff, retire semantic presentation history on fallback, and keep public interfaces extendable.
* test(agent): align capture assertions with cache handoff
Count the reused cache observation once and wait for the fixture delayed control before asserting an unchanged screen after batched actions.
* docs(agent): clarify fallback without act vision modes
* test(agent): cover requested pixels after semantic fallback
* test(playwright): wait for recorded paint in lifecycle coverage
* test(playwright): flush a frame before checking video paint
* 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.