From 6c4e20b0c6dec7c3226bea2028fef1e435891686 Mon Sep 17 00:00:00 2001 From: Jackson Miller Date: Sun, 18 Oct 2026 13:52:14 -0400 Subject: [PATCH 1/2] docs(j5): testers upload PR videos that play on GitHub GitHub only plays video from its own attachment URLs, which its API cannot create. The live-test skill now has testers record with the Browser panel and upload through a signed-in profile's comment box, without posting. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/j5-live-test/SKILL.md | 42 +++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/.agents/skills/j5-live-test/SKILL.md b/.agents/skills/j5-live-test/SKILL.md index 292e4ff06dfe..3228006699c9 100644 --- a/.agents/skills/j5-live-test/SKILL.md +++ b/.agents/skills/j5-live-test/SKILL.md @@ -1,6 +1,6 @@ --- name: j5-live-test -description: Live-test a J5 Code change on a real server with real agents. Use when unit tests cannot prove the change, such as UI flows, agent turns, agent-to-agent messages, Crews, Playbooks, peering, first run, or PR screenshots. Covers asking for a test and running one. Sets up a safe test server with one script, then hands the browser steps to test-t3-app. +description: Live-test a J5 Code change on a real server with real agents. Use when unit tests cannot prove the change, such as UI flows, agent turns, agent-to-agent messages, Crews, Playbooks, peering, first run, or PR screenshots and videos. Covers asking for a test and running one. Sets up a safe test server with one script, then hands the browser steps to test-t3-app. --- # Live-test J5 Code @@ -28,6 +28,8 @@ what was not exercised live, and what the person must test by hand in the PR's Record each testing decision there too, with its reason: which rows you judged did not apply, and what you re-tested or did not after a later change. +Put the report's videos in the PR description beside the screenshots. + More than one tester can run at once. Each has its own server, and they share one browser, so one tester's timed-out call can cost another a single failed call. @@ -166,6 +168,7 @@ send whoever asked for the test a short message with the verdict and that path. reason. Say how each was verified: live, by test, or from code. 5. Bugs found, each with steps to reproduce. 6. Rig problems: anything in the test setup that got in the way. +7. Videos: each URL with a one-line caption. Leave out when empty. A claim without one of those three labels counts as not verified. @@ -199,6 +202,43 @@ Repeat `--pair` for each state. For a state the change adds, use description. Run `rebuild` with no flag when you are done, which removes the base checkout. It refuses if you edited a file there, so do not. +## PR videos + +Motion, timing, or an interaction sequence needs a video. Record base and head +with the same steps, each on its own server as for screenshots. + +1. Resize the tab to 1280x800, call `preview_recording_start`, do the steps, + then call `preview_recording_stop`. It returns an MP4 in the server's data + directory. Copy it out under a name that says what it shows: GitHub shows + the name above the player. +2. Open the PR in a new tab with `preview_open`, passing the "GitHub Video + Upload" profile from `preview_status` as `profileId`. If there is no PR + yet, open its tracking issue. That profile is signed in to the developer's + GitHub account: open nothing else under it. +3. Call `preview_upload` with `locator: "#fc-new_comment_field"` and the MP4's + path. GitHub uploads it and writes a + `https://github.com/user-attachments/assets/` URL into the comment + box. `preview_wait_for` cannot see text in that box, so read + `document.getElementById("new_comment_field").value` with + `preview_evaluate` until the URL is there. +4. Empty the box (set its value to `""` and dispatch an `input` event), never + submit it, and close the tab. +5. Check the URL renders as a player. This must print `" | jq -Rs '{text: ., mode: "gfm", context: "Jacksondr5/j5code"}' \ + | gh api markdown --input - | grep -o ' Date: Sun, 18 Oct 2026 13:58:00 -0400 Subject: [PATCH 2/2] docs(j5): check PR videos play signed out once the description is saved Co-Authored-By: Claude Opus 5.5 --- .agents/skills/j5-live-test/SKILL.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.agents/skills/j5-live-test/SKILL.md b/.agents/skills/j5-live-test/SKILL.md index 3228006699c9..1c21bc7ba4be 100644 --- a/.agents/skills/j5-live-test/SKILL.md +++ b/.agents/skills/j5-live-test/SKILL.md @@ -28,7 +28,13 @@ what was not exercised live, and what the person must test by hand in the PR's Record each testing decision there too, with its reason: which rows you judged did not apply, and what you re-tested or did not after a later change. -Put the report's videos in the PR description beside the screenshots. +Put the report's videos in the PR description beside the screenshots. Once +the description is saved, check each plays for a signed-out viewer: this must +print `200 video/mp4`. + +```bash +curl -sL -o /dev/null -w '%{http_code} %{content_type}\n' "" +``` More than one tester can run at once. Each has its own server, and they share one browser, so one tester's timed-out call can cost another a single failed @@ -223,15 +229,16 @@ with the same steps, each on its own server as for screenshots. `preview_evaluate` until the URL is there. 4. Empty the box (set its value to `""` and dispatch an `input` event), never submit it, and close the tab. -5. Check the URL renders as a player. This must print `" | jq -Rs '{text: ., mode: "gfm", context: "Jacksondr5/j5code"}' \ | gh api markdown --input - | grep -o '