You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f855436
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .claude/skills/verify-clerk-expo/SKILL.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,7 @@ A remote run writes the same files. The runner records the video, and the CLI do
205
205
```console
206
206
$ integration/expo-native/bin/control-clerk-expo attach <run-id> --pr <n> --screenshot profile # a still change that is new
207
207
$ integration/expo-native/bin/control-clerk-expo attach <run-id> --pr <n> --screenshot profile --before <run-id># a still change to something that exists
208
+
$ integration/expo-native/bin/control-clerk-expo attach <run-id> --pr <n> --new-screen update --screenshot profile --before <run-id># a new screen beside a screen that exists
208
209
$ integration/expo-native/bin/control-clerk-expo attach <run-id> --pr <n> --video # a flow that is new
209
210
$ integration/expo-native/bin/control-clerk-expo attach <run-id> --pr <n> --video --before <run-id># a change to a flow that exists
210
211
```
@@ -229,15 +230,15 @@ await host.evidence('sign in with an email code', async () => {
229
230
230
231
A run that names its specs and records a video is paced for a reviewer. Before each `host.tap`, `host.back`, and `host.fill` it waits for the target to show and then 0.6 seconds more, and at the end of each `host.evidence` block it holds the result for two seconds. Nothing else is slowed. A tap made any other way, such as the locator's own `tap`, gets no pause and no pulse, and so does `device.back()`. So inside a `host.evidence` block, tap with `host.tap`, and go back with `host.back()`. It taps the middle of the screen's back control, as a user does: the navigation bar's back button, `BackButton`, on iOS, and the top bar's back arrow, labelled `Back`, on Android. It fails when the screen shows neither. `run --all`, which the release workflow uses, and `run --no-video` keep full speed, so pass `--no-video` while you iterate on a spec. Neither `simctl io recordVideo` nor the emulator's `screenrecord` records a touch indicator, so the pulses are the only sign of a tap. After the tests, `run` reads the size of the screen to place them. When it cannot, it says so, and `attach` draws no pulses for that run.
231
232
232
-
Choose before and after, or after only, by whether the thing existed. A change to something that exists shows what it replaced, so add `--before <run-id>`. Something new has no before, so leave the flag out.
233
+
Choose before and after, or after only, by whether the thing existed. A change to something that exists shows what it replaced, so add `--before <run-id>`. Something new has no before, so leave the flag out. When the change adds a screen and changes a screen that exists, attach them together in one `attach` with `--before <run-id>`: pass each screen that exists as `--screenshot <label>`, and each new screen as `--new-screen <label>`. One table then holds every row in the order of the flags, and a new screen's row has `New screen` in its `Before` cell. A second `attach` would replace the first block, so don't split them. `attach` refuses `--new-screen` without `--before` or with `--video`, a `--new-screen` for every label, a label given twice, and a `--new-screen` whose label the before run has a screenshot of, because that screen exists.
233
234
234
-
To make the before run, `run` the spec of your change on the build without the change, before you make the change, on the platform of the run it goes with. That run can fail, and a failed run is a good before: a spec that expects the new wording fails on the old build. `attach` pairs each screenshot with the screenshot of the same label in the before run. When the test that takes a screenshot failed in the before run before it took it, `attach` uses the failure screenshot of that test. When the before run has neither, `attach` fails and says so. With `--video` it pairs the two videos. The before run must be in `.verify/runs/` of this checkout, and `attach` fails with a usage error when it is a run of the other platform.
235
+
To make the before run, `run` the spec of your change on the build without the change, before you make the change, on the platform of the run it goes with. That run can fail, and a failed run is a good before: a spec that expects the new wording fails on the old build. `attach` pairs each `--screenshot` with the screenshot of the same label in the before run. When the test that takes a screenshot failed in the before run before it took it, `attach` uses the failure screenshot of that test. When the before run has neither, `attach` fails and says so. A `--new-screen` is paired with nothing, so a before run that never reached the new screen, or failed on the way, is fine. With `--video` it pairs the two videos. The before run must be in `.verify/runs/` of this checkout, and `attach` fails with a usage error when it is a run of the other platform.
235
236
236
-
For screenshots, show each screen the change touches, and each state of a screen that it touches, in a before and after of its own. That includes a state the change should leave as it was, because its pair shows that it did. Write one spec file with one test per state, each ending in its own `host.screenshot(label)`. On each platform you show, run it once without the change and once with it, and pass every label to one `attach`, one `--screenshot <label>` each. The table of that platform then has a row for each state.
237
+
For screenshots, show each screen the change touches, and each state of a screen that it touches, in a before and after of its own. That includes a state the change should leave as it was, because its pair shows that it did. Write one spec file with one test per state, each ending in its own `host.screenshot(label)`. On each platform you show, run it once without the change and once with it, and pass every label to one `attach`, one `--screenshot <label>` each, or `--new-screen <label>` for a screen the base branch does not have. When every screen is new, there is no before: skip the run without the change, and pass each label as `--screenshot <label>` with no `--before`. The table of that platform then has a row for each state.
237
238
238
239
Some states are out of reach for a test user on the standard settings with the default roles. Try `host.useSettings` in the spec, or test data that the spec seeds, first. When neither reaches it, force the state with a small local patch to the build. Never commit or push the patch. Put the same patch on the before build and the after build, and run both on a local device, because `attach` refuses a run on a session build with uncommitted changes. In the pull request, say exactly what the patch changed and why no test user could reach the state without it.
239
240
240
-
`attach` puts the files in the description of the pull request with `gh pr edit --attach`. It writes one block for the platform of the run, between the comments `<!-- verify-evidence:ios -->` and `<!-- /verify-evidence:ios -->`, or the same two with `android`. The block is a line and then one or more tables. The line leads with the result and names the run, the device, the commit, and how many tests passed. With `--before` it also names the before run, its commit, and how many of its tests passed. With `--before`, one table has a `Before` and an `After` column, and a row for each screenshot or one row for the video. Without it, the screenshots are two across, each under its label in code font, and the video is alone in a table under its name. Each screenshot is 280 pixels wide.
241
+
`attach` puts the files in the description of the pull request with `gh pr edit --attach`. It writes one block for the platform of the run, between the comments `<!-- verify-evidence:ios -->` and `<!-- /verify-evidence:ios -->`, or the same two with `android`. The block is a line and then one or more tables. The line leads with the result and names the run, the device, the commit, and how many tests passed. With `--before` it also names the before run, its commit, and how many of its tests passed. With `--before`, one table has a `Before` and an `After` column, and a row for each screenshot or one row for the video. A `--new-screen` row has `New screen` in place of its before. Without it, the screenshots are two across, each under its label in code font, and the video is alone in a table under its name. Each screenshot is 280 pixels wide.
241
242
242
243
The first `attach` of a platform adds its block after the description. A later `attach` of that platform replaces its block, so the description holds the latest run of each platform and the media does not pile up. `attach` changes nothing outside the block. Keep both comments of a block or remove both: `attach` refuses a description that has one without the other, or either one twice. A comment counts only when it is a whole line outside a code fence, so a description can quote one in a sentence or show a whole block as an example.
Copy file name to clipboardExpand all lines: .claude/skills/verify-clerk-expo/references/remote.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ Each checkout has a random id in `.verify/remote/owner`, and its sessions carry
85
85
86
86
## Evidence from a machine that cannot attach
87
87
88
-
`attach` always tries `gh pr edit --attach` itself first, on every kind of machine, and hands off only when that cannot work. The hand-off sends the evidence of a remote run to the session's runner. It sends the files that the flags of `attach` chose from the sealed run directory, with a manifest that names the run, the pull request, the device, the commit, and each file's size and SHA-256. With `--before`, the manifest also names the before run, its commit, and its counts, and the hand-off carries one file of the before run for each file of the run. Those files come from the before run's directory in this checkout, whichever session made that run. When that directory is gone, as it is in a new sandbox, `attach` fails with `USAGE` before it sends anything, and its fix is to attach without `--before` and name the before run in the PR. The files travel over the session's tunnel, with the session's token, in pieces of 1 MiB. The session job keeps them in one directory and uploads that directory as the artifact `verify-evidence` when the job ends. The artifact holds nothing else of the session.
88
+
`attach` always tries `gh pr edit --attach` itself first, on every kind of machine, and hands off only when that cannot work. The hand-off sends the evidence of a remote run to the session's runner. It sends the files that the flags of `attach` chose from the sealed run directory, with a manifest that names the run, the pull request, the device, the commit, and each file's size and SHA-256. With `--before`, the manifest also names the before run, its commit, and its counts, and the hand-off carries one file of the before run for each file of the run, except a `--new-screen`, whose before is `null` in the manifest and has no file. Those files come from the before run's directory in this checkout, whichever session made that run. When that directory is gone, as it is in a new sandbox, `attach` fails with `USAGE` before it sends anything, and its fix is to attach without `--before` and name the before run in the PR. The files travel over the session's tunnel, with the session's token, in pieces of 1 MiB. The session job keeps them in one directory and uploads that directory as the artifact `verify-evidence` when the job ends. The artifact holds nothing else of the session.
89
89
90
90
`.github/workflows/verify-attach.yml` then runs, from the default branch. It downloads the artifact, checks every file against the manifest and against its own limits, and puts the block of the run's platform in the description with `gh issue edit --attach`, which, unlike `gh pr edit`, does not read the review requests of the pull request. A team that is requested as a reviewer is a review request that the evidence token cannot read, so `gh pr edit` would fail there. It holds a file of the before run to the same checks as a file of the run. It writes the description twice, as `attach` does: the first write uploads the files as a list, and the second lays them out in the tables that `SKILL.md` describes under Evidence. For the second write it reads the addresses of the uploads from the block, and takes only addresses of GitHub uploads. If the pull request or the block changed between the two writes, it leaves the list and says so in its run. A rerun of that job uploads the files again and lays them out. The tables take about twice the characters of the list, so in a description near GitHub's limit of 65,536 characters the second write can fail after the first one succeeded. The job then fails, and the list stays until the description is shorter and the job runs again. It never runs anything from the branch or from the artifact. The workflow did not run the tests, so the line it writes says that the session reported the result, links the session's run in the Actions tab, and names the account that started that run, as GitHub records it. With a before run, the line says that the session reports that run, and it links the commit of that run so that a reader can open it.
0 commit comments