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(acceptance): update acceptance skill to v0.10.0 (#21875)

AmAzing-dc8704dc0d83
diff --git a/.agents/skills/acceptance/SKILL.md b/.agents/skills/acceptance/SKILL.md
index cc7703b41a0..d073983e8b2 100644
--- a/.agents/skills/acceptance/SKILL.md
+++ b/.agents/skills/acceptance/SKILL.md
@@ -2,18 +2,14 @@
name: acceptance
license: Apache-2.0
metadata:
- version: "0.8.1"
+ version: "0.10.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
- one was handed to this run; otherwise author checks and publish a standalone
- acceptance. Pick the proving surface (CLI / web / desktop / iOS Simulator),
- drive the real product, capture visually confirmed evidence, and publish a
- round with the lh CLI. Triggers on 'verify the task', 'collect evidence',
- 'prove it works', 'upload evidence', 'verify plan', 'requiredEvidence',
- 'local test', 'manual test', 'test report', 'test with cli', 'test in
- electron', 'test desktop', or any local end-to-end verification task. Needs no
- ambient ids, and never depends on running inside a LobeHub conversation.
+ Verify delivery outcomes on the real product, capture inspected evidence,
+ and deliver an acceptance report with the lh CLI: published to LobeHub when
+ signed in, or rendered as a local offline report when not. Use for product
+ acceptance, manual verification, evidence collection, or publishing an
+ existing report, with or without a supplied plan. Reuse valid evidence; run
+ new verification through bounded, lower-cost agent contexts when available.
---
# Acceptance (Builder Self-Evidence)
@@ -24,21 +20,23 @@ declares `requiredEvidence` **cannot pass on your text alone**: a missing artifa
marks it `uncertain` and holds the delivery.
```
-author (or discover) the plan β†’ pick the surface β†’ capture evidence β†’ publish the round β†’ self-check coverage
+author (or discover) the plan β†’ pick the surface β†’ capture evidence β†’ publish or render the round β†’ self-check coverage
```
## Decide whether to execute before starting a round
Creating or updating a PR, marking it ready, or being asked to upload a report
must not by itself start another verification run. First inspect the requested
-scope and the task's existing reports, evidence, and published acceptance links
-(from the conversation, PR, or local `.acceptances/` directory).
+scope and the task's existing reports, evidence, published acceptance links and
+local `report.html` pages (from the conversation, PR, or local `.acceptances/`
+directory).
| Delivery state | Action |
| ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Documentation/instruction-only change, or pure refactor/tooling change with no product behavior change | Skip product acceptance and briefly state why. Keep any applicable quality checks. |
| Gitlink-only sync | Do not launch a fresh acceptance. Link the upstream change and its existing acceptance when available; disclose missing upstream evidence without claiming it passed. Cloud changes accompanying the sync are assessed separately. |
| Completed acceptance already published and still covers the delivery | Reuse its URL and coverage. Do not create a round or rerun cases just for the PR. |
+| Completed acceptance rendered locally (`report.html`) and still covers the delivery | Reuse its report and coverage. When the user now wants others to review it, publish the existing rounds with `lh acceptance publish <acceptanceDir>` β€” [Local reports](#local-reports-when-not-signed-in); never re-run cases to share them. |
| Completed acceptance report and evidence exist locally and still cover the delivery | Inspect coverage and artifacts, then upload that report using [report.md](references/report.md). Preserve the original execution provenance; no product rerun, new plan, or repeated completed checker review is needed merely for upload. |
| The delivery was already exercised on the real product earlier in this session (observations and raw artifacts exist, no report yet) | Do not rerun, re-plan, or open a checker stage. Write `plan[]` and `cases[]` from the observations already made, attach the original artifacts (logs, command output, captures) with their original provenance, disclose any required medium that was never captured instead of recapturing it, and ingest. |
| Product behavior lacks valid evidence, or relevant behavior changed after verification | Execute only the missing or affected outcomes, retain unaffected evidence with its original provenance, and publish according to the round rules below. |
@@ -57,39 +55,42 @@ and evidence and complete the necessary publication/coverage steps; do not boot
services or replay completed cases. Uploading does not change when or against
which implementation the evidence was captured.
-## Independent acceptance review (first round only)
-
-The primary checks the environment, writes the plan, executes cases, inspects
-evidence, repairs failures, and publishes. Use one `acceptance-checker` agent at two points
-in the first acceptance round: give at most two feedback responses on the plan and cases
-before execution, then perform exactly one quick report/evidence check against
-the agreed criteria before publishing. A second plan check is optional, only
-to check the primary's revisions; there is no third plan-feedback response.
-Count the two stages separately. After
-either stage's limit, the primary owns remaining corrections and verification.
-The acceptance-checker **is** the plan gate β€” never ask the user to approve a
-plan; ask the user only for a user-owned prerequisite or a product decision
-that changes the plan. In both stages, the primary supplies an explicit file
-list and the relevant diff text or prepared diff artifact paths. The acceptance-checker
-limits code reading to these materials; it must not run `git diff` or discover
-its own scope. This does not restrict inspection of the plan, report, or evidence.
-During evidence review, use it only to identify the updates and the agreed
-cases whose evidence needs checking; the core task is checking the report
-against the plan and artifacts. Do not reopen requirements, expand into code
-review, or investigate implementation details. Return contradictions to the
-primary for explanation or repair. Follow-up rounds have no acceptance-checker: the primary
-re-runs, inspects, and publishes itself. Do not delegate execution or require
-per-case approval.
-
-Read [acceptance-checker.md](references/acceptance-checker.md) for the input/output
-contract, review boundaries, and follow-up rules. Acceptance review supplements the
-primary's own checks and any configured verifier; it does not replace either.
-If delegation or required media inspection is unavailable, disclose the missing
-review and unverified claims rather than claiming independent acceptance.
+## Execution ownership and independent review
+
+For new execution, use one fresh-context `acceptance-runner` for environment
+preflight, planning, product interaction, capture, report assembly, publication,
+and cleanup. Explicitly select a lighter model with the required tools; do not
+inherit the builder's full conversation or default high-cost model. The primary
+keeps scope, product decisions, code repairs, and delivery accountability, and
+coordinates through brief reports. Reuse the runner for follow-ups.
+
+Read [delegation.md](references/delegation.md) once to assign source ownership,
+model capability, budgets, and handoffs. Each unchanged source section, runtime
+probe, and evidence inspection has one owner: pass its acquired facts and
+provenance, rather than fetching it again in another agent. Workers load only
+their role instructions and needed references, not this entire entrypoint.
+
+Use one `acceptance-checker` in the first round: at most two plan-feedback
+responses before execution, then exactly one final report/evidence review.
+It is the default owner of verdict-bearing media inspection; the runner captures
+and indexes that media without pre-reviewing it. Read
+[acceptance-checker.md](references/acceptance-checker.md) only in that owner.
+The checker is the plan gate; never ask the user for routine plan approval.
+The primary resolves findings and tells the runner when execution or publication
+may proceed. There is no per-case approval loop or repeated full review after fixes.
+
+Follow-up rounds have no independent checker gate. Assign new artifact inspection
+to one capable owner and re-run only affected cases. If delegation is unavailable,
+use one bounded execution context and disclose missing independent review.
+If model selection is unavailable, record the actual or inherited model rather
+than claiming lower cost. Retain all evidence requirements in either fallback.
## Read the project layer first
-Before touching an environment, check for `.agents/acceptance/`:
+Before touching an environment, its execution owner checks for
+`.agents/acceptance/`. Reuse sections and facts already acquired for the same
+revision; other agents receive the relevant rules and provenance in their
+handoff instead of independently reading these files:
| File | What it owns |
| ------------------------ | ------------------------------------------------------------ |
@@ -108,12 +109,14 @@ in the adapter during the run instead of working around it. No
## Living logs β€” inject each by its own shape
-Both layers (this skill's generic copies and the project's own) are loaded once
-the target is known, silently:
+The execution owner acquires the relevant generic and project sections once
+the target is known and records their versions in the shared handoff:
-- **[common-mistakes.md](references/common-mistakes.md)** β€” read its
- **Checklist** in full, now and again before marking any case `pass`. Pull an
- entry by id only when a checklist line applies to a case.
+- **[common-mistakes.md](references/common-mistakes.md)** β€” acquire its
+ **Checklist** once. Assign applicable lines to the execution or inspection
+ owner, and apply those retained rules before `pass`; do not re-read the file
+ for each case. Pull an entry by id only when its detail is needed and not
+ already acquired.
- **[probe-mock-patterns.md](references/probe-mock-patterns.md)** β€” read the
heading index, then pull only the entries this round needs. Pick by meaning,
not keyword; `rg` over the body is the fallback.
@@ -125,6 +128,21 @@ sed -n '<start>,<end>p' <file> # one entry, in full
Record new project-specific learnings in the project layer only.
+## CLI discovery
+
+Use the installed `lh` as the command reference. The assigned execution or
+publishing owner consults the relevant subcommand's `--help` only when syntax
+or capability is unknown, and records the learned usage by CLI version. Reuse
+that result across stages and agents; do not walk the whole help tree, repeat
+discovery for every case, or invoke a write command to probe support.
+
+Prefer CLI-provided schemas, examples and non-publishing validation. Read a
+linked payload schema or legacy recipe only when the installed CLI lacks that
+capability. Help teaches syntax; the rules below retain subject/operation
+identity, immutable rounds, evidence coverage, language and safe recovery.
+Inspect structured errors and ingest warnings; successful JSON parsing or a
+zero exit code alone does not establish publication or complete coverage.
+
## Two paths β€” no id is required
Every evidence command targets a round. **The authored path is the default**; you
@@ -134,13 +152,13 @@ an operation is simply recorded as `standalone`.
| You have | Path |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| No plan β€” you author the checks | Write `result.json` + `assets/`, publish with `lh acceptance run ingest` β€” [report.md](references/report.md) |
+| No plan β€” you author the checks | Write `result.json` + `assets/`, publish with `lh acceptance run ingest`, or render locally with `lh acceptance run render` β€” [report.md](references/report.md) |
| An operation id you were given | Read the frozen plan, write the same round directory keyed by its check item ids, publish with `ingest --operation` β€” [plan-format.md](references/plan-format.md) |
The paths differ only in where the checks come from and which round the ingest
lands in. Capture is identical: the surface guides, recordings with
-[chapters](references/video-chapters.md), before/after pairs, screenshots you
-looked at, `proposal.md`. A handed-down plan never licenses a lighter capture.
+[chapters](references/video-chapters.md), before/after pairs, screenshots inspected
+by their designated owner, `proposal.md`. A handed-down plan never licenses a lighter capture.
Pass `--subject` (`task:<id>` / `topic:<id>` / `document:<id>`) only when the
caller named one; otherwise ingest attaches the round itself when it can and
@@ -148,8 +166,11 @@ creates a standalone acceptance when it cannot. On the first ingest, always supp
`--requirement "<one-sentence business goal>"` β€” the durable goal of the whole
acceptance, not this round's scope; it is immutable once recorded.
-Prerequisites: run `lh acceptance preflight --json` before writing any plan or
-report text β€” an auth error means stop and surface it β€” and install only the UI
+Prerequisites: the execution or publishing owner runs `lh acceptance preflight --json`
+once before writing any plan or report text, or reuses its recorded result while
+server, scope, credentials, and language configuration are unchanged. Its `mode`
+picks where the round goes β€” [Local reports](#local-reports-when-not-signed-in).
+On a signed-in machine an auth error means stop and surface it. Install only the UI
driver the selected surface needs; probe before adding dependencies, and never
substitute a private agent plugin. Its `language.locale` is the **report
language**: write every human-readable field (title, plan, case names,
@@ -157,124 +178,56 @@ observations, evidence descriptions, conclusion, `report.md`, `proposal.md`) in
it, even when the prompt that invoked you is in another language β€” a delegating
agent's prompt does not show which language the user reads. The publish commands
reject text in the wrong script, so run `lh acceptance run ingest <dir> --dry-run`
-as soon as the plan is in `result.json`, before executing it. When
+with the same target flags the publish will use as soon as the plan is in
+`result.json`, before executing it. Offline `validate` does not check account
+language or remote plan membership and never replaces this dry-run.
+Never publish merely to test whether a payload is accepted. When
`language.status` is `unset`, use the language the user converses in. On a CLI
without `preflight`, check auth with `lh acceptance run list --json`.
+## Local reports when not signed in
+
+`preflight` answers `mode`. **`publish`** (signed in): publish every round as this
+skill describes. **`local`** (this machine never signed in to LobeHub): the round
+is identical β€” same plan, capture, `result.json`, `proposal.md`, round directory
+and checker β€” but it is rendered instead of ingested, and nothing is uploaded:
+
+```bash
+lh acceptance run render "$REPORT_DIR" --requirement "<one-sentence business goal>" --json
+```
+
+The render writes `report.html` beside the acceptance's rounds: the acceptance
+page, offline, from every round of that directory, with the same check screening,
+evidence coverage and round history as ingest. The language is `unset`, so write
+in the language the user converses in, and use offline `lh acceptance run validate`
+where the published path runs `ingest --dry-run`. A render that reports
+`publicationStatus: partial` has the same meaning as a partial ingest.
+
+Pick the mode by these, in order:
+
+- The user's explicit wish wins: "keep it local" renders even when signed in.
+- **Collaboration needs LobeHub.** When the user wants others to comment, review or
+ open a link, they sign in (`lh login`, done by the user) and the existing rounds
+ are published with `lh acceptance publish <acceptanceDir> --json`: unpublished
+ rounds in order, then the reviewer's standing local decisions. It returns the
+ `acceptanceUrl`; later rounds publish with `ingest --acceptance <acceptanceId>`,
+ where `acceptanceId` is in the directory's `acceptance.json` (`remote`).
+- A supplied operation id, flows and regroup are LobeHub features; they publish.
+- Otherwise follow `mode`.
+
+The reader reviews in the page itself: accept, reject with a comment, circle a
+region on a screenshot, leave group feedback. **Save reviews** downloads those
+decisions; `lh acceptance feedback <acceptanceDir> --json` and
+`lh acceptance view <acceptanceDir> --json` pick the newest saved download up,
+file it as `reviews.json`, and answer in the same shape as for a published
+acceptance (`--reviews <file>` names the download explicitly). Comments,
+mentions, approvals and shared links do not exist locally.
+
## Optional user-journey flows
-Before authoring checks, identify the independently reviewable user tasks in the
-requirement. Use those tasks as business groups, not the PR title or test surface.
-For example, reassignment, scheduled continuation, and failure recovery can be
-separate groups when the delivery covers all three; do not impose these groups
-on unrelated work. Each check should have an outcome the user can accept or
-reject independently. Keep shared entry/accessibility checks separate and avoid
-repeating their expectations across business checks.
-
-When acceptance depends on a sequence of user states, publish its graph during
-planning, before implementation or verification begins. Keep the checklist paths
-above for independent checks;
-a graph is optional and does not replace evidence or human review.
-
-For flow-based plans, **each flow's title is its checks' default checklist category**.
-Publish independent user journeys as separate flows in the same acceptance/run;
-use subflows for actual composed journeys. An umbrella flow containing checks
-for several independent tasks collapses them into one checklist group. Edges
-must describe real user transitions, not artificial links added to make unrelated
-checks reachable. Start at the user entry and follow the journey through outcomes
-and recovery; UUIDs identify nodes and must not encode business order. Read back
-the published plan and inspect its groups and reading order before execution.
-
-For an existing acceptance that only needs different checklist groups, use
-`lh acceptance regroup <acceptanceId> --file groups.json`. Read the acceptance
-bundle first; write `{ expectedVersion, groups: [{ title, checkItemIds }] }`,
-using the exact union `checks[].id` values and
-`acceptance.metadata.checkGrouping.version` (0 when absent). The groups replace
-the current presentation grouping; an empty list restores plan categories.
-Unassigned checks keep their plan category. This preserves check IDs, numbering,
-evidence and review history without creating a round. It does not change flow
-transitions or verification conditions. Do not move execution nodes or start a
-new round just to reorganize the checklist; those operations have different
-execution semantics.
-
-1. Use the named acceptance, or create one before publishing the flow. If none
- was named, first run `lh acceptance create --help` and confirm it shows
- `Usage: lh acceptance create [options]` and `--requirement`. Parent-command
- help or a zero exit code alone does not prove support. If unavailable, upgrade
- `@lobehub/cli` to a release that supports this command and check again;
- updating the skill alone does not upgrade the CLI. If still unavailable,
- report flow-first creation as blocked. Do not invent a subject ID, upload an
- empty report, or substitute `lh acceptance run create` (which creates a round).
-
- ```bash
- lh acceptance create --title "Checkout recovery" \
- --requirement "Customers can recover from a declined payment and complete checkout" --json
- ```
-
- `--requirement` is a required, nonblank durable business goal; `--title` is
- optional. Omit `--subject` for a fresh standalone subject, even when an ambient
- topic exists. Pass `--subject task:<id>`, `topic:<id>`, `document:<id>`, or
- `standalone:<id>` only for an explicitly supplied subject. Reusing a subject
- preserves its recorded requirement, title, and state; it does not reopen it.
- Creation does not create a verification round, report, results, or passing verdict.
-
- The JSON contains `acceptanceId`, `acceptanceUrl`, `requirement`, `status`,
- and `subject: { subjectType, subjectId }`. Use `acceptanceId` in all flow
- commands below, **not** `subject.subjectId` or a verification run ID. Share
- `acceptanceUrl` verbatim; it already uses the CLI's configured server.
-
- Write a JSON file with `definition: { title, entryNodeId, nodes, edges }`.
- Give nodes and edges stable UUIDs. Each node has `id` and exactly one of
- `criterionId` (existing check asset), `check: { id, title, definition }`
- (a check asset with steps, fixtures, preconditions and expected outcome), or
- `subFlowId` (another flow in this acceptance). Edges have `id`, `sourceNodeId`,
- `targetNodeId`, `trigger`, `required`, and optional `condition`. Every node must
- be reachable from the entry. Publish child flows before referencing them.
-2. `lh acceptance flow publish <acceptanceId> --file flow.json` saves the
- definition and returns `flowId`. To edit it, include that `flowId` and the
- current `expectedHash` in the file. `lh acceptance flow view <acceptanceId>`
- reads definitions, snapshots and results. Publishing does not execute checks.
- Revise a graph in place rather than publishing a second one; a superseded
- graph left behind still renders as its own journey with its own unexecuted
- checks. `lh acceptance flow delete <acceptanceId> --flow <flowId>` removes
- one that never should have existed, and only while it has no verified
- history: it is refused once a settled round has run it, or while another
- flow invokes it as a subflow.
-3. `lh acceptance flow plan <acceptanceId> --flow <flowId>` creates a draft round
- with the graph and its plan. While the round is only planned it follows the
- live graph: publishing an edit refreshes its snapshot and plan in place, and
- running `flow plan` again refreshes the same draft instead of opening another
- round. Add `--run <verifyRunId>` to attach another flow to the same draft. Read `lh acceptance run get <verifyRunId> --json` for
- the actual plan IDs: each branch and subflow invocation has its own
- `checkItemId`; never substitute the reusable asset ID.
-4. Share the acceptance link so the user can inspect the proposed nodes, branches
- and expected outcomes before implementation. Read and address any actionable
- feedback. Preparing a plan neither executes checks nor approves delivery;
- there is no separate flow-confirmation action. Continue within the user's
- authorized scope, or pause if the user explicitly asked to review before work.
- For requested changes, publish the revised definition with its `flowId` and
- `expectedHash`; the draft round follows automatically. Never open another
- round or another flow just to revise a plan that has not executed.
-5. Implement the work and exercise the real product, then use
- `lh acceptance flow record <acceptanceId> --file result.json`, containing
- `verifyRunId`, `checkItemId`, `verdict` (`passed`, `failed`, `uncertain`, or
- `blocked`) and `observation`. Record only what was observed. Use the returned
- result ID to attach required artifacts through `lh acceptance run evidence`
- (inspect its `--help`), following the same evidence rules as checklist checks.
-6. After all required checks are recorded and passed, run
- `lh acceptance flow complete <acceptanceId> --run <verifyRunId>`. Completion
- settles verification; it does not accept the delivery on the user's behalf.
- Read back the round and verify evidence coverage before handing it over.
-
-To rerun the exact old graph, prepare a plan with `--from-run <sourceVerifyRunId>` and
-omit `--run` for a fresh round. This preserves the old definition and starts
-without results. Each replay starts as an unexecuted draft. A round is frozen
-by its first recorded result; only then does it keep its number. An
-`lh acceptance run ingest` that reaches an acceptance whose latest round is
-still a draft folds into that draft rather than opening a new round. Accepted or closed
-acceptances must be explicitly reopened
-before starting. Edges describe business transitions; they do not automatically
-schedule execution. Continue to read `lh acceptance feedback <acceptanceId> --actionable` before repairs and publish new rounds into the same acceptance.
+For a requirement with state transitions or independently reviewable journeys,
+read [flows.md](references/flows.md) only when authoring or updating that graph.
+Ordinary checklist rounds do not load it.
## HARD RULE β€” programmatic gates are NEVER acceptance checks
@@ -299,12 +252,13 @@ changing the code** β€” publish the re-verification as the next round and let th
acceptance page show the progression.
Before a repair round, read the aggregate with
-`lh acceptance view <acceptanceId | type:id> --json`. Omit checks whose latest
+`lh acceptance view <acceptanceId | type:id | acceptanceDir> --json`. Omit checks whose latest
`userReview.action` is `accept`; address non-stale rejects under their exact
stable ids; when a check semantically replaces another, declare
`supersedes: ['old-id']` and repeat the full lineage in every later round that
reuses the successor id. Pass `--acceptance <acceptanceId>` so the round joins
-the same history.
+the same history; a local round joins it by being written in the same
+acceptance directory.
## Rules you will be tempted to skip
@@ -412,65 +366,23 @@ Before declaring the task done, prove coverage: for each check with
explicitly; a missing type holds the delivery at `uncertain` no matter how good
the work is.
-**Storage limits require a user-facing recovery handoff.** For report ingest,
-atomic evidence upload, or result submission with a file, recognize
-`recovery.reason: "storage_quota"`, `failedEvidence[].reason: "storage_quota"`,
-or a `storage_block:` error. Do not stop at "upload failed" or "noted in the PR":
-
-- In the final response, state that storage limits blocked publication, distinguish
- locally observed results from uploaded evidence, and report the actual coverage.
- Include the saved acceptance/round links when available; do not invent them for
- an atomic submission that failed before saving a result.
-- Give **both recovery options**, in the user's language, using available
- `recovery.cleanupUrl` and `recovery.upgradeUrl` verbatim and following
- `recovery.message`, applying the Cloud browser-link rule above. Never delete
- user data automatically. Deletion is permanent.
- - Personal scope: **clean up unneeded acceptances** or **upgrade the personal
- plan**. Acceptance cleanup requires selecting "permanently delete all rounds,
- reports, and evidence files"; deleting only a record or evidence association
- does not free storage.
- - Workspace scope (`recovery.scope: "workspace"`): **clean up that workspace's
- files** or **upgrade that workspace's plan**. The cleanup link opens its
- resource library, not an acceptance list; do not invent an acceptance-purge
- checkbox there. Ask its owner/admin for cleanup or billing access. Personal
- cleanup or a personal upgrade does not resolve a workspace limit.
- - If the CLI reports unresolved workspace scope and omits recovery URLs, report
- that limitation and its scope-check instructions. Do not invent links or
- substitute personal pages.
-- For an older CLI without recovery metadata, resolve server and scope using
- `lh doctor --offline --json` and `lh workspace current --json`. Personal scope
- uses `/acceptance` and `/settings/plans`. For workspace scope, resolve its slug
- with `lh workspace view --json`, verify the returned ID matches the active
- workspace, and use `/:workspaceSlug/resource` and
- `/:workspaceSlug/settings/plans`; there is no `/:workspaceSlug/acceptance`
- route. If lookup fails, give scope-specific guidance without guessed links.
- Strip URL username/password when constructing display links. For LobeHub Cloud,
- personal cleanup uses `https://lobehub.com/acceptance`; personal plan upgrades use
- `https://lobehub.com/settings/plans`. Workspace resource and plan paths use
- `https://lobehub.com`. Keep self-hosted users on their configured server.
-- Preserve local reports, artifacts, and the returned retry instructions. Stop
- blind retries until the user has addressed storage. For a partially ingested
- report, retry only failed artifacts using `failedEvidence[].retryArgs` or
- `retryCommand`, not the whole ingest. For an atomic upload/submission that saved
- nothing, retry that command. Supplementing evidence does not change recorded
- verdicts; read back coverage and do not claim the delivery is complete while
- required evidence is missing.
-
-**Record the deployed preview.** When the delivery is deployed somewhere a
-reviewer can open (a pull-request preview, a staging URL, a dev server on this
-machine), run `lh acceptance preview <acceptanceId> <url>` after the round is
-published. The URL must be https, or http on `localhost`/`127.0.0.1`. The
-acceptance page then offers "Review on preview", where reviewers comment on the
-live page; `lh acceptance feedback` lists those comments with the page URL and
-the `file:line` they were pinned to. Skip this when nothing is deployed β€” never
-invent a URL.
+If publication returns a storage-quota failure, the publishing owner reads
+[publication-recovery.md](references/publication-recovery.md) once. Preserve
+local evidence, disclose incomplete uploaded coverage, and give the returned
+scope-specific cleanup and upgrade options. Never delete user data or blindly
+retry the whole ingest.
The final response for a completed handoff MUST include the published acceptance
-URL together with the coverage result β€” never only a check-result id or a prose
-claim. Obtain the links from the path you actually executed:
+URL β€” or, for a local round, the report link β€” together with the coverage result,
+never only a check-result id or a prose claim. Obtain the links from the path you
+actually executed:
- **Authored round:** copy `acceptanceUrl` returned by
`lh acceptance run ingest --json` verbatim.
+- **Local round:** copy `reportUrl` returned by `lh acceptance run render --json`
+ (a `file://` link to `report.html`) verbatim, and tell the reader that
+ **Save reviews** in the page is how their decisions reach you. It is the one
+ local path the reply carries.
- **Operation-plan round:** copy `acceptanceUrl` returned by
`lh acceptance run ingest --operation <id> --json`. When the plan needed no
ingest, or the CLI predates plan-round ingest, follow the read-only
@@ -483,8 +395,8 @@ the only reconstruction needed for CLIs whose submission output contains only an
internal run URL. If the run has no acceptance association or the lookup fails,
report the handoff as blocked and preserve the submitted evidence; do not declare
delivery complete or fabricate a link.
-Put no images, local paths, local file links, or internal run-page paths in the
-chat reply.
+Put no images, other local paths or file links, or internal run-page paths in
+the chat reply.
Write the link as a plain-text line, never inside a fenced or inline code block β€” the
chat client only linkifies plain text, and a code block makes it unclickable.
@@ -495,6 +407,9 @@ below with the URL from the selected path:
Acceptance: <acceptanceUrl, verbatim>
Coverage: 2/2 criteria, all required evidence uploaded
+For a local round, the first line is `Report: <reportUrl, verbatim>` and coverage
+says "rendered" instead of "uploaded".
+
## Portability rules
- **Engine-level capture over OS capture.** `agent-browser screenshot` / `dom` /
@@ -513,16 +428,21 @@ simctl io` over host-window capture. Rounds land under `.acceptances/`;
## Reference map
-For both acceptance-checker handoffs and review output, read
-[acceptance-checker.md](references/acceptance-checker.md).
+Only the assigned owner reads the relevant reference or section, once per version;
+other roles use its acquired facts and instructions. The runner does not load
+the checker contract, and the primary does not re-open their documents or evidence.
| Need | Reference |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Execution delegation, models, context ownership | [delegation.md](references/delegation.md) |
+| First-round plan and evidence review | [acceptance-checker.md](references/acceptance-checker.md) |
+| Optional flow authoring or regrouping | [flows.md](references/flows.md) |
+| Storage-quota publication recovery | [publication-recovery.md](references/publication-recovery.md) |
| Bounding a run's memory use | [resource-guard.md](references/resource-guard.md) |
| The project layer, bootstrapping an adapter | [project-adapter.md](references/project-adapter.md) |
-| Mistakes checklist (read every round) | [common-mistakes.md](references/common-mistakes.md) |
+| Mistakes checklist (acquire once per version) | [common-mistakes.md](references/common-mistakes.md) |
| Forcing state, error injection, runtime probes | [probe-mock-patterns.md](references/probe-mock-patterns.md) |
-| Authored rounds, `result.json`, ingest | [report.md](references/report.md) |
+| Authored rounds, `result.json`, ingest, render | [report.md](references/report.md) |
| Plan-driven rounds: plan, ingest, coverage | [plan-format.md](references/plan-format.md) |
| Evidence media, provenance, submission, safety | [evidence.md](references/evidence.md) |
| Interaction cost overlay | [interaction-cost.md](references/interaction-cost.md) |
diff --git a/.agents/skills/acceptance/agents/openai.yaml b/.agents/skills/acceptance/agents/openai.yaml
index 0879fff854f..bc31771756d 100644
--- a/.agents/skills/acceptance/agents/openai.yaml
+++ b/.agents/skills/acceptance/agents/openai.yaml
@@ -1,4 +1,4 @@
interface:
display_name: "Acceptance"
short_description: "Verify deliveries and collect evidence for review"
- default_prompt: "Use $acceptance to verify this delivery against its requirements, collect product evidence, and publish the results for review."
+ default_prompt: "Use $acceptance to verify this delivery against its requirements, collect product evidence, and deliver the results for review."
diff --git a/.agents/skills/acceptance/references/acceptance-checker.md b/.agents/skills/acceptance/references/acceptance-checker.md
index 51196141cc2..3ddbb0dc94c 100644
--- a/.agents/skills/acceptance/references/acceptance-checker.md
+++ b/.agents/skills/acceptance/references/acceptance-checker.md
@@ -1,12 +1,16 @@
# Acceptance checker handoff
The `acceptance-checker` checks plans and evidence in the **first acceptance
-round only**. The primary owns preparation, execution, evidence inspection,
-repairs, cleanup, and publication. Reuse one checker across both stages when
-supported; otherwise give its replacement the same handoff and prior findings.
+round only**. The primary coordinates decisions and code repairs; the runner
+owns environment, execution, capture, reports, authorized publication and cleanup.
+The checker is the default owner of original verdict-bearing media inspection,
+so primary and runner use its inspection records instead of opening the same
+artifacts first or again. Reuse one checker across both stages when supported;
+a replacement receives acquired facts, completed inspections and remaining work.
Never assume a role name or model parameter exists: use the current host's
supported agent controls. Prefer the cheapest model capable of inspecting every
-planned artifact, and record the actual selection when known; an inherited
+planned artifact, explicitly select it in a fresh context, and record the actual
+selection when known; an inherited
model does not imply lower cost.
The checker replaces routine user plan approval. Ask the user only for a
@@ -16,11 +20,15 @@ product decision that materially changes the plan.
## Shared contract
-Send one compact handoff per response with the stage, inputs, and requested
-output below. For code context, the primary supplies an explicit file list,
+Send one compact handoff per response with the stage, acquired source facts,
+inspection ownership, inputs, and requested output below. Load this contract
+once; the runner and primary do not load it separately. For code context, the primary supplies an explicit file list,
relevant diff text or prepared diff artifact paths, and base/tested revisions.
The checker must not run `git diff`, search the repository, or expand that
-list; return missing context to the primary.
+list; return missing context to its acquisition owner through the primary.
+Do not repeat source retrieval, repository discovery, environment/auth probes,
+or completed artifact inspection. Later handoffs contain only new plan/diff
+sections, artifacts, facts and changed case IDs; keep earlier inputs in this context.
Reference existing plan/report files; do not create a second JSON schema or
duplicate case tables. Keep review notes in the ignored acceptance directory
@@ -57,7 +65,8 @@ Primary input:
preconditions, operations, observable expectations, and evidence requirements.
Put additional explanation in existing method/text fields or handoff notes.
-Checker procedure: read the original sources, list their required outcomes,
+Checker procedure: use the supplied original requirement excerpts and acquired
+source facts, list their required outcomes,
and compare them with the draft cases and supplied diff. State coverage limits
when sources are incomplete. Look for missing boundaries, ambiguous
criteria, and probes that cannot distinguish success from failure. Check how
@@ -115,7 +124,9 @@ Primary input:
that the intervening transition was correct.
Checker procedure: inspect each case's original evidence against
-its expectation and the primary's observations and verdict. Open images;
+its expectation and the runner's observations and proposed verdict. Open each
+uninspected original artifact once and record which cases/claims it supports;
+reuse valid inspection records for unchanged artifacts and claims. Open images;
file existence and captions are not visual verification. For flicker or transitions,
inspect the relevant sequence, extracting frames into the ignored review
directory if necessary. Do not claim to have watched a video when only stills
@@ -123,7 +134,8 @@ were inspected. State sampling limits; sparse
frames cannot establish the absence of a one-frame defect. Check that every
plan item has a result and every declared evidence type is present.
-Checker output:
+Checker output (saved in the existing review directory, with a brief summary
+and the review path returned to the primary):
- For every case: what the evidence shows, inspected paths/intervals, whether it
meets the expectation, and whether the primary's proposed result is supported.
@@ -138,16 +150,22 @@ These are review notes, not new report status values. The primary maps unresolve
findings to the existing schema without treating missing evidence as a pass.
A checker label alone is not proof; the primary must resolve supported objections
with evidence or disclose them, never silently override them.
-The primary resolves findings and verifies any corrections without another
-checker response. Disclose artifacts or verdicts changed after the check as
-primary-only in the narrative tail.
+The primary resolves findings without another full checker response. It assigns
+inspection of newly captured corrective evidence to one capable owner and
+records that inspection; neither it nor the runner repeats unchanged inspections.
+Disclose the post-review changes, inspection owner, and any missing independent
+review in the narrative tail. A replaced artifact is a new version, not covered
+by the old inspection.
## After the first round
-Follow-up rounds have no checker. The primary repairs, re-runs affected cases,
-inspects new artifacts, and discloses changes in the narrative tail. Preserve
+Follow-up rounds have no independent checker gate. The primary repairs code and
+coordinates the existing runner's affected cases, assigning each new artifact
+to one capable inspector. Preserve its attributable inspection record and disclose
+changes in the narrative tail. Preserve
unaffected results with their original provenance. If scope,
surface, or business goal materially changes, it obtains any user-owned decision
and revises the plan. Published rounds remain immutable; follow existing
-new-round rules. No per-case approval loop, independent execution worker, or
-third audit agent.
+new-round rules. Reuse valid environment facts, plan sections, artifacts and
+inspection records rather than reacquiring them. No per-case approval loop or
+third full audit agent; bounded execution and new-artifact inspection may remain delegated.
diff --git a/.agents/skills/acceptance/references/common-mistakes.md b/.agents/skills/acceptance/references/common-mistakes.md
index 861035e7fa6..79ab351e32b 100644
--- a/.agents/skills/acceptance/references/common-mistakes.md
+++ b/.agents/skills/acceptance/references/common-mistakes.md
@@ -10,12 +10,16 @@
A mistake catalogue works by having been read β€” you cannot search for a failure
mode you do not yet know you are about to hit. But the rule is what must be in
-context, not the narrative. So the file has two tiers, read at two moments:
+context, not the narrative. Its designated acquisition owner reads two tiers:
| Tier | Read | When |
| ------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
-| **Checklist** | in full β€” one line per mistake | once the target is known, and again before marking any case `pass` or the round done |
-| **Entries** | by id β€” `rg -n '^### M' <file>` for line numbers, `sed -n '<start>,<end>p'` for one entry | when a checklist line applies to a case, or a reviewer's feedback matches one |
+| **Checklist** | in full β€” one line per mistake | once per source version when the target is known; apply retained applicable lines before `pass` or handoff |
+| **Entries** | by id β€” `rg -n '^### M' <file>` for line numbers, `sed -n '<start>,<end>p'` for one entry | when detail is needed and not already acquired |
+
+Pass applicable lines and acquired entry details to their execution/inspection
+owner. Other roles do not reread the same file. A case boundary alone does not
+invalidate the checklist; changed source versions require only affected updates.
Only **judgment** rules live here β€” the ones no tool can check. Rules an agent
skips under pressure are in SKILL.md ("Rules you will be tempted to skip");
@@ -28,7 +32,7 @@ Apply the same shape to the project layer's file. Never narrate the reading.
## Checklist
-- **M1** Open every screenshot with Read before `pass`; greps and element counts never decide. Presence/absence of a UI section is asserted on structured state, never on page text.
+- **M1** The designated inspector opens every cited screenshot with an image-capable tool before `pass`, once per artifact version; other roles use its attributable inspection record. Greps and element counts never decide. Presence/absence of a UI section is asserted on structured state, never on page text.
- **M5** Before/after is a `comparison` pair of pre-change vs delivered code in the same state, with exactly one `before` and one `after`; never a stale shot loose in `evidence`, never a hand-composed image, never sequential flow steps, never loading vs loaded of one build.
- **M6** Prove the running instance loads your working-tree code by measuring a changed value. After a direct fixture write, cold-load and assert at the layer the behavior reads, not where you wrote.
- **M12** A UI chip/badge is supporting evidence; the payload, request body, DB row, or side effect is the proof.
@@ -51,8 +55,9 @@ count. Layout-shell text is always in the DOM and a blank page also has zero
skeletons, so both false-positive. The mirror is worse: grepping page text to
prove a feature is _absent_ matches your own report prose naming it.
-**Rule:** every screenshot cited as evidence is opened with the Read tool and
-visually confirmed first. Blank / watermark / shell-only = fail or uncertain; go
+**Rule:** the assigned inspector opens each cited screenshot with an image-capable
+tool and records its visual findings once; other roles use that attributable
+record. Blank / watermark / shell-only = fail or uncertain; go
find the cause. Presence or absence of a UI section is asserted against the state
that drives it or a located DOM node, never a substring.
diff --git a/.agents/skills/acceptance/references/delegation.md b/.agents/skills/acceptance/references/delegation.md
new file mode 100644
index 00000000000..2556956e1e1
--- /dev/null
+++ b/.agents/skills/acceptance/references/delegation.md
@@ -0,0 +1,144 @@
+# Delegation and context ownership
+
+The coordinator reads this contract once and sends each worker only its role,
+relevant constraints, and assigned inputs. Do not invoke the whole acceptance
+skill again inside every worker. Reuse valid completed evidence without starting
+an execution worker or checker merely to publish it.
+
+## Roles and models
+
+| Role | Owns | Model |
+| --- | --- | --- |
+| Primary / coordinator | User intent, scope, supplied code changes, product decisions, code repairs, execution/publication gates, final handoff | Existing builder model; routine verification leaves this context |
+| Acceptance runner | Project preflight, draft plan, fixtures, product execution, capture, report assembly, authorized publication, cleanup | Explicitly selected lighter general-purpose model with the required tools |
+| Acceptance checker | First-round plan review and verdict-bearing evidence inspection | Explicitly selected lighter model capable of the planned media |
+
+Prefer scripts for schema checks, file inventory, coverage counts, and deterministic
+capture sequences. Do not create another agent for routine formatting or every case.
+For a genuinely separate task, use the least capable model that can complete it:
+text-only bookkeeping can use a small model; visual judgment needs image tools,
+and temporal claims need the relevant sequence, not just still-image capability.
+
+Use the host's supported model and context controls. In Claude Code, explicitly
+set the Agent model, such as `sonnet` for execution/visual review or `haiku` for
+bounded text work when available. In Codex, start with `fork_turns: "none"` and
+an available lighter model, such as `gpt-6-luna`. These are examples, not assumed
+cross-host APIs. Record the actual selection; a label saying "cheap" or an
+inherited model is not a selection. If selection is unavailable, disclose it.
+Escalate a specific ambiguous finding with its minimal supporting facts instead
+of moving the whole run to the strongest model.
+
+The runner learns unknown CLI syntax from the relevant subcommand help once,
+reusing the acquired capability record by CLI version. Prefer CLI schemas,
+examples and non-publishing validation over loading command manuals. The
+primary and checker do not independently discover the same CLI commands.
+
+Reuse each role's agent ID for later stages. A replacement receives its existing
+handoff, acquired facts, inspection records, and remaining work; it does not
+repeat completed discovery or cases. If agents are unavailable, keep a bounded
+execution context and the same ownership discipline; do not claim independent review.
+
+## Acquire once, then hand off
+
+Keep one compact source index alongside the task's existing plan/review files.
+For each source or section record its identity, revision or state, acquisition
+owner, relevant facts/instructions, and artifact or report location. Use exact
+paths plus a revision/digest for files, and target/scope plus observed state for
+runtime results. This is a handoff note, not a second report schema.
+
+| Input | Acquisition or inspection owner | What other roles receive |
+| --- | --- | --- |
+| Original requirement and task-specific diff | Primary, reusing its existing implementation context | Relevant original quotes, explicit file list, prepared diff, base/tested revisions |
+| Project adapter, process, living logs, chosen surface, auth, runtime probes | Runner, unless already acquired in the task | Applicable rules and facts with source/version; no repeat setup or source reads |
+| Report/plan schema and publication instructions | Runner | Result paths, stable IDs, validation outcomes, coverage and returned links |
+| First-round plan and original verdict-bearing artifacts | Checker | Case-specific findings, inspected paths/intervals and provenance |
+| New or changed artifacts after corrections or in later rounds | One designated capable inspector | The new inspection record and affected case IDs |
+
+Send acquired content when another role needs it; a path by itself is not reuse
+if it makes every role re-open the same source. Assign any missing acquisition
+to one owner. Load only an unacquired section or newly needed reference. Do not
+repeat `git diff`, repository searches, CLI help, auth preflight, adapter reads,
+checklist reads, whole report reads, or screenshot inspection to "confirm" an
+unchanged fact. The primary consumes findings rather than reopening worker inputs.
+
+A changed revision, build, fixture, browser state, credential/scope configuration,
+or explicit freshness requirement invalidates the affected facts. Record the
+reason and acquire only that new state. Refreshing UI refs after navigation or
+HMR is new runtime information; rereading a static guide after each click is not.
+Never reuse a stale build identity or an old success after a failed operation.
+
+Give each verdict-bearing artifact one inspection owner. In a first round the
+checker opens the original final media; the runner captures/indexes it and leaves
+visual conclusions provisional. Navigation-only probes are separate from final
+evidence. If navigation needs visual interpretation, send that probe to its
+assigned inspector instead of having multiple roles open it. Reuse its recorded
+findings when that same artifact supports several cases. Inspection must still
+cover every claimed state/interval; no missing image or video review becomes a pass.
+
+Keep secrets out of handoffs and reports. Share the auth mechanism/status or
+credential handle, not credential values. Ownership does not authorize new
+production writes, unrelated cleanup, destructive operations, or scope changes.
+
+## Handoff and reporting
+
+The primary sends a compact packet containing:
+
+- Goal, relevant original requirements, scope, supplied IDs and exact checkout.
+- Explicit changed-file list, prepared diff, base/tested revisions, and what
+ existing evidence already covers. Do not send the full conversation or code history.
+- Acquired project rules, runtime/auth/language facts, source index and their
+ validity; assigned unacquired sections and selected surface references.
+- Round/plan/report locations, owned resources, write boundaries, model and
+ proportional context/tool/time budget, and the next gate to report at.
+- Applicable acceptance constraints: user-judged outcomes only; real product
+ evidence; every declared evidence type inspected and present before `pass`;
+ required comparisons/chapters; immutable published rounds; truthful provenance,
+ report language, publication recovery, and final URL/coverage handoff.
+
+Workers save full results in existing plan/report/review artifacts. Return a
+brief stage summary: completed/remaining case IDs, findings or blocker, acquired
+or invalidated facts, artifact/report paths, and the decision needed next.
+Do not paste full DOM trees, logs, schemas, diffs, case tables, or image payloads
+into the primary. Return the relevant excerpt only when a finding needs explanation.
+
+The runner returns at environment/plan readiness, completed capture/report, and
+publication/cleanup. The checker returns bounded plan feedback and its final
+evidence findings. These stage reports replace per-click and per-case approval.
+Budget thresholds trigger a compact checkpoint and an explicit continuation
+decision; they never silently drop required checks or mark uninspected evidence pass.
+
+## Runner contract
+
+Operate only in the assigned checkout and authorized environment. Acquire missing
+project sections and chosen-surface instructions once; apply the retained rules.
+Run or reuse preflight before authoring text so auth and report language are known.
+Do not change the selected backend, start duplicate services, or alter code to
+make acceptance easier. Environment experiments are bounded; report an unresolved
+prerequisite with the facts already acquired instead of starting a discovery loop.
+
+Use the supplied requirement/diff to draft or copy the plan. Wait for the primary's
+plan-gate signal before product cases; a frozen plan keeps its exact IDs. Execute
+deterministic action/capture sequences in batches, branching on actual failures.
+Store raw logs, network results and captures in the round and return compact outcomes.
+Keep the resource guard and teardown required by the project/surface. Only this
+runner mutates its browser, fixtures and owned services; checker reads artifacts.
+
+Assemble the existing report schema, with media-dependent results provisional until
+the assigned inspection arrives. Apply case-specific findings without reopening
+unaffected inputs. Code repair belongs to the primary; re-run only its affected
+cases on the supplied repaired revision. Save new captures separately and preserve
+unaffected evidence's original provenance. A missing required artifact or inspection
+holds the handoff incomplete even if the execution command succeeded.
+
+Publish only after the primary resolves findings and sends the publication gate.
+Use the assigned authored or operation-plan path; preserve supplied subject/operation
+IDs. In local mode the gate releases a render instead of an ingest. Return the actual
+CLI result, warnings, uploaded or rendered coverage, acceptance URL or report URL and
+recovery metadata. Apply quota recovery rather than blind retries. Close only this
+run's sessions/services/guard and record cleanup and any resource-blocked cases.
+Do not publish merely because the report file exists or a worker budget expired.
+
+The primary assesses these reports against the agreed criteria and known
+limitations; it may rely on explicit, attributable inspection records without
+repeating the work. An unsupported worker conclusion is a gap to resolve with
+its owner, not proof of acceptance.
diff --git a/.agents/skills/acceptance/references/flows.md b/.agents/skills/acceptance/references/flows.md
new file mode 100644
index 00000000000..8d6d4eb93ec
--- /dev/null
+++ b/.agents/skills/acceptance/references/flows.md
@@ -0,0 +1,111 @@
+# User-journey flows
+
+Before authoring checks, identify the independently reviewable user tasks in the
+requirement. Use those tasks as business groups, not the PR title or test surface.
+For example, reassignment, scheduled continuation, and failure recovery can be
+separate groups when the delivery covers all three; do not impose these groups
+on unrelated work. Each check should have an outcome the user can accept or
+reject independently. Keep shared entry/accessibility checks separate and avoid
+repeating their expectations across business checks.
+
+When acceptance depends on a sequence of user states, publish its graph during
+planning, before implementation or verification begins. Keep independent checks
+on their checklist path β€” authored checks in [report.md](report.md), or the
+frozen operation plan in [plan-format.md](plan-format.md) β€” alongside any flow.
+A graph is optional and does not replace that checklist, evidence or human review.
+
+For flow-based plans, **each flow's title is its checks' default checklist category**.
+Publish independent user journeys as separate flows in the same acceptance/run;
+use subflows for actual composed journeys. An umbrella flow containing checks
+for several independent tasks collapses them into one checklist group. Edges
+must describe real user transitions, not artificial links added to make unrelated
+checks reachable. Start at the user entry and follow the journey through outcomes
+and recovery; UUIDs identify nodes and must not encode business order. Read back
+the published plan and inspect its groups and reading order before execution.
+
+For an existing acceptance that only needs different checklist groups, use
+`lh acceptance regroup <acceptanceId> --file groups.json`. Read the acceptance
+bundle first; write `{ expectedVersion, groups: [{ title, checkItemIds }] }`,
+using the exact union `checks[].id` values and
+`acceptance.metadata.checkGrouping.version` (0 when absent). The groups replace
+the current presentation grouping; an empty list restores plan categories.
+Unassigned checks keep their plan category. This preserves check IDs, numbering,
+evidence and review history without creating a round. It does not change flow
+transitions or verification conditions. Do not move execution nodes or start a
+new round just to reorganize the checklist; those operations have different
+execution semantics.
+
+1. Use the named acceptance, or create one before publishing the flow. If none
+ was named, first run `lh acceptance create --help` and confirm it shows
+ `Usage: lh acceptance create [options]` and `--requirement`. Parent-command
+ help or a zero exit code alone does not prove support. If unavailable, upgrade
+ `@lobehub/cli` to a release that supports this command and check again;
+ updating the skill alone does not upgrade the CLI. If still unavailable,
+ report flow-first creation as blocked. Do not invent a subject ID, upload an
+ empty report, or substitute `lh acceptance run create` (which creates a round).
+
+ `--requirement` is a required, nonblank durable business goal; `--title` is
+ optional. Omit `--subject` for a fresh standalone subject, even when an ambient
+ topic exists. Pass `--subject task:<id>`, `topic:<id>`, `document:<id>`, or
+ `standalone:<id>` only for an explicitly supplied subject. Reusing a subject
+ preserves its recorded requirement, title, and state; it does not reopen it.
+ Creation does not create a verification round, report, results, or passing verdict.
+
+ The JSON contains `acceptanceId`, `acceptanceUrl`, `requirement`, `status`,
+ and `subject: { subjectType, subjectId }`. Use `acceptanceId` in all flow
+ commands below, **not** `subject.subjectId` or a verification run ID. Share
+ `acceptanceUrl` verbatim; it already uses the CLI's configured server.
+
+ Write a JSON file with `definition: { title, entryNodeId, nodes, edges }`.
+ Give nodes and edges stable UUIDs. Each node has `id` and exactly one of
+ `criterionId` (existing check asset), `check: { id, title, definition }`
+ (a check asset with steps, fixtures, preconditions and expected outcome), or
+ `subFlowId` (another flow in this acceptance). Edges have `id`, `sourceNodeId`,
+ `targetNodeId`, `trigger`, `required`, and optional `condition`. Every node must
+ be reachable from the entry. Publish child flows before referencing them.
+2. `lh acceptance flow publish <acceptanceId> --file flow.json` saves the
+ definition and returns `flowId`. To edit it, include that `flowId` and the
+ current `expectedHash` in the file. `lh acceptance flow view <acceptanceId>`
+ reads definitions, snapshots and results. Publishing does not execute checks.
+ Revise a graph in place rather than publishing a second one; a superseded
+ graph left behind still renders as its own journey with its own unexecuted
+ checks. `lh acceptance flow delete <acceptanceId> --flow <flowId>` removes
+ one that never should have existed, and only while it has no verified
+ history: it is refused once a settled round has run it, or while another
+ flow invokes it as a subflow.
+3. `lh acceptance flow plan <acceptanceId> --flow <flowId>` creates a draft round
+ with the graph and its plan. While the round is only planned it follows the
+ live graph: publishing an edit refreshes its snapshot and plan in place, and
+ running `flow plan` again refreshes the same draft instead of opening another
+ round. Add `--run <verifyRunId>` to attach another flow to the same draft. Read `lh acceptance run get <verifyRunId> --json` for
+ the actual plan IDs: each branch and subflow invocation has its own
+ `checkItemId`; never substitute the reusable asset ID.
+4. Share the acceptance link so the user can inspect the proposed nodes, branches
+ and expected outcomes before implementation. Read and address any actionable
+ feedback. Preparing a plan neither executes checks nor approves delivery;
+ there is no separate flow-confirmation action. Continue within the user's
+ authorized scope, or pause if the user explicitly asked to review before work.
+ For requested changes, publish the revised definition with its `flowId` and
+ `expectedHash`; the draft round follows automatically. Never open another
+ round or another flow just to revise a plan that has not executed.
+5. Implement the work and exercise the real product, then use
+ `lh acceptance flow record <acceptanceId> --file result.json`, containing
+ `verifyRunId`, `checkItemId`, `verdict` (`passed`, `failed`, `uncertain`, or
+ `blocked`) and `observation`. Record only what was observed. Use the returned
+ result ID to attach required artifacts through `lh acceptance run evidence`
+ (inspect its `--help`), following the same evidence rules as checklist checks.
+6. After all required checks are recorded and passed, run
+ `lh acceptance flow complete <acceptanceId> --run <verifyRunId>`. Completion
+ settles verification; it does not accept the delivery on the user's behalf.
+ Read back the round and verify evidence coverage before handing it over.
+
+To rerun the exact old graph, prepare a plan with `--from-run <sourceVerifyRunId>` and
+omit `--run` for a fresh round. This preserves the old definition and starts
+without results. Each replay starts as an unexecuted draft. A round is frozen
+by its first recorded result; only then does it keep its number. An
+`lh acceptance run ingest` that reaches an acceptance whose latest round is
+still a draft folds into that draft rather than opening a new round. Accepted or closed
+acceptances must be explicitly reopened
+before starting. Edges describe business transitions; they do not automatically
+schedule execution. Continue to read `lh acceptance feedback <acceptanceId> --actionable` before repairs and publish new rounds into the same acceptance.
+
diff --git a/.agents/skills/acceptance/references/legacy-plan-handoff.md b/.agents/skills/acceptance/references/legacy-plan-handoff.md
new file mode 100644
index 00000000000..c89c472175c
--- /dev/null
+++ b/.agents/skills/acceptance/references/legacy-plan-handoff.md
@@ -0,0 +1,67 @@
+# Legacy plan handoff lookup
+
+Use only when the actual publication response lacks an acceptance URL or a
+text-only operation plan needs no publication. Prefer already acquired server,
+operation and run facts; query only missing state. This read-only recipe is a
+compatibility fallback, not a discovery sequence for every round.
+
+Run the complete recipe below only when its server, operation state and run
+association are all unacquired. With partial context, retain the known values
+and query only missing state using the corresponding CLI subcommand help.
+
+Keep the same CLI server, account, and workspace as the verification. This example
+reads the resolved server from `lh doctor --offline --json` (`endpoints.resolution`
+check, `evidence.serverUrl`). Cloud browser links use `https://lobehub.com`;
+self-hosted and development origins retain their hosts and ports. Doctor may exit
+nonzero for unrelated diagnostics while still returning this field; only a valid
+endpoint result is used. No repair, network doctor probe, or remote write is requested.
+The example requires Node.js and the existing CLI commands, not a new CLI release:
+
+```bash
+node - "$OPERATION_ID" <<'NODE'
+const { execFileSync, spawnSync } = require('node:child_process');
+const operationId = process.argv[2];
+if (!operationId) throw new Error('Handoff blocked: the invocation must supply an operation ID.');
+const doctor = spawnSync('lh', ['doctor', '--offline', '--json'], { encoding: 'utf8' });
+if (doctor.error) throw doctor.error;
+const endpoint = JSON.parse(doctor.stdout).checks?.find((check) => check.id === 'endpoints.resolution');
+if (!['ok', 'warn'].includes(endpoint?.status) || !endpoint.evidence?.serverUrl) {
+ throw new Error('Handoff blocked: the CLI did not resolve its server URL.');
+}
+const server = new URL(endpoint.evidence.serverUrl);
+const isCloud = server.hostname === 'lobehub.com' || server.hostname.endsWith('.lobehub.com');
+const origin = isCloud ? 'https://lobehub.com' : server.origin;
+const query = (...args) =>
+ JSON.parse(execFileSync('lh', [...args, '--json'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] }));
+// `lh acceptance plan` is the current spelling; an older CLI only has `lh verify plan`.
+let state;
+try {
+ state = query('acceptance', 'plan', 'state', operationId);
+} catch {
+ state = query('verify', 'plan', 'state', operationId);
+}
+const runId = state?.verifyRunId;
+if (!runId) throw new Error('Handoff blocked: the operation has no verification run.');
+const run = query('acceptance', 'run', 'get', runId);
+if (run?.id !== runId || run.operationId !== operationId || !run.acceptanceId || !Number.isInteger(run.roundIndex) || run.roundIndex < 1) {
+ throw new Error('Handoff blocked: the operation run must already be attached to an acceptance and round.');
+}
+const acceptanceUrl = new URL(`/acceptance/${encodeURIComponent(run.acceptanceId)}`, origin);
+console.log(JSON.stringify({
+ acceptanceId: run.acceptanceId, verifyRunId: runId, roundIndex: run.roundIndex,
+ acceptanceUrl: acceptanceUrl.href,
+}, null, 2));
+NODE
+```
+
+Using the IDs printed by the lookup, read back
+`lh acceptance view <acceptanceId> --json` and confirm its round ledger contains
+this `verifyRunId` and `roundIndex`, then copy the lookup's `acceptanceUrl` into the final
+handoff with the observed evidence coverage. The lookup neither settles the
+round nor supplies a verifier verdict or user acceptance.
+
+If the lookup fails or the run has no acceptance association, preserve the
+evidence and report the handoff as blocked so the owning workflow can link the
+existing run. Do not invent an acceptance ID, hand off a `/verify/` link (it only
+redirects to the acceptance page),
+create a replacement acceptance, or ingest a duplicate round to obtain a link.
diff --git a/.agents/skills/acceptance/references/plan-format.md b/.agents/skills/acceptance/references/plan-format.md
index 4efc028843e..ea9b5b27329 100644
--- a/.agents/skills/acceptance/references/plan-format.md
+++ b/.agents/skills/acceptance/references/plan-format.md
@@ -1,47 +1,25 @@
# Plan-driven rounds β€” read the plan, capture, ingest into its round
Use this path only when the invocation handed you an operation id: a verify plan
-already exists and its round is waiting. Everything except where the checks come
+already exists and its round is waiting. Operation plans live on LobeHub, so this
+path always publishes β€” it has no local render. Everything except where the checks come
from and where the round lands is the authored path in [report.md](./report.md):
the same `new_round` directory, `result.json`, `proposal.md`, assets, and capture
discipline β€” surface guides, recordings with [chapters](./video-chapters.md),
-before/after pairs, screenshots you looked at. Never mix this path with an
+before/after pairs, screenshots inspected by their designated owner. Never mix this path with an
authored ingest for one round.
-## Read the frozen plan β€” `lh verify plan state $OPERATION_ID --json`
-
-Returns the run's verify state plus the **frozen plan** (immutable once
-confirmed):
-
-```jsonc
-{
- "verifyStatus": "planned",
- "verifyPlanConfirmedAt": "2026-06-21T07:00:00.000Z",
- "verifyPlan": [
- {
- "id": "vci_a1b2c3", // checkItemId β€” the stable join key
- "index": 0,
- "title": "Login flow reaches the workspace",
- "description": "After sign-in the home renders the workspace switcher",
- "required": true, // true β‡’ blocks delivery if unproven
- "verifierType": "llm",
- "verifierConfig": {
- "requiredEvidence": [
- // the artifacts you MUST capture
- { "type": "screenshot", "hint": "logged-in home with workspace switcher" },
- ],
- },
- },
- ],
-}
-```
+## Read the frozen plan β€” `lh acceptance plan state`
+
+A CLI that predates `lh acceptance plan` has the same command as
+`lh verify plan state`.
-- `verifyPlan[].id` is the **checkItemId** β€” never use `index` as a key, it is
- display ordering only.
-- `verifyPlan[].verifierConfig.requiredEvidence` is the list of `{ type, hint }`
- you must satisfy. Absent or empty β‡’ this criterion is judged on text alone.
-- `hint` is guidance for what the artifact should show β€” it is not validated, but
- follow it so the reviewer can recognize the proof.
+Use the CLI's plan-state help to read the supplied operation's frozen plan.
+Keep its check item IDs, definitions, required flags and evidence declarations
+unchanged. `verifyPlan[].id` is the stable check-item key; `index` is display
+ordering. `verifierConfig.requiredEvidence` declares `{ type, hint }` requirements;
+empty means that criterion is judged on deliverable text. Reuse an acquired
+plan state instead of querying it again to learn the response shape.
## Write the round against the frozen plan
@@ -103,11 +81,8 @@ A single missing or failed artifact β€” a retry, or a verifier asking for one mo
capture β€” goes in with `result submit`, not a second ingest (re-ingesting
duplicates every artifact):
-```bash
-lh acceptance run result submit --operation "$OPERATION_ID" --item vci_a1b2c3 --type video \
- --file "$REPORT_DIR/assets/reload.mp4" --chapters "$REPORT_DIR/assets/reload.chapters.json" \
- --by cdp --desc "…"
-```
+Discover the result-submission syntax from its help. Preserve the supplied
+operation and check-item IDs, artifact type/path, caption and video chapters.
It resolves the round from the operation id, creates the check-result row on
first use (idempotent on `checkItemId`), and rejects a malformed chapter or
@@ -120,20 +95,10 @@ Leave `--verdict` off unless the task explicitly asks you to self-assert.
Ingest's `missingEvidence` is the first check. To read the round back, map each
`checkItemId` to its `checkResultId` and list that row's evidence:
-```jsonc
-// lh acceptance run result list --operation "$OP" --json
-[
- {
- "id": "vcr_x9y8z7", // checkResultId
- "checkItemId": "vci_a1b2c3", // joins back to verifyPlan[].id
- "status": "pending",
- },
-]
-```
-
-```bash
-lh acceptance run evidence list "$CHECK_RESULT_ID" --json # each required type present; videos carry metadata.chapters
-```
+Discover the result/evidence read commands from their help only if needed.
+Join each result's `checkItemId` to its `checkResultId`, then inspect its evidence.
+Use complete already acquired publication results when they establish coverage;
+query only missing rows or changed evidence, rather than rereading every result.
Coverage rule: for each required criterion, **every** `requiredEvidence[].type`
appears at least once in its evidence list, and every video has chapters. A gap β†’
@@ -143,56 +108,13 @@ capture and supplement it; then hand off per SKILL.md (acceptance URL +
## Resolve the plan round's handoff links
`ingest --operation --json` returns `acceptanceUrl`; copy it. Some plans need no evidence at all, and an older CLI's `result submit --json` returns only an internal `url`. In those cases, resolve
-the supplied operation ID with `lh verify plan state <operationId> --json`, then
+the supplied operation ID with `lh acceptance plan state <operationId> --json`, then
read its `verifyRunId` using `lh acceptance run get <runId> --json`. The run's
`acceptanceId` and `roundIndex` identify the existing handoff; do not substitute a
result ID, subject ID, or the most recent round from another acceptance.
-Keep the same CLI server, account, and workspace as the verification. This example
-reads the resolved server from `lh doctor --offline --json` (`endpoints.resolution`
-check, `evidence.serverUrl`). Cloud browser links use `https://lobehub.com`;
-self-hosted and development origins retain their hosts and ports. Doctor may exit
-nonzero for unrelated diagnostics while still returning this field; only a valid
-endpoint result is used. No repair, network doctor probe, or remote write is requested.
-The example requires Node.js and the existing CLI commands, not a new CLI release:
-
-```bash
-node - "$OPERATION_ID" <<'NODE'
-const { execFileSync, spawnSync } = require('node:child_process');
-const operationId = process.argv[2];
-if (!operationId) throw new Error('Handoff blocked: the invocation must supply an operation ID.');
-const doctor = spawnSync('lh', ['doctor', '--offline', '--json'], { encoding: 'utf8' });
-if (doctor.error) throw doctor.error;
-const endpoint = JSON.parse(doctor.stdout).checks?.find((check) => check.id === 'endpoints.resolution');
-if (!['ok', 'warn'].includes(endpoint?.status) || !endpoint.evidence?.serverUrl) {
- throw new Error('Handoff blocked: the CLI did not resolve its server URL.');
-}
-const server = new URL(endpoint.evidence.serverUrl);
-const isCloud = server.hostname === 'lobehub.com' || server.hostname.endsWith('.lobehub.com');
-const origin = isCloud ? 'https://lobehub.com' : server.origin;
-const query = (...args) => JSON.parse(execFileSync('lh', [...args, '--json'], { encoding: 'utf8' }));
-const state = query('verify', 'plan', 'state', operationId);
-const runId = state?.verifyRunId;
-if (!runId) throw new Error('Handoff blocked: the operation has no verification run.');
-const run = query('acceptance', 'run', 'get', runId);
-if (run?.id !== runId || run.operationId !== operationId || !run.acceptanceId || !Number.isInteger(run.roundIndex) || run.roundIndex < 1) {
- throw new Error('Handoff blocked: the operation run must already be attached to an acceptance and round.');
-}
-const acceptanceUrl = new URL(`/acceptance/${encodeURIComponent(run.acceptanceId)}`, origin);
-console.log(JSON.stringify({
- acceptanceId: run.acceptanceId, verifyRunId: runId, roundIndex: run.roundIndex,
- acceptanceUrl: acceptanceUrl.href,
-}, null, 2));
-NODE
-```
-
-Using the IDs printed by the lookup, read back
-`lh acceptance view <acceptanceId> --json` and confirm its round ledger contains
-this `verifyRunId` and `roundIndex`, then copy the lookup's `acceptanceUrl` into the final
-handoff with the observed evidence coverage. The lookup neither settles the
-round nor supplies a verifier verdict or user acceptance.
-
-If the lookup fails or the run has no acceptance association, preserve the
-evidence and report the handoff as blocked so the owning workflow can link the
-existing run. Do not invent an acceptance ID, expose the internal `/verify/` URL,
-create a replacement acceptance, or ingest a duplicate round to obtain a link.
+Reuse acquired operation/run facts before querying anything. If the CLI cannot
+return the acceptance URL directly, read
+[the legacy read-only lookup](legacy-plan-handoff.md) only for that compatibility
+case. Preserve the existing server, account, workspace and operation/run association.
+No publishing, replacement acceptance or duplicate round may be used to obtain a link.
diff --git a/.agents/skills/acceptance/references/project-adapter.md b/.agents/skills/acceptance/references/project-adapter.md
index 06e0a0a09f7..88ae222b959 100644
--- a/.agents/skills/acceptance/references/project-adapter.md
+++ b/.agents/skills/acceptance/references/project-adapter.md
@@ -11,7 +11,9 @@ plan gate owned by the acceptance-checker once environment readiness is establis
target, a report directory convention. Those live beside the adapter in
`.agents/acceptance/PROCESS.md`. **When that file exists it owns the run process,
and this skill supplies the acceptance contract** β€” plan, evidence, report,
-round. Read both before executing; where they disagree about _how to run_, the
+round. The execution owner acquires the relevant sections of both once, or reuses
+their already acquired rules for the same revision; other roles receive those
+rules and provenance in their handoff. Where they disagree about _how to run_, the
project layer wins, and where they disagree about _what a valid round is_, this
skill wins.
@@ -29,8 +31,8 @@ skill wins.
`.agents/acceptance/` is **committed** (the adapter and the project living logs are
shared, versioned team assets). The report output directory `.acceptances/` is
-**gitignored** β€” reports are per-run artifacts, published to LobeHub Acceptance,
-not committed.
+**gitignored** β€” reports are per-run artifacts, published to LobeHub Acceptance
+or rendered locally, not committed.
## Fixed section skeleton
diff --git a/.agents/skills/acceptance/references/publication-recovery.md b/.agents/skills/acceptance/references/publication-recovery.md
new file mode 100644
index 00000000000..a26989eedc7
--- /dev/null
+++ b/.agents/skills/acceptance/references/publication-recovery.md
@@ -0,0 +1,46 @@
+# Publication recovery
+
+**Storage limits require a user-facing recovery handoff.** For report ingest,
+atomic evidence upload, or result submission with a file, recognize
+`recovery.reason: "storage_quota"`, `failedEvidence[].reason: "storage_quota"`,
+or a `storage_block:` error. Do not stop at "upload failed" or "noted in the PR":
+
+- In the final response, state that storage limits blocked publication, distinguish
+ locally observed results from uploaded evidence, and report the actual coverage.
+ Include the saved acceptance/round links when available; do not invent them for
+ an atomic submission that failed before saving a result.
+- Give **both recovery options**, in the user's language, using available
+ `recovery.cleanupUrl` and `recovery.upgradeUrl` verbatim and following
+ `recovery.message`, applying the [Cloud browser-link rule](../SKILL.md#final-handoff-mandatory). Never delete
+ user data automatically. Deletion is permanent.
+ - Personal scope: **clean up unneeded acceptances** or **upgrade the personal
+ plan**. Acceptance cleanup requires selecting "permanently delete all rounds,
+ reports, and evidence files"; deleting only a record or evidence association
+ does not free storage.
+ - Workspace scope (`recovery.scope: "workspace"`): **clean up that workspace's
+ files** or **upgrade that workspace's plan**. The cleanup link opens its
+ resource library, not an acceptance list; do not invent an acceptance-purge
+ checkbox there. Ask its owner/admin for cleanup or billing access. Personal
+ cleanup or a personal upgrade does not resolve a workspace limit.
+ - If the CLI reports unresolved workspace scope and omits recovery URLs, report
+ that limitation and its scope-check instructions. Do not invent links or
+ substitute personal pages.
+- For an older CLI without recovery metadata, resolve server and scope using
+ `lh doctor --offline --json` and `lh workspace current --json`. Personal scope
+ uses `/acceptance` and `/settings/plans`. For workspace scope, resolve its slug
+ with `lh workspace view --json`, verify the returned ID matches the active
+ workspace, and use `/:workspaceSlug/resource` and
+ `/:workspaceSlug/settings/plans`; there is no `/:workspaceSlug/acceptance`
+ route. If lookup fails, give scope-specific guidance without guessed links.
+ Strip URL username/password when constructing display links. For LobeHub Cloud,
+ personal cleanup uses `https://lobehub.com/acceptance`; personal plan upgrades use
+ `https://lobehub.com/settings/plans`. Workspace resource and plan paths use
+ `https://lobehub.com`. Keep self-hosted users on their configured server.
+- Preserve local reports, artifacts, and the returned retry instructions. Stop
+ blind retries until the user has addressed storage. For a partially ingested
+ report, retry only failed artifacts using `failedEvidence[].retryArgs` or
+ `retryCommand`, not the whole ingest. For an atomic upload/submission that saved
+ nothing, retry that command. Supplementing evidence does not change recorded
+ verdicts; read back coverage and do not claim the delivery is complete while
+ required evidence is missing.
+
diff --git a/.agents/skills/acceptance/references/report-schema.md b/.agents/skills/acceptance/references/report-schema.md
new file mode 100644
index 00000000000..b82bbac4313
--- /dev/null
+++ b/.agents/skills/acceptance/references/report-schema.md
@@ -0,0 +1,171 @@
+# Report payload schema
+
+Read only the needed section when the installed CLI does not expose its payload
+schema. Command syntax and supported flags come from the CLI help, not this file.
+Acquire a schema section once per version and reuse it for all cases.
+
+## Minimal round payload
+
+Every `cases[].evidence` file entry must use `{ "path": "...", "description": "..." }`.
+Describe the file's contents and relevance to the criterion, following the
+[shared description requirements](evidence.md#file-versus-inline-content).
+Do not copy the legacy bare-path form: ingestion accepts it for compatibility,
+but its filename fallback does not satisfy the description requirement.
+
+```json
+{
+ "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": [
+ {
+ "path": "assets/task-tree.txt",
+ "description": "Task tree command output showing the root and its 3 nested children at depth 2."
+ }
+ ]
+ },
+ {
+ "id": "2",
+ "category": "Model quality",
+ "name": "candidate model improves average precision",
+ "surface": "cli",
+ "status": "pass",
+ "observation": "average precision improved from 0.742 to 0.796",
+ "evidence": [
+ {
+ "path": "assets/evaluation.json",
+ "description": "Evaluation results comparing baseline and candidate average precision, including the observed change from 0.742 to 0.796."
+ }
+ ],
+ "datasets": [
+ {
+ "id": "model-metrics",
+ "fields": [
+ { "key": "metric", "type": "string" },
+ { "key": "baseline", "type": "number" },
+ { "key": "candidate", "type": "number" }
+ ],
+ "rows": [{ "metric": "Average precision", "baseline": 0.742, "candidate": 0.796 }]
+ }
+ ],
+ "visualizations": [
+ {
+ "id": "model-comparison",
+ "type": "metric-comparison",
+ "version": 1,
+ "dataset": "model-metrics",
+ "title": "Model quality comparison",
+ "encoding": {
+ "label": "metric",
+ "before": "baseline",
+ "after": "candidate"
+ }
+ }
+ ]
+ }
+ ],
+ "createdAt": "2026-06-11T15:30:00+08:00",
+ "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"]
+ },
+ {
+ "id": "2",
+ "title": "candidate model improves average precision",
+ "category": "Model quality",
+ "verifier": "program",
+ "method": "Evaluate the baseline and candidate on the same held-out dataset",
+ "expected": "candidate average precision exceeds the baseline",
+ "requiredEvidence": ["text"]
+ }
+ ],
+ "summary": {
+ "total": 2,
+ "passed": 2,
+ "failed": 0,
+ "blocked": 0,
+ "verdict": "pass",
+ "conclusion": "Both checks passed: the task tree returned the expected hierarchy, and the candidate model improved average precision from 0.742 to 0.796."
+ },
+ "surfaces": ["cli"],
+ "title": "Verify task hierarchy and model quality"
+}
+```
+
+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).
+
+## Structured visualizations
+
+A case containing reviewable structured data should provide `datasets[]` plus
+`visualizations[]`. Supported version-1 renderers are `metric-comparison`,
+`line-chart`, `bar-chart`, `scatter-plot`, `heatmap`, and `table`. Each
+visualization references one dataset by `id` and maps declared fields through
+`encoding`.
+
+Inline datasets use declared `fields[]` and object `rows[]`; keep them to a
+review-sized summary. Retain raw benchmark results, CSV/JSON, traces, profiles,
+and vectors in `evidence`: the visualization is a decision aid, not a replacement
+for the audit trail. Do not merely upload a data file and expect Acceptance to
+infer a chart; declare both the dataset and visualization explicitly.
+
+Native renderers are the default because they preserve machine-readable values,
+accessibility, theme adaptation, and consistent comparison semantics. Generate a
+static chart only when none of the supported renderers can faithfully represent
+the result, and explain that limitation in the case observation.
+
+Every visualization requires unique non-empty `id`, `type`, `dataset`, and
+`version: 1`; `dataset` must reference a declared dataset id. `title` and
+`context` are optional non-empty strings. Every encoding field name below must
+reference a field declared by that dataset.
+
+| Renderer | Required encoding | Optional encoding |
+| ------------------- | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
+| `metric-comparison` | `label`, `before`, `after` | `beforeSamples`, `afterSamples`, `direction`, `statistic`, `target`, `unit` |
+| `line-chart` | `x`, non-empty `series[]`; each series requires `field` | series `label`, series `style` (`muted` \| `primary` \| `accent`), `xLabel`, `yLabel` |
+| `bar-chart` | `category`, non-empty `series[]`; each series requires `field` | series `label`, `valueLabel` |
+| `scatter-plot` | `x`, `y` | `color`, `label`, `xLabel`, `yLabel` |
+| `heatmap` | `x`, `y`, `value` | none |
+| `table` | none; `encoding` itself may be omitted | non-empty `columns[]`; `highlights[]` entries require `field` and `mode` (`min` \| `max`) |
+
+One shape for every renderer β€” `id`, `type`, `version: 1`, `dataset`, and an
+`encoding` whose field names are keys of that dataset (see the `line-chart`
+below; the other types differ only in the encoding keys listed above):
+
+```json
+{
+ "dataset": "training",
+ "encoding": {
+ "x": "step",
+ "series": [
+ { "field": "baselineLoss", "label": "Baseline", "style": "muted" },
+ { "field": "candidateLoss", "label": "Candidate", "style": "primary" }
+ ],
+ "xLabel": "Step",
+ "yLabel": "Loss"
+ },
+ "id": "loss-over-time",
+ "type": "line-chart",
+ "version": 1
+}
+```
+
+Dataset field `type` is one of `boolean`, `category`, `number`, `string`, or
+`temporal`; field keys and dataset/view ids must be unique. Rows may contain only
+declared keys with string, number, boolean, or null values. The combined inline
+row limit is 10,000.
+
diff --git a/.agents/skills/acceptance/references/report.md b/.agents/skills/acceptance/references/report.md
index 6558f71142f..9c6db1aa732 100644
--- a/.agents/skills/acceptance/references/report.md
+++ b/.agents/skills/acceptance/references/report.md
@@ -1,15 +1,18 @@
-# Structured Report Rounds (`lh acceptance run ingest`)
+# Structured Report Rounds (`lh acceptance run ingest` / `render`)
Every round is a **structured report round**: a self-contained directory that
-`lh acceptance run ingest` uploads as one immutable verification round. You
+`lh acceptance run ingest` uploads as one immutable verification round, or that
+`lh acceptance run render` turns into the local acceptance page when this machine
+is not signed in ([Local reports](../SKILL.md#local-reports-when-not-signed-in)). You
author the checks here, which is the usual case; when a verify plan was handed to
you, the same directory is keyed by its check item ids and ingested into the
plan's round ([plan-format.md](./plan-format.md)). The
acceptance 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.
+under tinted comparison bands**. The local `report.html` is the same page. A
+chat-only summary or a bare markdown report never gets that rendering; the
+structured round does.
## Contents
@@ -46,30 +49,11 @@ Run it from the repository root. It is the only supported way to create a round
directory by hand: it keeps the whole tree out of `git status` before the first
`result.json` or screenshot exists.
-```bash
-# A. first external-project round β€” creates a standalone acceptance.
-# It has no subject yet, so group it under `standalone-<slug>` until the
-# returned acceptance id gives the tree its permanent name.
-REPORT_DIR=$(new_round standalone-checkout-flow first-pass)
-lh acceptance run ingest "$REPORT_DIR" \
- --requirement "<one-sentence business goal>" --json
-
-# Re-verification after a fix β€” a NEW round on the SAME acceptance.
-REPORT_DIR=$(new_round standalone-checkout-flow repair)
-lh acceptance run ingest "$REPORT_DIR" --acceptance "$ACCEPTANCE_ID" --json
-
-# Attach to a subject you were told to use β€” a Task, Topic, or Document.
-# Group the round under that same subject so the tree and the page agree.
-REPORT_DIR=$(new_round topic-tpc_xxx first-pass)
-lh acceptance run ingest "$REPORT_DIR" --subject topic:tpc_xxx --json
-
-# B. atomic fallback β€” create the round first, then submit into it with --run
-RUN=$(lh acceptance run create --title "…" --goal "…" --json | jq -r .id)
-lh acceptance run result submit --run "$RUN" --item "$CHECK_ITEM_ID" …
-```
-
-Prefer **A**: per-criterion submits without a plan produce checks with no
-declared intent, so the page has nothing to pair the outcome against.
+Use the CLI's ingest help to select the supported flags for the intended path:
+first standalone publication records the durable requirement; repairs append to
+the same acceptance; an explicitly supplied subject is preserved. Prefer one
+structured ingest with declared checks over per-item submissions without a plan.
+`acceptance run create` creates a round, not the Acceptance ID used by flows.
For a flow-first plan without an acceptance yet, use
[`lh acceptance create`](../SKILL.md#optional-user-journey-flows) before publishing
@@ -87,7 +71,9 @@ Rounds live under `.acceptances/`, grouped by the delivery they belong to:
β”œβ”€β”€ .gitignore # `*` β€” the whole tree stays out of git
└── <subject-key>/ # topic-tpc_x | task-T-12 | document-doc_x
β”‚ # standalone-<slug> until an acceptance id exists
- β”œβ”€β”€ acceptance.json # which acceptance these rounds belong to
+ β”œβ”€β”€ acceptance.json # which acceptance these rounds belong to (CLI-written)
+ β”œβ”€β”€ report.html # local mode: the rendered page of every round
+ β”œβ”€β”€ reviews.json # local mode: the reader's saved decisions
└── <YYYYMMDD-HHMMSS>-<slug>/ # ONE round β€” never write into an existing one
β”œβ”€β”€ result.json # THE report β€” the page renders from this
β”œβ”€β”€ proposal.md # what this round delivers, posted to the discussion
@@ -126,17 +112,21 @@ supersedes? }`.
vanishing β€” cut coverage in the open.
Every item is an outcome the reader can judge β€” never a programmatic gate
([what is not an acceptance check](#what-is-not-an-acceptance-check)).
- **Copy the shapes in this file rather than reconstructing them**: a
+ **Use an acquired CLI schema or the linked report schema rather than reconstructing it**: a
plausible-but-wrong nested shape parses as JSON, is dropped on ingest, and
the round publishes green with its evidence silently degraded. Read every
ingest warning as a failed publish.
Before executing the **first round only**, send the draft for
[acceptance-checker plan review](acceptance-checker.md) and save the agreed plan and
requirement mapping after resolving material gaps. In follow-up rounds the
- primary carries the agreed plan forward and inspects it itself.
+ execution owner carries the agreed plan forward using its existing context.
2. **Collect evidence into `assets/` as you test.** Screenshots must be
- **visually verified with the Read tool before being cited** β€” never cite an
- image you haven't looked at. For metrics, time series, model or benchmark
+ **visually verified by their designated inspector before supporting a pass**.
+ In the first round this is normally the checker; the runner captures and
+ indexes images without pre-reviewing them, then incorporates its attributable
+ inspection records. Inspect each artifact version once, reusing its findings
+ for the cases it supports. File presence or captions are not inspection.
+ For metrics, time series, model or benchmark
comparisons, distributions, matrices, and tables, use native Acceptance
structured visualizations: put review-sized values in `cases[].datasets`,
declare the view in `cases[].visualizations`, and retain the raw CSV/JSON,
@@ -176,16 +166,21 @@ supersedes? }`.
expand the file list. It checks the report and artifacts, without reopening requirements
or expanding into code review. State repairs and affected cases in plain language). Resolve
findings and record review limitations in the narrative tail before declaring
- a pass. The primary publishes; the acceptance-checker does not operate the product or
- upload results.
+ a pass. The primary coordinates findings and authorizes publication; the same
+ runner publishes and returns actual uploaded coverage and links. The primary
+ does not reread unchanged reports or evidence to repeat the workers' checks.
+ The acceptance-checker does not operate the product or upload results.
```bash
lh acceptance run ingest "$REPORT_DIR" --source agent-testing --json
+ # local mode: render instead; same round directory, nothing uploaded
+ lh acceptance run render "$REPORT_DIR" --json
```
- On the first ingest, add `--requirement "<one-sentence business goal>"`.
+ On the first ingest or render, add `--requirement "<one-sentence business goal>"`.
Describe the durable goal of the whole acceptance, not this round's narrower
- implementation scope.
+ implementation scope. Never edit `acceptance.json`, `reviews.json` or
+ `report.html` by hand: the CLI owns them, and a render rewrites the page.
Grouping needs nothing from you: the command attaches the round to the
conversation it was invoked from when it can, and otherwise creates a
@@ -197,173 +192,28 @@ supersedes? }`.
`acceptanceUrl` verbatim in the final reply; do not add the `roundUrl` the
command also returns.
Never reconstruct the host, path, or round query: the CLI resolves the
- configured server, including self-hosted installations. See
+ configured server, including self-hosted installations. A render returns
+ `reportUrl` instead, the page's `file://` link. See
[Final handoff](../SKILL.md#final-handoff-mandatory).
## result.json schema
-Every `cases[].evidence` file entry must use `{ "path": "...", "description": "..." }`.
-Describe the file's contents and relevance to the criterion, following the
-[shared description requirements](evidence.md#file-versus-inline-content).
-Do not copy the legacy bare-path form: ingestion accepts it for compatibility,
-but its filename fallback does not satisfy the description requirement.
-
-```json
-{
- "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": [
- {
- "path": "assets/task-tree.txt",
- "description": "Task tree command output showing the root and its 3 nested children at depth 2."
- }
- ]
- },
- {
- "id": "2",
- "category": "Model quality",
- "name": "candidate model improves average precision",
- "surface": "cli",
- "status": "pass",
- "observation": "average precision improved from 0.742 to 0.796",
- "evidence": [
- {
- "path": "assets/evaluation.json",
- "description": "Evaluation results comparing baseline and candidate average precision, including the observed change from 0.742 to 0.796."
- }
- ],
- "datasets": [
- {
- "id": "model-metrics",
- "fields": [
- { "key": "metric", "type": "string" },
- { "key": "baseline", "type": "number" },
- { "key": "candidate", "type": "number" }
- ],
- "rows": [{ "metric": "Average precision", "baseline": 0.742, "candidate": 0.796 }]
- }
- ],
- "visualizations": [
- {
- "id": "model-comparison",
- "type": "metric-comparison",
- "version": 1,
- "dataset": "model-metrics",
- "title": "Model quality comparison",
- "encoding": {
- "label": "metric",
- "before": "baseline",
- "after": "candidate"
- }
- }
- ]
- }
- ],
- "createdAt": "2026-06-11T15:30:00+08:00",
- "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"]
- },
- {
- "id": "2",
- "title": "candidate model improves average precision",
- "category": "Model quality",
- "verifier": "program",
- "method": "Evaluate the baseline and candidate on the same held-out dataset",
- "expected": "candidate average precision exceeds the baseline",
- "requiredEvidence": ["text"]
- }
- ],
- "summary": {
- "total": 2,
- "passed": 2,
- "failed": 0,
- "blocked": 0,
- "verdict": "pass",
- "conclusion": "Both checks passed: the task tree returned the expected hierarchy, and the candidate model improved average precision from 0.742 to 0.796."
- },
- "surfaces": ["cli"],
- "title": "Verify task hierarchy and model quality"
-}
-```
+The current CLI exposes `lh acceptance run schema` (JSON Schema),
+`schema --example --surface <surface>` (an unexecuted draft), and
+`validate <reportDir>` (offline diagnostics). Learn any unknown options from the
+relevant help once. Local validation does not inspect media, check account
+language, or establish remote plan membership; `ingest --dry-run` remains the
+account-aware preflight.
-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).
+For an older CLI without these commands, acquire
+[the report payload schema](report-schema.md#minimal-round-payload) once when
+constructing `result.json`; do not load it during environment discovery or review.
### Structured visualizations
-A case containing reviewable structured data should provide `datasets[]` plus
-`visualizations[]`. Supported version-1 renderers are `metric-comparison`,
-`line-chart`, `bar-chart`, `scatter-plot`, `heatmap`, and `table`. Each
-visualization references one dataset by `id` and maps declared fields through
-`encoding`.
-
-Inline datasets use declared `fields[]` and object `rows[]`; keep them to a
-review-sized summary. Retain raw benchmark results, CSV/JSON, traces, profiles,
-and vectors in `evidence`: the visualization is a decision aid, not a replacement
-for the audit trail. Do not merely upload a data file and expect Acceptance to
-infer a chart; declare both the dataset and visualization explicitly.
-
-Native renderers are the default because they preserve machine-readable values,
-accessibility, theme adaptation, and consistent comparison semantics. Generate a
-static chart only when none of the supported renderers can faithfully represent
-the result, and explain that limitation in the case observation.
-
-Every visualization requires unique non-empty `id`, `type`, `dataset`, and
-`version: 1`; `dataset` must reference a declared dataset id. `title` and
-`context` are optional non-empty strings. Every encoding field name below must
-reference a field declared by that dataset.
-
-| Renderer | Required encoding | Optional encoding |
-| ------------------- | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
-| `metric-comparison` | `label`, `before`, `after` | `beforeSamples`, `afterSamples`, `direction`, `statistic`, `target`, `unit` |
-| `line-chart` | `x`, non-empty `series[]`; each series requires `field` | series `label`, series `style` (`muted` \| `primary` \| `accent`), `xLabel`, `yLabel` |
-| `bar-chart` | `category`, non-empty `series[]`; each series requires `field` | series `label`, `valueLabel` |
-| `scatter-plot` | `x`, `y` | `color`, `label`, `xLabel`, `yLabel` |
-| `heatmap` | `x`, `y`, `value` | none |
-| `table` | none; `encoding` itself may be omitted | non-empty `columns[]`; `highlights[]` entries require `field` and `mode` (`min` \| `max`) |
-
-One shape for every renderer β€” `id`, `type`, `version: 1`, `dataset`, and an
-`encoding` whose field names are keys of that dataset (see the `line-chart`
-below; the other types differ only in the encoding keys listed above):
-
-```json
-{
- "dataset": "training",
- "encoding": {
- "x": "step",
- "series": [
- { "field": "baselineLoss", "label": "Baseline", "style": "muted" },
- { "field": "candidateLoss", "label": "Candidate", "style": "primary" }
- ],
- "xLabel": "Step",
- "yLabel": "Loss"
- },
- "id": "loss-over-time",
- "type": "line-chart",
- "version": 1
-}
-```
-
-Dataset field `type` is one of `boolean`, `category`, `number`, `string`, or
-`temporal`; field keys and dataset/view ids must be unique. Rows may contain only
-declared keys with string, number, boolean, or null values. The combined inline
-row limit is 10,000.
+For dataset/chart outcomes, read only the
+[structured visualization schema](report-schema.md#structured-visualizations).
+Ordinary screenshot cases do not load these examples.
### Closed vocabularies β€” the pipeline acts on these, they are not labels
diff --git a/.agents/skills/acceptance/surfaces/native.md b/.agents/skills/acceptance/surfaces/native.md
index a083f290f01..19d8b7cf0a8 100644
--- a/.agents/skills/acceptance/surfaces/native.md
+++ b/.agents/skills/acceptance/surfaces/native.md
@@ -30,8 +30,8 @@ sleep 2 # let the result settle
screencapture -l "$(osascript -e "tell application \"System Events\" to tell process \"$APP\" to get id of window 1")" "$REPORT_DIR/assets/native-result.png"
```
-Save it into the round's `assets/` and cite it from the case once you have
-looked at it:
+Save it into the round's `assets/` and cite it from the case after its assigned
+inspector has opened it and recorded the observed state:
```jsonc
"evidence": [