Skip to content

🀯 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.

πŸ“ docs(builtin-skills): add structured report-round reference to acceptance skill (#17799)

Arvin Xuca4e7159d4d1
diff --git a/package.json b/package.json
index 8d631c15004..f2b710c7e29 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@lobehub/lobehub",
- "version": "2.2.11",
+ "version": "2.2.12",
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
"keywords": [
"framework",
diff --git a/packages/builtin-skills/src/acceptance/SKILL.md b/packages/builtin-skills/src/acceptance/SKILL.md
index a9fd0be542a..6035f8a4014 100644
--- a/packages/builtin-skills/src/acceptance/SKILL.md
+++ b/packages/builtin-skills/src/acceptance/SKILL.md
@@ -35,7 +35,9 @@ no local report directory.
means authed; an auth error means stop and surface it).
- **You know your operation id.** It is provided as `$LOBE_OPERATION_ID` in the
environment (or named in your task prompt). Every command below keys off it.
- If it is unset, there is no plan to satisfy β€” skip this skill.
+ If it is unset, there is no plan to satisfy β€” author the checks yourself and
+ publish a **structured report round** instead:
+ [references/report.md](references/report.md).
- **For UI evidence, `agent-browser` is installed.** `npm i -g agent-browser`
then `agent-browser install` (downloads Chrome). Full reference:
[references/agent-browser.md](references/agent-browser.md).
@@ -197,5 +199,6 @@ verify/
β”œβ”€β”€ agent-browser.md # full agent-browser CLI reference (any Chromium app)
β”œβ”€β”€ computer-use.md # macOS Computer Use toolkit (osascript + screencapture)
β”œβ”€β”€ recording.md # GIF / MP4 recording for time-based evidence
+ β”œβ”€β”€ report.md # structured report rounds: result.json schema + `lh acceptance run ingest`
└── auth.md # portable auth: session/state/vault/cookie injection + boundaries
```
diff --git a/packages/builtin-skills/src/acceptance/index.ts b/packages/builtin-skills/src/acceptance/index.ts
index 13befacbe38..b1a049c4f9c 100644
--- a/packages/builtin-skills/src/acceptance/index.ts
+++ b/packages/builtin-skills/src/acceptance/index.ts
@@ -7,6 +7,7 @@ import computerUse from './references/computer-use.md';
import evidence from './references/evidence.md';
import planFormat from './references/plan-format.md';
import recording from './references/recording.md';
+import report from './references/report.md';
import content from './SKILL.md';
import cli from './surfaces/cli.md';
import electron from './surfaces/electron.md';
@@ -45,6 +46,7 @@ export const AcceptanceSkill: BuiltinSkill = {
'references/evidence.md': evidence,
'references/plan-format.md': planFormat,
'references/recording.md': recording,
+ 'references/report.md': report,
'surfaces/cli.md': cli,
'surfaces/electron.md': electron,
'surfaces/native.md': native,
diff --git a/packages/builtin-skills/src/acceptance/references/report.md b/packages/builtin-skills/src/acceptance/references/report.md
new file mode 100644
index 00000000000..87b3fa54fb1
--- /dev/null
+++ b/packages/builtin-skills/src/acceptance/references/report.md
@@ -0,0 +1,143 @@
+# Structured Report Rounds (`lh acceptance run ingest`)
+
+Per-criterion `result submit` (SKILL.md Step 3) assumes a verify plan already
+exists. When it doesn't β€” a standalone delivery, a task run without
+`$LOBE_OPERATION_ID`, or any run where **you** author the checks β€” publish a
+**structured report round** instead: a self-contained directory that
+`lh acceptance run ingest` uploads as one immutable verification round. The
+verify page renders itself from `result.json`: provenance, the overall
+conclusion, and the check list from `plan[]` paired with `cases[]`, each with
+its evidence inline β€” **images render as figures, before/after pairs render
+under tinted comparison bands**. A chat-only summary or a bare markdown report
+never gets that rendering; the structured round does.
+
+Rule of thumb: **plan exists β†’ per-criterion submit; you author the checks β†’
+structured round ingest.** Never mix both for the same delivery round.
+
+## Directory layout
+
+Any directory works β€” no repo convention required:
+
+```
+<report-dir>/
+β”œβ”€β”€ result.json # THE report β€” the page renders from this
+β”œβ”€β”€ report.md # narrative tail only (verdict notes, follow-ups, score)
+└── assets/ # evidence files referenced from cases[].evidence
+```
+
+## Workflow
+
+1. **Write `plan[]` BEFORE you run anything.** Each item is
+ `{ id, title, category, verifier, method, expected, requiredEvidence }`.
+ A planned item that never produces a case renders as **ζœͺζ‰§θ‘Œ** rather than
+ vanishing β€” cut coverage in the open.
+2. **Collect evidence into `assets/` as you test.** Screenshots/charts must be
+ **visually verified with the Read tool before being cited** β€” never cite an
+ image you haven't looked at. Numeric results worth seeing (loss curves,
+ latency distributions) should ship as a rendered chart image, not only a
+ table of digits.
+3. **Fill `cases[]` as you go** β€” one entry per tested behavior
+ (`{ id, name, category, surface, status, observation, evidence }`), reusing
+ the plan item's `id`. `status`: `pass` / `fail` / `blocked` (couldn't run β€”
+ a blocked case is not a pass).
+4. **Set `title` and `summary.verdict`** (`pass` / `fail` / `partial`) β€” without
+ them the run lists as "ζœͺ命名ιͺŒθ―" with a permanent amber "?" glyph. Write the
+ one-paragraph verdict into `summary.conclusion`.
+5. **`report.md` is the narrative tail only** β€” this-round notes, follow-ups,
+ score. Do NOT repeat the scope block or a case table; those double up on the
+ page. Write it in the language the user is conversing in.
+6. **Publish:**
+
+ ```bash
+ lh acceptance run ingest <report-dir> --subject topic:tpc_xxx --source agent-testing --json
+ ```
+
+ Inside a LobeHub topic `--subject` may be omitted (defaults to the current
+ topic); outside one it is mandatory (`task:` | `topic:` | `document:`). The
+ command creates a new immutable round, uploads cases + evidence + report
+ body, and prints `/verify/<verifyRunId>` and `/acceptance/<acceptanceId>` β€”
+ include the full URLs in your final reply. Never update a prior round after
+ a fix; publish the re-verification as the next round.
+
+## result.json schema
+
+```json
+{
+ "title": "Verify task tree API",
+ "createdAt": "2026-06-11T15:30:00+08:00",
+ "surfaces": ["cli"],
+ "entry": "<cli> task list --tree",
+ "plan": [
+ {
+ "id": "1",
+ "title": "task tree returns nested children",
+ "category": "Task hierarchy",
+ "verifier": "program",
+ "method": "<cli> task list --tree against a 3-level fixture",
+ "expected": "root shows 3 nested children at depth 2",
+ "requiredEvidence": ["text"]
+ }
+ ],
+ "cases": [
+ {
+ "id": "1",
+ "category": "Task hierarchy",
+ "name": "task tree returns nested children",
+ "surface": "cli",
+ "status": "pass",
+ "observation": "root returned 3 nested children, depth 2",
+ "evidence": ["assets/task-tree.txt"]
+ }
+ ],
+ "summary": {
+ "total": 1, "passed": 1, "failed": 0, "blocked": 0,
+ "verdict": "pass",
+ "conclusion": "One-paragraph verdict the page shows under the title."
+ }
+}
+```
+
+Optional fields: `branch` / `commit` / `pullRequest` (provenance line; when
+`branch` is set without `pullRequest`, ingest asks `gh` for the PR),
+`summary.score` (0–100, only when the verdict has a subjective component),
+`subject` (usually passed via `--subject` instead).
+
+### Closed vocabularies β€” the pipeline acts on these, they are not labels
+
+| field | values | what it does |
+| --- | --- | --- |
+| `verifier` | `program` \| `agent` \| `llm` (default `agent`) | How the verdict is reached. A command-asserted check is `program`; calling it `agent` hides what actually judged it. |
+| `requiredEvidence` | `screenshot` \| `gif` \| `video` \| `text` \| `dom_snapshot` \| `transcript` | The artifact this check **must** produce. The coverage gate **fails** an item whose required medium is missing. |
+| `surfaces` / per-case `surface` | `web` \| `desktop` \| `cli` \| `mobile` \| `bot` (`electron` β†’ `desktop`) | The product surface a check ran **on**. A test kind (`unit`, `backend`) or runtime mode is not a surface. |
+
+`category` names the user-facing requirement area (e.g. `Task hierarchy`,
+`Rate-limit recovery`) β€” never a technical surface. `method` / `expected` stay
+free prose; they render under the check next to the outcome.
+
+### Before/after comparison pairs
+
+The page renders a complete pair under tinted bands (red `before`, green
+`after`). Both halves need the same string `id`; set `layout`
+(`horizontal` default; `vertical` for wide, short strips) and a `label` stating
+the measured delta on each side:
+
+```json
+"evidence": [
+ { "path": "assets/before.png",
+ "comparison": { "id": "topic-row", "role": "before", "layout": "vertical", "label": "before: 11px" } },
+ { "path": "assets/after.png",
+ "comparison": { "id": "topic-row", "role": "after", "layout": "vertical", "label": "after: 12px" } }
+]
+```
+
+A comparison pair means the same view in two states β€” sequential steps of a
+flow are ordinary ordered evidence with captions, not a pair.
+
+## Rules
+
+- **No evidence, no claim** β€” every `pass`/`fail` in `cases[]` links at least
+ one asset.
+- **Report failures faithfully** β€” a failing case with clear evidence is a good
+ report; a vague green one is not.
+- If coverage was cut, say so in `report.md` β€” silent truncation reads as
+ "covered everything".