Verify Secrets
ASecurityUse when a change touches how the daemon handles secret text (D16, D31, D70): daemon/secrets.rs, Daemon::call in daemon/mod.rs, sanitize in daemon/trace.rs, the Type arm of act_now and Session::unsure in actor.rs and session.rs, daemon/journal.rs, the Debug impls of TextInput and ShellRequest, or any new reply field, error or file the daemon writes. Runs a property test of the real daemon over generated sessions and says whether text given with `secret` can come back in a reply, an error, a t...
- 456 stars
- 0 votes
- 0 copies
- 1 view
- Added November 18, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add hridaya423/phonedriver --skill verify-secrets --agent claude-codeAre you the author of Verify Secrets?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hridaya423-verify-secrets)---
name: verify-secrets
description: Use when a change touches how the daemon handles secret text (D16, D31, D70): daemon/secrets.rs, Daemon::call in daemon/mod.rs, sanitize in daemon/trace.rs, the Type arm of act_now and Session::unsure in actor.rs and session.rs, daemon/journal.rs, the Debug impls of TextInput and ShellRequest, or any new reply field, error or file the daemon writes. Runs a property test of the real daemon over generated sessions and says whether text given with `secret` can come back in a reply, an error, a trace file or the saved steps, and whether plain text can reach a password field.
---
# Verify that secrets stay secret
**Promise.** Text given to the daemon with `secret: true` (the text of a `type`, alone or as a `batch` step, and the command of a `shell`) never appears again: not in the reply to that call, not in any later reply or error to any session, not in a file under `PHONEDRIVER_HOME`, not in the steps `journal` returns for `save`, and not in the `Debug` print of what the device was sent. Text not marked secret never reaches a password field.
**Harm if it breaks.** A person's password, card number or token is printed into an agent's transcript, which is stored and may be sent to a model provider, or is left in a trace file on disk.
## Tool, and why
Property-based testing (proptest) of the real code. Nothing verifies Rust of this shape (async, serde values, trait objects) for every input, so the check runs the real `Daemon` against the real `FakeDevice` with generated sessions; a hand model of the daemon would check the copy. The question is about data, not about the order of events, so a model checker has nothing to add: the daemon serves one call at a time for a device. Nothing to install: `proptest` is a dev-dependency of `crates/cli`.
The oracle shares no code with the daemon. It is two string searches: every secret the test passed, in everything the daemon gave back or wrote; and every text the fake's password field received, against the list of texts passed as secret.
## Coverage record
All checks are in `crates/cli/tests/secret_property.rs`. The fake phone there (`Screen`) has a note field that shows its text and a password field that shows bullets; a tap moves the focus; `Ears::Deaf` fields ignore text and `Ears::NoPaste` fields ignore a paste and take the rest, as a Flutter app's do on Android; a failing device rejects one `text` call with a message that prints the text back; a shell command can print every earlier secret back, and so can the web page `page` reads.
| Check | What it drives | Code it covers |
|---|---|---|
| `a_secret_reaches_no_reply_error_or_file_and_plain_text_no_password_field` | 256 sessions of 1 to 6 steps: `type` (secret or not; by ref, by name or into the focus; submit, append; alone or as a batch step), `shell` (secret or not; output echoing earlier secrets), taps on either field, on nothing or on a label that repeats what the note field holds, `check` of either field with and without a wrong `equals` (D113), `notifications` and a wait for a notification that prints every earlier secret back (D117), `snapshot`, `find`, `journal`, `record start` and `stop`, `page` (a web page that prints every earlier secret back); full traces on or off. After every call it searches the reply or error and every file under the home. At the end it searches the journal and the device's call log, and checks what the password field took. | `daemon/secrets.rs` (all of it). `daemon/mod.rs`: `Daemon::call`. `daemon/trace.rs`: `sanitize`, `hide_action`, `Traces::record`. `daemon/actor.rs`: the `Type` arm of `act_now` (the `secret_field` refusal, `withhold`, the focused-field lookup), `act` (`s.unsure`, and the summary it hands `Taping::step`), `shell`, `batch`. `daemon/session.rs`: `unsure`, `set_last`. `daemon/journal.rs`: `Kept::of`, `Kept::step`. `core/device.rs`: `Debug` for `TextInput` and `ShellRequest`. `core/testing.rs`: `Call`. |
| `the_sessions_that_leaked_before_the_fixes_stay_closed` | The five sessions behind findings F1 to F3 and F5, fixed. F3 needs a device failure at one exact step, which the random property meets about once in 3,000 sessions. | Same. |
| `every_kind_of_step_works_on_the_fake_phone` | One session with every kind of step; asserts three types went in, one check read a value and four secrets were tracked. It fails when the harness stops reaching the code (a renamed parameter makes every call an error, and a session of errors leaks nothing). | The harness. |
| `survey` (ignored) | 3,000 deterministic sessions; prints every distinct kind of leak with a count and the first session that shows it. The property stops at its first failure; this lists them all. | Same as the first row. |
Three unit tests in `daemon/secrets.rs` cover what the property's fixed secrets cannot: a secret inside a longer one, a secret under four characters, and a screenshot's `data_b64` left alone.
**Sync commit: `4810ba8`** (read on 2026-11-16: since `7369a14`, which added the `page` call, the covered files gained the `boot` method, whose reply leaves through `Daemon::call` and which takes no secret, two more buttons, and a locked phone's answer in hidden mode; none takes or writes secret text).
2026-11-24: the `check` method and batch step (D113) were added and are generated by the property (`Step::Check`); break B1 run on the Mac mini failed with `step 1 (check): the reply holds the secret` and the trace file line. Only that change was read, not the whole diff since the sync commit (history was rewritten twice since), so the sync commit above is not moved.
2026-11-24, later: the `notifications` method and the wait for a notification (D117) were added; the property generates both (`Step::Notifications`) against a notification that repeats every earlier secret, and they are in the every-step session. `scroll` with `collect` (D116) returns screen text in `rows` through the same `Daemon::call` and is not generated. The sync commit is still not moved, for the reason above.
2026-11-24, named paths (D118): a run saved under `paths/` ends with a landmark, a text the command line takes from a `snapshot` with `elements` and writes into the steps file. No covered file changed. The property generates that read (`Step::Landmark`), so a secret in an element's label would fail it as a reply that holds the secret; `paths::landmark` also passes over a label that holds the mask and every text field (unit test `typed_text_masked_text_and_a_long_sentence_are_never_the_landmark`). The sync commit is not moved.
2026-11-25, `launch` with a path (D131): `daemon/actor.rs` changed in one place, the `build` reply, which now also names the app it found (`app`, `name`); it takes no secret and leaves through `Daemon::call`. The instructions and the `launch` line print path names and landmarks from files a person keeps, as D118's line did. Property test 3 passed; break B1 run on the Mac mini failed with `step 0 (type): the reply holds the secret`. The sync commit is not moved.
2026-11-24, group 4: `setting` with `restore` (D120) writes a new file, `settings-before/<device>.json`. The property generates a write and a restore (`Step::Setting`) against a setting whose value repeats every earlier secret; its first run failed with `settings-before/fake_1.json holds the secret login --token Sh0xK9pQ2vL7`, and a value that holds a secret is now not kept. `files` (D119) takes no secret, answers a receipt through `Daemon::call`, and writes outside the home, into the folder the person named; it is not generated. `screenshot` with `within` (D121) adds `origin`, two numbers. Break B1 run on the Mac mini failed with `step 0 (type): the reply holds the secret`. The sync commit is still not moved.
2026-11-24, group 5: `tap` took `select` (D122), a date or a time that the reply repeats (`set the picker to 2026-12-18`); it is not secret text, a value that is neither is refused with a message that does not quote it, and the digits it types go through the `type` action, so nothing new carries a secret and the property does not generate it. The `device` method (D123) returns a device id through `Daemon::call`. MCP progress messages (D124) are written by the MCP server, outside the daemon, from the tool's name, the time and the daemon's own progress lines, never from an argument; `mcp::tests::a_progress_message_holds_no_text_a_caller_gave` and `--test mcp progress_names_the_replay_step_and_never_carries_text_given_to_the_call` hold them to that. Break B1 run on the Mac mini failed as it should (`step 0 (type): the reply holds the secret`). The sync commit is still not moved.
2026-11-25, round 2: `files` with no file named is a listing (D129): the names of the device's files leave through `Daemon::call` like any reply. The property now generates it (`Step::Files`), with a file on the fake named after every earlier secret, and passes (3 passed); `files_listed` on the session is a flag and holds no text. Break B1 run on the Mac mini failed as it should, `step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`. The sync commit is still not moved.
2026-11-25, D127 and D128: `act` took `next`, the target of the following step and the screen it was saved on; it is a target, never typed text, and `trace.rs` hides its text as it hides the action's own target (`--test replay a_replayed_step_is_told_what_the_next_step_touches_and_the_last_step_nothing` reads the trace line). The property does not generate it. The Android device now prints the agent's video lines to the daemon's log when a stream ends (lines that start `stream V `, `video` or `encoder `; unit test `video_log_tests`), and `replay --screens` writes `NN.now.png` from the command line, a picture as the kept ones are. Break B1 was run again on the Mac mini and failed as it should. The sync commit is not moved.
2026-11-25, pickers everywhere (D125, D126): `Device::calendar_names` is a new device reply (month names, the words for the halves of the day, digits), read by the daemon and never returned as such; `FakeDevice` answers it. `not_picked` details now quote what wheels and fields show, which leaves through `Daemon::call` and its mask like every other error; `select` is still not secret text. `--test secret_property`: 3 passed; break B1 on the Mac mini failed as it should (`step 1 (check): the reply holds the secret Ty0mW4zR8nB3c`). The sync commit is not moved.
2026-11-26, D138: `not_found` gained `looked`, the ways a `tap` scrolled while it looked for its text (`down to the end`, `right 8 times`): directions and counts, never text a caller gave. The error still names the target in `query`, as before, and leaves through `Daemon::call`; the trace keeps a text target as its length. A typed secret is not a tap target. `--test secret_property`: 3 passed on the Mac mini. The property does not generate a look, and break B1 was not run again. The sync commit is not moved.
2026-11-27, D138 again: `not_found` gained `stayed`, a flag for a look that could not put the screen back, and `looked` became a boxed slice; neither holds text a caller gave. `--test secret_property`: 3 passed on the Mac mini. Break B1 was not run again. The sync commit is not moved.
2026-11-28, `wait human` (D165): a person's turn is a new reply path whose words come from the agent (`what`) and leave by a second door, the desktop notification (`daemon/notify.rs`, masked with `Secrets::masked`). The property generates it (`Step::Handoff`, `what` repeating every earlier secret, a notice sink searched with the reply). A hand-made break that leaves the notification's text unmasked failed it on the win-pc build (`step 1 (wait human): the reply holds the secret Ty0mW4zR8nB3c`); it is not in `breaks.py`. What a person types into a password, code or card-code field is masked in the handoff's reply and remembered (`actor/wait.rs`; tests in `tests/human.rs`, module `handoff`): the fake phone here has no such typing, so the property does not generate it. The sync commit is not moved.
2026-11-28, `set` (D147, D148, D149): a `set` action carries a secret per field (`secrets::carried`, `Kept::of`, `trace::hide_action`, `Debug` for `SetField`). The property generates it (`Step::Set`: a note and a password, either marked secret, alone or in a batch, in either order) and two fixed sessions cover it. Break run on win-pc: `carried` ignoring `set` failed the check with `step 0 (set): the reply holds the secret Sn0mW4zR8nB3c`. A saved `set` keeps a secret field as `secret: true` with its `value` empty and a `secret_env` the CLI names (`--test replay a_secret_field_of_a_set_is_saved_as_the_variable_it_is_read_from_and_replayed_from_it`). The sync commit is not moved.
2026-11-29, `live2` (D172): text a person types on the live page is a new way text reaches the daemon (`person` with `{kind: "text"}`). It is not marked secret (decision D172 says why): `trace::sanitize` keeps its length only, no watcher event carries it, and `PersonInput`'s `Debug` prints a count. `--test watch text_typed_on_the_page_reaches_the_phone_and_no_event_or_trace_holds_it` checks the device got it as keystrokes and that no event and no file under the home holds it; the break that drops the trace's mask failed it (`traces/....jsonl holds the typed text`). The property does not generate it (no agent call can). The sync commit is not moved.
2026-11-29, `live3` (D198): two new doors to watchers. A call's progress lines go to every watcher as `{kind: "progress", session, message}`, masked in `Daemon::connection` with `self.secrets.with(secrets::carried(method, params))`, the same list `finish` masks the end event with; the lines are the daemon's own words, and the one that can quote an agent's text (`wait human`'s) is the one D165 already masks for the notification. An action's end event now carries the CLI's first line (`commands::show_action`), whose only text beyond the summary is `NOT verified: <what the screen shows>`, and `finish` masks `lines` after building them as before. The property drives no watcher, so it does not search either door; `--test all secret_property::` passed on win-pc in the whole run. No break was run for these doors. The sync commit is not moved.
2026-11-29, `live4` (D209): the property now reaches both doors the record above left open. Every call runs inside a progress sink (`progress::told`), and the lines it receives are searched with the reply: they are the text the calling client, `daemon.log` and the watchers get. Its first run failed: `wait human`'s line `waiting for a person: <what>` was unmasked (`step 1 (wait human): the reply holds the secret Ty0mW4zR8nB3c`), now masked in `actor/wait.rs` with `Desk::masked`. `Step::Takeover` has a person take the phone over, touch the password field, type a password the daemon is not told is secret, and hand back; that text is searched everywhere the secrets are, and the password field may take it. At the hand-back the daemon remembers what a person left in a password, code or card-code field (`typed_secrets`, shared with `wait human`). Breaks B12 to B14 below, run on win-pc: B12 and B13 fail the property, B14 passes (a second layer). The watcher's own mask of a progress line in `Daemon::connection` is a second layer too: the line is masked before it reaches it, and the property, which runs in process, does not open a socket. `--test all secret_property::` 3 passed, `--lib secrets` 6 passed. The sync commit is not moved.
2026-11-29, `xray` (D214 to D216): a page's requests are a new way text reaches replies: an action's `net` lines, `logs --net` and `wait request:` show a request's path, which may hold a secret the agent typed. `core::requests::shown` drops query values and user names and turns percent escapes back into characters, so `Daemon::call`'s mask finds a secret in a path; the lines leave only through `Daemon::call`. The property generates it (`Step::Requests`, a tap during which the fake page sends every earlier secret, percent-escaped, in a path segment and a query value, with and without the `net` order, then `logs` with `net` and `wait request:`), and the every-step session has both. Break run on win-pc: the mask skipping the `net` field failed the property with `step 1 (requests): the reply holds the secret Sn0mW4zR8nB3c: {... "net":["POST /api/Sn0mW4zR8nB3c/x?token=… 500 in 5 ms"]`; a break that kept half of each query value passed, since the oracle searches whole secrets (the query rule itself is held by `core::requests` unit tests and `--test all requests::`). `--test all secret_property::` 3 passed, `--lib` 238 passed. The property's secrets are letters and digits, so the percent-decoding is held by the unit tests and the live run (`net GET /api/code/•••?code=… 401`), not by the property. The sync commit is not moved.
2026-11-29, `nochange` (D222 to D224): two new reply fields, both leaving through `Daemon::call`. An action's `nochange` quotes screen text (a covering element's `label`, the system's not-responding words); a screenshot's `unexplained` lists parts, each with a `path` and, inline, a `data_b64` that the mask skips by key at any depth as it skips the top one. Neither takes text a caller gave. The covered-files diff since `8ecb9c6c` is the `nochange` import and its `None` in `actor.rs` and the fields in `wire.rs`. `--test all secret_property::` 3 passed, `--lib secrets` 6 passed on win-pc; break B1 failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). The property does not generate an unchanged tap or `--unexplained`. The sync commit is not moved.
2026-11-29, `teach` (D229): a person's touches become steps, and a new door: each step is sent as a line to the call that began the teaching, through the connection and not through `Daemon::call`'s mask. The property generates it (`Step::Teach`: a person taps the password field, types a password on the phone itself, which the daemon is not told is secret, taps the text that shows the note, and another session stops the teaching; the teaching's reply, its lines and the stop's reply are searched). Its first run failed: `step 1 (a person teaches a flow): the reply holds the secret Ty0mW4zR8nB3c`, a line `tap "Ty0mW4zR8nB3c"` quoting the note's label. Lines are now masked in `actor/teach.rs` (`tell`). Break B15 run on win-pc failed the property as it should. A taught password step keeps no text (`Kept::done`, the same path as `Kept::step`). `--test all secret_property::` 3 passed, `--lib secrets` 6 passed. The sync commit is not moved.
2026-11-29, `why` (D218, D219): two new doors. The daemon keeps each ended call in memory with the screen it left (`daemon/why.rs`), masked with that call's secrets, and `why` returns them masked with every secret any kept call carried, short ones too; the CLI writes them into one file. The property now asks `why` at the end of every session and searches its reply and the file `phonedriver::why::page` makes from it (`the file \`why\` writes holds the secret`). Its secrets are all 4 characters or more, which the reply's own mask in `Daemon::call` already covers, so the ring's mask is a second layer there; `--test all why::a_secret_is_in_no_part_of_what_is_kept_short_or_long` covers a 3-character secret on a later screen. The sync commit is not moved.
2026-11-29, after `teach` was merged: the property failed once in a whole run on the Mac mini and passed on the next, because it draws new sessions every run and keeps no failing case. 2,000 cases a run found it again in the second run: `Set` (password secret), `Teach`, then a plain `type` into the focused field put plain text into the password field. A person teaching had moved the focus, and the session still trusted the screen it saw before, so the `Type` arm's check read the old focus. A teaching that ends now clears every session's last screen, as a handed-back takeover does (`actor/teach.rs`). The session is the first entry of `the_sessions_that_leaked_before_the_fixes_stay_closed`. A single green run of 256 cases is weak evidence after a change to who can touch the phone: run `PROPTEST_CASES=3000` a few times.
2026-11-29, `ids` (D244): `Kept::of` now resolves an action's text or id target on the last screen and keeps the element's id with the target text the agent gave (`journal::aimed`). It adds an id read from the screen and no text that was not already kept; a secret `type`'s text is still cleared by `Kept::of` and again by `Kept::done` (a hand break that skips the first clear passes, as the second layer catches it). `PROPTEST_CASES=3000 --test all secret_property::` 3 passed, `--lib secrets` 6 passed on win-pc; B1 applied by hand there failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). The generators reach the change through `NoteByName` and `PasswordByName`. The sync commit is not moved.
2026-11-29, D263: the `journal` and `teach` replies carry `before`, the elements of the screen the last action was aimed at, as `snapshot` lists them. It is a reply field that leaves through `Daemon::call` and its mask like a snapshot's elements; it takes no secret text and writes nothing. A steps file gains only the landmark's label, which never holds the mask or a field's text (`paths::landmark_after` keeps `landmark`'s filters). `--test all -- mcp:: replay:: teach:: secret_property:: guard_property::`: 153 passed on win-pc. No break was run. The sync commit is not moved.
2026-11-30, the break scripts: B9, B10 and B11 no longer applied (`AssertionError: (..., 0)`). The actor's split into modules (`10cc7364`) moved the `Type` arm's focus lookup, the plain-text refusal and the recording's step out of `actor.rs` into `actor/act.rs`, and `Taping::step` gained the tap's point (`result.at`). They now patch the same lines in `actor/act.rs`. Run on win-pc: B9 and B10 fail the property with `the password field was given text that was not marked secret`, B11 with `step 2 (tap the label): rec0.mp4.steps.jsonl holds the secret`; with the code restored, `secret_property::` 3 passed.
2026-11-30, D278: the `Type` arm's retry after a paste that changed nothing (D273) now also covers a secret, sent as `SetSecret` (the agent's set path, with the sensitive flag; never keystrokes), and an `--append`, set as what the field held and the new text; a secret is not appended this way. The retry's own device error is withheld as the first input's is. The fake phone gained fields that ignore a paste and take the rest (`Ears::NoPaste`, as Flutter's on Android), so the property drives the retry where it lands, beside `Ears::Deaf`, where it does not. `PROPTEST_CASES=3000 --test all secret_property::` passed 3 times on win-pc; B10 failed the property and the fixed sessions (`the password field was given text that was not marked secret`), B9 the fixed sessions (F3), B1 both (`step 0 (type): the reply holds the secret`). That a secret is never sent key by key is held by `daemon::a_password_field_that_ignores_a_paste_gets_the_secret_set_and_never_typed`, which lists the exact inputs: the oracle cannot see which way text was sent. The sync commit is not moved.
2026-11-30, D278 corrected: the `verified: null` answer for a password field that seemed to show no text (`ElementState::HIDES_TEXT`) was removed, and the retry is again sent only on a reply that says the text did not land. No reply, error or file gained a field. `PROPTEST_CASES=3000 --test all secret_property::` 3 passed on win-pc; B10 failed the property and the fixed sessions (`the password field was given text that was not marked secret`). The sync commit is not moved.
2026-11-30, `iphone4` round 4 (D265, D274): two new things the daemon writes. (1) A reply whose screen an iPhone gave no elements for gains a `hint:` line once per app (`Daemon::tell_unread_once`, in `Daemon::call` before the mask): the daemon's own words, the app's bundle id and the device id, never text a caller gave. (2) With `PHONEDRIVER_TRACE_FULL=1` the no-install tier writes every accessibility exchange to `daemon.log` (`rax::log`, outside `Daemon::call`). It does not mask: it holds nothing an element shows. `said` and `summary` print kinds, ids, elements as (pid, object) and byte counts, and no value, hex or bytes. `rax::tests::the_exchange_log_holds_nothing_a_screen_shows` reads the lines the log wrote while a fake service answers with a label and a value that hold a card number; it failed with the bytes in hex before the change and passes. The property drives `FakeDevice`, never the no-install tier, so it cannot reach that log: the rax test holds it. `PROPTEST_CASES=3000 --test all secret_property::` 3 passed, `--lib secrets` 6 passed, and `breaks.py B1-replies-are-not-masked` failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`), all on the Mac mini (`run-iphone4-r4-verify-secrets.log`). The sync commit is not moved.
2026-11-30, D291: while teaching, `actor.rs`'s signal branch reads the touches already queued before it marks the screen changed (`teach_saw_change`). No reply, file or line gains text; the step lines go through `tell`, which masks them as before. The whole run on the Mac mini includes `secret_property::`. The sync commit is not moved.
2026-11-29, `why3` (D268): the ring keeps each call's words for 10 minutes or 1,000 calls, not 30 s, with the secrets that call carried; a call older than 30 s loses its screen's elements, never its secrets list, and `why` masks every kept call with every kept call's secrets as before. New export fields `earlier` (a count) and `since` (a time) hold no text. `PROPTEST_CASES=3000 --test all secret_property::` 3 passed, `--lib secrets` 6 passed on win-pc. B1 failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). A hand break that drops the ring's own mask at export passed the property (the reply's mask is the first layer for secrets of 4 characters or more) and failed `--test all why::a_secret_is_in_no_part_of_what_is_kept_short_or_long` (`the kept calls hold "k9!"`). The sync commit is not moved.
2026-11-30, `speed-ios` (D285 to D287): with `PHONEDRIVER_TRACE_FULL=1` a Simulator's daemon writes `ax <ms> simio <op> <n> ms` and `ax <ms> runner <op> <n> ms` to `daemon.log` through `rax::log`, one line per request (`SimIo::ask`, `runner::Client::request`). A line holds the request's `op` (`tree`, `touch`, `snapshot`, `type`, …) and a duration, never its text or its reply. None of the covered files changed (`git diff --stat 4810ba8` over them is the same as before this branch). `--test all secret_property::` and `--lib secrets` ran in the whole run on the Mac mini. No break was run. The sync commit is not moved.
2026-11-30, `speed-ios` run 3: the property now also drives a phone that cannot set a field's value, as an iPhone cannot (`keys`, 3 sessions in 10; the `survey` every third). On it the `Type` arm empties a field that holds text with backspaces sent as keys (`TextInput::Keystrokes`) before the text, which no session reached before: the fake phone could set values, so it was always emptied with `SetValue("")`. The fake screen now treats a backspace as deleting the last character, as a phone does, and a run of backspaces alone is not counted as text the password field took; the coverage line counts the fields emptied this way. Run on the Mac mini (`run-speed-ios-r3-secrets.log`): 256 cases passed (8 fields emptied with backspaces, 3 of them the password field); `PROPTEST_CASES=3000` passed twice; with every session keys-only, passed (11 emptied, 5 the password field); `--lib secrets` 6 passed. B1 failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). B10 had stopped applying when `actor.rs` was split (its guard is in `actor/act.rs` now); with that path it failed as it should (`the password field was given text that was not marked secret`). B9's text now occurs in seven places and B11's in none, so both need their patches written again; they were not run. No leak found. The sync commit is not moved: no covered file changed.
2026-11-30, `speed-ios` run 4: B9 and B11 written again for the split actor, both in `actor/act.rs`: B9 drops the `unsure` filter from the `Type` arm's focused-field lookup (`s.last.as_ref().filter(|_| !s.unsure).and_then(focused)`), B11 hands `taping.step` the summary unmasked. Run on the Mac mini (`run-speed-ios-b9-b11.log`): B9 failed `the_sessions_that_leaked_before_the_fixes_stay_closed` at F3 and passed the property, as the table says; B11 failed the same test at F5; B1 failed both, `step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`; the clean tree passed 3. No covered file changed (D304 was not taken), so the sync commit is not moved.
2026-11-30, `speed-ios` run 5 (D312, D313, D318): `session::not_found` counts a label inside the query as close only as whole words, which changes which screen labels `similar` lists and adds no text a caller gave; the `tap` arm in `actor/act.rs` may resolve its target a second time after `Device::read_what_scrolls`, a new trait method that returns a bool and carries no text. No new door. On win-pc: `PROPTEST_CASES=3000 --test all secret_property::` 3 passed, `--lib secrets` 6 passed; B1 failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`), and B11, in the arm that changed, failed `the_sessions_that_leaked_before_the_fixes_stay_closed` (`rec0.mp4.steps.jsonl holds the secret Ty1mW4zR8nB3c`). The sync commit is not moved.
2026-12-02, #21 (D546): a reply that would be a full screen may now be `screen from N calls ago … is back` with `+ - ~` lines against a screen kept in `Session` (`session.rs`, memory only, nothing written). It leaves through `Daemon::call` like any diff, old values in `from → to` included, so the same mask applies. `secret_property::` 4 passed and break B1 failed as it should on the Mac mini. The property's fake phone keeps one screen, so it does not generate such a reply. The sync commit is not moved.
2026-12-02, `heatmap` (D540): `trace.rs`'s line of an `act` gains `changed`, the boolean the daemon already put in the reply; no text and no new file. `heatmap` and `replay --persona` write no secret: the first reads traces, the second refuses to fill a blank of a secret step (D537). On win-pc, tree b8cc15a6: `PROPTEST_CASES=3000 --test all secret_property::a_secret_reaches` passed (456 s), `--lib secrets` 6 passed; B1 and B13 each failed the property and the fixed sessions as they should. The sync commit is not moved.
2026-12-02, #20 (D572): a new method, `jumps`, replies with one line of the labels of an app's shortcuts (device text, no caller text) through `Daemon::call`; to an MCP session it answers `line: null`. A refused `launch --jump` quotes the name the caller gave, which is not secret text. On win-pc: `secret_property::` in the whole run, and break B1 by hand failed as it should (`step 0 (shell): the reply holds the secret`). The property does not generate `jumps`. The sync commit is not moved.
2026-12-02, #5 follow-ups (D641): a new field the daemon writes, `remarks` on a trace line and a `why` call: lines a device leaves about itself. The property generates it (`Step::Remark`: the fake device remarks every earlier secret, then a `snapshot`), and break B16 drops the trace's mask on it. On win-pc: `secret_property::` passed in the whole run, and B16 failed it (`step 24 (a remark): traces\....jsonl holds the secret Ty1mW4zR8nB3c`). The sync commit is not moved.
2026-12-02, D625 to D627 (`actor/act.rs`, the new `actor/typing.rs`, `core/device.rs`, `core/testing.rs`, `daemon/stop.rs`, `daemon/scope.rs`): on a Simulator a secret goes through a new door, `Device::set_field`, which sets the aimed field and sends no key. The property now draws sessions on a fake Simulator too (`sim` in 3 of 10), where the field setter maps the field it is given to the note or the password field; the fixed sessions run both ways and `every_kind_of_step_works_on_the_fake_phone` asserts two typed, one refused and two set there. `Call::FieldSet` holds a `TextInput`, so its `Debug` prints a count. On win-pc: `secret_property::` 4 passed, `--lib secrets` 6 passed, breaks B1 and B10 failed as they should. The sync commit is not moved.
2026-12-02, D631 to D633: `why`'s reply gains `named`, the device's given name and what a report calls it, before the same mask at the end of `Daemon::why`; the other daemon change reads crash logs after an `open`. D633 turns XCTest's log off on a Simulator, outside the daemon: the live check is a search of the Simulator's log and files, not the property. `secret_property::` passed in the whole run on both machines; no break was run. The sync commit is not moved.
2026-12-02, D667: a trace line gains `device`, the id the call was sent to, which the daemon resolves and no caller's text reaches. `trace::` and `secret_property::` passed on win-pc; no break was run. The sync commit is not moved.
2026-12-02, D668: the batch loop (`actor/wait.rs`) marks each touch a step made with the step's number and whether it changed anything, in the settle list that the trace keeps; a number and a flag, no caller's text. `trace::` and `secret_property::` passed on win-pc; no break was run. The sync commit is not moved.
2026-12-02, D658 and D659: over MCP `assert pixels` is run by the MCP server, which writes a baseline screenshot and its `.json` into its own folder with `assertion::keep`, as the command line does, and reads the `.json` back into the call. Both are outside the daemon and no covered file changed; a screenshot's pixels are listed under Not covered. `secret_property::` passed in the whole run on win-pc. No break was run. The sync commit is not moved.
2026-12-02, D691: a trace line gains `new_screen`, and the batch loop marks `after_new_screen` on later touches; two flags taken from the result's own `changed` and observation kind, no caller's text. `trace::` and `secret_property::` passed on win-pc (161 with `guard::`, `guard_property::`, `set::`); no break was run. The sync commit is not moved.
2026-12-02, `ghost` (D645 to D653): a teaching that also watches answers with findings, which quote request paths and crash messages, and sends each as a line. They leave through `Daemon::call` and `actor/teach.rs`'s `tell`, and the command line writes the file from the reply. A password a person types on the phone is never read, so the mask cannot find it in a path or a message; once a password or code field has been on screen, findings leave both out (D651). The property now draws `Step::Teach { ghost: true }`: the page sends that password in a path, twice and refused, and the app crashes with it in the message; `every_kind_of_step_works_on_the_fake_phone` asserts all three findings were made. On win-pc: `secret_property::` 4 passed, `--lib secrets` 6 passed; the withholding break (B17) failed the property and the every-step session (`the reply holds the secret Tt0mW4zR8nB3c`). A whole run's random draw then found the person's request still in the log for a later `logs --net` of the agent's, which prints its path: phonedriver never read that password and cannot mask it, with or without a watch. The harness now rewrites the two requests' address once the teaching has answered; that door is under `Not covered`. The sync commit is not moved.
2026-12-02, D694: XCTest wrote an opened address into the iOS runner's log and result bundle under the home, where no mask reaches; the runner now opens links through XCTest's daemon proxy (`ios-runner/Runner/Buttons.m`). No file the diff command below names changed. The property runs on a fake device and cannot see what XCTest writes: it is under `Not covered`, and `--test all e2e_ios::a_secret_in_an_opened_address_is_never_written_down` (ignored, needs a Simulator) searches every file under the home.
2026-12-03, `roaming` (D817 to D823): new reply words are connection names (`also`, `over`, `moved`, and the move added to an `interrupted` error), all inside `Daemon::call`; the actor keeps a copy of a call's params in memory for one rerun, with the secrets the first run carried, and writes nothing new but `daemon.log` lines that name connections and a connect error. A rerun happens only when nothing had been sent (or the call types nothing). On win-pc, merged with b2464cdd: `secret_property::` 4 passed, `PROPTEST_CASES=3000 secret_property::a_secret_reaches` passed (129 s), `--lib secrets` 7 passed, and break B1 failed the check as it should. The property drops no connection. The sync commit is not moved.
2026-12-03, D977: the `Type` and `Clear` arms refuse a target that only shows text, naming the focused field by its line; the refusal leaves through `Daemon::call` and its mask like the other focus refusals. On win-pc: `secret_property::` 4 passed, `PROPTEST_CASES=3000 secret_property::a_secret_reaches` passed once (163 s), and break B10 failed the property and the fixed sessions (`the password field was given text that was not marked secret`). The sync commit is not moved.
When you finish a change, run:
```
git diff --stat 4810ba8 -- crates/cli/src/daemon/secrets.rs crates/cli/src/daemon/mod.rs crates/cli/src/daemon/trace.rs crates/cli/src/daemon/actor.rs crates/cli/src/daemon/session.rs crates/cli/src/daemon/journal.rs crates/cli/src/wire.rs crates/core/src/device.rs crates/core/src/testing.rs
```
Empty output means the check still describes the code. Otherwise read the diff for: a new method or action that takes secret text (add it to `secrets::carried` and to `Step` in the test); a new place the daemon writes (a file, a log line, a new process: F5 was one, and such a place must mask with `Secrets::masked` itself); a reply that leaves by another door than `Daemon::call`; a new string field whose content must not be masked (as `data_b64` is skipped); a change to when plain text is refused. Run the check. When it passes and you have confirmed the generators still reach the changed code, move the sync commit to the new hash. Do not move it only because the test passes: a new secret-carrying call the generators never send passes too.
2026-12-02, `sight3` (D605, D607 to D614): `act` takes `drawn` and answers `drawn_ms`, a number; the new `memory` method answers a number and an app id; the `install` reply gains `apps`, ids read from the file; a Simulator crash's words are a signal name from its log, no text a caller gave. All leave through `Daemon::call`. `diff-builds` writes `report.html` and `report.json` from the CLI: their screen words come from `snapshot` replies, masked there, and each step and difference passes `mask` again; the pictures are the screens (D613). The property does not generate a `diff-builds` run. `--test all secret_property::` passed in the whole runs on win-pc and the Mac mini; break B1 on win-pc failed it (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). The sync commit is not moved.
2026-12-02, `sight3` round 2 (D660 to D662): a Simulator's log line for a force-quit or an exit now yields no crash words at all; the `perf` reply and `report.json` gain `stall_ms`, a number read from the frame list; the report gains `note:` lines made of step descriptions (masked with the rest) and numbers; `diff-builds` pins animations through the `env` method. Nothing new carries text a caller gave.
2026-12-02, `prvisuals` (D700 to D706): two new doors, both outside the daemon. `diff-builds --out` writes `summary.md` and `step-<n>.png`, and `action/pr_visuals.py` posts that Markdown as a pull request comment and writes it to the job summary. The Markdown is made from lines `diff-builds` already masks (D613); the pictures are the screens. The property drives the daemon and generates neither. `--test all replay::the_markdown_report_of_diff_builds_masks_a_secret_a_build_shows_back` replays a build that shows a typed secret back and asserts the mask is in `summary.md` and the secret in no output; `action/test_pr_visuals.py` asserts the Action's step replaces every `PHONEDRIVER_SECRET…` value in the comment and the summary, and fails when the replacement is removed (run by hand). D706 adds no text to a reply: a number, `status_bar`, in a screenshot's.
2026-12-02, request paths (D775): once a password or code field was on a screen of the session, request lines show `(path left out)`; `logs` takes `paths` to print them. The fake screen here has a password field, so the property's `Step::Requests` now also calls `logs` with `net` and `paths`, which is where a path holding a secret still leaves. On win-pc the whole `-p phonedriver -p phonedriver-core` run passed; a break that makes the mask skip `requests` failed `secret_property::a_secret_reaches` with `step 1 (requests): the reply holds the secret Sn0mW4zR8nB3c`. The property does not check that paths are left out; `--test all requests::` does. The sync commit is not moved.
2026-12-02, `ci2` (D739): a new reply field, `screenshot`'s `transient` (a `keyboard` or `toast` kind and four numbers each), which takes no text. `replay --screens` writes the same into a PNG text chunk of the pictures it keeps; the pictures are the command line's, as before. `--test all secret_property::` 4 passed, 1 ignored, `--lib secrets` 6 passed on win-pc. No break was run. The sync commit is not moved.
2026-12-03, `ci2` (D740, D741): the `Type` arm of `act_now` keeps what it set out to send (`actor/typing.rs`, `Typing`: the field's earlier value and the wanted text, in memory only, never written or replied), and a dropped connection is answered from it; `withhold` now passes adb's own dropped-transport refusal through, whose text names the serial and nothing typed. A new reply path, the `interrupted` error, quotes the drop's error and a fixed sentence. A password or secret is never typed again. `--test all property::` 20 passed, 1 ignored, `--lib secrets` 6 passed on win-pc; live, the secret was in no reply or file under the home across 8 password trials, 7 of them with a forced reset. The property does not drop a connection. The sync commit is not moved.
2026-12-03, a value iOS cut (D802): the property gained `Step::Cut`, an iOS tree whose note and paragraph values are the first 512 UTF-16 units of a text that ends in a new secret, with 6 to 15 of its characters before the cut and, half the time, U+FFFD where an emoji was split. It reads that screen with `snapshot` (with and without `elements`), `find`, `check` (right and wrong), a tap and `journal`, and the oracle searches the head before the cut in every reply, file, saved step and `why` page, as it searches whole secrets. Before the mark the property failed (`the reply holds the secret Cu0Qz7kW`); B19 fails it again. On win-pc: `secret_property::` 4 passed.
2026-12-03, D834 to D836 (`daemon/mod.rs`, `actor.rs`, `actor/act.rs`, `actor/faults.rs`, `actor/wait.rs`, `actor/set.rs`, `actor/report.rs`): a pushed fault's words get two new doors, `data.fault` in a failed `act`'s error and a batch step's `crashed`. The actor hands the first to `Daemon::call` as a note in the settle list, which is taken out of that list before the trace and put into the error before the mask. The property's fault step now also fails a tap and a batch step after a push, and the every-step session asserts both hold the fault. On win-pc: `secret_property::` 4 passed, `PROPTEST_CASES=3000 secret_property::a_secret_reaches` passed (182 s), `--lib secrets` 6 passed; B20 (the fault put into the error after the mask; run before the merge of D802 took the number B19) failed the property and the every-step session at `step 29 (a fault): the reply holds the secret`, and B1 failed them and the fixed sessions. The sync commit is not moved.
2026-12-03, one or two characters before an iOS cut (D860): the mask for a cut text starts at 3 characters, so `Step::Cut` now draws 1 to 15 characters before the cut, with a fixed session at 1 and 2, and the oracle searches them with the padding in front (`---C`), since one or two characters alone are in any reply. Before the change the property failed (`the reply holds the secret ---C`); B21 fails it again. The new refusals (D803, D859) send nothing and reply fixed sentences and a ref. On win-pc: `secret_property::` 4 passed.
2026-12-03, D851 and D852: the `Type` arm changed where the field is aimed and focused (a touch below the status bar, the keyboard hidden first through `out_from_under_keyboard`, a web page that kept focus elsewhere refused). No new reply field or file holds typed text; the new refusal names two refs. The `secret_field` refusal and `withhold` are unchanged and run after the new steps. `secret_property::` passed in the whole runs on the Mac mini and win-pc. The fake phone has no status bar or keyboard, so the property does not generate these paths, and no break was run. The sync commit is not moved.
2026-12-03, D942 and D943: `off_screen` gained `hid_keyboard`, a flag, and `not_found` gained `held`, the rendered line of a text field whose value is the missed text; it leaves through `Daemon::call` and its mask like `similar`. A password field is never matched (`daemon::a_miss_on_text_a_field_holds_names_the_field`). The property's taps by label reach a note field's text, so a held line can repeat it; `--test all secret_property::` ran in the whole run on both machines. The sync commit is not moved.
2026-12-03, an addition read again after its tap (D959, the `Type` arm of `act_now`): a secret is still set on the field as one value, now built from what the field read after the tap, and a plain addition on a Simulator takes the same route without the secret flag. The new refusal is a fixed sentence and a ref; the new hint quotes nothing. Live on a Simulator, the closed-bar secret append left no 4-character piece in a reply or a file of the home.
2026-12-03, watch-phone forgery fixes (D991 to D998): `secrets.rs` masks the form `render::escaped` writes, which a quoted string, a snapshot and a comparison now use, so a secret with a tab or a direction character is not printed by being escaped (unit test `a_secret_with_a_tab_or_a_direction_mark_is_masked_as_a_quoted_string_writes_it`); app names are quoted where they enter the daemon (`daemon/stop.rs`), and `--json` output passes `render::json_safe` after the mask. On win-pc at 7b99bfca: `secret_property::` and `--lib secrets` passed, B1 failed three of the four as it should. The sync commit is not moved.
## Run
```
cargo test --locked -p phonedriver --test all secret_property::
cargo test --locked -p phonedriver --lib secrets
```
About 2 seconds after the build. `-- --nocapture` prints `coverage:` lines; a good run ends near 160 types that worked, 40 refused or failed, 115 shell commands and 150 secrets. To list every kind of leak instead of the first: `cargo test --locked -p phonedriver --test all secret_property::survey -- --ignored --nocapture` (about 15 seconds). On the Mac mini there is no blaze; on a machine with it, `blaze test -p phonedriver --test all secret_property::`.
A failure prints one line per leak and the shrunk session, for example:
```
step 1 (snapshot): the reply holds the secret Ty0mW4zR8nB3c: {"changed":true,…
steps: [Type { flagged: true, into: Note, … }, Snapshot], full trace false, fields All, failing device false
```
Read it as: step 0 typed a secret into the note field, step 1 took a snapshot, and the snapshot's reply printed the secret. `Ty<n>…` is the text typed at step n; `login --token Sh<n>…` is the shell command of step n. `flagged` is `secret: true`. `into` is how the field was named: `Note` and `Password` by ref, `NoteByName` and `PasswordByName` by label, `Focused` with no target.
## Real bug or modelling error
A **real bug** is a line of the form `the reply holds the secret`, `<file> holds the secret`, `the steps save would write hold the secret`, `the device's call log prints the secret`, or `the password field was given text that was not marked secret`. Reproduce it in `crates/cli/tests/daemon.rs` with `FakeSource` and the same calls, and read the reply. If the story reads wrong in the product's terms ("the user's password is in the snapshot the agent was sent"), it is a bug. Report it with the session; do not change the oracle to make it pass.
A **modelling error** is when the fake phone did something no phone can. The two this check has met: the fake printing back a text the daemon never sent it (a refused step's text), and a failure message written before the session that named texts of later steps. A phone can only echo what it was given. Other causes: a new string field that legitimately carries bytes a secret can collide with (skip it in `hide_value`, as `data_b64` is, and say so in D70); a deliberate change to what counts as secret (update D70 in `docs/decisions.md` first, then the oracle, in the same commit).
If `every_kind_of_step_works_on_the_fake_phone` fails, fix the harness first: the other results mean nothing until it passes.
2026-12-02, `ghost` review fixes (D808 to D811): `actor/teach.rs` now saves a `type --submit` or `press enter` step for the keyboard's action key, and the daemon refuses acting calls while a ghost watches with an error that names the session. No new place takes secret text. On win-pc: the property passed in a whole run; breaks B15 and B17 failed it as they should (`the reply holds the secret Ty0mW4zR8nB3c`, `… Tt0mW4zR8nB3c`). The property's fake screen has no keyboard, so it does not reach the action-key step. The sync commit is not moved.
2026-12-03, `beam` and a cut address (D801): `beam_read` answers `{cut: true}` and no address for a Safari field of 512 UTF-16 units or more, because iOS cuts a field there and a secret split by the cut passed the whole-secret mask (closed for the other readers by D802). The property's phone is not Safari, so it does not reach this; `--test all beam::no_part_of_a_secret_that_the_cut_splits_leaves_the_source` holds it, and the live run is in `progress.md`. On win-pc at 38fc9881: `secret_property::` 4 passed, `--lib secrets` 6 passed, B1 failed three of the four as it should. The sync commit is not moved.
2026-12-03, D812 (`actor/teach.rs`): a touch on nothing is told at the next read, and where that read has the keyboard under it the line says so. Where a key is says what it types, so neither line gives the touch's point while a password or code field is on either screen (`--test all teach::a_key_tapped_early_under_a_password_field_is_told_without_its_point`). No new place takes secret text. On win-pc: `PROPTEST_CASES=3000 secret_property::a_secret_reaches` passed (183 s), the other `secret_property::` tests in the whole run; breaks B15 and B17 failed the property run as they should. The property's fake screen has no keyboard, so it does not reach the held keyboard line. The sync commit is not moved.
To see the check fail on purpose: `python3 .claude/skills/verify-secrets/breaks.py <name>` applies one break to the product code, runs the check, writes the file back as it was, and saves the output under `target/verify-secrets/`. Run it with no argument for the names.
The script writes the file back with a new modification time, which is what makes cargo build it again. If you then copy the tree to another machine with `rsync -a` (or anything that sets times back), cargo there keeps the broken build and the check fails on correct code: `touch` the file on that machine.
| Break | Caught by |
|---|---|
| B1 replies are not masked (`mod.rs`) | property, fixed sessions |
| B2 a secret is forgotten after its own call (`secrets.rs`) | property, fixed sessions |
| B3 a batch step's secret is not read | property, fixed sessions |
| B4 a shell command's secret is not read | property |
| B5 the trace keeps typed text (`trace.rs`) | nothing since `Traces::record` also masks its params with the remembered secrets (seen 2026-11-24: the break passes); it guards text that was not marked secret, which this check does not search for |
| B6 the trace keeps a secret command (`trace.rs`) | nothing since `Traces::record` also masks its params with the remembered secrets (seen 2026-12-01: the break passes on 3a9a5550 and on `v3/sight`, each built after `cargo clean -p` of the five crates); it guards the parts of a command that were not marked secret, which this check does not search for |
| B7 `Debug` prints typed text (`device.rs`) | property, fixed sessions |
| B8 `Debug` prints a shell command | property |
| B9 a failed step leaves the old focus trusted (`actor/act.rs`) | fixed sessions only |
| B10 plain text goes into a password field | property, fixed sessions |
| B11 the steps file of a recording is not masked (`actor/act.rs`) | fixed sessions |
| B12 `wait human`'s progress line keeps the agent's words (`actor/wait.rs`) | property, fixed sessions |
| B13 the trace keeps what a person typed on the live page (`trace.rs`) | property, fixed sessions |
| B14 an action's end event keeps its `lines` unmasked (`mod.rs`) | nothing: the reply the lines are made from is masked first |
| B15 a taught step's line keeps a label that shows a secret (`actor/teach.rs`) | property, fixed sessions |
| B16 the trace keeps a device's remark unmasked (`trace.rs`) | property, every-step session |
| B17 a watch keeps paths and crash words after a password was on screen (`actor/ghost.rs`) | property, every-step session |
| B18 the mask skips the `layout` field (`secrets.rs`) | property |
| B19 a value iOS cut at 512 units is not marked (`raw.rs`) | property, fixed sessions, every-step session |
| B20 a crash in a failure is added after the mask (`mod.rs`) | property, every-step session |
| B21 one or two characters before an iOS cut are kept (`actor/ops.rs`) | property, fixed sessions |
Before a commit that touches the covered files, run at least one break in the area you changed and confirm it still fails. A check that cannot fail is dead.
## Findings, fixed
Found on the first run, 2026-11-15, and fixed in the sync commit (decision D70 has the detail):
- **F1.** A secret typed into a field that shows its text was masked in that one reply, then printed by the next `snapshot`, `find` or action reply, and written to the trace under `--trace-full`.
- **F2.** A secret `type` as a `batch` step was not masked at all. Only a client other than the CLI and MCP could send one.
- **F3.** After a secret `type` whose tap moved the focus to the password field and whose text then failed, the next plain `type` with no target trusted the old screen and pasted plain text into the password field.
- **F4.** `FakeDevice` kept a shell command as a `String`, so a failed assertion printing the call log printed a `shell --secret` command.
- **F5.** Found by a review, not by this check, the day it was written: the steps file of a recording is written inside the actor, before `Daemon::call` masks anything, so a tap on a label that showed a remembered secret wrote the secret to `<video>.steps.jsonl`. The fake phone had no such label then. It has one now (`TapWhatTheNoteSays`).
2026-11-30, `why` hands over the steps (D275): a new door. The daemon's `why` ring keeps each step a session's journal records (`Journal::fresh`, `Ring::step`), masks them with every kept call's secrets in `export`, and the CLI writes them beside the page as `<page>.steps` through `save`'s `name_secrets` and `store_steps`; the text block names the file and the variables a secret step reads. The property's `why` check now also searches the steps `phonedriver::why::replay_steps` picks from that reply. `PROPTEST_CASES=3000 --test all secret_property::` 3 passed three times on win-pc, `--lib secrets` 6 passed. A break of the ring's step mask alone passed (the export's mask and both of `Daemon::call`'s still hold it); a break of all four for `why` failed it as it should (`the steps file \`why\` writes holds the secret Ty0mW4zR8nB3c`). `--test all replay::why_writes_the_steps_save_would_from_the_last_restart_and_the_agents_save_still_gets_every_step` checks the written file and the text for a typed password. The sync commit is not moved.
2026-11-30, D284 and the `why` wording: an action's `nochange` gained `behind`, a number of milliseconds and no text a caller gave; `video_barrier`'s `drawn_us` is a clock reading the daemon reads and does not return. `why`'s text block lost its attach sentence; the steps file it writes is unchanged. No new door. `--test all secret_property::` passed in the whole run on win-pc (`run-why3-whole3.log`). No break was run. The sync commit is not moved.
2026-11-30, D292: the CLI now passes what `why` returns through `why::shared` before writing the page and the text block; it only replaces the device's id and this computer's folders in strings, after the daemon's masks, and adds no text. The ring keeps a call's `path` only as a gesture's points. No new door: the property calls `why::page` on the masked export as before. `--test all secret_property::` is in the whole run of `v2/why4` on the Mac mini. No break was run. The sync commit is not moved.
2026-12-01, `sight` (D332, D333): `where` is a new call and `snapshot` takes `source`; both reply through `Daemon::call` with file paths and lines, never text a caller gave. `trace::sanitize` keeps a `where` target's text as its length unless traces are full, as `find`'s. The Flutter VM service's auth code is a new secret that is not a caller's: it is read from the app's log inside `crates/android/src/flutter.rs` and never leaves it (`flutter::tests::a_build_without_the_inspector_or_a_wrong_code_says_so_and_no_error_holds_the_code`), and the build machine's folders never leave the daemon (`--test all sight::`). On the Mac mini: `PROPTEST_CASES=3000 --test all secret_property::` 3 passed, `--lib secrets` 6 passed; B1 failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). B6 passes on this tree and on 3a9a5550 before it, each run after `cargo clean -p phonedriver -p phonedriver-core -p phonedriver-android -p phonedriver-ios -p phonedriver-video` (`breaks.py B6-the-trace-keeps-a-secret-command` exit 0 both times), so its table row was stale and now reads as B5's: the second layer masks a trace's params with the remembered secrets. After merging v0.2.0's 350e794e (d3d7fe58), on win-pc: `PROPTEST_CASES=3000 secret_property::a_secret_reaches_no_reply_error_or_file_and_plain_text_no_password_field` passed (178 s); `PROPTEST_CASES=256 secret_property::an_exposed_runs_secret_reaches_no_reply_error_or_file_and_plain_text_no_password_field` passed (1,294 s); the other two `secret_property::` tests passed; `--lib secrets` 6 passed. On the Mac mini, cleaned first, B1 failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). A run of all four at 3,000 cases is about 4.5 hours, because the exposed property starts the binary for each case. The sync commit is not moved.
2026-12-01, `sight-rn` (D343, D344): no covered file changed. The React Native reader (`crates/android/src/react_native.rs`) reads element texts and ids from the app's fibers only to match them, prints a file, a line and a component name, and puts the Metro machine's project folder in no reply (`Sight`'s `Debug` leaves it out; `--test all sight::` and `react_native::tests` give it a made-up user name in Unix and Windows form). No new door; `secret_property` was not rerun for this change.
2026-12-02, round 15 (D749): `Daemon::call` hands `journal` and `teach` steps to `secrets::left_to_a_person` before its mask, and `why` does the same to the steps it exports: a step whose parameters held a secret becomes a manual step. No new door; the manual step's words are the step's summary, or its method and masked parameters, and pass the same mask. `--test all secret_property::` passed on win-pc with it, and `--test all replay::a_step_that_carried_a_secret_outside_what_was_typed_is_left_to_a_person` holds `journal` and `why` to it. The property does not look for a manual step. With v0.2.0 merged, `breaks.py B1-replies-are-not-masked` failed three of the four `secret_property::` tests on win-pc, as it should. The sync commit is not moved.
2026-12-04, D1125 to D1128: `bug` writes one page that also holds the screen now (`snapshot` with `source`), the failed requests and the steps; the property builds that page from the same replies (`bug::add_now` before `why::page`) and searches it. `record start --ripples` keeps the gestures sent (coordinates and times, no text) in memory for the copy; the copy adds no text, and the recording's steps file is as before. On win-pc: `PROPTEST_CASES=3000 --test all secret_property::a_secret_reaches` passed (137 s), `--lib -- secrets why:: bug::` 24 passed, the other `secret_property::` tests in the whole run; breaks B1 (`step 31 (journal): traces/....jsonl holds the secret`) and B11 (`step 3 (record stop): rec0.mp4.steps.jsonl holds the secret`) failed the check as they should. On win-pc `python3` is the Store stub; run the script with `python`. The sync commit is not moved.
2026-12-04, `set --persona` (D1122; `secrets::carried`, `actor/set.rs`, `journal.rs`) and `assert storage` / `assert perf` (D1120): a persona's password reaches the daemon only as a name, so `carried` adds it for any `set` with a persona. The property generates it (`Step::Persona`, alone or in a batch, with or without a secret note beside it) with a fixed session and a place in the every-step session. `assert storage` passes every line it quotes through `Secrets::masked`; `--test all assert::assert_storage_no_secrets_finds_a_typed_secret_kept_under_an_ordinary_key` holds that, and the property does not generate it. New break B22 (`carried` leaving the persona's password out) failed the property on win-pc as it should (`step 1 (page): the reply holds the secret Pd-Leap-0229-pw!`), and B1 failed three of the four tests. Restored: `secret_property::` 4 passed, `--lib secrets` 8 passed, `PROPTEST_CASES=3000 secret_property::a_secret_reaches` passed (207 s). The sync commit is not moved.
## Not covered
- Pixels: a screenshot, a recording, and the screenshot copies of `--trace-screens` show what the phone shows.
- A secret under four characters after its own call; a secret the device prints back changed (escaped, wrapped, cut short); a later call that itself carries the same text without `secret`.
- A password a person typed on the phone or the live page that the app then puts in a request path, when the field was on no screen phonedriver read in the session (D775), or when the caller asks with `logs --net --paths`.
- The CLI and the MCP server: how they read the secret (stdin, `PHONEDRIVER_SECRET`), their own error text, the refusal of a secret on argv and in a batch on the command line, and how the MCP server passes a `type` step's `secret` in a `batch` or before a `then`. `tests/e2e.rs` and `tests/mcp.rs` have example tests for those; the daemon's side of a secret batch step is in the property.
- The on-device agent (Java) and what Android or iOS log about a paste; the clipboard after a secret paste.
- What XCTest and the iOS runner write under the home: the fake device has neither. One Simulator test covers an opened address (D694), one a typed secret (`e2e_ios::a_secret_from_stdin_is_typed_and_never_written_down`). The result bundle's compressed parts are not searched.
- `clipboard`, `logs`, `setting`, `wait`, `app` and `screenshot` calls are not generated. Their replies leave through the same `Daemon::call`, so the mask applies, but no session here proves it.
- More than one device, a daemon restart (the list of secrets is in memory only), two calls at once.
- Bounds: sessions of at most 6 steps, secrets of 13 and 26 characters, two fields, one screen. A pass covers those.
2026-11-30, `expose` (D307): a new door outside the daemon. `phonedriver expose <app>` serves an app's saved runs as MCP tools; a run's secret steps read `PHONEDRIVER_SECRET_*` from the server's environment, a call checks that each is set before step 1, and a reply is one line built from the replay's JSON (no typed text) or the replay's own failure. The new property `an_exposed_runs_secret_reaches_no_reply_error_or_file_and_plain_text_no_password_field` starts the real `phonedriver expose` binary with the variable set, writes a generated run (taps on either field, the secret typed into either field or the focus, plain text into either field), calls it with generated `from` and `screen`, then `snapshot`, then the run again, and searches every reply, every file under the daemon's home and the project folder, the device's call log and what the password field took. On win-pc: 256 cases passed, 49 of them typed the secret into the password field. Break: the success line quoting each secret variable's value failed it (`a reply holds the secret: ran 1 step in 0.3 s, 1 typed text verified; last: type secret $PHONEDRIVER_SECRET_1 into …Ex0pW4zR8nB3c`). `PROPTEST_CASES=3000 secret_property::a_secret` passed and `--lib secrets` 6 passed. No covered file changed. The sync commit is not moved.
2026-11-30, `expose` final tip (7be9dd44, the weak-end reply now carries the last step's act reply): on win-pc `PROPTEST_CASES=3000 --test all secret_property::` passed `a_secret_reaches_no_reply_error_or_file_and_plain_text_no_password_field` at 3000 cases; `--lib secrets` 6 passed. The exposed property starts the real `phonedriver expose` binary for each case, about 11 cases a minute, so 3000 would take about 4.5 hours: it was stopped after 587 cases with no failure (129 typed the secret into the password field). `PROPTEST_CASES` reaches both properties: proptest 1.12's `proptest!` passes the in-code config through `contextualize_config`, which reads the variable over `cases`.
2026-12-01, `expose` after merging v0.2.0's 1b5f7581 (dba70540): on win-pc `PROPTEST_CASES=3000 secret_property::a_secret_reaches_no_reply_error_or_file_and_plain_text_no_password_field` passed (329 s); `PROPTEST_CASES=256 secret_property::an_exposed_runs_secret_reaches_no_reply_error_or_file_and_plain_text_no_password_field` passed (1,279 s); the other two `secret_property::` tests passed; `--lib secrets` 6 passed.
2026-12-01, `scenes` (D340, D341): `journal` and its `keep` reply gain `order`, one number per kept step from a daemon-wide counter, so `save --as` can write two devices' steps in the order they were done; it holds no text and is never written to a file. A scene's replay is the CLI's `Replay::play` with a device per step: a secret is read where replay reads it, every variable the remaining steps name is checked before step 1 (the refusal names the variable, never its value), and the failure is masked by `stopped` as before. `--test all scenes::each_person_types_their_own_secret_and_a_missing_one_stops_the_scene_before_it_starts` holds two secrets on two fake phones out of every reply. On win-pc: `secret_property::` 3 passed (exposed property 32 cases passed), `--lib secrets` 6 passed; B1 applied by hand failed as it should (`step 0 (type): the reply holds the secret Ty0mW4zR8nB3c`). The property drives one device, so it does not generate a scene. The sync commit is not moved.
2026-12-01, `scenes2` (D345): a scene replayed through MCP reads its secrets from the MCP server's environment, where a replay reads them, and `mcp.rs` only rewrites a failure's words (`failure`, `for_mcp`), which the daemon has already masked. The property does not generate scenes; `--test all scenes_mcp::a_secret_is_read_from_the_servers_environment_and_reaches_no_reply_or_file` (the real `phonedriver mcp` with `PHONEDRIVER_SECRET_1` and `_2`) checks that a missing one stops the scene before step 1 with nothing typed, and that with both set neither value is in a reply or in any file under the home. `--test all -- guard_property:: guard:: secret_property::`: 111 passed on win-pc. The sync commit is not moved.
2026-12-02, `snapshot --layout` (D585): a new reply field, `layout` (finding lines that quote element lines and text read off the screen), leaving through `Daemon::call`; the session keeps the last check's texts and pixels in memory only. The property generates it (`Step::Layout`, two elements over each other that show the note), with a fixed session. Break B18, run as B16 and B17 before the merges of tree #5 and ghost took those numbers (the mask skipping `layout`) run on win-pc: `step 1 (snapshot --layout): the reply holds the secret Ty0mW4zR8nB3c`; B1 fails as before. A cut line quotes part of a text, which a whole-secret mask would pass, so nothing is read over an element whose text holds a secret (`layout::tests::nothing_read_over_a_text_that_holds_a_secret_is_quoted`; the fake phone has no pixels, so the property does not reach it). `--test all secret_property::` 4 passed, `--lib secrets` 6 passed. The sync commit is not moved.
2026-12-02, `beam` (D715 to D717): a new reply and a new file. `beam_read` answers `{secret: true}` and nothing else for an address, a clipboard text or a screen that holds a secret, and the CLI writes a beamed screenshot to an owner-only folder under the home for the length of one `files push`. The property gained `Step::Beam`, which puts every secret in the page's address and the clipboard and calls `beam_read` url, clipboard and screen. On win-pc `PROPTEST_CASES=3000 --test all secret_property::a_secret_reaches` passed (175 s), the other `secret_property::` tests in the whole run. The CLI's refusals are example tests in `tests/beam.rs`; the temporary picture is not in the property. No break was run: `Daemon::call`'s mask still holds the reply if `beam_read`'s own check is removed. The sync commit is not moved.
2026-12-02, `ci2` (D696, D697): two new reply fields, `devices`' `not_answering` (an id and a fixed sentence) and `hidden`'s `unanswered` (a count), and new progress lines for a dropped connection, which quote adb's refusal (a serial) or a method name and go through the progress sink like any line. A call run again after a drop is a read or a `launch` with `restart`, rebuilt from the same params inside the same `Daemon::call`, so its mask and secrets are the first run's; no action that types is repeated. Whole run on win-pc with `--test all` (`secret_property::`, `guard_property::`) and `--lib secrets` on 0271e001: 0 failed. The property drops no connection. Sync commit not moved.
2026-12-03, `ci2` (D854): `screenshot` with `transient` names one more area on Android, the text caret, from the agent's new `caret` op. The op reads the focused field's text (a password field's bullets too) only to find the character beside the caret, and returns numbers alone: the caret's place, or an empty field's bounds. Nothing new carries text. The property does not generate it; the whole run holds the existing checks.
2026-12-02, crash push (D681, D682): a new source of reply text, the exception and annotation Android pushes, which can repeat anything the app was given. It leaves in `crashed` through `Daemon::call`'s mask; the host cuts Android's annotation before its first `(` or `{`. The property draws pushed faults whose words repeat every earlier secret (`Step::Fault`). On win-pc at 854e1357: `secret_property::` 4 passed (1 ignored survey), `PROPTEST_CASES=3000 secret_property::a_secret_reaches` passed (187 s), `--lib secrets` 6 passed, and break B1 failed the property as it should. The agent's own jar holds no daemon secret and is not under the property. The sync commit is not moved.
2026-12-02, `watch-phone` (D730): a new method, `sense`, replies with the matching notifications or the text on screen through `Daemon::call`; only a failed look is traced, and `trace::sanitize` keeps the length of the words it looked for. The property generates it (`Step::Sense`: a notification that repeats every earlier secret and a text look for the last one). `watch-phone` passes the reply on to a program's environment and removes `PHONEDRIVER_SECRET` and `PHONEDRIVER_SECRET_*` from what it inherits; that is the command line's, outside the property (`--test all watchphone::a_secret_shown`). On win-pc: `secret_property::` passed, and break B1 failed as it should (`step 0 (type): the reply holds the secret`). The sync commit is not moved.
2026-12-03, `hunt-android` (D782): new refusals from `apps install` quote what adb or `pm` said, and the `ok` reply names packages found after a dropped connection. Both leave through `Daemon::call` and its mask; `install` takes a path and no secret text, and the property does not generate it. `--test all secret_property::` passed in the win-pc run of the three crates; no break was run for these lines.
2026-12-03, `hunt-android` (D828): a screen wait can now carry `crashed`, and a wait that times out carries the crash as `data.fault` (D835). Both come from the device's log or pushed faults and leave through `Daemon::call` as every reply and error does; no file is new. The property does not generate a wait over a crash.
2026-12-03, `hunt-android` (D829): `commands.rs` `read_secret` reads past an empty `PHONEDRIVER_SECRET` to stdin; nothing new is written or replied. `--test all -- cli:: secret` passed on win-pc.
2026-12-03, `hunt-android` (D833): the `Type` arm moves the point of its focus tap out of the gesture areas (`actor/act.rs`: `focus_point`); what is typed, withheld and refused is unchanged. `--test all secret_property::` passed on win-pc (the exposed-run property in a second run with `--test-threads=4`, the first meeting os error 1450). No break run. The sync commit is not moved.
2026-12-03, `hunt-android` (D886): the focus check after the `Type` arm's tap moved into `focused_by_tap`, which `clear` calls too; `clear` also hides a covering keyboard. Nothing new is typed or replied. `--test all secret_property::` passed on win-pc. No break run. The sync commit is not moved.
2026-12-03, `hunt-ios` (D886, iOS): the `Clear` arm and the `Type` arm's `into` target go through `Actor::uncovered` before the tap, which hides the keyboard for a field under it or under a bar on it, or refuses with the bar's name; `Session::resolved_ref` is new. Neither carries text. `secret_property` passed in the Mac mini whole run. The sync commit is not moved.
2026-12-03, `roaming-fix` (D926 to D934; `actor/wait.rs`, `actor.rs`, `daemon/stop.rs`, `mcp.rs`): a batch cut by a lost connection answers with a new error that lists the steps that ran. It leaves through `Daemon::call` and its mask; the property does not cut a connection, and `--test all roaming::a_cut_batch_does_not_repeat_a_secret_its_steps_typed` does. On win-pc at c3eba1c5: `secret_property::` 4 passed, `--lib secrets` 7 passed, breaks B1 and B3 failed the property as they should; all breaks still match the code once. The sync commit is not moved.
2026-12-03, `roaming-fix` after merging v0.2.0 `0123f74d`, on win-pc at 35a68a3b: `secret_property::` 4 passed, `--lib secrets` 7 passed, breaks B1, B3, B9 and B11 failed the check as they should; all 21 breaks match the code once. The sync commit is not moved.
2026-12-03, D947 (`actor/act.rs`, `core/device.rs`, `core/testing.rs`, `daemon/stop.rs`, `daemon/scope.rs`): an `--append` into a focused field on Android may skip its tap and have the device move the caret (`Device::caret_to_end`), which carries an app id and no text. No new reply, file or log line, and the refusal of plain text into a password field runs before it, unchanged. `secret_property::` passed in the whole runs on win-pc and the Mac mini; break B10 on win-pc failed three of the four tests (`the password field was given text that was not marked secret`), and `secret_property::` 4 passed after it. The property's phones are not Android, so it does not reach the skipped tap. The sync commit is not moved.
2026-12-03, D948 and D949 (`actor/act.rs`, `actor/aim.rs`, `core/device.rs`, `core/refs.rs`, `core/testing.rs`, `daemon/stop.rs`, `daemon/scope.rs`, the agent's `TextInput.java`): a send of text or Enter also names the aimed field's window and those beside it, ids only. A new refusal quotes a text or the title of another window; it leaves through `Daemon::call` and its mask, and the text is quoted whole or not at all (at most 60 characters), because a cut one could hold part of a secret past the mask (`--test all an_android_refusal_never_quotes_a_part`, red before the fix with a 40-character cut). On win-pc, merged with 314cfcf6: `secret_property::` 4 passed, `--lib secrets` 7 passed, breaks B1 and B10 failed the check as they should. The property's phones are not Android and show one window, so it does not generate the refusal. The sync commit is not moved.
2026-12-03, D950 (`actor/act.rs`, `actor/aim.rs`, `actor/typing.rs`): on Android a `type` or `clear` goes on with a field of a window the tap brought up, and holds it to the aimed field's rules (`may_take`: plain text out of a password field, a replayed secret out of an ordinary one, no secret added to a password field's text); no new reply, file or log line. The plain-text refusal moved into `may_take`, so B10 patches it there. On the Mac mini: `secret_property::` 4 passed, `--lib secrets` 7 passed, breaks B1 and B10 failed the check as they should. The property's phones are not Android, so it does not reach the followed field; `--test all android_plain_text_stays_out_of_a_password_field_that_a_tap_brought_up` holds that rule there. The sync commit is not moved.
2026-12-03, `roaming-fix2` (D935: the new `interrupted` detail of a cut push carries the transport error and leaves through `Daemon::call`), on win-pc at 106768ac: `secret_property::` passed with the touched tests (201 passed, 0 failed) and `--lib secrets` in `-p phonedriver --lib` (432 passed); breaks B1 and B10 failed the check as they should. The sync commit is not moved.
2026-12-03, SDK replies (D1043): the `check` reply gained `reading: {label, value}` and `shell` with `streams: true` gained `stdout` and `stderr`; both leave through `Daemon::call`. The property now sends `streams` with every shell step. Two hand breaks on win-pc, the mask in `daemon/secrets.rs` made to skip the key `stderr` and then `reading`, each failed `a_secret_reaches...` (`step 1 (shell): the reply holds the secret`, `step 0 (a read of a value iOS cut): the reply holds the secret`); restored, `PROPTEST_CASES=3000` passed. Neither break is in `breaks.py`. The sync commit is not moved.
Files in this skill
- SKILL.md
- breaks.py
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.