π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π chore(acceptance): sync upstream skill 0.5.2 (#19983)
Arvin Xuf379494e4472
diff --git a/.agents/skills/acceptance/SKILL.md b/.agents/skills/acceptance/SKILL.mdindex d8621032838..85329b0ca7d 100644--- a/.agents/skills/acceptance/SKILL.md+++ b/.agents/skills/acceptance/SKILL.md@@ -2,7 +2,7 @@name: acceptancelicense: Apache-2.0metadata:- version: "0.5.0"+ version: "0.5.2"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@@ -367,6 +367,11 @@ process. Keep required evidence complete; shorten its presentation, not the work## Final handoff (mandatory)+Close every browser session this run opened+(`agent-browser --session <name> close`, [web teardown](surfaces/web.md#web-teardown))+before handing off; a session left open keeps a full browser running+indefinitely.+Before declaring the task done, prove coverage: for each check with`requiredEvidence`, every declared `type` is present at least once. Report itexplicitly; a missing type holds the delivery at `uncertain` no matter how good@@ -381,18 +386,38 @@ or a `storage_block:` error. Do not stop at "upload failed" or "noted in the PR"locally observed results from uploaded evidence, and report the actual coverage.Include the saved acceptance/round links when available; do not invent them foran atomic submission that failed before saving a result.-- Give **both clickable options**, in the user's language, using the CLI's- `recovery.cleanupUrl` and `recovery.upgradeUrl` verbatim:- **clean up unneeded acceptances** or **upgrade the plan**. Explain that cleanup- requires selecting "permanently delete all rounds, reports, and evidence files"- and cannot be undone. Deleting only the acceptance record or an evidence- association does not free file storage. Never delete user data automatically.-- For an older CLI without recovery URLs, resolve its configured server using- `lh doctor --offline --json`, then use `/acceptance` and `/settings/plans` on- that server. For LobeHub Cloud, including its `app.lobehub.com` API endpoint,- the user-facing links are https://lobehub.com/acceptance and- https://lobehub.com/settings/plans . Do not send self-hosted users to Cloud- as a remedy for their server's storage limit.+- Give **both recovery options**, in the user's language, using available+ `recovery.cleanupUrl` and `recovery.upgradeUrl` verbatim and following+ `recovery.message`, with one compatibility exception: if a personal cleanup+ link points to `https://lobehub.com/acceptance` (with or without a trailing+ slash), change its origin to `https://app.lobehub.com`, preserving its path,+ query, and fragment. The apex `/acceptance` route is the product introduction,+ not the acceptance manager. 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+ (CLI server `https://app.lobehub.com` or `https://lobehub.com`), personal cleanup+ uses `https://app.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. Stopblind retries until the user has addressed storage. For a partially ingestedreport, retry only failed artifacts using `failedEvidence[].retryArgs` or@@ -406,13 +431,12 @@ URL together with the coverage result β never only a check-result id or a prosclaim. Obtain the links from the path you actually executed:- **Authored round:** copy `acceptanceUrl` returned by- `lh acceptance run ingest --json` verbatim. Add its `roundUrl` verbatim when- non-null; otherwise the acceptance URL alone is the handoff.+ `lh acceptance run ingest --json` verbatim.- **Operation-plan round:** follow the read-only[plan handoff lookup](references/plan-format.md#resolve-the-plan-rounds-handoff-links).It resolves the supplied operation ID to its existing run, acceptance, andround using the CLI's actual server configuration. Copy its- `acceptanceUrl` and `roundUrl` output. Do not run authored ingest, create another+ `acceptanceUrl` output. Do not run authored ingest, create anotheracceptance, or resubmit evidence merely to obtain a link.Never guess a host, acceptance ID, or round index. The documented plan lookup is@@ -425,11 +449,11 @@ chat reply.Write the link as a plain-text line, never inside a fenced or inline code block β thechat client only linkifies plain text, and a code block makes it unclickable.-Replace each placeholder below with the URL from the selected path; omit the-`Round` line when `roundUrl` is null:+Hand off only the acceptance URL: the acceptance page opens on its latest round,+so a separate per-round link adds nothing for the reader. Replace the placeholder+below with the URL from the selected path:Acceptance: <acceptanceUrl, verbatim>-Round: <roundUrl, verbatim>Coverage: 2/2 criteria, all required evidence uploaded## Portability rulesdiff --git a/.agents/skills/acceptance/references/agent-browser.md b/.agents/skills/acceptance/references/agent-browser.mdindex 162437f8da2..8b085a04c18 100644--- a/.agents/skills/acceptance/references/agent-browser.md+++ b/.agents/skills/acceptance/references/agent-browser.md@@ -194,8 +194,12 @@ agent-browser session list```A named `--session` reuses the same running browser and its cookies + localStorage-across commands. To save and restore that state across browser restarts, also-enable `--restore` with a stable session ID:+across commands. Each session is a separate daemon plus browser that outlives+the calling process: close it with `agent-browser --session <name> close` when+the run ends, and export `AGENT_BROWSER_IDLE_TIMEOUT_MS` (disabled by default)+so an abandoned session shuts itself down. See+[../surfaces/web.md](../surfaces/web.md#web-teardown). To save and restore that+state across browser restarts, also enable `--restore` with a stable session ID:```bashagent-browser --session site1 --restore open https://site-a.com@@ -224,8 +228,12 @@ Providers: `agentcore`, `browserbase`, `browserless`, `browseruse`, `kernel`.## Gotchas-- **Daemon can get stuck** β if commands hang, `agent-browser close --all` or- `pkill -f agent-browser` to reset.+- **Daemon can get stuck** β if your session hangs, close it with+ `agent-browser --session <name> close` and reopen it. `close --all` / `pkill -f agent-browser` also kill other+ runs' sessions; use them only when no other agent is driving a browser.+- **Sessions leak when not closed** β daemons never exit on their own unless+ `AGENT_BROWSER_IDLE_TIMEOUT_MS` is set. `agent-browser session list` shows what+ is still running.- **HMR invalidates everything** β after code changes during dev, refs break;re-snapshot or restart.- **`snapshot -i` doesn't find contenteditable** β use `snapshot -i -C` for richdiff --git a/.agents/skills/acceptance/references/plan-format.md b/.agents/skills/acceptance/references/plan-format.mdindex e9e70de5d03..94d7cb93002 100644--- a/.agents/skills/acceptance/references/plan-format.md+++ b/.agents/skills/acceptance/references/plan-format.md@@ -103,8 +103,7 @@ again; then hand off per SKILL.md (acceptance URL + `coverage: n/n`).## Resolve the plan round's handoff links-`result submit --json` returns an internal `url`, not `acceptanceUrl` or-`roundUrl`. Some plans need no evidence submissions at all. In both cases, resolve+`result submit --json` returns an internal `url`, not `acceptanceUrl`. Some plans need no evidence submissions at all. In both cases, resolvethe supplied operation ID with `lh verify plan state <operationId> --json`, thenread its `verifyRunId` using `lh acceptance run get <runId> --json`. The run's`acceptanceId` and `roundIndex` identify the existing handoff; do not substitute a@@ -138,18 +137,16 @@ if (run?.id !== runId || run.operationId !== operationId || !run.acceptanceId ||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);-const roundUrl = new URL(acceptanceUrl);-roundUrl.searchParams.set('r', String(run.roundIndex));console.log(JSON.stringify({acceptanceId: run.acceptanceId, verifyRunId: runId, roundIndex: run.roundIndex,- acceptanceUrl: acceptanceUrl.href, roundUrl: roundUrl.href,+ 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 links into the final+this `verifyRunId` and `roundIndex`, then copy the lookup's `acceptanceUrl` into the finalhandoff with the observed evidence coverage. The lookup neither settles theround nor supplies a verifier verdict or user acceptance.diff --git a/.agents/skills/acceptance/references/report.md b/.agents/skills/acceptance/references/report.mdindex f57fe240e87..46babdae9d7 100644--- a/.agents/skills/acceptance/references/report.md+++ b/.agents/skills/acceptance/references/report.md@@ -182,9 +182,9 @@ supersedes? }`.Topic, or Document owns the work. To publish a repair into that same history, add`--acceptance <acceptanceId>` using the ID printed by the first ingest. Thecommand uploads cases + evidence + report body and returns `acceptanceUrl`- for the stable acceptance page, plus `roundUrl` for this round's snapshot- (`null` when no round index is available). Copy `acceptanceUrl` verbatim in- the final reply, and add `roundUrl` verbatim when it is non-null.+ for the stable acceptance page, which opens on the latest round. Copy+ `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 theconfigured server, including self-hosted installations. See[Final handoff](../SKILL.md#final-handoff-mandatory).diff --git a/.agents/skills/acceptance/surfaces/web.md b/.agents/skills/acceptance/surfaces/web.mdindex 9f48bc31caf..057a2b7a6a8 100644--- a/.agents/skills/acceptance/surfaces/web.md+++ b/.agents/skills/acceptance/surfaces/web.md@@ -20,7 +20,8 @@ on the desktop shell or is fully provable through backend/CLI output.when authentication must survive browser restarts.```bash-SESSION=app+SESSION=app-<run-id> # unique per run; parallel runs must not share one+export AGENT_BROWSER_IDLE_TIMEOUT_MS=1800000 # backstop: daemon exits after 30 idle minutesagent-browser --session $SESSION open "http://localhost:3000/"agent-browser --session $SESSION snapshot -i# interact via refs, then capture@@ -64,6 +65,23 @@ proves frontend behavior, not backend changes.dialog) β drop to Computer Use for that step, then return:[../references/computer-use.md](../references/computer-use.md).+## Teardown β close the session you opened {#web-teardown}++Every named `--session` starts a background daemon with its own browser that+keeps running after your process exits. Nothing reaps it: a run that ends+without closing leaks a full headless browser (hundreds of MB to over 1 GB per+session), and unique per-run session names make the leak grow by one browser+every run.++```bash+agent-browser --session $SESSION close+```++Close only the sessions this run opened. Never `close --all` or+`pkill -f agent-browser` as routine cleanup β that kills sibling runs'+browsers mid-capture. Keep `AGENT_BROWSER_IDLE_TIMEOUT_MS` set so a run that+crashes before teardown still releases its browser.+## Boundaries- **Provenance:** tag artifacts captured by `agent-browser` as