π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π chore(acceptance): sync upstream skill 0.7.0 (#20330)
Arvin Xu4848b50db27a
diff --git a/.agents/skills/acceptance/SKILL.md b/.agents/skills/acceptance/SKILL.mdindex 270c45fb6d4..5089a7b6e73 100644--- a/.agents/skills/acceptance/SKILL.md+++ b/.agents/skills/acceptance/SKILL.md@@ -2,7 +2,7 @@name: acceptancelicense: Apache-2.0metadata:- version: "0.6.1"+ version: "0.7.0"description: >End-to-end verification and self-evidence for a delivery in any repository,with or without a preconfigured verify plan. Discover an existing plan when@@ -473,6 +473,10 @@ simctl io` over host-window capture. Rounds land under `.acceptances/`, which- **Upload as you go.** Evidence keyed to its check mid-run survives a crash nearthe end.- **Don't invent evidence.** Capture only the types a check declares.+- **Chapter every recording.** Log a mark for each step and each claim you+ verify on a frame, and disclose every anomaly you noticed as a `flag`; the+ reviewer seeks to them instead of watching the whole clip β+ [video-chapters.md](references/video-chapters.md).## Reference map@@ -494,4 +498,5 @@ For both acceptance-checker handoffs and review output, read| Bundled CDP screenshot and macOS capture preflight | [screenshot-helpers.md](references/screenshot-helpers.md) || Authenticated Web session | [auth-web.md](references/auth-web.md) || Native macOS / OS-owned step | [computer-use.md](references/computer-use.md) |+| Video chapters: steps, checks, flags on a clip | [video-chapters.md](references/video-chapters.md) || Temporal evidence: Web/Electron, iOS, native | [recording-cdp.md](references/recording-cdp.md), [recording-ios-simulator.md](references/recording-ios-simulator.md), [recording-native-macos.md](references/recording-native-macos.md) |diff --git a/.agents/skills/acceptance/references/evidence.md b/.agents/skills/acceptance/references/evidence.mdindex 44cdc8b4cc7..56f889dc04f 100644--- a/.agents/skills/acceptance/references/evidence.md+++ b/.agents/skills/acceptance/references/evidence.md@@ -20,6 +20,10 @@ instructions merely to learn how to submit an artifact.The declared `requiredEvidence` type is binding. Do not replace a required videowith a final screenshot or a required DOM snapshot with prose.+Every `video` you capture carries chapters β your steps, the claims you verified+on specific frames, and the anomalies you noticed β so the reviewer can seek to+each one instead of watching the whole clip: [video-chapters.md](./video-chapters.md).+## Audio deliverablesA sound cannot be verified in prose, and a waveform screenshot proves only thatdiff --git a/.agents/skills/acceptance/references/recording-cdp.md b/.agents/skills/acceptance/references/recording-cdp.mdindex 589d60e6c04..95bdfbc16ab 100644--- a/.agents/skills/acceptance/references/recording-cdp.md+++ b/.agents/skills/acceptance/references/recording-cdp.md@@ -19,15 +19,24 @@ capture_frame() { agent-browser --session app screenshot "$1"; }# Electron alternative:# capture_frame() { agent-browser --cdp 9222 screenshot "$1"; }+now() { python3 -c 'import time; print(f"{time.time():.3f}")'; }+i=0while [ "$i" -lt 40 ]; do # about 20 seconds at 0.5 seconds per frameprintf -v frame_number "%06d" "$i"- capture_frame "$FRAME_DIR/frame_$frame_number.png"+ at=$(now)+ capture_frame "$FRAME_DIR/frame_$frame_number.png" &&+ echo "$FRAME_DIR/frame_$frame_number.png $at" >> "$FRAME_DIR/frames.log"i=$((i + 1))sleep 0.5done```+`frames.log` records when each frame was taken. A screenshot takes a variable+share of each interval, so the log β not the nominal interval β is the clip's+real timeline: assemble from it, and derive [chapters](./video-chapters.md)+from its first line.+Use a shorter interval such as `0.25` seconds for quick transitions and a longerinterval such as `1` second for slow flows. Keep the capture scoped to thebehavior under review.@@ -35,9 +44,17 @@ behavior under review.## Assemble and validate the clip```bash-# MP4-ffmpeg -y -framerate 2 -i "$FRAME_DIR/frame_%06d.png" \- -c:v libx264 -crf 23 -pix_fmt yuv420p ./proof/flow.mp4+# MP4 on the real timeline: each frame lasts until the next one was taken+python3 - "$FRAME_DIR" > "$FRAME_DIR/concat.txt" <<'PY'+import sys+frames = [line.split() for line in open(f"{sys.argv[1]}/frames.log")]+for (path, at), nxt in zip(frames, frames[1:] + [[None, float(frames[-1][1]) + 0.5]]):+ print(f"file '{path}'\nduration {float(nxt[1]) - float(at):.3f}")+print(f"file '{frames[-1][0]}'")+PY+ffmpeg -y -f concat -safe 0 -i "$FRAME_DIR/concat.txt" \+ -vf "fps=30,scale=trunc(iw/2)*2:trunc(ih/2)*2" \+ -c:v libx264 -crf 23 -pix_fmt yuv420p -movflags +faststart ./proof/flow.mp4# GIF with a generated paletteffmpeg -y -framerate 2 -i "$FRAME_DIR/frame_%06d.png" \@@ -50,8 +67,11 @@ ffprobe -v error \```Inspect the first frame, action frame, transient state, and settled frame before-citing the artifact. Keep the original frame directory until verification is-published; it is useful when a reviewer asks about a one-frame defect.+citing the artifact. While driving, log a chapter for each step and each claim+you verify ([video-chapters.md](./video-chapters.md)); the frames you inspect+here are the ones your `check` chapters point at. Keep the original frame+directory until verification is published; it is useful when a reviewer asks+about a one-frame defect.## Boundariesdiff --git a/.agents/skills/acceptance/references/recording-ios-simulator.md b/.agents/skills/acceptance/references/recording-ios-simulator.mdindex 0cef5ca724b..fdd9e0c4ae8 100644--- a/.agents/skills/acceptance/references/recording-ios-simulator.md+++ b/.agents/skills/acceptance/references/recording-ios-simulator.md@@ -14,6 +14,8 @@ UDID when more than one device is booted.xcrun simctl io "$UDID" recordVideo --codec=h264 ./proof/ios-flow.mp4 \2> ./proof/ios-recording.log+# Log `mark step "Recording started"` at that moment: it is the zero point+# for the video's chapters (video-chapters.md). Mark each step and check as you go.# Drive the scenario with the selected driver (sim-use, AXe, or the repository's# native CLI/UI tests) in parallel. Stop the recorder with SIGINT (Ctrl-C), then wait for finalization.```diff --git a/.agents/skills/acceptance/references/recording-native-macos.md b/.agents/skills/acceptance/references/recording-native-macos.mdindex 6df63a85670..398bf504ff9 100644--- a/.agents/skills/acceptance/references/recording-native-macos.md+++ b/.agents/skills/acceptance/references/recording-native-macos.md@@ -35,6 +35,10 @@ ffmpeg -y -i ./proof/native-flow.mp4 \./proof/native-flow.gif```+Start the recorder and log `mark step "Recording started"` in the same command+line, so the mark is the zero point for the video's+[chapters](./video-chapters.md); mark each step and check while driving.+Inspect the resulting file before citing it and confirm that no unrelated window,notification, or secret entered the host-screen capture. Tag direct`screencapture` output as `--by cli` and FFmpeg-derived media as `--by program`.diff --git a/.agents/skills/acceptance/references/report.md b/.agents/skills/acceptance/references/report.mdindex 46babdae9d7..b5bd835a197 100644--- a/.agents/skills/acceptance/references/report.md+++ b/.agents/skills/acceptance/references/report.md@@ -405,6 +405,25 @@ Choose the layout by comparison intent, not by the source image dimensions:A comparison pair means the same view in two states β sequential steps of aflow are ordinary ordered evidence with captions, not a pair.+### Video chapters++A `video` evidence entry takes `chapters`: `step` (an action, with `label`),+`check` (a claim true of that frame, with `note`) and `flag` (an anomaly you+noticed and disclose, with `note`), each at `t` seconds. The page puts them on+the player's timeline and captions each claim over its frame:++```json+{ "path": "assets/scroll-top.mp4",+ "description": "Five scrolls at the top of a short topic.",+ "chapters": [+ { "kind": "step", "t": 6, "label": "Scroll #3" },+ { "kind": "check", "t": 7.9, "note": "Scroll #3: no skeleton, first question still in place" }+ ] }+```++Derive `t` from logged marks, never from memory, and disclose every anomaly as a+`flag` β [video-chapters.md](./video-chapters.md).+## Rules- **No evidence, no claim** β every `pass`/`fail` in `cases[]` links at leastdiff --git a/.agents/skills/acceptance/references/video-chapters.md b/.agents/skills/acceptance/references/video-chapters.mdnew file mode 100644index 00000000000..fe4e8c5ab3c--- /dev/null+++ b/.agents/skills/acceptance/references/video-chapters.md@@ -0,0 +1,122 @@+# Video chapters++A recording without chapters asks the reviewer to watch all of it to find the+two seconds that matter. Chapters put your steps and your claims on the video's+timeline: the reviewer jumps to each claim, checks the frame, and rejects the+exact moment you got wrong.++Attach chapters to every `video` evidence you capture yourself. They cost one+command per step while you drive the scenario.++## The three kinds++| Kind | Means | Required text |+| ------- | ------------------------------------------------------------------ | -------------------- |+| `step` | An action you performed: "Scroll #3", "Submit the form" | `label` (short name) |+| `check` | Something you verified **on this frame** | `note` (the claim) |+| `flag` | An anomaly you noticed and judged harmless, disclosed for review | `note` (what & why) |++`t` is seconds from the start of the video.++Rules that make chapters trustworthy:++- **A `check` is true of its own frame, not of the whole clip.** "No skeleton on+ this frame after scroll #3" β not "no skeleton anywhere". The reviewer seeks to+ `t` and judges the claim against that picture.+- **Write a `flag` for every anomaly you saw, even one you consider harmless** β+ a request count that ticked up, a one-frame flash, a layout jump. An anomaly+ the reviewer finds that you did not disclose reads as concealment and costs+ more trust than the anomaly itself.+- **A `check` is a claim to audit, never a pass.** It does not replace the+ case `observation`, the frames you inspected, or the reviewer's judgement.+- **Timestamps come from logs, not memory.** Log each mark while driving (below)+ and derive `t` from the recording's own start. Before publishing, extract the+ frame at each `check` and `flag` and confirm it shows what the note says.++## Log marks while you drive++Record wall-clock marks next to the recording, then convert them against the+recording's start time:++```bash+MARKS=./proof/flow.marks.jsonl+mark() { # mark <step|check|flag> <text>+ python3 -c 'import json,sys,time; print(json.dumps({"wall": time.time(), "kind": sys.argv[1], "text": sys.argv[2]}, ensure_ascii=False))' "$1" "$2" >> "$MARKS"+}++mark step "Open the conversation and scroll to the top"+# ... drive the product ...+mark check "Scroll #3: no skeleton, request count still 0"+mark flag "Request count 0 β 1 at the third scroll β a background prefetch; the list did not move"+```++The recording's start time depends on the recorder:++- **CDP frames** ([recording-cdp.md](./recording-cdp.md)): the first line of+ `frames.log`.+- **`simctl` / `ffmpeg` recorders**: log `mark step "Recording started"` the+ moment the recorder reports it started, and use that mark's `wall` as the+ start.++Convert marks into chapters:++```bash+START=$(head -1 "$FRAME_DIR/frames.log" | cut -d' ' -f2) # or the "Recording started" mark+python3 - "$MARKS" "$START" > ./proof/flow.chapters.json <<'PY'+import json, sys+marks, start = sys.argv[1], float(sys.argv[2])+chapters = []+for line in open(marks):+ m = json.loads(line)+ key = "label" if m["kind"] == "step" else "note"+ chapters.append({"kind": m["kind"], "t": round(max(m["wall"] - start, 0), 2), key: m["text"]})+print(json.dumps(chapters, ensure_ascii=False, indent=1))+PY+```++## Attach them++Authored rounds put `chapters` on the video's evidence entry in `result.json`:++```json+"evidence": [+ { "path": "assets/scroll-top.mp4",+ "description": "Five scrolls at the top of a short topic; the overlay shows the current action and the request count.",+ "chapters": [+ { "kind": "step", "t": 6, "label": "Scroll #3" },+ { "kind": "flag", "t": 7, "note": "Request count 0 β 1 β a background prefetch; the list did not move" },+ { "kind": "check", "t": 7.9, "note": "Scroll #3: no skeleton, first question still in place" }+ ] }+]+```++A single upload carries them in metadata:++```bash+lh acceptance run evidence upload --check "$CHECK_RESULT_ID" --type video \+ --file ./proof/scroll-top.mp4 --desc "Five scrolls at the top of a short topic" \+ --metadata "{\"chapters\": $(cat ./proof/flow.chapters.json)}"+```++Ingest warns and drops every malformed marker β a negative or missing `t`, an+unknown `kind`, a `step` without a `label`, a `check`/`flag` without a `note` β+and ignores chapters on anything that is not a video. Treat the warning as a+claim the reviewer will not see: fix it and re-ingest before handing off.+Chapters need `lh` 0.0.60 or later (`lh --version`); an older CLI uploads the+video without them, so read the evidence back and confirm they arrived.++## When the reviewer answers on the timeline++A reject on a video names its moment. `lh acceptance feedback <id> --actionable`+prints each note with `frame at 0:07.47` (optionally with the circled region),+a span such as `0:06.48β0:07.78`, and β when the reviewer disputed one of your+chapters β `disputes your check at 0:07.90: "<your note>"`. Open the recording+at that moment before acting:++```bash+ffmpeg -ss 7.47 -i ./proof/scroll-top.mp4 -frames:v 1 ./review/frame-7.47.png+```++A disputed `check` means that claim was judged wrong: find what the frame (or+the frames around it) actually shows, and do not repeat the claim in the next+round without new evidence.