Repository navigation
feat(agent): params on assert and waitFor - #1463
Conversation
🟢 e2e web: 91 passedAll 91 tests in 41 files
e2e 0.21.3 · 1m 8s · web · run artifacts |
🟢 e2e web agent: 33 passed34 agent steps · 26 replayed from cache · 20 model calls · 85.3k tokens (94% cached) · $0.0035 All 33 tests in 5 files
e2e 0.21.3 · 2m 3s · web · run artifacts |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
🟢 e2e ios agent: 1 flaky, 20 passed, 1 skipped25 agent steps · 6 replayed from cache · 74 model calls · 615.3k tokens (81% cached) · $0.0445
|
| Test | Agent | Time | |
|---|---|---|---|
| tests-agent/scenarios.e2e.ts · 1 flaky, 20 passed, 1 skipped | 25 steps · 74 calls | 11m 27s | |
| 🟢 | act completes Login Form | 1 step | 40.3s |
| 🟢 | act completes Infinite Scroll List | 1 step · 1 call | 44.6s |
| 🟢 | act completes Modal Flow | 1 step · 1 call | 25.7s |
| 🟢 | act completes Bottom Tabs | 1 step · 1 call | 23.8s |
| 🟢 | act completes Text Input Variations | 1 step · 3 calls | 33.1s |
| 🟢 | act completes Broken Accessibility | 2 steps · 6 calls | 25.4s |
| 🟢 | act completes Vision Only | 2 steps · 6 calls | 29.3s |
| act completes Gestures (1 failed attempt first) | 1 step · 10 calls | 46.6s | |
| 🟢 | act completes Async States | 1 step · 7 calls | 25.5s |
| 🟢 | act completes Debounced Search | 1 step · 1 call | 27.6s |
| 🟢 | act completes Flattened Registration Form | 2 steps · 1 call | 28.5s |
| 🟢 | act completes Flattened Login | 2 steps · 19 calls | 1m 51s |
| 🟢 | act completes Sticky Chrome Target | 1 step · 2 calls | 56.2s |
| 🟢 | act completes WebView Accessibility | 1 step | 11.7s |
| 🟢 | act completes Permission Prompt | 1 step | 10.6s |
| 🟢 | act completes Photo Picker | 1 step · 2 calls | 30.2s |
| 🟢 | act completes Product Catalog | 1 step | 9.9s |
| 🟢 | act completes Error Recovery | 1 step | 9.5s |
| 🟢 | act completes Choice Controls | 1 step · 5 calls | 35.6s |
| 🟢 | act completes Stripe PaymentSheet | 1 step · 8 calls | 32.9s |
| 🟢 | act completes Apple Pay | 1 step · 1 call | 29.2s |
| ⏭️ | act completes Apple Pay Billing Address (skipped: the CI simulator's Apple Pay sheet skips the billing-address step, so the scenario cannot be completed there) |
e2e 0.21.3 · 12m 35s · ios-simulator · run artifacts
🟢 e2e android agent: 1 flaky, 19 passed24 agent steps · 15 replayed from cache · 45 model calls · 82.7k tokens (87% cached) · $0.0050
|
| Test | Agent | Time | |
|---|---|---|---|
| tests-agent/scenarios.e2e.ts · 1 flaky, 19 passed | 24 steps · 45 calls | 5m 47s | |
| 🟢 | act completes Login Form | 1 step | 26.2s |
| 🟢 | act completes Infinite Scroll List | 1 step | 23.1s |
| 🟢 | act completes Modal Flow | 1 step | 10.4s |
| 🟢 | act completes Bottom Tabs | 1 step | 7.7s |
| 🟢 | act completes Text Input Variations | 1 step | 6.8s |
| 🟢 | act completes Broken Accessibility | 2 steps · 5 calls | 16.0s |
| 🟢 | act completes Vision Only | 2 steps · 1 call | 6.7s |
| act completes Gestures (2 failed attempts first) | 1 step · 13 calls | 40.5s | |
| 🟢 | act completes Async States | 1 step · 14 calls | 36.1s |
| 🟢 | act completes Debounced Search | 1 step | 7.3s |
| 🟢 | act completes Huge Virtualized List | 1 step | 1m 6s |
| 🟢 | act completes Flattened Registration Form | 2 steps · 1 call | 8.7s |
| 🟢 | act completes Flattened Login | 2 steps · 6 calls | 19.9s |
| 🟢 | act completes Sticky Chrome Target | 1 step | 7.6s |
| 🟢 | act completes WebView Accessibility | 1 step · 5 calls | 21.6s |
| 🟢 | act completes Permission Prompt | 1 step | 6.8s |
| 🟢 | act completes Product Catalog | 1 step | 8.2s |
| 🟢 | act completes Error Recovery | 1 step | 8.9s |
| 🟢 | act completes Choice Controls | 1 step | 8.6s |
| 🟢 | act completes Sequential Onboarding | 1 step | 9.6s |
e2e 0.21.3 · 7m 5s · android-emulator · run artifacts
🟢 e2e ios: 55 passed, 1 skippedAll 56 tests in 7 files
e2e 0.21.3 · 6m 0s · ios-simulator · run artifacts |
🟢 e2e android: 57 passed, 1 skippedAll 58 tests in 7 files
e2e 0.21.3 · 7m 29s · android-emulator · run artifacts |
agent.assertandagent.waitFortakeparamswith the same shape and validation asagent.act.validateParams), redacted, and fenced inside<instruction>asParameters: {...}, so the existing "instruction is data" policy and the security doc cover them (packages/e2e/src/agent/prompts.ts,packages/e2e/src/agent/index.ts).Invocationowns the params: every judgment prompt carries them and the observation budget counts their size.unique()reaches the judge as its string. ASecretreaches it as{ kind: 'secret', name, purpose }, never its value. Docs say to use a locator assertion to check a secret's value on screen.runAssertSteppasses the projected params and templates instead ofparams: undefined. Secrets are not fillable in an assert step (typeSecretisPOLICY_DENIED), since an assert changes no state.validateParams/redactParamstake the calling api, so errors readagent.assert params .../agent.waitFor params ....extractleft alone.Issue
Closes #1388
Verified
Ran it locally: yes - real CLI on the testbed (
e2e.scratch.config.ts,gateway/openai/gpt-6-luna-fast), throwaway scratch test,--ai-trace.unique()todo, thenwaitFor+assert"shows an item named exactly {name}"assertwithunique('Nonexistent zq-91')ASSERTION_FAILED: ... it does not show an item named "Nonexistent zq-91"assert(..., { params: 'nope' })INVALID_ARGUMENT: agent.assert params must be a plain objectJudge prompts in the AI trace carried
Parameters: {"name":"Groceries 1793364192407"}andParameters: {"name":"Nonexistent zq-91"}. On main the same call fails withagent.assert options has no key "params"(per the issue).Integration tests (
packages/e2e/tests/integration/judgment-params.test.ts, scripted judge): unique value in judge input for assert and waitFor, secret stays a placeholder, a quoted plain-string secret stays redacted, invalid params name the method, custom executor gets projected params and cannot fill the secret.