Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

docs(verify): add the verify-linger acceptance skill for coding Agents

jeffrey4057e173626d
diff --git a/.agents/skills/verify-linger/SKILL.md b/.agents/skills/verify-linger/SKILL.md
new file mode 100644
index 00000000..0ddec590
--- /dev/null
+++ b/.agents/skills/verify-linger/SKILL.md
@@ -0,0 +1,235 @@
+---
+name: verify-linger
+description: Verify Linger user journeys with existing automatic tests, natural-language scenarios, and retained evidence. Use after behavior changes, to reproduce a workflow, or for core product acceptance. The default helper runs an isolated Document proof; Agent, model, supplier, and audio journeys require their own dependencies.
+---
+
+# Verify Linger
+
+Read [the feature map](features/README.md), then the affected journey.
+The map contains user goals, prerequisites, expected outcomes, evidence, and automatic checks to reuse.
+Keep stable product goals while verifying entry paths against the selected revision.
+Run from the repository root. This skill is for agents; product capability documentation remains in `docs/` and each app's `AGENTS.md`.
+
+## Launch
+
+Use Node `>=26.5.0 <27`, pnpm `11.7.0`, Go from `apps/teamhub/go.mod`, Docker Compose, Chromium, `curl`, and `ss` or `lsof`. The helper uses `flock` when available and a checkout-local directory lock otherwise. Check both `node --version` and `pnpm exec node --version`; version-manager shims can select different Node versions. Install the locked dependencies and browser once:
+
+```bash
+pnpm install --frozen-lockfile
+pnpm exec playwright install chromium
+```
+
+Run the complete local Document proof:
+
+```bash
+.agents/skills/verify-linger/scripts/verify.sh
+```
+
+The executable prints a unique absolute evidence directory. [The config](playwright.config.ts) reuses [the repository's real-service config](../../../e2e/playwright.room-document.config.ts) with its working directory fixed to the repository root. Playwright builds and serves production Web assets, then starts TeamHub, Document Runtime, and a disposable PostgreSQL Compose project. It waits for Web and control `/healthz`; the test runs Doctor before UI actions. It shuts these services down after success or failure. No root `.env` or production credentials are required.
+
+Default loopback ports are Web `23008`, TeamHub `28089`, control `28088`, and Document Runtime `24328`. PostgreSQL gets a dynamic port. The seeded disposable login is `[email protected]` with password `teamhub-dev-alice`. The control service prepares a Room and native Document before the proof; it does not perform the edit under test.
+
+The helper locks one run per checkout because builds share checkout-local assets and caches. Parallel work requires separate worktrees and four distinct `PLAYWRIGHT_ROOM_DOCUMENT_{WEB,TEAMHUB,CONTROL,RUNTIME}_PORT` values. The helper checks all four ports before launch and disables reuse. An occupied port is a blocker, not permission to drive its owner. Caller-provided `TEST_DATABASE_URL`, `PLAYWRIGHT_SKIP_WEB_SERVER=1`, and prebuilt `ROOM_DOCUMENT_E2E_*_BINARY` overrides are rejected.
+
+If Vite reports `ENOSPC` for file watchers, confirm the failed run exited and its ports are free, then use process-local polling:
+
+```bash
+CHOKIDAR_USEPOLLING=1 CHOKIDAR_INTERVAL=1000 \
+ .agents/skills/verify-linger/scripts/verify.sh
+```
+
+The ordinary full development command is `pnpm dev`, but it prepares configured databases and starts additional services. This proof only needs the repository's isolated E2E stack.
+
+The launcher forces `TEAMHUB_TEST_DATABASE=isolated`, even when the caller inherited
+`shared`. It never reuses the development database. The selected mode is recorded
+in `source.txt` beside the submitted revision and ports.
+
+### Remote acceptance when local resources are limited
+
+Build and run the same pinned source on the authorized test host. Use a distinct
+Compose project, database, volumes and available ports. Record the dirty patch,
+image IDs and remote directory. Do not update a colleague's checkout or reuse a
+shared acceptance database. Keep credentials in private files outside Git.
+
+The existing `verify.sh` owns a disposable local stack. It does not attach to an
+arbitrary remote URL. For an already deployed remote instance, follow the feature
+map through its actual UI and supported APIs. Run automatic suites on the remote
+source checkout with their own disposable data. Report these as separate proofs.
+
+Check Web login, Document WebSocket persistence and a fresh browser read. For
+Agent execution, configure both `AGENT_RUNNER_PUBLIC_GATEWAY_URL` and
+`TEAMHUB_CLI_BASE_URL` with addresses reachable from the isolated Computer.
+The CLI origin must serve `/api/agent/v1/`; the repository's Web static host only
+proxies browser `/v0/` routes. Use the deployment's Agent API route or an owned
+TeamHub listener. A loopback listener works only for a Computer on that host.
+Install the complete source-built Computer bundle, including `cli/`, `daemon/`
+and `runtime/`; a standalone daemon is insufficient. Keep its Runtime home and
+workspace separate from existing Computers. An online Computer or successful Run
+is not proof that the requested message or file was delivered.
+
+On Linux, use a process-local `umask 077` for private-state tests. Do not change
+shared directory permissions to repair a test fixture. Record resource ownership
+and teardown; retain a requested remote deployment instead of stopping it as if
+it were the helper's disposable local stack.
+
+## Doctor
+
+While this run owns the services, run this read-only check whenever behavior looks wrong:
+
+```bash
+.agents/skills/verify-linger/scripts/doctor.sh
+```
+
+It requires successful Web, TeamHub, and control health responses plus Runtime readiness. It prints the corresponding listener PIDs. Compare them with the run's process tree and startup log. `source.txt` identifies this checkout's HEAD, dirty paths, tools, and ports; health alone does not establish source identity. The baseline also verifies authentication through the actual login form. A failed login or unexpected Tenant makes the instance unsuitable for that recipe.
+
+## Drive
+
+This skill verifies selected user scenarios; it does not replace the existing
+unit/component, integration, or E2E suites. For a full acceptance run, use the
+existing verification entry points in the [repository guide](../../../AGENTS.md) (`make check`, `make check-e2e`)
+and report their results alongside these scenarios. Count discovered, executed,
+and skipped tests separately. A fixture response, an opt-in live test that skipped,
+or a successful source build is not a real Agent execution result.
+
+[document.spec.ts](document.spec.ts) is the executable baseline: UI login, direct Document link, `Document mode` then `Edit`, typing in `.bn-editor`, waiting for `Saved`, and reopening in a new browser context. Use `--headed` only when a display is available. Interactive inspection uses the same owned stack:
+
+```bash
+.agents/skills/verify-linger/scripts/verify.sh --debug
+```
+
+Extend this focused spec for another real-service recipe, keep `test.step` action labels, and run only the relevant path. Use role/name selectors from the map. Drive links, forms, and editor controls; do not inject sessions, edit fixture state, call internal setters, or use `history.pushState` as the action being proved.
+
+The Connected Apps proof replaces the Composio adapter with a disposable HTTP provider and exercises the Connectors page against real TeamHub and PostgreSQL:
+
+```bash
+VERIFY_CONNECTED_APPS=1 .agents/skills/verify-linger/scripts/verify.sh
+```
+
+The callback origin uses `WEB_PUBLIC_ORIGIN` from the isolated Web port. The proof adds `VERIFY_COMPOSIO_PORT` (default `28087`) to the owned ports, injects a disposable provider key and environment key into TeamHub, and starts TeamHub with `-composio-base-url` pointing at the provider. It runs [apps.spec.ts](apps.spec.ts) against the fixed list of managed apps: filter the Connectors categories, check the mobile layout, connect Linear through the provider popup, reopen it in a fresh session, and disconnect. The page shows only apps listed in its groups, so Google Drive and Facebook stay in the TeamHub catalog without a card. Pending authorization reconciles on the server’s one-minute poll, so allow up to 90 seconds after consent. The provider is an existing adapter-boundary simulation; real OAuth and Agent tool execution are out of scope and the proof must say so in `proof.json`.
+
+The Connector CLI proof uses the same isolated stack plus an actual Computer Use session:
+
+```bash
+connector_proof_dir=$(mktemp -d "${TMPDIR:-/tmp}/teamhub-connector-proof.XXXXXX")
+VERIFY_CONNECTOR_CLI=1 CONNECTOR_CLI_MANUAL=1 \
+ CONNECTOR_CLI_PROOF_CONFIG="$connector_proof_dir/config.json" \
+ .agents/skills/verify-linger/scripts/verify.sh
+```
+
+Build `@linger/teamhub-cli` first (`pnpm --filter @linger/teamhub-cli build`). The fixture creates a one-hour disposable Agent credential in the private configuration directory; do not print or publish it. When the test writes `manual-ready.json` to its evidence directory, use actual Computer Use to open its Room URL, log in as disposable Alice, click the selected app card and complete the simulated provider page. Save the before/after screenshot and accessibility text. Only after visibly confirming the connected card, write `manual-done.json` with the browser/tab IDs and observed result. The test then reruns the real Gmail CLI and reads back a Markdown draft as backend-generated HTML. It also checks that three concurrent authorization retries reuse one card and perform no external business action before authorization.
+
+This recipe does not automate real supplier consent or send real email. `proof.json` must identify the simulated Composio/OAuth boundary; a passing result is not real-account acceptance. The fixture must not perform the CLI action under test.
+
+The Room startup proof uses the same real isolated stack:
+
+```bash
+VERIFY_ROOM_STARTUP=1 .agents/skills/verify-linger/scripts/verify.sh
+```
+
+It runs `apps/web/e2e/room-startup.spec.ts`: real form login and durable messages,
+then holds actual Room-list, Another Me, and voice-policy HTTP responses at the
+browser transport boundary. Chat must remain usable before each response is
+released, and release must preserve composer identity, draft, focus, and scroll.
+It also records cold/cached in-app navigation and reads the sent draft in a fresh
+session. It also holds a real Message acknowledgement while submitting a second message,
+checks that a newer identical draft survives, and opens an Online Document card through
+one combined open request while editor code loads in parallel. The Document is edited,
+saved and read in a fresh browser context. No business response is replaced;
+microphone/Voice Runtime and Agent execution are outside this proof. This stack
+reports voice input as unsupported. After the held policy response is released,
+the unavailable indicator must appear while chat state remains intact.
+
+For production-bundle startup measurements against the same owned real services:
+
+```bash
+VERIFY_ROOM_STARTUP_PRODUCTION=1 .agents/skills/verify-linger/scripts/verify.sh
+```
+
+This builds production assets and serves the production
+static host behind a loopback API/WebSocket proxy. It seeds the existing TeamHub
+directory SQL regression fixture (8 Agents, 110 Skill bindings), opens an ordinary
+Agent Direct Room, and persists 13 messages. Agent registration/execution is not
+under test. The database is disposable; no remote credentials or shared CI state
+are used. Five pairs of HTTP-cold/HTTP-warm full document loads are measured by
+default, with an explicit 150 ms browser network latency and no CPU throttling.
+`ROOM_STARTUP_SAMPLES` and `ROOM_STARTUP_LATENCY_MS` change those conditions.
+
+`startup-measurements.json` records DOM readiness, directory timing, loaded JS,
+long tasks, and panel opening at 0/1/3 seconds after chat readiness (three trials
+each). Browser-frame timestamps separate the first visible shell from ready
+Agent Info content; actual click delay is recorded too. Screenshots and source hashes are retained.
+Performance runs disable video and keep Playwright traces only on failure; do not
+run other builds/tests concurrently with measurements. These are local HTTP/1.1
+reference timings, not CI latency, HTTP/2 equivalence, or production percentiles.
+Compare the same fixture and conditions across builds.
+
+The directory must start before messages finish, closed sidebar code must start
+after chat readiness, and the file editor must have its own lazy chunk, absent
+from startup and Agent Info opening.
+The test also holds a real code response while typing, closing and reopening the
+loading shell; reopening the saved panel must load its code with idle callbacks disabled and
+the real Agent directory response held. An active-peer Direct Room must still
+send through the composer while that response is held; a separate message read
+must find the message exactly once. Releasing the directory must preserve the
+composer, draft and focus. No business response is fabricated.
+
+For the existing send/Document persistence scenarios on production assets, combine
+`VERIFY_ROOM_STARTUP_PRODUCTION=1 VERIFY_ROOM_STARTUP=1` and select the case with
+`-g 'Room sending releases' --trace=on`.
+
+Every Playwright spec in `apps/web/e2e` runs against the real TeamHub and Document Runtime stack; no fixture build exists. UI behavior without a real-stack spec is covered by Web unit tests, which do not prove persistence or Agent execution.
+
+## Evidence
+
+Each run retains `test-results/verify-linger/run.XXXXXX/`:
+
+- `source.txt`, `run.log`, and `exit-code.txt` record source identity, startup/shutdown, and outcome.
+- `source.patch` includes staged and unstaged changes from HEAD; `changed-files.sha256` fingerprints the current changed and untracked files. Deleted paths remain in the patch and are not hashed.
+- `browser/` contains `doctor.txt`, before/saved/reopened screenshots, `reopened.aria.yml`, `proof.json`, the Playwright trace, and video.
+- `report/index.html` links Playwright steps and attachments.
+
+Capture actions and resulting states. For mutations, also capture a second read of the saved value. The baseline uses a fresh browser context so prior IndexedDB and cookies cannot supply the content. Capture public API responses or resulting files when the mapped feature has those side effects. A final screenshot or HTTP 200 alone is insufficient.
+
+Judge Agent output against the requested outcome and expected author.
+For an exact-marker reply, require the exact ordinary message body.
+For free-form output, inspect required facts, attribution and completion rather than identical wording.
+An approval card containing the requested text is not a delivered reply.
+Do not accept a substring match against serialized JSON as message proof.
+Use the persisted message ID to verify its visible body after browser reload.
+File creation, reply delivery, and permission decisions are separate outcomes.
+Record both requested and returned model identities when the gateway exposes them.
+If they differ, report the discrepancy rather than claiming the requested model was verified.
+
+The fixture reset is disposable setup, not feature proof. The baseline uses real TeamHub and Yjs transport, with no mocked business responses. The test database disables fsync and synchronous commits, so this proves application persistence and fresh-session reads, not power-loss recovery. Extra external systems may be mocked only at an existing production adapter boundary, and the report must name that limitation. Inspect actual network/file/ref changes before calling any future dry-run side-effect-free.
+
+Record each mapped entry point as verified, failed, or skipped with its unmet prerequisite. One passing Document link does not verify Owned by Me creation, Room attachment or Document panel navigation, comments, Wiki generation, or Agent execution. Keep evidence private because traces include disposable login/session data; do not commit it.
+
+For additional natural-language journeys, write their results and evidence links in the run's `report.md`.
+During a repair loop, use its existing `round-N/report.md` instead of maintaining a second report.
+Separate documented scenarios, automatic coverage, and scenarios actually executed on this revision.
+When using a temporary probe, retain its exact source and SHA-256 beside the result.
+Describe assertion changes between attempts; a corrected probe still needs execution.
+
+When supplying an external `TEST_DATABASE_URL`, allocate a fresh owned database for each real-service E2E invocation. The Go integration suite clones its control database, but the Document E2E harness seeds and writes the supplied database directly. Do not reuse its persisted records with a new temporary artifact directory. Remove only that invocation's database after teardown.
+
+## Cleanup
+
+Let the Playwright command finish, including its graceful SIGTERM teardown, after every attempt. To stop an interactive run, press Ctrl-C in its terminal and wait for teardown. Kill only a PID that this run started if the normal path fails. Never kill by process name or stop a shared development Compose project.
+
+The existing database wrapper checks resource labels before removing its exact Compose container, volume, and network. The Runtime harness removes its own temporary fixture directories. Inspect `run.log` for the exact `teamhub-test-*` identity and verify those resources are absent with `docker container inspect`, `docker volume inspect`, and `docker network inspect`. Require those lookups to report not found. Verify the four run ports have no remaining listeners:
+
+```bash
+ss -ltnp '( sport = :23008 or sport = :28089 or sport = :28088 or sport = :24328 )'
+```
+
+On macOS without `ss`, inspect each recorded port with
+`lsof -nP -iTCP:<port> -sTCP:LISTEN` instead.
+
+Substitute the recorded ports if overridden. If teardown was interrupted, report the exact remaining resource and use the existing wrapper's label validation before any removal. Cleanup must preserve the evidence directory. Confirm `proof.json`, screenshots, and `trace.zip` still exist after successful cleanup. Failed runs retain diagnostic artifacts even when no proof was reached.
+
+## Helpers
+
+`scripts/verify.sh` allocates evidence and invokes Playwright. It accepts Playwright flags and returns its exit code. `scripts/doctor.sh` performs only GET requests and listener inspection. Both are executable; invoke them as shown above. Config and spec files run through Playwright, not as standalone scripts.
+
+For requested repairs, follow the user's execution roles, edit scope and round limit.
+Keep original failures and revalidate their business outcomes after each repair.
diff --git a/.agents/skills/verify-linger/apps-provider.mjs b/.agents/skills/verify-linger/apps-provider.mjs
new file mode 100644
index 00000000..a9fe9632
--- /dev/null
+++ b/.agents/skills/verify-linger/apps-provider.mjs
@@ -0,0 +1,180 @@
+// Disposable Composio HTTP adapter for the real-TeamHub Apps proof.
+import { createServer } from "node:http";
+const port = Number(process.env.VERIFY_COMPOSIO_PORT ?? 28087);
+const origin = `http://127.0.0.1:${port}`;
+const configs = new Map();
+const connections = new Map();
+const connectorProof = process.env.VERIFY_CONNECTOR_CLI === "1";
+const executions = [];
+const drafts = new Map();
+const proofTools = {
+ GMAIL_FETCH_EMAILS: {
+ type: "object",
+ properties: {
+ query: { type: "string" },
+ max_results: { type: "integer", minimum: 1, maximum: 100 },
+ include_payload: { type: "boolean" },
+ include_spam_trash: { type: "boolean" },
+ page_token: { type: "string" },
+ },
+ additionalProperties: false,
+ },
+ GMAIL_CREATE_EMAIL_DRAFT: {
+ type: "object",
+ properties: {
+ recipient_email: { type: "string" },
+ extra_recipients: { type: "array", items: { type: "string" } },
+ subject: { type: "string" },
+ body: { type: "string" },
+ is_html: { type: "boolean" },
+ },
+ required: ["recipient_email", "subject", "body"],
+ additionalProperties: false,
+ },
+ GMAIL_GET_DRAFT: {
+ type: "object",
+ properties: { draft_id: { type: "string" }, format: { type: "string" } },
+ required: ["draft_id"],
+ additionalProperties: false,
+ },
+};
+const server = createServer(async (req, res) => {
+ const url = new URL(req.url, origin);
+ const send = (body, code = 200) => {
+ res.writeHead(code, { "Content-Type": "application/json" });
+ res.end(JSON.stringify(body));
+ };
+ let raw = "";
+ for await (const chunk of req) raw += chunk;
+ const input = raw ? JSON.parse(raw) : {};
+ if (url.pathname === "/healthz") return send({ ok: true });
+ if (connectorProof && url.pathname === "/proof/state")
+ return send({ executions, drafts: [...drafts.values()] });
+ if (connectorProof && url.pathname === "/api/v3.1/tools/execute/proxy") {
+ if (input.endpoint === "/gmail/v1/users/me/profile")
+ return send({
+ status: 200,
+ data: { emailAddress: "[email protected]", historyId: "100" },
+ headers: {},
+ });
+ return send({ status: 404, data: {}, headers: {} });
+ }
+ if (connectorProof && url.pathname.startsWith("/api/v3/tools/")) {
+ const slug = url.pathname.split("/").at(-1);
+ const inputSchema = proofTools[slug];
+ if (!inputSchema) return send({}, 404);
+ return send({
+ slug,
+ name: slug,
+ description: "Disposable connector proof binding",
+ version: "20261015_00",
+ is_deprecated: false,
+ toolkit: { slug: "gmail" },
+ input_parameters: inputSchema,
+ });
+ }
+ if (connectorProof && url.pathname.startsWith("/api/v3.1/tools/execute/")) {
+ const slug = url.pathname.split("/").at(-1),
+ args = input.arguments;
+ const connection = connections.get(input.connected_account_id);
+ if (!connection || connection.status !== "ACTIVE") return send({}, 403);
+ executions.push({ slug, arguments: args });
+ if (slug === "GMAIL_FETCH_EMAILS")
+ return send({
+ successful: true,
+ data: {
+ messages: [
+ {
+ messageId: "proof_message",
+ threadId: "proof_thread",
+ subject: "Connector CLI browser proof",
+ sender: "Alice <[email protected]>",
+ messageTimestamp: "2026-10-16T10:00:00Z",
+ labelIds: ["INBOX", "UNREAD"],
+ },
+ ],
+ },
+ });
+ if (slug === "GMAIL_CREATE_EMAIL_DRAFT") {
+ const id = `proof_draft_${drafts.size + 1}`;
+ const draft = {
+ id,
+ message: {
+ messageId: `${id}_message`,
+ threadId: `${id}_thread`,
+ to: args.recipient_email,
+ subject: args.subject,
+ payload: {
+ mimeType: args.is_html ? "text/html" : "text/plain",
+ headers: [
+ { name: "To", value: args.recipient_email },
+ { name: "Subject", value: args.subject },
+ ],
+ body: { data: Buffer.from(args.body).toString("base64url") },
+ },
+ },
+ };
+ drafts.set(id, draft);
+ return send({ successful: true, data: draft });
+ }
+ if (slug === "GMAIL_GET_DRAFT" && drafts.has(args.draft_id))
+ return send({ successful: true, data: drafts.get(args.draft_id) });
+ return send({ successful: false, data: {} });
+ }
+ if (url.pathname === "/api/v3.1/auth_configs") {
+ if (req.method === "GET") return send({ items: [...configs.values()] });
+ const config = {
+ id: `ac_${configs.size + 1}`,
+ name: input.auth_config.name,
+ auth_scheme: input.auth_config.auth_scheme,
+ is_composio_managed: true,
+ status: "ENABLED",
+ toolkit: input.toolkit,
+ };
+ configs.set(config.id, config);
+ return send({ toolkit: input.toolkit, auth_config: config });
+ }
+ if (url.pathname === "/api/v3.1/connected_accounts/link") {
+ const id = `ca_${connections.size + 1}`;
+ connections.set(id, { ...input, id, status: "INITIATED" });
+ return send({
+ connected_account_id: id,
+ redirect_url: `${origin}/authorize/${id}`,
+ expires_at: new Date(Date.now() + 3600000).toISOString(),
+ });
+ }
+ if (url.pathname.startsWith("/authorize/")) {
+ const connection = connections.get(url.pathname.split("/").at(-1));
+ if (!connection) return send({}, 404);
+ if (req.method === "POST") {
+ connection.status = "ACTIVE";
+ res.writeHead(303, { Location: connection.callback_url });
+ return res.end();
+ }
+ res.writeHead(200, { "Content-Type": "text/html" });
+ return res.end(
+ `<html><body><h1>Authorize test account</h1><p>Disposable provider simulation</p><form method="post"><button>Authorize ${connectorProof ? "Gmail" : "Linear"}</button></form></body></html>`,
+ );
+ }
+ if (url.pathname.startsWith("/api/v3.1/connected_accounts/")) {
+ const connection = connections.get(url.pathname.split("/").at(-1));
+ if (!connection) return send({}, 404);
+ if (req.method === "DELETE") {
+ connection.status = "REVOKED";
+ return send({ success: true });
+ }
+ const config = configs.get(connection.auth_config_id);
+ return send({
+ status: connection.status,
+ user_id: connection.user_id,
+ toolkit: config.toolkit,
+ auth_config: { id: config.id },
+ });
+ }
+ return send({}, 404);
+});
+server.listen(port, "127.0.0.1");
+process.on("SIGTERM", () => {
+ server.closeAllConnections();
+ server.close();
+});
diff --git a/.agents/skills/verify-linger/apps.spec.ts b/.agents/skills/verify-linger/apps.spec.ts
new file mode 100644
index 00000000..5dc21a8f
--- /dev/null
+++ b/.agents/skills/verify-linger/apps.spec.ts
@@ -0,0 +1,178 @@
+import { expect, test, type Page } from "@playwright/test";
+import { execFileSync } from "node:child_process";
+import { writeFile } from "node:fs/promises";
+import { fileURLToPath } from "node:url";
+import { RoomDocumentE2EHarnessClient } from "../../../apps/web/e2e/room-document-e2e-harness-client";
+
+async function login(page: Page) {
+ await page.goto("/login");
+ await page.getByLabel("Email").fill("[email protected]");
+ await page.getByLabel("Password", { exact: true }).fill("teamhub-dev-alice");
+ await page.getByRole("button", { name: "Sign in", exact: true }).click();
+ await expect(page).toHaveURL(/\/t\/[^/]+\//);
+}
+
+function tenantAppsUrl(page: Page, query = "") {
+ const match = /^(.*\/t\/[^/]+)\//.exec(new URL(page.url()).pathname);
+ if (!match) throw new Error(`Expected a tenant route, got ${page.url()}`);
+ return `${match[1]}/apps${query}`;
+}
+
+test("apps: browse connectors, authorize, reopen and disconnect", async ({
+ page,
+ browser,
+ request,
+ baseURL,
+}, info) => {
+ // Includes the server's one-minute pending-authorization poll.
+ test.setTimeout(180_000);
+ await test.step("Doctor and disposable account setup", async () => {
+ await writeFile(
+ info.outputPath("doctor.txt"),
+ execFileSync(
+ fileURLToPath(new URL("scripts/doctor.sh", import.meta.url)),
+ { encoding: "utf8" },
+ ),
+ );
+ await new RoomDocumentE2EHarnessClient(request).reset();
+ await login(page);
+ const response = await page.request.get("/v0/external-apps");
+ expect(response.ok()).toBe(true);
+ const { apps } = await response.json();
+ expect(
+ apps.find((app: { key: string }) => app.key === "linear"),
+ ).toMatchObject({ availability: "available" });
+ });
+ await test.step("Browse connector categories", async () => {
+ await page.goto(tenantAppsUrl(page));
+ const categories = page.getByRole("group", {
+ name: "Connector categories",
+ });
+ await expect(
+ categories.getByRole("button", { name: "All", exact: true }),
+ ).toHaveAttribute("aria-pressed", "true");
+ await expect(
+ page.getByRole("heading", { name: "Productivity", exact: true }),
+ ).toBeVisible();
+ await expect(
+ page.getByRole("button", { name: "Gmail", exact: true }),
+ ).toBeVisible();
+ await page.mouse.move(0, 0);
+ await page.screenshot({ path: info.outputPath("connectors.png") });
+ await categories
+ .getByRole("button", { name: "Productivity", exact: true })
+ .click();
+ await expect(
+ page.getByRole("button", { name: "Linear", exact: true }),
+ ).toBeVisible();
+ await expect(
+ page.getByRole("button", { name: "Gmail", exact: true }),
+ ).toHaveCount(0);
+ await categories
+ .getByRole("button", { name: "Connected", exact: true })
+ .click();
+ await expect(
+ page.getByText("No connected apps yet.", { exact: true }),
+ ).toBeVisible();
+ await page.setViewportSize({ width: 390, height: 844 });
+ await categories.getByRole("button", { name: "All", exact: true }).click();
+ await expect(
+ page.getByRole("button", { name: "Linear", exact: true }),
+ ).toBeVisible();
+ await expect(page.locator("body")).toHaveJSProperty("scrollWidth", 390);
+ await page.screenshot({ path: info.outputPath("connectors-mobile.png") });
+ await page.setViewportSize({ width: 1280, height: 720 });
+ });
+ await test.step("Authorize through the provider popup", async () => {
+ const popupPromise = page.waitForEvent("popup");
+ await page
+ .getByRole("button", { name: "Connect Linear", exact: true })
+ .click();
+ const popup = await popupPromise;
+ const popupClosed = popup.waitForEvent("close");
+ await popup.getByRole("button", { name: "Authorize Linear" }).click();
+ await popupClosed;
+ // The popup closes itself after authorization. TeamHub reconciles the
+ // pending connection on its scheduled worker, which snoozes pending
+ // authorization for one minute; a returning user observes the result on
+ // the next page load.
+ await expect(async () => {
+ await page.reload();
+ await page
+ .getByRole("group", { name: "Connector categories" })
+ .getByRole("button", { name: "Connected", exact: true })
+ .click();
+ await expect(
+ page.getByRole("button", { name: "Disconnect Linear", exact: true }),
+ ).toBeVisible({ timeout: 5000 });
+ }).toPass({ timeout: 90_000, intervals: [2000] });
+ await page.screenshot({ path: info.outputPath("connected.png") });
+ });
+ await test.step("Read persisted connection in a new session and disconnect", async () => {
+ const context = await browser.newContext({ baseURL });
+ try {
+ const fresh = await context.newPage();
+ await login(fresh);
+ await fresh.goto(tenantAppsUrl(fresh));
+ await fresh.getByRole("button", { name: "Linear", exact: true }).click();
+ const manage = fresh.getByRole("dialog", { name: "Linear", exact: true });
+ // Linear has no confirmed account identity, so TeamHub labels the
+ // connection with the app name.
+ await expect(
+ manage.getByText("Linear account", { exact: true }),
+ ).toBeVisible();
+ await fresh.screenshot({ path: info.outputPath("reopened.png") });
+ await manage
+ .getByRole("button", {
+ name: "Disconnect Linear account",
+ exact: true,
+ })
+ .click();
+ const dialog = fresh.getByRole("dialog", {
+ name: "Disconnect account?",
+ });
+ await dialog
+ .getByRole("button", { name: "Disconnect", exact: true })
+ .click();
+ const closeConfirmation = dialog
+ .getByRole("button", { name: "Close", exact: true })
+ .last();
+ await expect(closeConfirmation).toBeVisible();
+ await closeConfirmation.click();
+ await expect(
+ manage.getByRole("button", {
+ name: "Disconnect Linear account",
+ exact: true,
+ }),
+ ).toHaveCount(0);
+ await fresh.reload();
+ await expect(
+ fresh
+ .getByRole("dialog", { name: "Linear", exact: true })
+ .getByRole("button", {
+ name: "Connect Linear",
+ exact: true,
+ }),
+ ).toBeVisible();
+ await fresh.screenshot({ path: info.outputPath("disconnected.png") });
+ await writeFile(
+ info.outputPath("proof.json"),
+ JSON.stringify(
+ {
+ feature: "managed-apps",
+ realTeamHub: true,
+ realPostgres: true,
+ provider:
+ "Composio HTTP simulation; real OAuth and Agent execution not verified",
+ freshSession: true,
+ disconnectedAfterReload: true,
+ },
+ null,
+ 2,
+ ),
+ );
+ } finally {
+ await context.close();
+ }
+ });
+});
diff --git a/.agents/skills/verify-linger/connector-cli.spec.ts b/.agents/skills/verify-linger/connector-cli.spec.ts
new file mode 100644
index 00000000..4b4818ba
--- /dev/null
+++ b/.agents/skills/verify-linger/connector-cli.spec.ts
@@ -0,0 +1,147 @@
+import { test, expect } from "@playwright/test";
+import { execFile } from "node:child_process";
+import { promisify } from "node:util";
+import { readFile, writeFile, access } from "node:fs/promises";
+import path from "node:path";
+import { RoomDocumentE2EHarnessClient } from "../../../apps/web/e2e/room-document-e2e-harness-client";
+
+const exec = promisify(execFile);
+const evidence = process.env.VERIFY_LINGER_EVIDENCE!;
+const config = process.env.CONNECTOR_CLI_PROOF_CONFIG!;
+const provider = `http://127.0.0.1:${process.env.VERIFY_COMPOSIO_PORT ?? "28087"}`;
+const web = `http://127.0.0.1:${process.env.PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT ?? "23008"}`;
+const jsonLine = (output: string) =>
+ JSON.parse(output.split("\n").find((line) => line.startsWith("{")) ?? "null");
+
+test("connector CLI: Computer Use account authorization and persisted write", async ({
+ request,
+}) => {
+ test.setTimeout(20 * 60 * 1000);
+ if (process.env.CONNECTOR_CLI_MANUAL !== "1")
+ throw new Error(
+ "This proof requires actual Computer Use; set CONNECTOR_CLI_MANUAL=1",
+ );
+ const fixture = await new RoomDocumentE2EHarnessClient(request).reset();
+ const cli = async (args: string[]) => {
+ try {
+ const result = await exec(
+ process.execPath,
+ [path.resolve("apps/teamhub-cli/dist/teamhub.js"), ...args, "--json"],
+ {
+ cwd: process.cwd(),
+ env: {
+ ...process.env,
+ TEAMHUB_CONFIG: config,
+ TEAMHUB_STATE_ROOT: evidence,
+ },
+ maxBuffer: 8 << 20,
+ },
+ );
+ return { code: 0, stdout: result.stdout, stderr: result.stderr };
+ } catch (error) {
+ const failure = error as { code: number; stdout: string; stderr: string };
+ return {
+ code: failure.code,
+ stdout: failure.stdout,
+ stderr: failure.stderr,
+ };
+ }
+ };
+ const args = ["gmail", "list", "--account", "[email protected]"];
+ const first = await cli(args);
+ expect(first.code, first.stderr).toBe(4);
+ const firstError = jsonLine(first.stderr).error;
+ expect(firstError.code).toBe("authorization_required");
+ const repeats = await Promise.all([cli(args), cli(args), cli(args)]);
+ for (const repeat of repeats) {
+ expect(repeat.code, repeat.stderr).toBe(4);
+ expect(jsonLine(repeat.stderr).error.details.message_id).toBe(
+ firstError.details.message_id,
+ );
+ }
+ expect(
+ (await (await fetch(`${provider}/proof/state`)).json()).executions,
+ ).toEqual([]);
+ await writeFile(
+ path.join(evidence, "manual-ready.json"),
+ JSON.stringify(
+ {
+ url: `${web}/t/${fixture.tenant_id}/rooms/${fixture.room_id}/chat`,
+ cardMessageId: firstError.details.message_id,
+ instruction: `Use actual Computer Use to log in as disposable Alice, open this Room, click Connect, complete the disposable Gmail provider page, and verify the connected card. Then create manual-done.json in this evidence directory.`,
+ },
+ null,
+ 2,
+ ),
+ );
+ console.log(`COMPUTER_USE_READY ${evidence}/manual-ready.json`);
+ await expect
+ .poll(
+ async () =>
+ access(path.join(evidence, "manual-done.json")).then(
+ () => true,
+ () => false,
+ ),
+ { timeout: 17 * 60 * 1000, intervals: [1000] },
+ )
+ .toBe(true);
+ const listed = await cli(args);
+ expect(listed.code, listed.stderr).toBe(0);
+ expect(JSON.parse(listed.stdout)).toMatchObject({
+ account: { identityLabel: "[email protected]" },
+ messages: [{ messageId: "proof_message" }],
+ });
+ const drafted = await cli([
+ "gmail",
+ "draft",
+ "--account",
+ "--to",
+ "--subject",
+ "Computer Use Markdown proof",
+ "--markdown",
+ "--content",
+ "# Verified\n\n**Backend HTML** conversion.",
+ ]);
+ expect(drafted.code, drafted.stderr).toBe(0);
+ const draft = JSON.parse(drafted.stdout).result;
+ expect(draft.action).toBe("drafted");
+ const read = await cli([
+ "gmail",
+ "read",
+ "--account",
+ "--draft",
+ draft.draftId,
+ ]);
+ expect(read.code, read.stderr).toBe(0);
+ expect(JSON.parse(read.stdout).draft.mail.bodyHtml).toContain(
+ "<h1>Verified</h1>",
+ );
+ const state = await (await fetch(`${provider}/proof/state`)).json();
+ expect(
+ state.executions.filter(
+ (item: { slug: string }) => item.slug === "GMAIL_CREATE_EMAIL_DRAFT",
+ ),
+ ).toHaveLength(1);
+ await writeFile(
+ path.join(evidence, "proof.json"),
+ JSON.stringify(
+ {
+ source: "current worktree CLI and real isolated TeamHub/PostgreSQL/Web",
+ computerUse: JSON.parse(
+ await readFile(path.join(evidence, "manual-done.json"), "utf8"),
+ ),
+ accountAuthorization: firstError.details,
+ list: JSON.parse(listed.stdout),
+ draft: JSON.parse(read.stdout),
+ limitation:
+ "Composio HTTP adapter and provider OAuth are disposable simulations. No real email was sent.",
+ status: "passed",
+ },
+ null,
+ 2,
+ ),
+ );
+});
diff --git a/.agents/skills/verify-linger/document.spec.ts b/.agents/skills/verify-linger/document.spec.ts
new file mode 100644
index 00000000..b530b0d7
--- /dev/null
+++ b/.agents/skills/verify-linger/document.spec.ts
@@ -0,0 +1,110 @@
+import { expect, test } from "@playwright/test";
+import { execFileSync } from "node:child_process";
+import { writeFile } from "node:fs/promises";
+import { fileURLToPath } from "node:url";
+
+import { RoomDocumentE2EHarnessClient } from "../../../apps/web/e2e/room-document-e2e-harness-client";
+
+test("documents: edit through UI and reopen in a fresh browser session", async ({
+ page,
+ browser,
+ request,
+ baseURL,
+}, testInfo) => {
+ await test.step("Doctor: check the managed services before driving", async () => {
+ const output = execFileSync(
+ fileURLToPath(new URL("scripts/doctor.sh", import.meta.url)),
+ { encoding: "utf8" },
+ );
+ await writeFile(testInfo.outputPath("doctor.txt"), output);
+ });
+ const harness = new RoomDocumentE2EHarnessClient(request);
+ const fixture = await harness.reset();
+ const documentUrl = `/t/${fixture.tenant_id}/documents/${fixture.document_id}`;
+ const marker = `Verification ${Date.now()}`;
+
+ await test.step("Sign in through the user form", async () => {
+ await page.goto("/login");
+ await page.getByLabel("Email").fill("[email protected]");
+ await page
+ .getByLabel("Password", { exact: true })
+ .fill("teamhub-dev-alice");
+ await page.getByRole("button", { name: "Sign in", exact: true }).click();
+ await expect(page).toHaveURL(/\/t\/[^/]+\//);
+ });
+ await test.step("Open the Document link and type in the editor", async () => {
+ await page.goto(documentUrl);
+ const surface = page.getByLabel("Room Document editor");
+ await expect(surface).toBeVisible({ timeout: 30_000 });
+ await page.screenshot({
+ path: testInfo.outputPath("before.png"),
+ fullPage: true,
+ });
+ await page
+ .getByRole("button", { name: "Document mode", exact: true })
+ .click();
+ await page.getByRole("menuitem", { name: /\bEdit$/ }).click();
+ await expect(surface).toHaveAttribute("data-editable", "true");
+ const editor = surface.locator(".bn-editor");
+ await editor.click();
+ await editor.press("ControlOrMeta+End");
+ await editor.pressSequentially(marker);
+ await expect(editor).toContainText(marker);
+ await expect(
+ page.locator("[data-room-document-save-status]"),
+ ).toHaveAttribute("data-room-document-save-status", "Saved", {
+ timeout: 30_000,
+ });
+ await expect
+ .poll(async () => (await harness.state()).persisted_seq)
+ .toBeGreaterThan(0);
+ await page.screenshot({
+ path: testInfo.outputPath("saved.png"),
+ fullPage: true,
+ });
+ });
+ await test.step("Read persisted content from a fresh browser context", async () => {
+ const context = await browser.newContext({ baseURL });
+ try {
+ const reopened = await context.newPage();
+ await reopened.goto("/login");
+ await reopened.getByLabel("Email").fill("[email protected]");
+ await reopened
+ .getByLabel("Password", { exact: true })
+ .fill("teamhub-dev-alice");
+ await reopened
+ .getByRole("button", { name: "Sign in", exact: true })
+ .click();
+ await expect(reopened).toHaveURL(/\/t\/[^/]+\//);
+ await reopened.goto(documentUrl);
+ await expect(reopened.getByLabel("Room Document editor")).toContainText(
+ marker,
+ { timeout: 30_000 },
+ );
+ await reopened.screenshot({
+ path: testInfo.outputPath("reopened.png"),
+ fullPage: true,
+ });
+ await writeFile(
+ testInfo.outputPath("reopened.aria.yml"),
+ await reopened.locator("body").ariaSnapshot(),
+ );
+ await writeFile(
+ testInfo.outputPath("proof.json"),
+ JSON.stringify(
+ {
+ feature: "documents",
+ entry: "direct Document link",
+ documentUrl,
+ marker,
+ freshContext: true,
+ },
+ null,
+ 2,
+ ),
+ );
+ } finally {
+ await context.close();
+ }
+ });
+});
diff --git a/.agents/skills/verify-linger/features/README.md b/.agents/skills/verify-linger/features/README.md
new file mode 100644
index 00000000..d9e588bf
--- /dev/null
+++ b/.agents/skills/verify-linger/features/README.md
@@ -0,0 +1,188 @@
+# Linger verification map
+
+These are natural-language acceptance recipes for a coding Agent acting as the verifier.
+The product Agent is the Room member whose behavior is under test.
+Each recipe supplies a user goal, prerequisites, observable outcomes, evidence, and existing checks to reuse.
+An individual recipe can serve as a `case.md`; maintain its canonical version here.
+
+Read [launch and evidence](../SKILL.md) before execution.
+The [product docs](../../../../docs/) and each app's `AGENTS.md` own supported behavior; this map owns how to verify it.
+Recipes are definitions, not execution results or claims about an uncommitted refactor.
+
+## Choose the user journey
+
+| User journey | Recipe | Existing proof to reuse | Additional Agent verification |
+| -------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
+| Sign in, create a Room, discuss and share | [Rooms](rooms.md#room-collaboration) | Login, creation, Thread and sharing E2E | A coherent journey with real saved state and access boundaries |
+| Connect a Computer and obtain an Agent reply | [Agent entry](rooms.md#agent-entry-and-response) | Admission and create-menu unit tests; Runner process tests | Actual onboarding, Runtime, model and delivered reply |
+| Get Another Me on the first connection | [Another Me](rooms.md#another-me-on-the-first-computer-connection) | Online-hook and Another Me integration tests | Real pairing creates one Another Me and starter set, then replies |
+| Move an Agent to a second Computer | [Move](rooms.md#move-an-agent-to-a-second-computer) | None end to end | First requests after the move each get one reply; verify retained history |
+| Install, upgrade and remove a Computer | [Local Computer](local-computer.md#install-and-lifecycle) | Runner smoke layers, installer and Windows native tests | Real installer, enrollment, deletion guards and credential revocation |
+| Install and pair on Windows | [Windows](local-computer.md#windows-install-pairing-and-background-run) | Windows Go tests and `check-local-computer-windows.ps1` | Elevated refusal, pairing, run after terminal close, state after reboot |
+| Let an Agent use the desktop and a browser | [Desktop and browser tools](local-computer.md#desktop-and-browser-tools) | Opt-in `Test*Live` Daemon probes; dialog unit tests | Model-driven task result; connect and disconnect the user's Chrome |
+| Stop, reconnect or recover work | [Execution lifecycle](rooms.md#execution-lifecycle) | Runner smoke/soak and process tests | Real-model interruption and visible recovery without duplicate effects |
+| Stop one Agent's Run | [Stop by Run ID](rooms.md#run-status-and-stop-by-run-id) | Run controls and run-status transport unit tests | Real Run reaches its terminal state; other Runs continue |
+| Edit and collaborate on a Document | [Documents](documents.md#edit-save-and-collaborate) | Isolated Document proof and real-service E2E | Relevant entry paths, permissions and observed interaction quality |
+| Ask an Agent to produce a usable file | [File delivery](documents.md#agent-file-delivery) | CLI, Document and attachment tests | Read source, execute tools, publish, open and inspect the actual result |
+| Edit a Document; notify an Agent by sharing | [Document access](documents.md#agent-document-access-and-share-notices) | Document authority, share and list tests | Confirm saved edit, direct Room wake, shared filter, and unchanged access after revocation |
+| Share and revoke an anonymous Document link | [Anonymous links](documents.md#anonymous-document-links-and-revocation) | Real-service Document assets E2E | Signed-out read, read-only native content and fresh rejection after revocation |
+| Organize files and find them again | [Library and search](library.md) | Library, preview and search E2E | Cross-entry identity, representative files and authorized search results |
+| Delegate a Task and inspect its result | [Tasks](tasks.md#managed-task-and-work-item) | Typed-card, Dashboard and TeamHub tests | Direct delegation through execution to a usable Task result |
+| Read and preserve shared Task files | [Shared Task files](tasks.md#shared-task-files-on-a-local-computer) | Computer projection and recovery tests | Actual executor write, Meta read, restart persistence and scope |
+| Approve or deny a tool action | [Permissions](tasks.md#runtime-permission-decisions) | Permission review integration and card tests | Actual decision, exact action and resulting business effect |
+| Connect an app and use its tools | [Connected Apps](tasks.md#connected-apps-and-external-tools) | Apps recipe with simulated supplier; CLI tests | Real account, Agent grant, supplier result and revocation |
+| Use knowledge across questions and Rooms | [Wiki and memory](wiki.md) | Memory full-flow run; Wiki UI, SQL, queue and memory tests; answer benchmark | Generated content, attribution and actual memory use |
+| Co-edit a canvas and deliver its content | [Canvas](documents.md#canvas-and-human-edits) | Document conflict and canvas UI tests | Preserve Human edits and verify the requested destination |
+
+For a full core acceptance, select the journeys exposed by the target deployment.
+For a routine change, select affected journeys and their shared boundaries.
+Record disabled capabilities and missing dependencies instead of silently omitting them.
+Also exercise [personal meeting visibility](library.md#meetings-and-personal-visibility) and [Pocket Notes/Profile](wiki.md#pocket-notes-and-current-profile) when available.
+Voice and proactive behavior have additional recipes below. Supplier events require their own authorized connections; private-chat proactive review is enabled by default.
+
+## Capability coverage and entry points
+
+Use this table to reconcile the map with the capabilities in `docs/` and the [README](../../../../README.md).
+A recipe row is a test definition, not a passing result. Mark each selected variant in the run report.
+
+| Product capability | Required recipe and important branches | Conditional dependency |
+| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
+| Room collaboration | [Rooms](rooms.md): account/session/settings, Room/Thread, drafts, activity, shares, membership denial | A second Human for access comparisons |
+| Document and Workspace | [Documents](documents.md) and [Library](library.md): editing, History, comments, permissions, previews, folders and cross-entry identity | Document Runtime; real Agent for comment responses |
+| Work Items and Tasks | [Tasks](tasks.md): ordinary responsibility changes, Dashboard, direct Task delegation, action approvals, state/resumption, Meta delivery, shared files, Routine pause/delete | Real Computer and model for execution |
+| Agent memory | [Agent memory](wiki.md#agent-memory-across-rooms): extraction, publication, fresh Room use, correction, isolation | The Agent's online Computer with signed-in Codex or Claude Code; no model gateway |
+| Agent execution | [Lifecycle](rooms.md#execution-lifecycle): initialization, queued input, prepared Context update, Stop, interrupted Run and next request | Real Runtime; distinguish idle reconnect from interruption |
+| Runtime and Local Computer | [Local Computer](local-computer.md), [Agent entry](rooms.md#agent-entry-and-response) and [configuration](rooms.md#agent-configuration-skills-and-deletion): install, enroll, offline, removal/revocation, busy guards | Run native platform checks separately on macOS/Linux/Windows |
+| Files, Skill, CLI and MCP | [File delivery](documents.md#agent-file-delivery), [Skills](rooms.md#agent-configuration-skills-and-deletion), [Connected Apps](tasks.md#connected-apps-and-external-tools) | Exact Skill binding; authorized supplier for external effects |
+| Personal Wiki | [Wiki](wiki.md): source admission, nightly and meeting refresh, preview, publication, grounded and unanswered questions, failed refresh ends, answer benchmark, Notes/Profile | Wiki worker, model, Another Me; a nightly, meeting, mailbox or operator refresh trigger |
+| Hardware Voice | [Voice](#voice-input-and-recording) and [meetings](library.md#meeting-archive-separation): recording, transcription, Ask → Agent → Task, interruption/recovery | LiveKit, ASR, microphone/device, configured runtime |
+| Voice Mode | [Voice](#voice-input-and-recording): continuous dictation, endpointing, one message per turn, stop/restart | Live media and speech provider; separate from meeting recording |
+| Global search | [Search](library.md#search-and-return-to-context): message/Thread, Document body, Agent, Room, inaccessible/deleted objects | Current searchable content and second identity |
+| Canvas | [Canvas](documents.md#canvas-and-human-edits): co-edit, Human text preservation, images, draft/send and supplier failure | Gmail test account/object for actual external delivery |
+| Proactive reminders | [Proactive reminders](#routines-and-proactive-reminders): private-chat review, quiet wake, suppression, deduplication, feedback and removal | Another Me and a ready Computer; authorized supplier only for app-event variants |
+| User Memory | [memory.md delivery](wiki.md#user-memory-delivery-to-another-me): Profile bootstrap, published version, new and existing Context delivery, correction; [nightly maintenance](wiki.md#maintenance-schedule) | Memory maintenance and Another Me; distinct from Agent memory |
+
+Also reconcile Web routes in `apps/web/src/app/router.tsx`: login, Computer connection, onboarding,
+Room, stable Document links, shared Document/history links, Library/Wiki/Meetings,
+Dashboard detail, Apps and Settings Account/Security/Computers.
+Retired aliases must redirect or return the declared unavailable result; do not revive retired features.
+
+For each main journey select the applicable happy path, denied action, invalid input, reload/persistence,
+and interrupted/retry path. Reuse current automatic evidence for deterministic branches.
+For model/supplier/device outcomes, execute the actual dependency before marking that branch passed.
+A release may have documented gaps, but must not relabel a blocked branch as covered.
+
+## One complete core journey
+
+Start with [Agent entry](rooms.md#agent-entry-and-response), then run [file delivery](documents.md#agent-file-delivery).
+Use the same disposable Room, Agent, source Document and unique marker throughout.
+Ask the product Agent to read the source and publish a report in the Room.
+Open the delivered Document as the user, inspect its content, then reopen it in a fresh session.
+
+This joins login, Computer, model, permissions, tools, messages and Documents.
+Record each stage separately; an earlier successful reply cannot substitute for a later failed delivery.
+The verifier may prepare input data, but must not perform the product Agent's requested work.
+
+## Execute against the selected revision
+
+1. Fix the revision and isolated environment using the parent skill.
+2. Confirm current capabilities, entry paths, test registration and runtime prerequisites.
+3. Reuse relevant automatic checks, then execute the recipe's additional real journey.
+4. Inspect business evidence and record actual outcomes in the existing run report.
+
+Use current labels and object IDs from the target build.
+Selectors and commands in these pages are implementation hints, not permanent product contracts.
+If an entry moved, update its hint after checking the owning capability document and code.
+If expected behavior changed, resolve that difference before redefining the assertion.
+Do not restore retired registration, invitations, Human DM, or non-Local Runtime flows from old recipes.
+
+The [E2E registry](../../../../e2e/playwright.e2e-specs.ts) owns spec membership.
+Use Playwright `--list` when selecting tests; record actual skips after execution.
+Every registered spec runs on real TeamHub, Document Runtime and PostgreSQL.
+The repository entry is `make check-e2e` (`pnpm test:e2e`): the config test, then `e2e/playwright.room-document.config.ts`.
+`ROOM_DOCUMENT_E2E_SHARD=<n>/3` selects one file shard.
+Logout, staying on the login page after reload, and wrong password are in `room-login-chain.spec.ts`.
+No E2E covers an Agent reply; that needs a deterministic model gateway that does not exist.
+The default `verify.sh` starts real TeamHub, Document Runtime and PostgreSQL.
+It does not provide a product Agent, real model, external account or audio service.
+When serving built Web assets, verify the build mode as well as the Git revision.
+Every E2E build writes production assets to `apps/web/dist`; do not rebuild while a server is using that directory.
+Runner smoke/soak uses real local processes with simulated dependencies.
+Runner live still simulates TeamHub; a passing command does not prove the complete product journey.
+
+## Conditional journeys
+
+### Voice input and recording
+
+For physical microphone loopback, check the test speaker mute state and restore it after playback. Record the human transcript, distinct agent reply, and inbound/outbound media separately. Report word errors even when transport passes.
+
+Read [Voice](../../../../docs/voice.md).
+Reuse the voice unit tests under `apps/web/src/features/rooms`, `make check-voice-runtime`, and the [acceptance prerequisites](../../../../apps/voice-runtime/acceptance/).
+Use an actual microphone and the configured speech services for a real audio claim.
+Speak a known short phrase; check transcription, one intended message, draft preservation and released microphone access after stopping.
+For recording, stop and reopen the actual recording and transcript.
+If testing an audio request to an Agent, verify its separate delivered answer or Task result.
+Keep audio, transcript, message IDs and visible status evidence.
+Start Meeting from the sidebar. The production entry selects the Human's Another Me Direct Room (`recording-entry.tsx`).
+Keep recording and its final audio, transcript and completion message in that same Room when navigating elsewhere.
+Spoken words are transcription, not control commands: saying "stop" must not stop the recording or silently create a Task.
+Submit two different Ask messages. First ask a factual question that only the confirmed transcript answers.
+Then explicitly request a background Task with a unique file marker. Correlate the sent receipt with the single private Room message and its recording-context attachment.
+Another Me can answer or ask for clarification instead of creating a Task. Record what it actually did. Only mark Task delivery passed after a distinct Task and its usable output exist.
+When an Agent was just moved between Computers, test Ask before an ordinary Room turn. A connected Computer does not prove its Agent is ready. Record a subsequent successful retry separately.
+Use the recorder's Stop control and reopen the saved transcript.
+The service also supports other Agent Direct Rooms. Test that boundary separately from the production entry:
+one unavailable Direct Room peer must not block another capture's completion; restoring it delivers exactly one completion message.
+Reuse `TestVoiceCompletionRetriesOneRoomWithoutBlockingAnother`; its synthetic media does not prove real audio.
+Interrupt the owned network/session and verify the documented local buffering/upload recovery without duplicate transcript or Task.
+For Voice Mode, verify endpointing, overlapping draft edits, duplicate events, stop and a subsequent fresh session.
+Prerecorded audio can verify provider transport/transcription; it does not prove microphone capture, acoustics or device recovery.
+On a remote Compose install, confirm a LiveKit signaling endpoint **and** its advertised media ports are reachable by both the browser and the workers. Test Live only when a live worker has registered. Do not place provider keys in evidence.
+When the UI shows Listening without a message, distinguish a live input track, increasing outbound packet counts and audio energy, the server's accepted turn, and a persisted reply. For a fixed audio file, record the distinct Human and Agent message IDs plus inbound audio energy. For a real microphone, test a fresh phrase; a previous file-input reply cannot satisfy that check.
+Do not count mocked LiveKit events as actual audio or actual provider transcripts.
+If the deployment disables a capability, verify its unavailable state and report the real-audio journey as skipped.
+
+Voice needs `TEAMHUB_VOICE_MEDIA=on` (the default), `LINGER_SECRET_SEED`, and `ffmpeg`/`ffprobe` on `PATH`.
+Each feature also needs its provider key: `SONIOX_API_KEY` for recording and dictation, `XAI_API_KEY` for Live.
+A key comes from the environment or is saved in the app; an environment key wins and cannot be replaced from the app.
+Without a usable Soniox key, the Voice Mode button, Pocket Note microphone and Recording are unavailable.
+Live also needs the `LIVEKIT_*` media service. Live tools such as Slack, documents, routines and Agent creation each need their own connection or permission.
+
+Check the key paths separately:
+
+- Settings → Security → API keys shows the Composio row, plus Soniox and xAI rows only when `voice_available` is true.
+- Saving a key in the voice dialog applies without a restart; the voice workers start within seconds. Record the policy read before and after.
+- With the key in the environment, the dialog says the server sets it and offers no replacement.
+- A saved key is shared by everyone on the server. Use a disposable key, remove it after the run, and never put it in evidence.
+
+### Routines and proactive reminders
+
+Use the [Routine recipe](tasks.md#routines) for explicit user schedules.
+[Proactive Another Me](../../../../docs/proactive.md) is always enabled. Do not require an experimental switch or a separate scoring model.
+Use a disposable tracked item and one controlled trigger. For private-chat review, record a window of 20 ordinary Human/Another Me messages and the subsequent three-minute quiet period. Hidden wakes do not count toward that window.
+Check the quiet clock against the latest ordinary reply from either participant, including before the first wake and a late Agent reply after an earlier wake. Only replies from a Run started by a delivered wake are excluded; steering a wake into an ordinary Run does not qualify. A mixed Human/wake initial input and a Human steer arriving before the reply also keep that reply in the quiet clock. Also assert mixed or Human-steered replies are absent from proactive output records; an earlier genuine proactive reply remains recorded. Retain message timestamps, Run input relations and wake delivery timestamps. Reuse `TestFirstQuietWakeWaitsForOrdinaryAgentReply` and `TestProactiveRecordsOnlyAnotherMesWakeAnswers` for deterministic regression; report live timing separately.
+Check the current suppression, deduplication and deletion behavior from the owning feature.
+Record the triggering event, actual notification and resulting item state.
+A missing supplier connection blocks its event variant, not private-chat review. A synthetic wake is not a real supplier event.
+Cover the current private-chat review trigger, app event trigger, pending delay, cancellation,
+deduplication, Human feedback and scheduled learning as separate outcomes.
+Confirm the actual author, target Room and event source; no unauthorized external message may be sent by a test.
+Use deterministic tests for timers and duplicate events, and one authorized real provider event for the complete chain.
+
+## Evidence and coverage limits
+
+Use the existing evidence directory and report; no second test catalog is required.
+For each selected journey, record revision, environment, real or simulated dependencies, expected and actual outcomes, and evidence links.
+Report passed, failed, blocked, or skipped with a reason.
+Separate "documented", "automated", and "executed on this revision" when describing coverage.
+Screenshots support visible behavior; persisted messages, files and supplier reads prove the corresponding effects.
+
+Agent verification complements automation where real dependencies, combined journeys or content judgment are needed.
+These behaviors can also become deterministic tests when a stable assertion is practical.
+Turn repeatable defects into regression tests at the lowest sufficient layer.
+Keep scenario descriptions here and test logic in the existing suites.
+
+This map cannot prove every input, role, timing, platform or model outcome.
+Select relevant denial, recovery and usability variants according to the change and release risks.
+Report untested combinations and output-quality limits; do not infer universal coverage from green commands or completed rows.
+External actions require the account, target and authorization for that execution; a recipe itself grants none.
diff --git a/.agents/skills/verify-linger/features/documents.md b/.agents/skills/verify-linger/features/documents.md
new file mode 100644
index 00000000..e6d41e74
--- /dev/null
+++ b/.agents/skills/verify-linger/features/documents.md
@@ -0,0 +1,179 @@
+# Documents and Agent delivery
+
+Verify the content a user can actually reopen and use.
+A local file, saved editor state, published Document and delivered Room message are different outcomes.
+Use the [shared execution and evidence rules](README.md).
+
+## Edit, save and collaborate
+
+**Reuse:** The parent skill's `scripts/verify.sh` runs the existing direct-link Document proof.
+Real-service `room-document-*` specs cover collaboration, comments, assets, Office previews and recovery.
+Reuse those assertions before adding manual variants.
+
+**Journey:** Open a native Document, switch to Edit, and add a unique marker.
+Wait for Saved, then read the same Document in a fresh browser context.
+When entry paths are affected, also open it from a Room attachment, the Documents panel and Workspace.
+Use a second authorized collaborator for comment and concurrent-edit scenarios.
+Exercise a permission boundary with the roles supported by the selected build.
+
+**Pass:** Both sessions read the intended persisted content under the same Document identity.
+Comments attach to the intended selection and appear for the other collaborator.
+For an Agent mention, save the selection, then verify that the Agent receives the comment and replies in that same thread. A visible mention alone does not prove delivery.
+For regression diagnosis, `TestDocumentCommentInputEventsSettleWithoutSweep` checks that saving the anchor wakes the queued Run without the periodic sweep.
+An active Agent has its Human's access to ordinary active Documents of the Space. A comment mention wakes the Agent; it does not grant access.
+Saving an @Agent comment shows no confirmation and creates no share or comment delegation first. See [Comment @Agent mentions](#comment-agent-mentions).
+Read-only access remains read-only; denied access does not reveal protected content.
+After credential revocation or logout, the old local editor copy must not replay into a new access epoch.
+Verify the current unsaved-change confirmation before logging out.
+Check that a reopened editor waits for remote state and persistence acknowledgement before showing Saved.
+A conflict preserves the newer Human edit instead of silently replacing it.
+
+**Evidence:** Capture the edit, saved state, fresh-session body and relevant Document/comment IDs.
+Use a new context because a reload can reuse IndexedDB.
+For recovery changes, use the existing offline/restart and permanent-save-failure cases.
+Their disposable database does not prove power-loss recovery.
+
+Current UI hints are `Room Document editor`, `Document mode`, `Comments`, and `New Document comment`.
+The Edit menu item includes a current-mode icon; match the name ending in Edit.
+Use the source specs for comment scrolling, toolbar layout, Mermaid editing and selection deletion details.
+
+## Agent file delivery
+
+**Setup:** Complete [Agent entry](rooms.md#agent-entry-and-response) with real services and an authenticated Runtime.
+Prepare an authorized source Document with a unique marker and known facts, such as A=12 and B=7.
+The verifier creates only this input, not the requested output.
+When a built-in Skill is under test, inspect its actual binding/version and Runtime availability.
+Correct output alone does not establish which Skill was loaded.
+
+**Journey:** Ask the product Agent to read that source and produce a Markdown report in the current Room.
+Use the current Agent credential and the `teamhub` business CLI.
+Ask it to identify the source, preserve its marker and calculate the total.
+Reference the input Document without copying its facts or expected total into the task prompt.
+Let the Agent use its real tools and the configured permission behavior.
+Open the delivered file from the Room and inspect its body, then reopen it in a fresh session.
+For changed Office or PDF behavior, use a representative output and inspect it with an appropriate viewer.
+
+**Pass:** The Agent uses the intended source and produces the requested content.
+For this prepared source, both original values and the total of 19 must appear correctly.
+Its file is explicitly published as a Document and delivered to the requested Room. A Task executor writes shared files and reports to Meta; Meta publishes and delivers the output.
+The user can open the actual published version and read the expected facts.
+The file remains accessible after the Agent finishes and the browser session changes.
+If a separate text reply was requested, verify that reply independently.
+
+**Evidence:** Link source ID/version, user request, relevant tool outcome, delivered message, output Document/version and inspected content.
+A file in the Runtime workspace does not prove product delivery.
+An attachment card does not prove readable or correct bytes.
+A Run ending successfully does not prove either outcome.
+An approval card containing the marker must not satisfy a delivery or reply assertion.
+Use [permission decisions](tasks.md#runtime-permission-decisions) if the action waits for approval.
+
+**Reuse:** TeamHub CLI and Document tests cover authorization, publication and deterministic file behavior.
+Existing attachment E2E covers user opening and preview.
+The additional Agent journey connects those boundaries and evaluates output usefulness.
+
+### Agent Document access and share notices
+
+Use an active Agent and an ordinary, never-shared native Document in its Human's Space. Ask it to read a unique fact and save a unique edit without an approval card. Reopen the Document from a fresh browser session. Verify the revision and actual body.
+Compare the target's membership in `teamhub docs list --json` and `teamhub docs list --shared --json`; other shared Documents may already exist.
+Share the Document with the Agent from the Human's Share panel. Correlate the share with one hidden mention in the Human–Agent direct Room and its wake. The notice changes the shared filter, not the Agent's owner role or the permission count.
+Revoke the share. The target disappears from the shared filter; the Agent still edits it. Verify append and targeted text replacement separately: one successful edit command does not cover another command that returned an error. Include a Document with an attached comment: append must retain the original text, comment thread and selected quote. Reopen it in a fresh browser and verify both the appended paragraph and the original comment. Separately check that removing a Room binding or Task assignment does not withdraw Document access.
+Try an ordinary Agent edit on a published Wiki page: it must not persist. The staging generator is a separate exception. With a revoked credential, a trashed Document and a foreign Space, assert rejection without disclosing content. Test anonymous link revocation separately.
+Record source, revision, principal, share, notice and Run IDs; distinguish database-backed permission tests from real Agent and browser evidence.
+Reuse `TestAgentEditsEveryDocumentItsHumanEdits`, `TestAgentListsEveryDocumentAndSeesWhatWasSharedWithIt` and `TestUnifiedDocumentDirectAgentRolesLeaveAgentAccess`.
+
+### Comment @Agent mentions
+
+Run two entry variants separately: a Room-bound Document opened in that Room,
+and a personal Document opened directly from Library without a Room binding.
+For the latter, do not add a Room binding or fabricate `current_context` to make
+the test pass. Both must create the mentioned Agent's work.
+Keep the saved comment, attached anchor, Runtime input and same-thread reply as
+separate assertions. A 201 comment response alone proves none of the latter work.
+
+**Implemented:** There are no comment delegations and no Web confirmation. A Human comment, reply or edit can @mention any active Agent of the Space. Saving it queues that Agent's Document Run directly.
+
+**Covered by TeamHub integration and Web unit tests:**
+
+- Standalone Library entry: `TestStandaloneDocumentCommentMentionStartsRun` covers create, reply and first-mention edit without `current_context`, shares or Room bindings. Each saves a Run atomically, blocks dispatch while its anchor is pending, then admits it after attachment. Editing an already-mentioned comment is a separate rejection case: the old comment version returns 409 without overwriting the accepted edit, the same Agent receives no additional input, and the queued Run for the original comment version fails with `document_input_failed` and cannot be claimed, even after anchor attachment.
+
+- Create: `TestRoomDocumentCommentMentionDispatchesAgentWithoutGrant` uses an Agent with no Room membership and no share. One Run is queued. It becomes dispatchable after the anchor attaches. The Agent reads the thread, and the Human sees its reply.
+- Reply: a Human reply with @Agent creates exactly one Runtime input. A reply from a second bound Room reuses the same Document Context and queues a second Run.
+- Edit: an edit that keeps the same @Agent creates no new Run. If the original Run is still queued, changing its comment invalidates its admission; it does not continue with the edited text. A claimed Run is not canceled by that queued-input cleanup. `TestEditingPlainDocumentCommentMentionsAgentWithoutSharing` adds the first Agent mention by editing a plain comment, then checks the Run for that comment.
+- Non-grant: these tests prove dispatch without a grant. The edit test checks that the Document has zero direct-share rows both before the edit and after the Run is queued.
+- Invalid actors: an unknown actor returns 400 with no thread, Runtime input or event. An Agent-authored @Agent returns invalid input and creates no Run or Document Context. An Agent reply to an unknown actor fails. An Agent may name its Human for display only.
+- Rejections: resolving the thread fails its queued Run. TestHumanDocumentCommentAgentMentionRequiresExactDurableHead covers both Room and standalone entries: a missing durable head returns 400, a mismatched head returns 409, and neither creates a Context or comment thread. Standalone refusals must not invent a Room binding. The conflict fixture uses a sequence one ahead of the current head; it proves exact-head rejection, not every historical revision or edit-after-mention combination.
+- Web: `apps/web/src/features/rooms/documents/room-document-mention-composer.test.tsx` posts comment and reply mentions without an authorization step.
+
+Reuse `TestAgentCommentMentionsHumanWithoutRecursivelyInvokingAgent`, `TestHumanDocumentCommentAgentMentionCreatesOneDocumentContextAcrossRooms`, `TestDocumentCommentMentionsRejectUndiscoverableActorWithoutSideEffects`, `TestResolvedDocumentCommentMentionNeverDispatchesAgent` and `TestHumanDocumentCommentAgentMentionRequiresExactDurableHead`.
+
+**Live evidence:** Record outcomes in the run report, not this reusable map. The tests above use a database and service stubs, not a real model. For a live result, save the @Agent comment in the browser and see that no dialog appears. Find the queued Run and the Agent's reply in the same thread. Then check that `teamhub docs list --shared --json` and the Share panel have not changed. Report test evidence and live evidence separately.
+
+### Anonymous Document links and revocation
+
+Create a link through the Document Share dialog and open it in a signed-out browser context.
+Verify the actual body and supported access level, then disable the link and repeat the anonymous read.
+A native Document exposes read-only Markdown through this route, without an editable collaboration session.
+After revocation, a fresh read must reject the old link and withhold the document body.
+Retain before/after anonymous responses and screenshots; an already downloaded copy cannot be recalled.
+Reuse `apps/web/e2e/room-document-assets.spec.ts` and `apps/teamhub/tests/integration/unified_document_link_shares_test.go`.
+
+## Canvas and Human edits
+
+**Setup:** Use an authorized Room Document and the current supported canvas target.
+In Linger the canvas target is a Gmail canvas. Read the [Documents AGENTS.md](../../../../apps/web/src/features/rooms/documents/AGENTS.md) before selecting the destination.
+
+**Journey:** Ask the Agent to create a canvas, then edit a field as the Human.
+Ask the Agent to revise a different part and preserve the Human change.
+Close and reopen the canvas; refresh the page and inspect persisted content.
+For an external draft or send, use [Connected Apps](tasks.md#connected-apps-and-external-tools) and the authorized account and target.
+
+**Pass:** The intended new canvas opens without repeatedly reopening after the user closes it.
+Human edits survive the Agent's subsequent revision and a fresh read.
+A provider draft or send status corresponds to an actual provider object with the expected content.
+Setting a status field or showing a link alone is insufficient.
+
+**Evidence:** Preserve Document versions, visible edits, conflict/retry outcomes and the provider read when that destination was exercised.
+Report local canvas editing and external delivery separately.
+
+## Sources
+
+- [Documents editor rules](../../../../apps/web/src/features/rooms/documents/AGENTS.md)
+- [Workspace rules](../../../../apps/web/src/features/library/AGENTS.md)
+- [Agent CLI](../../../../apps/teamhub-cli/AGENTS.md)
+- [Executable Document baseline](../document.spec.ts)
+- [Collaboration and recovery E2E](../../../../apps/web/e2e/room-document-collaboration.spec.ts)
+- [Comments E2E](../../../../apps/web/e2e/room-document-comments.spec.ts)
+- [Attachments and previews](../../../../apps/web/e2e/room-document-assets.spec.ts)
+
+## History, comments and concurrent changes
+
+**Setup:** Use a disposable native Document, two authorized Human sessions and a real Agent for the comment-response variant.
+**Journey:** Save a marked edit, make a later edit, inspect History and restore the selected earlier content through the supported entry.
+Add a comment and reply, resolve/reopen it where supported, then address a comment to an authorized Agent.
+Observe that Agent's actual response or edit and reopen the same Document from Room and Library.
+For a concurrent edit, retain one Human edit while another user or Agent changes a different part.
+For a stale whole-document replacement, verify the version conflict and retained local change rather than force-overwriting it.
+
+**Pass:** History identifies the selected revision; restoration creates the contractually required current state without erasing history.
+Comment work uses the Document's permissions, not arbitrary Room access. The answer is attached to the intended comment/Document.
+Unrelated Human changes survive; denied or conflicted changes do not silently overwrite current content.
+Revoking a share or removing a Room binding does not fence the Agent or withdraw its edit access. Revoking the Agent or trashing the Document denies fresh content access.
+For a trash-access comparison, first make the Agent fetch the disposable
+Document with the current `teamhub docs get <documentId> --json` command and
+read its downloaded content. Trash it through the Human UI, then request a new
+`docs get` in a new Run. Require an explicit server `not_found` or `forbidden`
+result; a CLI usage error, connection failure or an Agent's claim is not proof.
+Do not read a previously downloaded copy as the fresh-access check. Trashing
+the server Document does not promise to erase old downloaded files or memory.
+**Evidence:** Keep Document/revision/comment IDs, before/after content and separate users' reads.
+**Reuse:** Real Document E2E, Document comment integration tests, native mutation/History tests and runtime concurrency tests.
+
+### Comment anchors in multiple bound Rooms
+
+Bind a native Document to two Rooms. Open both views, comment on a selection, then remove the selection and save. Without reloading, check each Room for the changed thread. Count the new `document.comment.changed` events per Room and associate them with the actual edit. Separately exercise delayed attachment of an Agent mention when the initial job has already run. Prove the Agent's comment Run wakes without relying on the periodic scan. Evidence: Room, Document, thread and Run IDs, event sequences, and both open views.
+
+Distinguish anchor reconciliation from ordinary comment creation or reply. TeamHub emits a Room event for each active bound Room when a saved body attaches or orphans a thread. Ordinary comment writes emit `document.comment_updated`; a Room-context event is conditional. A standalone comment need not fan out Room events. Reuse `TestUnifiedDocumentCommentsFollowCurrentBindingUnion` for ordinary writes, but do not count it as the two-Room anchor UI proof.
+
+Initial attachment already emits `thread_reanchored` in each bound Room. Capture the post-attachment baseline before deleting the selection. Assert an additional event per Room together with the persisted `orphaned` state; attachment events cannot prove removal.
+
+For documents with anchored comments, raw block operations must fail without changing the body or comment references. Use native `docs update --command append` for a supported tail append. Title changes remain allowed. Reuse the Document Model raw-block regression; do not equate a guarded rejection with successful block editing.
diff --git a/.agents/skills/verify-linger/features/library.md b/.agents/skills/verify-linger/features/library.md
new file mode 100644
index 00000000..961160bd
--- /dev/null
+++ b/.agents/skills/verify-linger/features/library.md
@@ -0,0 +1,121 @@
+# Library, file entry paths and search
+
+Verify that users can organize and find the same authorized Document across product surfaces.
+Use the [shared execution and evidence rules](README.md).
+The current Workspace route is `/t/{tenantId}/library`.
+
+## Create, import and organize
+
+**Reuse:** `room-document-*.spec.ts` covers real Document editing, uploads and previews; Library unit tests cover Workspace actions.
+The real Document baseline proves direct-link editing and reopening, not every Library action.
+
+**Journey:** Open Workspace and create a Markdown page in My pages.
+Import a known file, open it, rename it, and reopen it through the tree and its existing link.
+My pages Import uploads a versioned file, including Markdown, rather than creating
+an editable native page. On Workspace home, New file directly creates a native
+Markdown page; in the Document sidebar, choose New file → md.
+HTML import is supported as a file with an isolated preview, not as a BlockNote body.
+When folder or deletion behavior changes, exercise the current supported action and its owning contract.
+Do not infer a storage deletion from removing a placement or Room binding.
+
+An apparently empty folder can retain a trashed Document's placement.
+The current lifecycle deliberately rejects deleting that folder with
+`DOCUMENT_FOLDER_NOT_EMPTY`; restoration keeps the Document's location.
+Reuse `TestUnifiedDocumentLifecycleTrashesAndRestoresBindings` for this contract.
+Verify the rejected deletion leaves the folder intact. Record the misleading
+empty-state or missing recovery UI separately from backend contract violations.
+For fixture cleanup only, use the supported Restore API, move the restored
+Document to the root, delete the now-empty folder, then trash the owned Document.
+Do not change the rejection assertion merely to make this recipe pass.
+
+**Pass:** The created/imported content is readable and persists across a fresh session.
+Rename updates the appropriate views while retaining the same Document identity.
+Ownership, placement and access remain consistent with the current Document contract.
+A failed import or rename reports the failure without presenting an unsaved object as complete.
+
+For Duplicate, require a new Document ID and the same source content after a fresh
+read. Delete that copy through the UI, confirm its read is rejected, and confirm
+the original remains readable. Verify Restore through the supported API when no
+UI entry is exposed, then read the restored copy in a fresh browser context.
+Label the API restoration separately from UI actions. Delete only this recipe's
+owned copies during cleanup; do not infer that Trash is immediate physical erasure.
+
+**Evidence:** Keep the source filename/content, Document ID, visible tree, resulting metadata and fresh read.
+Current UI hints include `Create in My pages` on the Workspace home and `Create in Owned by Me` in the Document sidebar.
+Other hints include `Import`, `Actions for <filename>` and `More Document actions`.
+Verify current labels before driving a refactored build.
+
+## Cross-entry reading and previews
+
+**Journey:** Attach an authorized Document to a Room and open it from the message, Documents panel and Workspace.
+Use representative supported text, image and Office files when those preview paths change.
+For download-only formats, download and inspect the expected bytes.
+
+**Pass:** Entry paths resolve the intended Document and content under their actual permissions.
+A visible breadcrumb is not proof of preview support.
+ZIP and unknown binaries can remain download-only when that is the supported behavior.
+Loading or failure states remain distinguishable from an empty file.
+
+**Evidence:** Record each exercised entry, its Document identity, the visible body or downloaded file, and a fresh-session read.
+Use [Documents](documents.md) for editing, collaboration and actual Agent-produced file delivery.
+
+## Search and return to context
+
+**Reuse:** `apps/web/src/features/search/global-search-dialog.test.tsx` covers the search UI and its supported targets.
+
+**Journey:** Create an authorized Room message and Document with distinct unique markers.
+Search through the product, open each result, and confirm the intended context and content.
+For a Thread result, use the [Room recipe](rooms.md#room-collaboration).
+After trashing the Document, repeat its search. For Room messages, test a principal without Room access separately; losing Room access does not withdraw an active Agent’s Space-wide Document access.
+
+**Pass:** Supported searches find the intended saved objects and open usable destinations.
+A result from another fixture object must not substitute for the new marker.
+Search does not disclose bodies or navigation targets beyond current visibility rules.
+Substring matching does not promise semantic or fuzzy search.
+
+For a denial comparison, inspect result identities and types. An authorized Room with the same marker may still appear while the protected Message or Document stays absent. Do not require the entire Search dialog to be empty. Pair a positive owner read with a separate-session negative read of the exact object.
+
+**Evidence:** Keep the query, result identities, opened body and the authorized/denied comparison when exercised.
+
+## Meetings and personal visibility
+
+**Journey:** Open an authorized archived meeting with distinct participants and a unique transcript marker.
+Inspect its recording and transcript, attribution and source Document identity.
+Delete it from the current Human's Meetings, then reopen the list and calendar.
+Use another authorized Human to check the same meeting.
+For a fresh recording, `summary.md` appears only after the meeting's Wiki refresh publishes. The meeting page has no refresh action.
+
+**Pass:** The meeting disappears from only the first Human's meeting views.
+The other Human still sees it; the underlying Documents and published summary remain readable under their existing permissions.
+Changing personal visibility does not delete the shared meeting or another user's archive.
+
+**Evidence:** Keep both Human identities, Capture/Document IDs, deletion confirmation and fresh reads.
+Reuse `apps/web/src/features/memory/meeting-page.test.tsx` and the current meeting integration tests.
+The UI action is owned by `apps/web/src/features/memory/hide-meeting-dialog.tsx`.
+Seeded archived media proves browsing and hiding, not real recording or transcription.
+
+## Sources
+
+- [Workspace rules](../../../../apps/web/src/features/library/AGENTS.md)
+- [Documents editor rules](../../../../apps/web/src/features/rooms/documents/AGENTS.md)
+- [Document assets E2E](../../../../apps/web/e2e/room-document-assets.spec.ts)
+- [Current routes](../../../../apps/web/src/app/router.tsx)
+
+## Organization and representative formats
+
+Use a disposable folder tree and uniquely marked files to create, rename, move, copy, share and delete through available UI controls.
+Check the same Document from My Documents, Shared with me, Room and Task bindings.
+Distinguish a new copy from another binding to the same Document; compare IDs and fresh content.
+Test a denied destination and a deleted source; failed operations must not leave an apparent success or an orphaned visible entry.
+
+Inspect representative PDF, DOCX, XLSX, PPTX, image, text, Markdown, HTML and Mermaid previews where supported.
+Compare rendered content with known source facts, including a table/image and a non-ASCII filename.
+An unsupported format needs an honest download/unavailable state, not a blank successful preview.
+HTML/Mermaid content must not gain parent-page scripting or private API access.
+Use existing preview fixtures for deterministic cases and retain one real user open/download per relevant format.
+Record unavailable viewers, uncalculated spreadsheet formulas and unsupported rendering explicitly.
+
+## Meeting archive separation
+
+Run [Meetings and personal visibility](#meetings-and-personal-visibility) with disposable Alice and Bob.
+A seeded archive validates browsing and personal visibility only; actual recording, transcription and recovery use the [Voice recipe](README.md#voice-input-and-recording).
diff --git a/.agents/skills/verify-linger/features/local-computer.md b/.agents/skills/verify-linger/features/local-computer.md
new file mode 100644
index 00000000..99aaef5e
--- /dev/null
+++ b/.agents/skills/verify-linger/features/local-computer.md
@@ -0,0 +1,349 @@
+# Local Computer
+
+Verify installation, enrollment, Runner lifecycle and recovery on a user-owned Computer.
+Use the [shared execution and evidence rules](README.md).
+Agent replies through a Computer are covered by [Agent entry](rooms.md#agent-entry-and-response);
+interruption and reconnect journeys by [Execution lifecycle](rooms.md#execution-lifecycle).
+The [architecture overview](../../../../docs/architecture.md#inside-the-computer-daemon) explains the system for Humans;
+the [Local Computer conventions](../../../../apps/computer/AGENTS.md) and the [Daemon guide](../../../../apps/computer/local-daemon/README.md) own exact states and recovery rules.
+
+## Choose the smoke layer
+
+### Open-source Compose installation and upgrade
+
+Use the current [README quickstart](../../../../README.md) as the user-facing contract. Allocate a clean owned source directory, Compose project and volumes. Copy .env.example, record only the names of filled settings, and build/start with the documented Compose command. Do not silently inherit an older acceptance .env or service overrides.
+Create the disposable owner through the documented account command and sign in through the Web UI. Record migrations, image IDs, source revision, effective public origins and healthy services.
+Install the Computer from this deployment's own /install endpoint on a dedicated platform account, enroll it, and verify the delivered release hash against its manifest. Correlate the first real reply with the Computer ID, Agent, Run and persisted author.
+For Windows, use the PowerShell installer offered by that build and an interactive test desktop for computer-use. SSH process tests do not replace desktop installation and input evidence.
+Test an upgrade separately with a known Document and connected Computer: start the new release, verify migrations and actual Computer upgrade, then reopen the Document and obtain a fresh reply. Retain rollback/recovery failures.
+Compare the installed `app-sha256` with the target platform's release row served
+by that deployment. A service image change does not imply a Computer bundle
+change. Record same-package reinstall separately: preserve Computer identity,
+configuration and owned files, then verify a new real reply and Document read.
+An unchanged bundle digest or an already-current migration version is not proof
+of a changed-bundle upgrade or a newly applied database migration.
+Classify a reused database run as upgrade acceptance, never clean installation. Supplier keys remain optional dependencies for their own scenarios; basic onboarding must not gain undocumented mandatory keys.
+Prove a database migration on an isolated copy of the previous release's real data, never on the live volume.
+Record the starting version, then run the target release's own migration image and check the newly applied versions.
+Take row-count and content-hash summaries of the affected tables before and after.
+Run the migration again; the ledger and summaries must not change.
+A standard logical restore of a backup is not migration proof. For restore acceptance, dump the migrated database with pg_dump -Fc and restore the unmodified archive into an empty database with pg_restore --exit-on-error. Compare message and document summaries and verify that malformed attachments remain invalid.
+If preparing the copy needs a non-standard step, such as an explicit `search_path`, record it as acceptance preparation, separate from restore evidence.
+Database checks do not cover the UI or the Agent; verify the migrated data in the Web UI and with a real Agent reply separately.
+
+Pick the lowest layer that proves the change, then add the higher layers it requires.
+A passing layer does not cover the layers above it.
+
+| Layer | Command | Real | Simulated |
+| ---------------------- | --------------------------------------------------------------------------- | -------------------------------------------------- | ------------------------- |
+| Deterministic | `pnpm smoke:local-runner` | Agent Service, Go Daemon, Gateway, process cleanup | TeamHub, Runtime, model |
+| Offline Agent removal | `LOCAL_RUNNER_SMOKE_SCENARIO=offline-agent-removal pnpm smoke:local-runner` | Same as deterministic | Same as deterministic |
+| Go Daemon soak | `pnpm smoke:local-runner:soak` | Go Daemon, Gateway, Context View, Operation ledger | Codex app-server, TeamHub |
+| Real Runtime (Stage C) | `LINGER_LIVE_LOCAL_CODEX=1 pnpm smoke:local-runner:live` | Codex app-server and model | TeamHub and MCP |
+| Real Claude lifecycle | see [Claude live test](#claude-live-lifecycle) | Claude Code and model through the Go executor | Gateway, Web, TeamHub |
+| Windows native | see [Windows native](#windows-native) | CLI, installer, named pipes, ACLs on Windows | Runtime and model |
+
+Minimum layers by change:
+
+| Change | Minimum |
+| ------------------------------------------ | ---------------------------------------------------------------------------------------- |
+| Contract, Gateway, Daemon, receipt/replay | Deterministic |
+| Runtime provider, authentication, probe | Deterministic + soak; Stage C or Claude live before release |
+| Workspace, Artifact, Skill, MCP, output | Deterministic + soak + Stage C |
+| Installer, upgrade, rollback, uninstaller | Installer tests + `make check-scripts-heavy` + [lifecycle](#install-and-lifecycle) |
+| Enrollment, Computer/Agent removal, Web UX | Web and service integration tests + [lifecycle](#install-and-lifecycle) on a real server |
+| Agent Service startup, Context restore | Agent tests + soak + Stage C service restart |
+
+Both smoke scripts enable the Gateway through `AGENT_RUNNER_PUBLIC_GATEWAY_URL`.
+
+### Deterministic smoke
+
+No model is called; run it after every Runner change.
+It checks Claude `ready` → `authentication_required` → `ready` without a Daemon restart.
+The run that failed during the outage ends with `RUNTIME_AUTHENTICATION_REQUIRED` and is not replayed.
+It also checks three isolated Runners, two concurrent Codex runs, Gateway reconnect,
+unacknowledged event replay, duplicate suppression, cancel and complete process cleanup.
+Polling intervals are shortened; production refresh windows need a deployed check.
+
+### Soak
+
+One run sends 20 inputs across 5 Daemon, 3 Agent Service and 3 Gateway restarts.
+**Pass:** `daemon_id`, Registration ID and Assignment revision never change.
+Each input has exactly one Local Run, one `run.start` Operation and one successful terminal event.
+All terminal events are acknowledged; no provider child or ownership record survives the final stop.
+Each Agent Service restart must exit 0; a crash is not a completed restart.
+
+To hold the Agent Service down while work runs, set
+`LINGER_LOCAL_RUNNER_RECOVERY_DELAY_SECONDS` (0–600, e.g. `360`).
+The Daemon and Runtime processes must stay alive for the whole window.
+
+### Stage C
+
+Stage C calls a real model and costs money; enable it explicitly.
+It reuses the current Codex `auth.json`, `LINGER_CODEX_AUTH_FILE`, or an absolute `CODEX_HOME`.
+Select the model with `LINGER_LIVE_CODEX_MODEL`; it must exist in the Computer catalog.
+`LINGER_LIVE_CODEX_REASONING_EFFORT` overrides the catalog default; unsupported values fail before registration.
+Without a model, `codex-default` proves only whatever the local Codex config selects.
+`KEEP_LOCAL_RUNNER_LIVE_SMOKE=1` retains the redacted `/tmp/sx-lr-live.*` directory.
+
+The fixture mounts no MCP server. The reconnect/cancel phase has Codex run one long native command,
+`mkdir -p ./playground && echo $$ > ./playground/stage-c-hold.pid && exec sleep 3600`,
+and tracks it through the Operation ledger and that PID.
+Confirm the fixture implements current callbacks before reporting this layer as passed.
+
+**Pass:** the script checks persisted facts, not the final reply:
+Skill package SHA and Artifact input in the stable Context roots;
+each input's final message published once through the CLI with an idempotency key;
+`teamhub docs get` input download, then `teamhub publish` and `teamhub update` of the same Playground file as versions 1 and 2;
+ACK loss and reconnect with unchanged `run_id`, `operation_id` and original epoch, and the hold command still running under its original PID;
+`cleanup_runtime` cancellation persisted as `operation.cancelled` and the hold command exited;
+Agent Service restart while the Computer is offline stays Ready and later resumes the same Context;
+one Local Run and one receipt per input, no unacknowledged events, processes or test Agents.
+
+**Evidence:** read `fixture-report.ndjson`, `proxy-events.ndjson`,
+`agent-home/agent-manager/logs/**/events.ndjson` and the Computer's `daemon status --json`.
+
+### Warm history after an idle Computer restart
+
+Finish a real turn and wait for its terminal Run. Keep Node Services running. Restart only the owned Computer daemon, wait for connected and reconciled, then send a fresh request in the same Room. Require one exact delivered reply after a fresh read and a successful terminal Run. If user Chrome was connected, repeat a new random browser challenge after restart; a retained connection label alone is not proof. Preserve failures such as `Agent Runner placement does not match Context View`. Reuse `tests/agent/executor/local-backend.test.ts` for the revision refresh and offline rejection regression.
+
+### Claude live lifecycle
+
+```bash
+cd apps/computer/local-daemon
+LINGER_LIVE_LOCAL_CLAUDE=1 LINGER_CLAUDE_PATH="$(command -v claude)" \
+ go test ./internal/provider -run '^TestClaudeLiveLifecycle$' -count=1 -v -timeout 10m
+```
+
+It covers Skill/MCP, file and tool events, steer, no late writes after cancel,
+same-Session continuation and instruction updates. It is not a Gateway, enrollment or deployment check.
+Claude, Pi or authentication changes need an equivalent real-Runtime run.
+Break authentication only under a dedicated or disposable OS user, never the developer's own login.
+
+### Focused protocol tests
+
+Gateway write blocking and replay:
+
+```bash
+cd apps/computer/local-daemon
+go test ./internal/linger/transport ./internal/daemon \
+ -run 'TestGateway(WriteTimeout|SendRechecks)|TestDaemon(ReconnectsAndReplaysRecordedEventAfterBackgroundWriteTimeout|ClosesConnectionBeforeCleaningUpBlockedDelivery)'
+```
+
+Daemon restart and Gateway transport loss during a running native turn, with isolated PostgreSQL and a real Go Daemon:
+
+```bash
+apps/teamhub/scripts/with-test-database.sh sh -c '
+ cd apps/node-services && LINGER_GO_LOCAL_DAEMON_TEST=1 pnpm exec vitest run --project agent \
+ tests/agent/runner-gateway/go-local-daemon-process.test.ts \
+ -t "mid-run" --maxWorkers=1
+'
+```
+
+On Linux, `make check-computer` isolates PID and `/proc` through `apps/computer/run-test.sh`.
+`COMPUTER_TEST_ISOLATION=on|off` forces either mode.
+
+For the opt-in `tests/codex-native-compat.test.ts`, point
+`LINGER_CODEX_COMPAT_EXECUTABLE` at the installed Codex entry point.
+It uses a deterministic loopback model and fresh Runtime homes; it does not prove
+real model access. On Linux, native Codex refuses to create its sandbox helper
+aliases beneath `/tmp`. The test therefore allocates an owned temporary directory
+under the user's home and passes it as the Go subprocess's `TMPDIR`, then removes
+it. Never substitute the user's real Codex state, disable the sandbox, or treat a
+manual helper alias as proof that the unmodified test passed. The Computer release
+does not vendor Codex; an alias failure alone is not a missing Computer bundle file.
+
+## Install and lifecycle
+
+**Setup:** Use a temporary `HOME` and a disposable account on the target environment.
+Install with `<web-origin>/install/linger-computer.sh` (Windows: `linger-computer.ps1`).
+The installed command is per environment, `linger-computer-<environment>`; the steps below write `linger-computer` for it.
+Never reuse another Computer's config or state directory on a shared host.
+
+**Journey:**
+
+1. Install, then `linger-computer login`, approve in the browser, and run `linger-computer daemon start`.
+2. Create two Local Agents on this Computer and complete one message each.
+3. `daemon stop`: the Computer goes offline and keeps its identity; `daemon start` recovers it.
+ Separately verify a lost network route: retain the queued Run ID, restore only the owned route, and require the same daemon/Computer and queued Run to recover without resending the request. Confirm the intended author's reply once after a fresh login and reload. A daemon process that is running but still `connecting` does not prove connectivity. If acceptance uses SSH forwarding, record both listeners and ownership; its loss is a test environment failure, not proof of a daemon failure. Direct Compose origins remain the open-source default path.
+4. Delete the Computer while Agents are assigned: expect `409`.
+5. Delete the Agents, then the Computer.
+6. Start the old Daemon: its credential must be rejected.
+7. Rerun the installer: same bundle is a verified no-op; a new bundle upgrades in place.
+8. Uninstall: launcher and bundles are removed; config, credentials, state and logs remain.
+
+**Pass:** `linger-computer daemon status --json` shows the expected `daemon.computer_id`,
+`gateway_state=connected` and `reconciled=true`. A started process alone is not online.
+`daemon start` prints `Connection Connected` only after the server confirms; a running process alone is not proof.
+Local uninstall never deletes the server-side Computer.
+
+**Protocol upgrade:** start with an old Computer that already has a Local Agent and no active Run.
+The new Agent Service marks it `upgrade_required` and the Web offers the installer.
+After the installer runs, `computer_id`, Agent identity, placement, Runtime config and configuration revision are unchanged.
+The Agent completes a new Run. The installer never calls `login`.
+
+**Self-update (macOS, Linux and Windows, which stages through `internal/selfupdate/windows_stager.go`):** `runner.welcome` carries `target_release`.
+Record the active bundle `app-sha256` before and after; a version string alone is not upgrade evidence. For macOS/Linux, install the same origin into default and isolated roots with separate command directories. Stage and activate a different app package in the isolated root, without supplying a command directory. Compare both active hashes and both directories’ launchers and dispatchers. Only the isolated active package should change.
+
+### Login and account switching
+
+| Situation | Expected | Automated evidence |
+| ------------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
+| First `login` | New Computer, credential saved | `TestBrowserEnrollmentPersistsOwnerOnlyStateAndStartsTheDaemon` |
+| Repeat `login`, same account | Same `computer_id`, credential generation advances | `TestSetupRenewsTheExistingComputerIdentity` |
+| Browser signed in as another account | Current account shown; local identity replaced after confirmation | `connect-computer-page.test.tsx` account sign-out test; manual |
+| Server already deleted the Computer | New Computer after confirmation; busy Daemon keeps old identity | Manual; `TestDaemonStopIdleAndRecovery` covers the idle stop |
+| Crash during login | Recovery from the pending renewal file, no second rotation | Manual; `TestSetupRenewsTheExistingComputerIdentity` checks the pending file is cleared |
+| Two `login` on one state directory | Second is rejected by the setup lock | `TestSetupRejectsAConcurrentSetup` |
+| Upgrade with an active Operation | Rollback before start; after start only with a reliable idle stop | metadata, rollback and active Operation tests in `scripts/local-computer-installer.test.ts` |
+
+### Windows native
+
+Run under a dedicated Windows test user with Node 26.5.0, the pinned pnpm, Go, PowerShell 5.1 and 7:
+
+```powershell
+pnpm install --frozen-lockfile --prefer-offline
+powershell -NoProfile -ExecutionPolicy Bypass -File scripts/check-local-computer-windows.ps1
+```
+
+Reports land in `.linger-runtime/windows-verification/` with system, architecture, revision and exit codes.
+When native builds are unavailable, cross-build with `go test -c` and point
+`LINGER_TEST_WINDOWS_LAUNCHER` or `LINGER_TEST_WINDOWS_DAEMON` at the artifacts.
+That proves runtime behavior, not a native source build.
+Under x64 emulation set `LINGER_TEST_WINDOWS_TIMEOUT_SCALE=6` (range 1–20); it changes only test waits.
+Each architecture needs its own report; skips on non-Windows hosts are not passes.
+
+The Agent Service image builds `win32-x64` by default (`COMPUTER_RELEASE_TARGETS` in `apps/node-services/Dockerfile`); it does not build `win32-arm64`.
+`/install/linger-computer.ps1` is served only when the image's release contains Windows (`install-route.ts`); a 404 there means no Windows package, not a failed install.
+Trust the deployed `/install/` response and `release.json` over prose about release targets.
+
+### Windows install, pairing and background run
+
+This manual recipe is the Windows acceptance path.
+Record each step as passed, failed or not run. A Windows Go test that was only compiled or cross-built has not run.
+Use a real Windows 10/11 x64 machine with Defender real-time protection and a disposable account. Record the Smart App Control state; do not disable the installer's checks.
+
+1. Run the official `.ps1` entry from an elevated PowerShell. Expect `login`, `daemon start` and `daemon restart` to refuse with the non-elevated-terminal error before reading credentials (`internal/computercli/session_windows.go`). `stop` and `status` still work.
+2. Run it again from ordinary PowerShell. Check download progress, one line per stage and the CLI command list at the end.
+3. Pair with `login` on a cold cache, approve in the browser, then `daemon start`. Require `Connection Connected` and the expected `computer_id` in `daemon status --json`.
+4. Close the terminal. The Daemon runs as a detached, hidden process (`launcher_windows.go`), so the Computer must stay online in Settings → Computers and accept a new Room request.
+ Repeat from an SSH session: the Daemon leaves the session's Job when that Job allows breakaway, so closing SSH must not stop it. A Job that forbids breakaway keeps the Daemon inside. `TestDetachedDaemonSurvivesSessionJobClose` and `TestDetachedDaemonStartsInsideJobWithoutBreakaway` cover both cases and run only on Windows.
+5. Sign out or reboot. There is no logon autostart, so expect the Computer offline until `daemon start`. Then require the same `computer_id` and a new delivered reply.
+6. Uninstall and check progress, removed launcher and bundles, and no leftover Daemon or managed-service processes.
+
+Also run [warm history after an idle Computer restart](#warm-history-after-an-idle-computer-restart) on this Computer. For delegation, also require the created Task, callback and delivered file; a successful parent message alone is insufficient.
+
+The installer refuses an elevated session before download (`scripts/local-computer-windows-bootstrap.ps1`).
+**Evidence:** Keep the installer transcript, `daemon status --json` before and after each step, the Computer and Agent IDs, the reply message ID and a process list after uninstall.
+Cross-built binaries, `scripts/check-local-computer-windows.ps1` and Go tests with `*_windows_test.go` do not prove the installer, the pairing or the background run.
+
+## Desktop and browser tools
+
+Read [Desktop and Browser](../../../../docs/desktop-and-browser.md) and the [Daemon guide](../../../../apps/computer/local-daemon/README.md#controlled-desktop-and-browser-tools).
+Each Operation gets two Daemon-local MCP tools. `computer` drives the desktop through Cua (macOS, Windows) or the X11 driver (Linux). `browser` runs the pinned Playwright MCP.
+The browser has three targets:
+
+| Target | When | What to check |
+| ---------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Isolated Agent browser | Default browser is not Chrome, or the user did not connect | Profile under `computer-tools/browser-profiles/`; no user sign-ins |
+| Agent browser window | `launch_app` with `agent_browser: true` on macOS | Computer's own window in the user's Chrome (Edge and Firefox use their own profile). Works behind other windows on the current Space; off-Space refusal tested separately |
+| User's everyday Chrome | User connected through the Playwright Extension (macOS, Windows) | Tasks use the user's sign-ins; disconnect returns to the isolated browser |
+
+For the Agent browser window, record cold launch and warm operation separately. Do not claim no focus change for the cold launch without foreground samples. The user's Chrome takes no keys from the Computer (`COMPUTER_KEYS_REFUSED`), and a Chrome running without the required flag returns `COMPUTER_BROWSER_RESTART_REQUIRED`; the Daemon never quits it. Restore the original front application before the warm test, then correlate foreground PID samples with the actual tool interval. A single before/after sample cannot prove no intermediate focus change. Do not claim general cross-Space support. `COMPUTER_WINDOW_OFF_SPACE` applies when the off-Space window cannot be read; a previously read window can behave differently. Record stale-view warnings and use an independent result to verify effects. Test this boundary separately, without moving the user’s desktop as a hidden setup step.
+
+**Real probes (default skipped):** `TestMacDesktopLive`, `TestWindowsDesktopLive`, `TestUserChromeLive` and `TestNativeLinuxDesktopLive`. Their switches and inputs are in the Daemon guide. They prove the driver and Daemon, not the model's tool choice.
+
+**Agent journey:** Give a ready Agent one desktop task and one browser task with a checkable result. For the desktop, type a unique marker into TextEdit or Notepad and save through the visible dialog. Independently read the saved file. For the browser, serve an owned temporary page with a random visible challenge, a labeled input and a confirmation button. Ask the Agent to read, enter and submit the code, then report the actual confirmation. Keep the expected code out of the request. Inspect native tool results, the persisted reply and a fresh browser read. A public page can change; a memorized title or an exact answer supplied in the request does not prove reading or interaction.
+
+For macOS file pickers, distinguish cold application launch from opening a picker
+while an owned document is already open. After Command-O, reread the window list:
+the immediate snapshot can still show the document before the picker appears.
+Use the observed picker window and its Cancel control; confirm return to the
+owned document and unchanged disk content. Do not infer cold-launch support from
+that warm result. On macOS `launch_app` opens applications in the background
+through LaunchServices; it does not promise a new application instance. A probe must identify its unique fixture window and
+current text-field token. Never select the first restored window or kill the
+returned application PID as cleanup. A compiled, opt-in-skipped probe is not a
+desktop acceptance result.
+
+For the browser journey, have the test server return a second random receipt only after a correct form submission. Reopen the Room and match one message by the target Agent, scoped to the message list: the sidebar may preview the same text. Correlate the receipt with the server response, the browser tool calls and the finished Local Run.
+
+Use a unique disposable file and verify its path/title and empty editor before any input. Windows Notepad may restore existing user tabs even when launched by the test. A new PID does not prove those tabs belong to the test. Never select an arbitrary element token, overwrite an existing editor, or force-kill that process as cleanup.
+`TestWindowsDesktopLive` opens a disposable temporary file, sends input only to that window's single Document field, and never kills Notepad. Record its report from a run on the signed-in test desktop; a compiled probe is not a result. Until such a run exists, use the manual Agent journey above for Windows desktop acceptance.
+
+For desktop tasks, distinguish launching an application from editing an already-open file. Correlate native tool calls with the saved content.
+For browser proof, correlate the persisted reply author and local_run_id with the same Run's native activity.started/activity.finished events. Require browser navigation to the owned challenge URL, input and submit actions, and their outcomes. Record recovered tool failures instead of presenting the run as failure-free. Check the assigned Computer and platform; a current registration alone cannot establish an old Run's location after a move. Server-side local_mcp_relay logs apply only to calls traversing that relay; do not require them as the sole evidence for Daemon-local browser tools.
+
+On Windows, an SSH-started Daemon can remain alive after logout while still running in noninteractive Session 0. A signed-in desktop elsewhere does not move that process into the desktop session. Start the dedicated test Daemon from the signed-in test desktop before desktop acceptance. Record `COMPUTER_SESSION_NONINTERACTIVE` as an unmet environment prerequisite; do not bypass the check. A Run that successfully reports this error has not passed the requested desktop task.
+
+### Connect and disconnect the user's Chrome
+
+**Setup:** Chrome with the official Playwright Extension on the Computer. A disposable Chrome profile is preferred. Never put the extension token in chat, evidence or logs.
+
+1. Open "Connect my browser" from the Computer detail in Settings → Computers, or from the browser connection card an Agent sends. A card locks its Computer.
+2. Paste a wrong token. Expect `BROWSER_TOKEN_REJECTED` and no saved connection.
+3. Paste the extension's token. Expect `Connected`. The token file is under the Daemon state `computer-tools/browser-connections/`, `0600` on macOS and current-user ACL on Windows.
+4. Ask the Agent for a task that needs a signed-in page in that Chrome. Check the result.
+5. Restart the Daemon. The connection stays; the first task revalidates it.
+6. Disconnect. The private file is removed. The next browser task uses the isolated browser. If the default browser is Chrome, it reports `BROWSER_CONNECTION_REQUIRED` instead.
+7. For the Chrome-required branch, verify the Agent posts a connection card for
+ that Computer and ends its turn. Decline that specific card with `Not now`.
+ Verify persisted denial, the resulting Agent continuation, and no browser or
+ HTTP fallback. A successful Run that reports the denial is not a completed
+ browsing task.
+
+Wrong-token verification waits for the extension handshake. Give the probe's
+response wait enough time to observe the actual rejection; the ordinary 15-second
+UI locator timeout can expire first. If it does, inspect the resulting connection
+state before retrying. Capture the returned code and visible error separately
+from the wait failure. Check token-file presence without reading its contents.
+
+**Pass:** The state follows the Agent Service route `/v1/tenants/{tenantId}/owners/{ownerActorId}/local-computers/{computerId}/browser-connection`. A refused token mid-task gives `token_invalid` and an error, not a silent fallback to the isolated browser.
+When using the private token-file probe, verify the target page before and after connection-manager restart. Record this separately from a signed-in Room task.
+
+**Deterministic rejection coverage:** `TestRejectedTokenFailsLaterCallsAtOnce` checks that a rejected token does not reopen a connection or hold the profile. `TestRejectedConnectionRecoversAfterReconnect` checks that merely flipping a status does not count as reconnection, and a new connection generation releases the stale relay. `TestBrowserConnectionIsPrivatePerOwnerAndNeverReported` covers owner scoping, private storage and removal. These tests manipulate manager state; they do not rotate a real extension token during a running task.
+
+**Reuse:** `browser-connection-dialog.test.tsx` and `TestUserChromeLive`.
+
+## Source-built Computer
+
+`bash scripts/dev-local-computer.sh start|status|stop` drives a Daemon against `pnpm dev`.
+It enrolls through the same PKCE flow and writes `.linger-runtime/computer/runner-token`.
+After a TeamHub reset, delete `runner-token` and start again; Agents must be placed on the new Computer.
+
+The script builds the Go CLI and Daemon into `apps/computer/dist/cli/linger-computer` and
+`apps/computer/dist/daemon/linger-computer-daemon`; the CLI starts the Daemon beside it. Place this
+build output first:
+
+- TeamHub CLI: build `@linger/teamhub-cli`, copy it into `apps/computer/dist/cli/` as
+ `apps/computer/scripts/bundle-teamhub-cli.mjs` does, and link a Node binary to `apps/computer/dist/runtime/bin/node`.
+ Without it every Run fails with `TeamHub CLI configuration or installation is unavailable`.
+ Restart the Daemon after changing the CLI.
+- Codex outside `PATH` (for example the ChatGPT app copy) needs `LINGER_CODEX_PATH` in `.env`.
+
+A source-built Computer does not prove installation or upgrade of a released package.
+
+## Evidence
+
+A running Operation has no terminal receipt yet.
+Find its `operation_id` from the Run's `run.start` execution receipt,
+then check `runner.operation.accepted` for it in the Computer's `daemon.log` and `active_operations` in `daemon status --json`.
+Check Agent Service receipts only after the terminal event.
+Tool calls are logged by the Agent Service as `local_mcp_relay.tool_call_started` and `local_mcp_relay.tool_call_finished` JSON events without arguments, bodies or credentials; filter by `runId` (the `local_run_id`) or `operationId`, for example `jq 'select((.event|startswith("local_mcp_relay.tool_call")) and .runId=="<local_run_id>")'`.
+Never print `auth.json`, tokens, Computer credentials or message bodies into evidence.
+
+A `runner.welcome` proves the handshake. Only the matching removal receipt proves local cleanup.
+Neither replaces a real Room request on an active Agent.
+
+## Adding a new state or recovery path
+
+When a change adds a business state, error code, recovery or compatibility path, update in the same pull request:
+
+1. Deterministic behavior goes into `pnpm smoke:local-runner`, asserting state or persisted facts, not log text.
+2. Behavior that needs a real Runtime, browser or package goes into the matching recipe on this page.
+3. New scripts get a stable `package.json` entry and join `make check-scripts-fast` or `make check-scripts-heavy`.
+4. Without a smoke change, the pull request states which existing step covers the new path.
+
+### Claude Code gateway catalog and execution
+
+On a dedicated Computer using Claude Code user settings for a gateway, compare the reported model picker with that gateway's catalog. Select a gateway-only model and send a real Room request. Correlate the selected ID, Run, actual provider model and reply. Redact credentials. Checking command flags only proves how discovery launches; it does not prove the gateway handled the selected model. Keep ordinary Windows Room execution separate from the restricted background Wiki invocation.
diff --git a/.agents/skills/verify-linger/features/rooms.md b/.agents/skills/verify-linger/features/rooms.md
new file mode 100644
index 00000000..ccded952
--- /dev/null
+++ b/.agents/skills/verify-linger/features/rooms.md
@@ -0,0 +1,221 @@
+# Rooms, Agents and Local Computer
+
+Verify that a Human can collaborate with a working product Agent in a durable Room.
+Use the [shared execution and evidence rules](README.md); fixture identities are not real-service accounts.
+Current routes use `/t/{tenantId}/rooms/{roomId}/chat`.
+Resolve IDs from the owned environment rather than copying sample IDs.
+
+## Room collaboration
+
+**Reuse:** `room-login-chain.spec.ts`, `room-creation.spec.ts` and `room-startup.spec.ts`.
+Real-service tests cover login, membership, messages and sharing; Room layout is covered by Web unit tests only.
+
+**Journey:** Sign in through the form, create a Room, and complete or skip the optional member dialog.
+Send a unique message, open its Thread, reply, and reopen the Room in a fresh session.
+Follow a global-search Thread result back to the same conversation.
+For membership or sharing changes, use the corresponding existing real-service scenarios.
+
+**Pass:** The Room survives skipping optional members.
+The saved message and Thread reply belong to the expected author and Room.
+A search link opens the intended Thread once; closing it stays closed until another user action.
+Leaving and rejoining preserve the documented role and delivery boundaries.
+A frozen share excludes later messages, and revocation prevents subsequent anonymous reads.
+The account model has no public signup, Space invitation, or Human DM flow.
+
+**Evidence:** Keep the visible result and a fresh message/member read with object IDs.
+For sharing, retain anonymous before/after reads and the revoked result.
+For startup changes, verify draft, focus and composer usability during actual auxiliary-service delays.
+Use the parent skill's startup and production-startup recipes for measurements.
+Local timing samples do not establish production percentiles.
+
+## Agent entry and response
+
+**Reuse:** Web unit tests under `apps/web/src/features/local-computer` and `apps/web/src/features/rooms` (`agent-admission.test.ts`, `agent-create-menu.test.tsx`).
+They cover UI and admission behavior, not complete live inference.
+
+**Setup:** Start the real Agent Service and an owned Local Computer with an authenticated Runtime.
+Record Runtime version, configured model and available model identity evidence.
+Select a model ID from the actual Runtime catalog; a local routing alias may not be a product model ID.
+For source development, `scripts/dev-local-computer.sh` builds the Go CLI and the Go Daemon beside it.
+The Daemon also requires its sibling TeamHub CLI bundle and the adjacent Node runtime.
+Use the complete Computer bundle or follow the [source-built Computer layout](local-computer.md#source-built-computer).
+A ready Runtime catalog proves discovery, not that the business CLI is installed or a Run can execute.
+Another Me initialization may need additional configured services; a sidebar name alone is not readiness proof.
+A source-built Computer does not prove installation or upgrade of a released package.
+Deployment releases come from the Agent Service image through `/install/`; see [Release Versioning](../../../../apps/computer/AGENTS.md#release-versioning).
+Record the active bundle `app-sha256` against the deployment target; the package version alone is not upgrade evidence.
+The image builds macOS, Linux and `win32-x64` packages; see [Windows install](local-computer.md#windows-install-pairing-and-background-run).
+Check current Computer version floors and complete Daemon/Runtime Registration identities before driving a released Computer.
+The Gateway speaks Runner protocol 2. An older Computer only receives `target_release` and updates itself.
+An old Computer or incomplete identity is not a usable execution environment.
+
+**Journey:** Connect the Computer through the product UI.
+Create a general Agent through the current creation entry, then open its Direct Room.
+Verify Another Me initialization separately when it is part of the requested scope.
+General Agent success does not cover Another Me onboarding.
+Send a simple request, then mention the Agent from an ordinary Room.
+Use the current directory/admission rules to add it; do not seed away the creation or admission step under test.
+
+**Pass:** An unavailable Runtime gives an actionable setup state.
+A ready Runtime can execute the request, and the requested reply is delivered to the correct conversation.
+Check the expected Agent identity and actual message content, then reopen that message.
+A pending approval card, working indicator, or successful Local Run is not proof of the requested reply.
+For free-form answers, judge the requested facts and outcome; use exact text only when the request requires it.
+
+**Evidence:** Correlate the Human message, Agent, Room and Local Run with the actual delivered message.
+Retain screenshots, relevant public state and model/configuration metadata without credentials or private reasoning.
+If testing Agent Instructions, save a change while idle and inspect its effect on a subsequent request.
+An old conversation must not count as proof that new instructions took effect.
+
+## Another Me on the first Computer connection
+
+TeamHub creates Another Me in the transaction that records the Computer online with a ready Runtime, a model and a writable workspace grant (`apps/teamhub/internal/agentregistry/another_me.go`).
+There is no provisioning job, opening generator or Retry route.
+
+**Setup:** A fresh disposable Human with no Computer, and a Computer with a signed-in Codex, Claude Code or Pi.
+**Journey:**
+
+1. Before pairing, open the Room list. Expect no Another Me card; `GET /v0/tenants/{tenantId}/another-me` returns an empty object; recording to Another Me is unavailable.
+2. Pair the Computer and start the Daemon. Do not reload by hand; wait for the realtime hint.
+3. Open the Another Me Chat. Send a simple request and wait for the reply.
+4. Optional failure branch: make the first creation fail on an owned instance. The Computer must still connect, and a later heartbeat must create Another Me once.
+
+**Pass:** The Another Me card appears without a page reload. Its Chat has the template greeting and the profile setup apps card, both read. The Runtime, model and grant are the Computer's first ready ones.
+The starter workspace exists once: Research Analyst, Code Reviewer and a Getting Started Room with the Human, Another Me and Research Analyst. A starter Agent that cannot be placed is skipped and logged.
+Repeated heartbeats do not create a second Another Me or a second starter set. The first request gets a delivered reply.
+**Evidence:** Agent ID, Chat Room ID, starter Agent and Room IDs, Computer ID, and the reply message ID.
+**Reuse:** `apps/teamhub/internal/agentruntimestate/online_hook_test.go` and `apps/teamhub/tests/integration/another_me_test.go`. They use a fixture Computer, not a real pairing.
+
+## Move an Agent to a second Computer
+
+A reported failure mode: the first message after a switch to a second Computer gets no reply, and the second message does. Check both an Agent move and a user continuing from another machine.
+
+**Setup:** Two online Computers of the same Sponsor, both with a ready Runtime. Use an owned General Agent or Another Me with prior history.
+**Journey:** Talk to the Agent on Computer A. Open the model button in the direct Room composer. In `Runtime settings`, select Computer B with a writable grant and choose `Move Agent`. Send three short, distinct requests, each after the previous reply. Then ask what its last answer before the move was.
+Also run the second variant: keep the placement and continue the same Chat from a browser on another machine.
+**Pass:** Each of the three requests gets exactly one reply, in order. The first is not skipped and is not answered later inside another reply. History from before the move stays readable. The Agent CLI credential on A is no longer accepted.
+**Evidence:** Placement before and after, message IDs, Run IDs and Run statuses for all three requests, and the Runner removal on A. If the first request has no reply, record whether its Run exists and its terminal state; that separates delivery from wake-up.
+
+## Execution lifecycle
+
+The executor lives in `apps/node-services/src/agent/executor/`: one `ExecutorRegistry` and one `ContextExecutor` per Context.
+The hook-order goldens pin feature timing. Verify these real-environment branches separately and record their current results in the run report: hot and cold reply, steer, Stop (also while a submit is in flight), native question, approval, Activity and status line, Work Item Task Run, idle park and resume, restart recovery, the next message after a Runtime change, and the Memory context-host path.
+
+**Reuse:** `pnpm smoke:local-runner`, `pnpm smoke:local-runner:soak`, and Node Services Runner process tests.
+These cover deterministic lifecycle boundaries with simulated TeamHub or model dependencies.
+`pnpm smoke:local-runner:live` uses a real model but still simulates TeamHub.
+Check that its fixture implements current callbacks before treating it as a usable live entry.
+
+**Journey:** With the real product stack, send a request and an additional input while work is active.
+When cancellation is in scope, stop an owned long-running request and observe its terminal state.
+For reconnect behavior, stop and restart the owned Computer.
+For service recovery, interrupt only the service started for this run.
+Choose the recovery contract for that interruption; not every interrupted execution should automatically rerun.
+
+**Pass:** Accepted inputs are not lost or confused with another Run.
+An acknowledged cancellation does not present later work as a successful completion of that request.
+Reconnection preserves the intended Computer and Agent identity.
+Recovery either resumes under the current contract or reports the actual failure without duplicating business effects.
+After recovery, verify a new user request and its actual result.
+
+**Evidence:** Preserve before/after Run identities, accepted inputs, terminal states and output counts. For mid-run corrections, retain distinct Human message IDs, their initial/steer links to the same Run, the applied steer outcome, and the final reply. Select the delivered message by its ID and expected author; the same text may also appear in navigation previews and Activity. Record whether the correction arrived before or during tool execution. A live panel with only a header proves entry and Run binding, not streaming tool progress; observe a later visible event before claiming that branch.
+A process reconnect alone does not establish restored model context or exactly-once delivery.
+Report idle reconnect and interrupted-execution recovery separately.
+
+### Run status and Stop by Run ID
+
+The Dock reads only pushed Run statuses: the `GET /v0/rooms/{roomId}/run-statuses` snapshot plus `agent_run.status_changed` on `/v0/events`. A failed snapshot read retries with 1–30 s backoff.
+Stop calls `POST /v0/rooms/{roomId}/runs/{runId}/cancel` for that row's Run only. The Web keeps no Message receipts and does not poll.
+`GET /v0/rooms/{roomId}/active-runs` and `POST .../agents/{agentId}/cancel-messages` are deleted; do not use them as entry points.
+Source: `apps/web/src/features/rooms/chat/room-run-controls.tsx`, `apps/web/src/features/teamhub/run-status-transport.ts` and the [Room run-control contract](../../../../contracts/openapi/paths/room-run-control.yaml).
+
+**Journey:** In a Room with two working Agents, wait for the status line to show the chosen Agent and press its named Stop button. Hovering or focusing the line holds that Agent in place. The activity button opens the currently shown Agent's Activity panel; it is not a multi-Agent dropdown. Repeat while that Agent's request is still being submitted. Stop a queued Run. Stop a Run that just ended.
+**Pass:** The page shows Stopping for `cancel_requested`, and Stopped for `canceled` or `already_terminal`. The other Agent's Run keeps going. Before stopping, retain one snapshot with both distinct Agent Run IDs active in the same Room. A second accepted message alone does not prove simultaneous execution. Afterward, correlate the canceled Run with its actor, the other Run with its delivered reply, and a fresh request to the canceled Agent with a new Run. A canceled queued Run never starts the provider. Published messages and saved files stay.
+The Dock shows `Thinking` for a queued Run, then `Working on your request` or the Activity title, and the Agent leaves the Dock on the reply. A failure shows `Run failed` above the composer only. The Thread and Chat show the same state.
+**Evidence:** The cancel request's `runId`, the Run status events before and after, and a fresh `run-statuses` read. A network log with no `active-runs` poll. For a submit-in-flight check, hold the actual POST response after the server commits it, leave Room events flowing, click the visible Stop before releasing the receipt, then release the original response. This proves cancellation while the browser awaits acknowledgement, not every server-side submission race. Do not fabricate a successful response.
+**Reuse:** `room-run-controls.test.tsx`, `run-status-transport.test.ts` and `message-timeline-card.test.tsx`. Unit tests do not prove a real Runtime stopped.
+
+## Related UI checks and sources
+
+Reuse existing browser tests for Agent Info tabs, searchable activity, avatars, Room navigation and responsive layout.
+A Message activity view must refer to that Message's Run; completed activity is not current live activity. For historical activity, hover a message avatar and choose View activity. Agent Info Details/Routines/Connectors are not the history entry. Select one unique user request, correlate its Run through persisted input/reply evidence and the actual runtime-presentation-events request, then inspect the visible summary. Historical navigation may use draftId without a DOM data-run-id attribute; do not require that optional attribute as the business assertion. With more than ten entries, verify Next has distinct entries and Previous restores the first page. Report live updates and full pagination boundaries separately.
+Check Agent removal, Sponsor Direct Room removal and unrelated Room access when changing that lifecycle.
+When Computer removal changes, verify that assigned Agents block removal and successful removal revokes that Computer's credentials.
+The Collaboration panel reads the current Room's published `team.md`; fixture rendering does not prove Agent publication.
+
+- [Architecture](../../../../docs/architecture.md)
+- [Agent Service](../../../../apps/node-services/src/agent/AGENTS.md)
+- [Local Computer](../../../../apps/computer/AGENTS.md)
+- [Real Room startup](../../../../apps/web/e2e/room-startup.spec.ts)
+- [Real Room creation and sharing](../../../../apps/web/e2e/room-creation.spec.ts)
+
+## Account, session and personal settings
+
+**Setup:** Use disposable Alice and Bob accounts in the isolated database.
+Never change a real teammate's password or profile for verification.
+**Journey:** Check wrong-password rejection, successful login and return to an authorized deep link.
+Change Name, Bio and Organization in Settings → Profile, then reload and read them in a fresh login.
+The visible label is Profile; its current route is `/t/{tenantId}/settings/account`.
+Upload a supported avatar and cover image; read both after a fresh login.
+Check invalid-format and oversized-image feedback, then confirm saved images
+remain unchanged. The current page exposes upload/replacement, not removal.
+Restore disposable image fields through the account API for cleanup when needed;
+do not count that cleanup as a user-facing removal scenario.
+In Settings → Security, reject a wrong current password, change the password, then sign in in a fresh browser context.
+Check that the old password fails and the new password succeeds. Sign out and revisit a protected URL.
+Keep a second signed-in browser context before changing the password. Verify that
+the change revokes that other session while preserving the changing session.
+The current contract rejects a wrong current password with HTTP 400 and
+`INVALID_CURRENT_PASSWORD`; do not mistake that for a successful change.
+Restore the disposable account's original password through the UI, then verify
+it with a fresh login. If restoration is unconfirmed, retain the temporary
+credential only in private recovery storage and report the unresolved state.
+
+**Pass:** The account identity and tenant scope remain unchanged. Saved fields survive reload.
+Invalid input does not replace saved state. A signed-out/expired session cannot reuse cached private content.
+A return URL cannot send the user to an unrelated external site.
+**Evidence:** Save screenshots and sanitized status/identity reads; never retain entered passwords or session cookies.
+**Reuse:** `room-login-chain.spec.ts` (login, return target, wrong password, logout) and the Settings unit tests; password change is unit-tested only, not real account persistence.
+
+## Agent configuration, Skills and deletion
+
+**Setup:** Use an owned General Agent, a ready Computer and a harmless `SKILL.md` with a unique observable instruction.
+Keep Another Me onboarding and Profile generation separate from General Agent initialization.
+**Journey:** Save instructions while idle; send a subsequent request and observe the new instruction taking effect.
+Upload the Skill through Agent Info → Details → Skills, confirm its exact binding, and ask the Agent to apply it.
+Remove that binding, start the next eligible Run and verify the manifest no longer includes it.
+Reject an invalid package without leaving a binding. Exercise the documented busy-update refusal with owned running work.
+Delete the General Agent after its work stops and reopen its former Direct Room and ordinary shared Room.
+
+Wait for the prior Local Run to become terminal before testing a newly bound Skill. A visible reply can precede Run termination; an immediate next message may become `steer` on that old Run and correctly retain its previous resources. Record the input relation and Run ID before calling a missing Skill a delivery defect.
+
+**Pass:** New work uses the current configuration; already accepted work retains its exact resources.
+A prepared but unused Context cannot accept work using a stale profile after another Room initializes it.
+Rejected writes preserve the prior configuration. Skill visibility alone is not authorization to business resources.
+Deletion removes the Agent and Sponsor Direct history according to the current contract, while unrelated Room history remains. Before deleting an owned disposable Agent, obtain an actual reply in a shared Room. After deletion, use a fresh browser login to compare both Human and Agent message IDs, bodies and authors. Check the same previously accepted Agent CLI credential against the same read-only endpoint: successful before deletion, unauthorized afterwards. Keep any temporary credential outside evidence and remove it after the check. A missing local credential file alone does not prove server-side revocation.
+Assigned Agents block Computer removal; successful removal revokes that Computer's credentials.
+**Evidence:** Record configuration revision, manifest version, Local Run identity, requested result and fresh removal reads.
+**Reuse:** Agent Info/Skill tests, Agent registration integration tests, and Context/first-Session regression tests.
+
+## Conversation navigation and sharing boundaries
+
+Extend Room collaboration with a Thread reply, quoted message, attachment, public reaction and draft retention across rapid Room switches.
+Open a search result in its original Thread and inspect its actual Room/message identity.
+Check compact and wide layouts, keyboard focus, long messages and image previews on representative content.
+Open View activity for the selected message and confirm its Run; default summaries must not expose raw tool arguments.
+
+For a Room history snapshot, use a signed-out browser and prove the snapshot excludes later messages.
+Revoke it and verify a fresh anonymous request fails. Do not equate a snapshot with live Room membership or Document download permission.
+Check Room messages and their search visibility under a principal without Room access. Test Document access separately; an active Agent retains its Human’s Document access when removed from a Room.
+Retain screenshot, share/message IDs, source/snapshot counts and fresh authorization responses.
+Do not reintroduce retired registration, invitations or Human-to-Human Direct Rooms.
+
+### Foreground work while background work holds the model
+
+[Model scheduling](../../../../docs/model-scheduling.md) ranks chat above background work on the same endpoint. A Runtime behind a gateway or key starts with one place. Record the Computer version; a Computer before 0.53.0 cannot stop a single background call. Start background Wiki generation on the same Computer as a Direct Room chat. There is no manual refresh; use an operator `memory:wiki-sync` request or a meeting refresh as described in the [Wiki recipe](wiki.md#sources-refresh-and-grounded-answers). Send one request while background work is queued and another while it is in flight. Record separate message, Run, and background start/end times. The chat must start without waiting for the background call to finish; the Computer stops that call and queues it again. After the foreground work ends, verify that the queued background work resumes. Do not infer priority from reply speed.
+
+For a service restart, request one countable effect in an isolated Room. Coordinate effect detection and restart within one harness. Immediately before restart, retain the running Run, first effect, and absence of the final reply; a task that already replied is not an in-flight recovery proof. Stop the Agent Service cleanly during the Run, then restart it. Verify the same Run reaches a terminal success with an incremented attempt count, the native session thread remains unchanged, and a fresh browser sees the unique correct reply. Read the effect count independently. Retain graceful shutdown and requeue events, rather than inferring clean shutdown from an empty container-event history. If the prompt requires checking an existing effect before retry, scope the conclusion to that sample; do not claim universal exactly-once effects. A hard kill is a separate case: capture a running Run without a final reply, force-stop only the owned Agent Service, and restore it. Verify that the old Run becomes failed with process_interrupted without another attempt. Send a fresh user request, verify its actual reply and the unchanged native conversation thread, and independently count prior effects. Report queued-Run continuation separately; it needs a real queued prerequisite. Do not equate a reconnected Computer with a recovered Run.
+
+For queued cancellation, prove the selected Local Run is actually queued before pressing Stop, and retain its unclaimed state after cancellation. Restore temporary environment overrides after each scheduling probe.
+
+Pausing a Computer process is not a reliable way to hold a Room Run queued. The service may report Computer offline before the verifier can operate Stop. Treat failure to observe a queued Run as an unmet test prerequisite, not proof of queued cancellation or a product defect. Always arm restoration before pausing an owned process, coordinate readiness within one harness, and prove a fresh user request works afterwards.
diff --git a/.agents/skills/verify-linger/features/tasks.md b/.agents/skills/verify-linger/features/tasks.md
new file mode 100644
index 00000000..6d3ecc83
--- /dev/null
+++ b/.agents/skills/verify-linger/features/tasks.md
@@ -0,0 +1,212 @@
+# Tasks, decisions and external actions
+
+Verify responsibility, execution, approval and business effects as separate facts.
+Use the [shared execution and evidence rules](README.md).
+
+## Managed Task and Work Item
+
+**Reuse:** TeamHub Task delegation, lifecycle, approval and authority integration tests; Web background-task and Task-sidebar component tests. These do not prove live model execution.
+
+**Setup:** Use a ready Agent in a Room Meta Context and its own AlterEgo on the same Computer. Start with the Agent's actual Direct Room, then cover ordinary Rooms separately. Confirm the current CLI inventory and permissions. Use disposable inputs and a checkable output.
+
+**Journey:** Ask Meta to delegate a bounded task through `teamhub task create --name --requirement`. Creation starts the Task directly; do not look for the retired Task-creation approval card. Confirm the Task's origin Room, Work Room and executor. While it runs, send Meta another message and inspect the background-task indicator.
+
+Put the marked-file requirement and self-contained final report into Meta's `task create --requirement`; the Human does not message AlterEgo in the Work Room. The file belongs under `./playground/<taskId>/`. Verify the Task becomes idle. Read the actual final report from `task check` or the persisted Task callback record, then verify coordinator delivery separately from Meta's visible paraphrase. Ask Meta to read the shared file and publish the requested Document into the origin Room. Open that delivered version in a fresh browser session. The verifier must not copy or publish the file for Meta. To prove shared-file reading rather than a paraphrased callback, let the executor generate a fresh harmless marker in the file and return only its path and hash. Compare that hash with an independent file read and the published content. Correlate the coordinator Context with its native session and selected tool-call results; Agent actor identity alone does not distinguish Meta from AlterEgo. Never retain model reasoning or credentials as evidence.
+
+Exercise `task send` on an idle Task and confirm the same Task resumes. For a separate long-running Task, use `task stop`; verify cancellation, preservation of its files and successful later resumption. Before stopping, prove both the Task and its participant Run are running and retain an existing harmless file. If testing prevention of a delayed write, observe beyond its original scheduled time before resuming, so a late effect cannot be hidden by the next task. Keep the canceled-state evidence separate from resumed-state evidence. Verify the old Run stays canceled and a new Run succeeds within the same Task; do not infer termination of arbitrary OS child processes from these states. Check a failed execution separately from a canceled one. The five execution states are running, waiting_for_approval, idle, failed and canceled; idle is not an irreversible completion state.
+
+**Task Context guard:** With the Task target, AlterEgo cannot create another Task, send Room messages or publish a new Document. Record the target and the explicit Task-context rejection; absence of an effect alone is insufficient. Meta and AlterEgo share an Agent credential, so this Context guard is not isolation between identities. AlterEgo reports to Meta and writes shared files. Tool, connector and connection-authorization approvals still apply to individual actions. Record the actual card destination, including the Sponsor Direct Room when the applicable contract falls back from the origin Room. Deny one harmless action before its expiry and verify both a persisted denial and no effect. Distinguish an expired card from a denied one. Approve a separate exact action and verify its effect and continuation. Do not confuse these cards with Task-creation approval. See [Document access](documents.md#agent-document-access-and-share-notices).
+
+**Pass:** Meta delegates without a creation decision, remains responsive, receives the correct final report and delivers the actual requested output. Task state, coordinator delivery, shared files and published Documents agree. A Run's success or the last visible Room message alone does not establish Task delivery. An ordinary Work Item assignment, comment or status change does not automatically start a Local Run.
+
+**Evidence:** Retain Task ID, origin Room, Work Room, Agent and Context identities, state transitions, final reply, shared-file hash and published Document/version. Read the current Task check result and persisted state; do not use retired Candidate or `task finish` APIs. Capture background activity while it exists, since the indicator disappears when nothing is running.
+
+The current behavior is described in [Task Delegation](../../../../docs/task-delegation.md).
+
+## Task claim wakes and eventual delivery
+
+Commits and due times wake the Task Worker and River; neither polls on a short interval.
+
+**Reuse:** These tests cover the deterministic boundaries:
+
+- `apps/teamhub/tests/integration/task_claim_wake_test.go`: `TestTaskClaimWakesAndNextClaimDelay`, `TestTaskClaimableHintsFollowClaimableTime`, `TestParticipantRunTerminalMakesRunningTaskClaimable`, `TestNonTaskRunTerminalEnqueuesNoTaskJob`, `TestParticipantRunsTerminalEachEnqueueTaskJob`, `TestTaskArchiveAndParticipantRunFinishDoNotDeadlock`, `TestScheduleReconcileKeepsTaskMadeDueDuringLease`, `TestScheduleReconcileAfterHeartbeatOutlastsClaimLease` and `TestTaskReconcileIsCappedAtAttemptDeadline`.
+- `apps/teamhub/tests/integration/river_due_notifier_test.go`: due time, recent-due recheck, step spacing, job finish and `TestEnqueueDocumentTextSyncNotifiesIndexing`.
+- `apps/teamhub/internal/realtime/notification_test.go` (`TestDecodeNotification`) for the hint shapes.
+- `apps/node-services/tests/agent/task-manager/task-worker.test.ts` (`Task Worker idle loop`), `teamhub-task-worker-client.test.ts`, `inbox-source/teamhub-agent-wake-stream.test.ts` and `bootstrap/bootstrap-run-wake.test.ts`.
+
+**Journey:** Use the [managed Task](#managed-task-and-work-item) setup with an idle deployment.
+Delegate a short Task through Meta and let the AlterEgo Local Run finish.
+Record the Run's terminal time, its `task_execution.participant_run_finished` River job, the Task's next claim and Meta's delivery.
+Then restart the Agent Service while a Task runs; the stream's opening `reconcile` must resume claiming. Coordinate an observable first file effect with the restart, and record the exact AlterEgo Run before shutdown. Verify graceful requeue, the same Run with an increased attempt count, the same native session, Task idle, and the delivered coordinator result. Keep Worker start, Run start, Task state and message timestamps separate. Without the actual claim response, do not report its delay header or exact claim latency as measured. A prompt that avoids repeating an existing effect proves that sample only.
+
+**Pass:** A terminal participant Run makes its running Task claimable without waiting for the 60-second reconcile.
+Each terminal Run enqueues one job; a non-Task Run enqueues none.
+The Task reaches idle and Meta delivers the final report once.
+After a lost hint or restart, the Task is still claimed within the Worker's 60-second cap.
+
+**Proof boundaries:** The TeamHub tests use real PostgreSQL and TeamHub HTTP; they drive the Run through test helpers.
+They do not run the Agent Service, a Computer or a model. The Node tests use a fake TeamHub.
+No existing test joins a terminal Run to Meta's delivered report; only a live run proves that chain.
+Observed latency is evidence, not a contract. A River job due in under 5 seconds can start up to about 5 seconds late.
+A new Agent Service against an old TeamHub gets no hints and claims once a minute; record the TeamHub revision.
+
+**Evidence:** Retain Task, Run and River job IDs with timestamps, the claim response's `Task-Next-Claim-Delay-Ms`, the Task state transitions and the delivered message ID.
+
+## Shared Task files on a Local Computer
+
+**Setup:** Read [Task Delegation on the computer](../../../../docs/task-delegation.md#on-the-computer).
+Confirm each claimed behavior in the selected source and run.
+Use one Agent's source-Room Meta and Task executor on the same owned Computer.
+Shared Task files live on that Computer; cloud volumes and mixed placement are outside this scope.
+
+**Journey:** Ask Meta to include a uniquely marked report under `./playground/<taskId>/` in its Task requirement.
+Ask the source-Room Meta to read that exact path without copying the contents into its prompt.
+For an active-work test, ask Meta to send the update requirement through `task send --steer` while the Task runs, then read the executor's updated file from Meta. The verifier must not edit the file itself.
+Restart the owned Computer or release/rebuild the Context, then read the same file again.
+Check that another Room or Agent does not receive this Task's projected entry.
+Before a Computer restart, record that no owned Run is active, the daemon PID,
+the file hashes and actual playground links. After restart, verify the new PID,
+preserved hashes and an actual Meta file read followed by a fresh-browser reply.
+Map each inspected workspace to its persisted Context identity; directory names
+alone cannot prove Agent or Room scope. Compare source Meta, both Task executors,
+another Room of the same Agent and a different Agent. A daemon restart does not
+prove Context deletion or full workspace cleanup. The cleanup invariant is preservation,
+not deletion of shared Task output. `TestForgottenAgentAndGenerationCleanupKeepSharedTaskFiles`
+exercises Agent forgetting and generated-directory removal against real files and links.
+Record that deterministic proof separately from a live Context release. Automatic Task-file
+garbage collection is outside this feature scope; do not invent it as a passing cleanup criterion.
+
+**Pass:** Both authorized Contexts resolve the same authoritative Task files.
+New Task entries appear in an already-running Meta; updates remain visible and Context cleanup preserves the files.
+The verifier does not copy files between Contexts to make sharing pass.
+Shared files are not automatically published Documents or Room messages.
+Local links do not provide operating-system isolation from other processes under the same account.
+
+**Evidence:** Retain Task, Agent, source Room, Context identities, actual file paths/content hashes and before/after reads.
+Resolve `agent_management_id` from the current registration when inspecting physical paths; the public Actor ID is a different identity.
+Separate file sharing, mid-run visibility, persistence, projection scope and final delivery results.
+Reuse `apps/computer/local-daemon/internal/linger/context/shared_task_test.go` and `apps/teamhub/internal/agentruntimestate/shared_task_scope_test.go` for deterministic path, rollback and scope boundaries.
+
+## Runtime permission decisions
+
+**Reuse:** TeamHub permission-review integration tests and typed-card UI tests.
+Use real TeamHub for an actual permission claim; a fake callback returning allow cannot prove the policy.
+
+**Setup:** Record the deployed `TEAMHUB_PERMISSION_REVIEW` value. It is opt-in and defaults to false; a disabled judge does not install the Runtime permission hook. Report enabled-judge approval/denial scenarios as not executed on that deployment, rather than treating missing cards as failures. Connector write confirmations and deterministic Task-target guards are separate mechanisms and do not require this flag. Never silently change the deployment default to satisfy a test.
+
+**Journey:** Request a harmless, explicit action in the owned test workspace and a reply in the current Room.
+Keep the actual configured permission behavior enabled.
+If an expected approval is part of the scenario, inspect and decide that exact card under the user's authorization.
+For a denial check, deny a separate action and verify that it produces no corresponding effect.
+
+**Pass:** Distinguish allow, deny, pending approval and unavailable service.
+Only the permitted action executes, under the approved scope and exact-action semantics.
+A denied or pending action is not completed through a different route.
+Submitting the same public Decision again with its old card version returns 409.
+Verify that it creates no duplicate grant, completion receipt or business effect.
+Do not expect replayed 200 responses for Human Decision submissions.
+A tool succeeding does not prove the final Room reply was delivered.
+For the expected reply, verify the author and ordinary body; card titles and serialized JSON can contain the same marker.
+
+**Evidence:** Link the action and decision to its actual tool result and business effect.
+Record both requested and returned permission-model identities when exposed.
+If they differ, identify the discrepancy and limit any model-specific claim.
+An unavailable service or missing fixture route is not a policy denial or a passing permission test.
+The verifier must not disable review, fabricate allow, or silently approve a card to satisfy an unrelated success criterion.
+
+## Connected Apps and external tools
+
+**Reuse:** `VERIFY_CONNECTED_APPS=1 .agents/skills/verify-linger/scripts/verify.sh`.
+It verifies real TeamHub persistence with simulated Composio/OAuth.
+The parent skill also documents the existing Connector CLI proof and its manual browser handshake.
+Neither proves a real supplier account was used.
+
+**Setup:** For a real claim, identify the authorized supplier account, Agent grant and allowed target/action.
+Use the current provider and tool prerequisites from the [TeamHub CLI README](../../../../apps/teamhub-cli/README.md).
+The Connectors page lists a fixed set of managed apps from `apps/teamhub/internal/externalsource/catalog.go`, filtered by category.
+It has no search box, provider toolkit sync or paginated catalog; GitLab and HubSpot are not offered.
+Connecting needs a Composio API key from `COMPOSIO_API_KEY` or saved in Apps.
+
+**Journey:** Connect the account from the app's card through the provider popup.
+Pending authorization reconciles on the server's one-minute poll, so allow up to 90 seconds after consent.
+The first active connection grants every currently eligible Agent by default.
+Inspect and change that grant in Agent Info → Connectors; the Apps dialog has no Agent grant section.
+Ask the product Agent for a bounded read of a known supplier object.
+Gmail, Outlook, Slack, Google Calendar, Notion, Google Drive, Figma and GitHub have dedicated `teamhub` commands; other apps use `teamhub apps search` and `teamhub apps execute`.
+An Outlook Calendar connection exposes only calendar tools; Outlook mail tools under it return `tool_not_found`.
+If a draft or write is explicitly in scope, perform that exact action and read the resulting object through the supplier.
+Confirmation-class writes wait for the Sponsor's card; see the [TeamHub CLI README](../../../../apps/teamhub-cli/README.md).
+Revoke the relevant Agent grant or disconnect the disposable account, then verify that access is no longer usable.
+
+**Pass:** The intended account and Agent grant are used.
+The result matches the real supplier object, not a simulated provider response or the Agent's unsupported statement.
+No action occurs before required authorization.
+Revocation prevents subsequent access under that grant.
+When retry/deduplication is in scope, verify resulting object counts as well as returned operation IDs.
+
+**Evidence:** Keep grant state, tool identity, provider object ID and an independent provider read.
+Redact credentials and private account data from shareable reports.
+Report app availability, OAuth, tool execution and external write as distinct outcomes.
+
+## Routines
+
+**Reuse:** `room-routines.spec.ts` covers persisted Routine selection, reopening, editing and one firing through real services.
+
+**Journey:** In an owned environment, create a safe bounded schedule using the current Routine UI or authorized tool.
+Reopen it, change it, observe the intended firing, then disable or delete it.
+Check timezone and target Room when scheduling behavior is affected.
+Exercise the Recurring, Paused and Done groups; Done contains elapsed one-time schedules.
+Pause or enable a Routine, use Undo within the displayed five-second window, and verify the persisted state.
+Delete a disposable ordinary Routine from its row and reopen the list.
+An app-listening Routine offers an enable switch, without the ordinary delete action.
+
+**Pass:** Saved configuration matches the user's intent.
+The observed event fires under the current schedule without duplicate business effects.
+No new scheduled firing occurs after the disable or delete takes effect.
+Judge already accepted work separately under the current cancellation contract.
+Observe the requested Agent result separately from a successful trigger.
+An effective Agent-targeted instruction enters its Inbox without a Human timeline message.
+When an Agent-created Routine targets itself, the wake message uses an eligible Human author;
+it must still target that Agent and stay out of the ordinary Human timeline.
+Human repeated creation can create a second Routine; do not call that a scheduler duplicate.
+Agent CLI retries with the same invocation ID must not create a second Routine or a second wake.
+Separately prove competing scheduler jobs for one occurrence produce only one firing.
+A reminder without an effective Agent target remains visible; verify the current sender and target separately.
+
+**Evidence:** Retain Routine identity, schedule/timezone, trigger event, resulting Run/message and disabled/deleted state.
+Default-on proactive review and supplier-dependent event variants have separate prerequisites in the [map](README.md#routines-and-proactive-reminders).
+
+## Sources
+
+- [Task Delegation](../../../../docs/task-delegation.md)
+- [TeamHub ownership](../../../../apps/teamhub/AGENTS.md)
+- [Permission integration tests](../../../../apps/teamhub/tests/integration/runtime_permission_review_test.go)
+- [Routine E2E](../../../../apps/web/e2e/room-routines.spec.ts)
+
+## Ordinary Work Items and Dashboard
+
+**Setup:** Use two disposable members, a source Room, and a normal Work Item rather than a managed Task.
+The Dashboard is a read surface. Create, assign, comment and change status through the public or Agent business API.
+Do not report an API mutation as a UI edit or invent a Dashboard editing control.
+
+**Journey:** Create an item with a unique title; assign it, add a comment and advance its status.
+Open its Dashboard link, apply the Room filter, reopen the item and inspect the current responsible member and status.
+Compare a second Human in the same Tenant: direct reads and Human Work Item commands remain allowed. Compare the personal Dashboard projection separately; absence there is not denied access. Use a different Tenant for a Human denial and require not found without record disclosure. Separately test an Agent with no assignment, creation grant or explicit grant.
+Archive only the owned item through its supported operation.
+
+**Pass:** Responsibility, status and comments persist without automatically creating a Local Run or a Task Room.
+For Agents, Room membership alone grants no Work Item permission; the reverse is also true. Human authority comes from Tenant membership, not Room membership.
+Task result links and ordinary item links resolve to their own identities.
+A missing item or denied link gives the actual unavailable state, not another item's cached details.
+
+**Evidence:** Retain mutation receipts, item IDs, before/after execution inventory, two identity reads and Dashboard screenshots.
+**Reuse:** `apps/teamhub/tests/integration/work_item_test.go`, the Work Item contract tests, and `apps/web/src/features/work-items/work-items-page.test.tsx`.
+
+## External action failure and recovery
+
+Extend Connected Apps and Canvas with an owned supplier object and an independently observed final effect.
+Test cancellation before authorization, revoked/expired grants, a supplier rejection, and retry after a transient failure.
+For a send/write operation, count final supplier objects; a timeout does not permit blind resend.
+Inspect partial success and idempotency according to the connector's contract.
+Keep provider request/result identities and a fresh supplier read, with tokens and unrelated account data redacted.
+A simulated provider proves only the integration boundary; actual OAuth, drafts and delivery remain separate results.
diff --git a/.agents/skills/verify-linger/features/wiki.md b/.agents/skills/verify-linger/features/wiki.md
new file mode 100644
index 00000000..28b0a8e1
--- /dev/null
+++ b/.agents/skills/verify-linger/features/wiki.md
@@ -0,0 +1,241 @@
+# Wiki, knowledge quality and Agent memory
+
+Verify what a user or Agent can learn from published information.
+A saved source, admitted refresh, preview, published page and useful answer are separate outcomes.
+Use the [shared execution and evidence rules](README.md).
+
+**Automated full flow first:** [`lifecycle.ts`](../../../../apps/node-services/scripts/memory-benchmark/README.md)
+runs one Human from connect to the second night in process, in product order, on a fixture with known facts, and checks each stage:
+the Profile builds memory.md; connected My pages files and a mail initialize the Wiki;
+Room chats and a meeting are staged and searchable by day, and the meeting refreshes the Wiki on its own;
+each night updates the Wiki, memory.md, the Daily with the Pocket Note, Tracking Items and Monday's Weekly;
+a file edit and a corrected preference replace older facts; the Another Me answers eleven known questions.
+It takes about four minutes with the LLM gateway and exits non-zero on any failed check.
+It does not cover TeamHub admission, publication and queues, the scheduler's timing, retries and offline wait,
+the Computer Runtime or the Web; the journeys below do.
+
+## Sources, refresh and grounded answers
+
+**Reuse:** Wiki unit tests under `apps/web/src/features/wiki`, Memory SQL tests and the Wiki request-budget test.
+`wiki-home-page.test.tsx`, `wiki-preview-pages.test.ts` and `wiki-refresh-preview.llm-wiki.test.ts` cover the in-place preview and its stream.
+`personal_wiki_dispatcher_test.go` covers preview storage, and `mail_wiki_whitelist_test.go` covers source admission.
+No browser spec proves generation; that needs a real model.
+The live spec's current environment prerequisites are declared in its source.
+It requires an explicitly selected running Web/service environment, not the default Document baseline.
+
+**Setup:** Start the actual configured Wiki/Memory services and model dependencies when generation is in scope.
+Use the package launcher or the packaged runtime environment; generation runs on the Another Me's Computer, so it needs the agent role in the same process.
+Connect an owned Computer with a signed-in Codex or Claude Code and confirm the Human has an active Another Me registration.
+Current refresh admission requires that registration even for an uploaded source.
+A missing registration returns 404; inspect the response before waiting for generation.
+Record the process time zone. Memory and the Wiki turn the day over at midnight there; Compose containers default to UTC.
+Prepare a source with a unique marker and known, checkable facts.
+Record the existing published output so an older page cannot satisfy the new refresh.
+
+**When a refresh happens:** Read the scheduled sync in the [Memory README](../../../../apps/node-services/src/memory/README.md).
+There is no manual refresh, no Wiki Upload or Refresh control, and no public refresh route.
+
+- My pages edits and uploads, mail text and the 23:30 mail sync only produce and index text. They wait for the nightly refresh at 00:00.
+- A recording's final transcript starts a meeting refresh that admits only that meeting's Sessions.
+- A connected mailbox's first completed snapshot starts a nightly-kind refresh about one minute later.
+- Room messages start no Wiki refresh. A quiet Room's Session is indexed 10 to 11 minutes after its last message and becomes searchable; the Wiki takes it in at night.
+
+**Journey:** Add the source through My pages with Import, drop or New file, then read back that source Document.
+Wait until its text is ready; a source whose text is not ready at admission waits for the next night.
+Choose one trigger and record it: the scheduled 00:00 refresh, a meeting refresh, a first mailbox snapshot, or an operator request.
+For an operator request on an owned environment, run `pnpm --filter @linger/node-services memory:wiki-sync --date <date>` in the Memory role's environment.
+It sends the same internal nightly request that Memory sends at 00:00.
+TeamHub keys its replay by date, the Session set, the current revision and the latest failed refresh, not by My pages changes.
+Use a date not yet requested for this Wiki, and require a new refresh ID. A replayed `already_latest` does not admit the new source.
+Report an operator request separately from the automatic schedule.
+While the refresh runs, open the Wiki tab. It shows `Another Me is writing your Wiki`, and pages written so far appear as cards in their sections; open one.
+Then wait for the actual publication within a bounded observation window.
+Open the resulting page, ask a question answerable from the source, then ask one the source does not answer.
+Published pages are read-only Markdown file Documents; read their actual page body and retain the Wiki revision.
+When refresh or failure behavior changes, update the source and exercise the relevant recovery case.
+
+**Source admission:** Add one admitted file and one that the whitelist leaves out, such as a scanned PDF, an image or CSV.
+The left-out file must never reach generation: it is absent from the refresh's frozen sources, and `wiki_document_verdicts` gives its reason. The Web does not list left-out sources.
+Profile uses the same admission rule; see [Pocket Notes and current Profile](#pocket-notes-and-current-profile).
+
+**Pass:** The source is persisted under the intended identity.
+The preview cards are only new or changed pages of the running refresh, each in its own section; a changed page replaces its published card. Publication replaces them; a failed or conflicted refresh removes them.
+Preview content is not published content: search and Agent answers must not use it.
+New output is attributable to this source and refresh, not merely any existing `wiki_page` binding.
+The answer contains the expected facts and usable provenance.
+Missing information remains distinguishable from supported facts; a plausible answer alone is insufficient.
+Failed refresh does not present incomplete output as a successful publication or erase the previous safe output.
+A later successful refresh exposes the updated source content.
+
+**Failed refresh must end:** A refresh that misses a required routed page splits the rejected batch in halves down to one source. A single source that still fails is skipped with a `wiki_sources_skipped` ERROR log, and its frozen version settles with this publication.
+The same version is not retried; a new version of that source is processed again. If an update skips every source, the previous version is published again. Initialization with no passing source fails the whole generation.
+Memory Session triggers stop after five failed runs of one version with `memory_session_trigger_skipped`.
+Source: `apps/node-services/src/llm-wiki/wiki-initialization.ts`, `apps/node-services/src/memory/session-triggers.ts` and the [Memory README](../../../../apps/node-services/src/memory/README.md).
+To verify, use one source that cannot produce its routed page and one good source. Observe the refresh that skips it, then at least one later refresh of the same Wiki.
+For Session triggers, also observe several quiet-Room cycles of the failing Session.
+**Pass:** The good source publishes. The bad source is skipped once and is not admitted again until it changes. No repeating generate-and-correct cycle uses the Computer's model.
+**Evidence:** Refresh IDs and dispositions, the skip log entries, `model_call.invoked` counts per refresh and per quiet cycle, and the published revision.
+A short local run does not prove the absence of repeated failures over a full day.
+**Reuse:** `wiki-initialization.llm-wiki.test.ts` and `tests/memory/session-triggers.test.ts`.
+
+**Evidence:** Keep source ID/version, trigger, refresh ID and state, preview observations, resulting page IDs/versions, representative content and question/answer observations.
+Use current public APIs and fresh reads for persistence.
+Inspect quality against the known source; avoid asserting exact prose for a free-form summary.
+A disappearing progress banner is not completion evidence.
+
+**Windows background generation:** Use the Computer assigned to Another Me. A successful Room reply or Task exercises a different invocation mode and does not prove the Wiki model workspace can write.
+If generation returns no pages or repeatedly reports missing target pages, record three observations separately: the provider finished its turn, it wrote the requested files inside the operation directory, and Wiki accepted and published the candidate.
+To isolate a write failure, run the opt-in `TestLiveCodexWorkspaceModelInvoke` from the same revision on that Computer, with its actual runtime and a private test configuration.
+Require both output files and the outside-directory canary exclusion. Record the returned model, output file names and runtime version.
+A completed model call that only describes files in its final answer is a failure.
+Passing the probe does not replace publishing and reopening a Wiki page through the product.
+Preserve the original result before changing configuration. Keep sandbox restrictions enabled.
+
+## Knowledge quality benchmark (LoCoMo and LongMemEval)
+
+**Use when** a change can move answer quality: Raw staging or indexing, Session facts, knowledge search/read,
+the Personal Knowledge policy, Wiki generation, the day read (memory.md and Daily) or memory.md delivery.
+A unit test, the full-flow run or one grounded answer cannot show a quality regression; this benchmark compares many known answers.
+
+**Setup:** Follow [the benchmark README](../../../../apps/node-services/scripts/memory-benchmark/README.md):
+a disposable localhost `memory_benchmark*` PostgreSQL migrated by TeamHub, and the LLM gateway keys from the root `.env`.
+It replays each history day by day through the product code: Room-day Raw, index and facts, then each night's Wiki update and day read,
+then indexes the final Wiki and Dailies. Weekly and Tracking Items do not run.
+
+**Journey:** Run the baseline revision and the changed revision on the same plan, arms, models and at least three rounds.
+Use `locomo-validate7` as a smoke check that the harness runs on this revision,
+then `locomo-amb120` and `longmemeval-third60` for a quality claim.
+Choose arms by what changed: `product` (memory.md plus search, what the Another Me has) always;
+`search`, `wiki` (Wiki pages and Dailies only) and `memory-md` to locate a change; `none` as the floor.
+Pass the baseline run with `--baseline` so the report sets the two side by side.
+Reuse a prepared `--state` only when preparation is unchanged (answering, search or the policy changed);
+`--skip-nightly` is for search-only changes and allows only `search` and `none`.
+
+**Pass:** The judge passes its known-answer controls, every planned question has an answer or a recorded error,
+the report shows no unexplained nightly failures, and `none` stays well below `product`.
+A regression is a mean drop larger than the baseline's own min–max spread, per arm and per question type.
+Report a difference inside that spread as no measurable change, not as an improvement.
+
+**Evidence:** Keep both runs' `report.md`, `summary.json` and `manifest.json` (revision, dirty hash, models, judge protocol, stages),
+and the nightly checkpoints of any failed night.
+Inspect a sample of changed per-question JSON files, including tool calls and the judge's reason, before attributing a change.
+The benchmark uses the gateway model and in-process Memory and Wiki code; it does not prove TeamHub authorization,
+the CLI projection, Runtime cost or latency, time-sliced daytime refresh, or the live journeys above.
+
+## Agent memory across Rooms
+
+**Setup:** Read [Agent memory](../../../../docs/wiki-and-memory.md#agent-memory).
+Maintenance always runs on the Agent's own Computer with its Codex or Claude Code and needs that Computer online.
+This is distinct from the Human knowledge maintained by the Memory service.
+
+**Journey:** Give one product Agent a durable test convention in Room A.
+Extraction runs after every five successful Room Runs of that Agent. Consolidation into memory waits until the Agent has had no Run for six hours, or until a Context compaction.
+Wait for that publication evidence, then use the same Agent in a fresh Room B Context.
+Ask it to apply the convention without copying that fact into the new prompt or its Instructions.
+Provide a correction and check its use after the same update boundary.
+For isolation changes, compare a different Agent that has not received the test fact.
+Keep the test fact out of all Documents readable by the Agent. Retrieval from a Document is not evidence of memory inheritance.
+
+**Pass:** The same Agent uses the published convention in the new Context.
+Current explicit corrections take precedence over stale memory.
+Another Agent does not automatically inherit this Agent's memory.
+Maintenance failures preserve the previous published state and remain observable.
+Do not expect every sentence to become memory or an active Context to restart immediately.
+
+**Evidence:** Correlate Agent identity, source Context, maintenance/publication record, new Context and observed answer.
+An existing conversation or a prompt repeating the fact does not prove memory use.
+A single successful example does not establish universal recall, privacy or answer quality.
+
+Periodic native Context compaction applies to Codex and Claude Code Runtimes.
+The feature owner is `apps/node-services/src/agent/agent-features/context-restart/feature.ts`; reuse `tests/agent/agent-features/context-restart.test.ts`.
+A timer unit test does not prove a real Runtime compacted and reactivated its Context.
+
+## Pocket Notes and current Profile
+
+**Journey:** Create a disposable Pocket Note on a supported past date, reopen it, then delete it through its confirmation dialog.
+Verify its removal after a fresh read; preserve unrelated notes.
+When Profile retrieval is in scope, update a unique fact through Add source or Another Me's personal-profile Skill.
+The Wiki Profile page is read-only; it is not a manual Profile editor.
+Files and the Another AI summary need no connection; an app source needs an authorized connection. Connecting an app alone does not generate a Profile.
+Observe the resulting Profile revision and corresponding Raw indexing.
+Query from an authorized Another Me Context without repeating the fact in the question.
+
+**Profile source admission:** Profile accepts only material that passes the Wiki source admission rule.
+Upload one admitted file and one rejected file, such as a scanned PDF. The rejected file must not contribute facts.
+A file whose text is still being normalized makes the generation wait instead of entering unchecked.
+Mail enters only when its content hash matches an admitted Wiki source Version for that owner.
+With no eligible evidence, the current Profile stays unchanged.
+Reuse `personal_profile_supplement_test.go` and `mail_wiki_whitelist_test.go`.
+
+**Pass:** Note deletion affects the selected date only.
+Profile retrieval reflects the current revision after synchronization, without retaining the superseded revision as current knowledge.
+Profile Raw indexing does not imply publication into the OpenWiki page graph.
+
+**Evidence:** Keep note date, Profile revision, admitted and rejected source IDs, indexing state and independently checked query results.
+Reuse the Pocket Note panel tests and Memory Profile indexing tests.
+The UI entry is `apps/web/src/features/rooms/pocket-notes/pocket-note-panel.tsx`.
+
+## Sources and current entry hints
+
+The current Wiki route is `/t/{tenantId}/library/wiki`.
+The main route opens Profile by default. Use the Wiki tab (`?tab=wiki`) for generated collections.
+Profile's Add source opens the account source dialog; it is not proof of Wiki publication.
+While a refresh runs, the Wiki tab shows `Another Me is writing your Wiki`; after a failure it shows `Wiki update failed`.
+Pages being generated appear as ordinary section cards that open on the `/t/{tenantId}/wiki-preview` route; there is no separate preview region.
+Do not infer success from a progress message alone.
+Resolve IDs from the current run and clean up only its owned Documents and resources.
+
+- [Personal wiki](../../../../docs/wiki-and-memory.md#personal-wiki)
+- [Agent memory](../../../../docs/wiki-and-memory.md#agent-memory)
+- [Memory README](../../../../apps/node-services/src/memory/README.md)
+
+## User Memory and nightly maintenance
+
+### Maintenance schedule
+
+Memory runs in the process time zone:
+
+- Every hour, the Wiki task compares the current Profile Revision with the one memory.md last absorbed. It calls the model only when they differ.
+- At 23:30 TeamHub reads new mail for each connected mailbox. It requests no refresh.
+- At 00:00 the nightly run reads the closed day. It proposes memory.md edits, writes the Daily report and Tracking Items, and requests the nightly Wiki refresh.
+- Weekly maintenance writes the Weekly report from that week's Daily reports.
+
+Report each scheduled step separately from an explicitly invoked command such as `memory:daily`, `memory:weekly` or `memory:wiki-sync`.
+A missed night is not proved by an explicit command that passed.
+
+### User Memory delivery to Another Me
+
+A Human's memory.md is distinct from an Agent's cross-Room memory and a generated Wiki page.
+Use a synthetic Profile fact and correlate its published `user_memory_revisions` version with the read-only projection `memory/me/memory.md`. Do not edit the projection as setup.
+In a fresh Another Me Context, ask a question that requires that fact without repeating it in the prompt. Record the identity version and actual answer.
+Give an explicit correction in conversation. It applies in that conversation at once; other Contexts get it after the nightly run publishes a new version.
+In an already-open Context, verify that the next ordinary input carries `<user-memory-update>` and that the version is acknowledged only after a successful Run.
+Reject a candidate with unsupported quoted evidence in a deterministic test; confirm the previous safe version persists.
+Do not count another Agent's memory, a retrieved Document, a reply that repeats the test prompt, or a completed model turn without publication as memory.md delivery.
+
+### Human Memory pipeline
+
+The Human Memory pipeline is separate from Agent memory across Rooms.
+Collect an owned, uniquely marked Room/meeting/note source, run the supported Daily and Weekly maintenance, and inspect the stored outputs.
+Daily reports live under `timeline/daily/`, Weekly reports under `timeline/weekly/`, and the portrait under `me/`.
+Verify current Wiki publication receipts and freshness before treating generated content as available knowledge.
+Repeat an unchanged source and check checkpoint/idempotency behavior; change or delete the source and verify the documented reconciliation.
+Simulate a provider failure in deterministic tests; previous safe publications must remain usable and retries must stay bounded.
+
+Combine SQL tests with the live source → publication → grounded-answer journey; report each boundary separately.
+Retain source hashes, receipt IDs, publication revision, model identity, call count, output checks and failure classification.
+Do not include private conversation material or Runtime credentials in shared reports.
+
+### Background recovery and first failure
+
+On the default Compose stack, observe a background call in flight before restarting the isolated Node Services process. Record its identity, restoration or disposition, and the published revision.
+Test clean shutdown separately from a forced exit.
+Only claim useful recovery if the original work reaches its documented outcome and no duplicate publication appears. An empty queue is insufficient.
+Background model calls queue below interactive work and can be swapped out by it; see [Model Scheduling](../../../../docs/model-scheduling.md).
+
+Record the Local Computer OS and runtime. Reopen the published body after reload, follow one citation to its source, then ask one supported and one unsupported question. A completed model turn alone does not prove publication.
+
+Include failure before the first publication. No old Revision exists, and the terminal failure must stop Memory's publication wait instead of appearing as an ordinary 404 until its deadline.
+The internal revision read returns 409 `WIKI_GENERATION_FAILED`. An untouched Wiki or a queued follow-up remains unpublished and returns 404.
+Reuse `TestFirstWikiFailureReachesPublicationWaiter` and `wiki-publication-wait.test.ts`, then confirm the pending maintenance request progresses on the real service.
+This does not prove the underlying generation failure is repaired.
diff --git a/.agents/skills/verify-linger/playwright.config.ts b/.agents/skills/verify-linger/playwright.config.ts
new file mode 100644
index 00000000..4e9a4faf
--- /dev/null
+++ b/.agents/skills/verify-linger/playwright.config.ts
@@ -0,0 +1,95 @@
+import { defineConfig } from "@playwright/test";
+import { fileURLToPath } from "node:url";
+
+import base from "../../../e2e/playwright.room-document.config";
+
+if (
+ process.env.PLAYWRIGHT_SKIP_WEB_SERVER === "1" ||
+ process.env.TEST_DATABASE_URL
+) {
+ throw new Error("Verification requires its own managed servers and database");
+}
+const evidence = process.env.VERIFY_LINGER_EVIDENCE;
+if (!evidence)
+ throw new Error("Launch with scripts/verify.sh to allocate evidence");
+
+const roomStartupProof = process.env.VERIFY_ROOM_STARTUP === "1";
+const productionStartupProof =
+ process.env.VERIFY_ROOM_STARTUP_PRODUCTION === "1";
+const connectorProof = process.env.VERIFY_CONNECTOR_CLI === "1";
+const appsProof = process.env.VERIFY_CONNECTED_APPS === "1" || connectorProof;
+const providerPort = process.env.VERIFY_COMPOSIO_PORT ?? "28087";
+const backendEnv = {
+ COMPOSIO_API_KEY: "disposable-provider-key",
+ TEAMHUB_COMPOSIO_ENVIRONMENT_KEY: "browser-proof",
+ WEB_PUBLIC_ORIGIN: `http://127.0.0.1:${process.env.PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT ?? "23008"}`,
+};
+
+export default defineConfig({
+ ...base,
+ webServer: Array.isArray(base.webServer)
+ ? [
+ ...(appsProof
+ ? [
+ {
+ command: "node .agents/skills/verify-linger/apps-provider.mjs",
+ url: `http://127.0.0.1:${providerPort}/healthz`,
+ reuseExistingServer: false,
+ cwd: fileURLToPath(new URL("../../..", import.meta.url)),
+ },
+ ]
+ : []),
+ ...base.webServer.map((server, index) => ({
+ ...(appsProof ? { env: backendEnv } : {}),
+ ...server,
+ // TeamHub reaches the disposable provider through the harness.
+ ...(appsProof && index === 1
+ ? {
+ command: `${server.command} -composio-base-url=http://127.0.0.1:${providerPort}`,
+ }
+ : {}),
+ ...(productionStartupProof && index === 0
+ ? {
+ command:
+ "pnpm --filter @linger/web run build:assets && pnpm --filter @linger/web exec node e2e/room-startup-production-server.mjs",
+ timeout: 300_000,
+ }
+ : {}),
+ cwd: fileURLToPath(new URL("../../..", import.meta.url)),
+ })),
+ ]
+ : base.webServer,
+ testDir: fileURLToPath(
+ new URL(
+ roomStartupProof || productionStartupProof
+ ? "../../../apps/web/e2e"
+ : ".",
+ import.meta.url,
+ ),
+ ),
+ testMatch: roomStartupProof
+ ? "room-startup.spec.ts"
+ : productionStartupProof
+ ? "room-startup-production.spec.ts"
+ : connectorProof
+ ? "connector-cli.spec.ts"
+ : appsProof
+ ? "apps.spec.ts"
+ : "document.spec.ts",
+ timeout: 120_000,
+ workers: 1,
+ retries: 0,
+ shard: undefined,
+ outputDir: `${evidence}/browser`,
+ reporter: [
+ ["list"],
+ ["html", { open: "never", outputFolder: `${evidence}/report` }],
+ ],
+ use: {
+ ...base.use,
+ actionTimeout: 30_000,
+ trace: productionStartupProof ? "retain-on-failure" : "on",
+ screenshot: "on",
+ video: productionStartupProof ? "off" : "on",
+ },
+});
diff --git a/.agents/skills/verify-linger/scripts/doctor.sh b/.agents/skills/verify-linger/scripts/doctor.sh
new file mode 100755
index 00000000..4e1596fc
--- /dev/null
+++ b/.agents/skills/verify-linger/scripts/doctor.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+for endpoint in \
+ "${PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT:-23008}/healthz" \
+ "${PLAYWRIGHT_ROOM_DOCUMENT_TEAMHUB_PORT:-28089}/healthz" \
+ "${PLAYWRIGHT_ROOM_DOCUMENT_CONTROL_PORT:-28088}/healthz" \
+ "${PLAYWRIGHT_ROOM_DOCUMENT_RUNTIME_PORT:-24328}/readyz"; do
+ printf 'GET http://127.0.0.1:%s\n' "$endpoint"
+ curl --noproxy '*' --fail --silent --show-error --max-time 5 "http://127.0.0.1:$endpoint"
+ printf '\n'
+done
+printf 'Listeners (compare PIDs with this run, not just port availability):\n'
+if command -v ss >/dev/null; then
+ss -ltnp | awk -v ports=":(${PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT:-23008}|${PLAYWRIGHT_ROOM_DOCUMENT_TEAMHUB_PORT:-28089}|${PLAYWRIGHT_ROOM_DOCUMENT_CONTROL_PORT:-28088}|${PLAYWRIGHT_ROOM_DOCUMENT_RUNTIME_PORT:-24328})$" '$4 ~ ports'
+
+else
+ for port in "${PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT:-23008}" "${PLAYWRIGHT_ROOM_DOCUMENT_TEAMHUB_PORT:-28089}" "${PLAYWRIGHT_ROOM_DOCUMENT_CONTROL_PORT:-28088}" "${PLAYWRIGHT_ROOM_DOCUMENT_RUNTIME_PORT:-24328}"; do
+ lsof -nP -iTCP:"$port" -sTCP:LISTEN
+ done
+fi
diff --git a/.agents/skills/verify-linger/scripts/verify.sh b/.agents/skills/verify-linger/scripts/verify.sh
new file mode 100755
index 00000000..468f7a02
--- /dev/null
+++ b/.agents/skills/verify-linger/scripts/verify.sh
@@ -0,0 +1,67 @@
+#!/usr/bin/env bash
+set -euo pipefail
+umask 077
+repo=$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../.." && pwd)
+cd "$repo"
+node -e 'const [major, minor] = process.versions.node.split(".").map(Number); if (major !== 26 || minor < 5) throw Error("Use Node >=26.5.0 <27");'
+if [[ -n ${TEST_DATABASE_URL:-} || ${PLAYWRIGHT_SKIP_WEB_SERVER:-0} == 1 ]]; then
+ printf 'Refusing an external database or shared Web server.\n' >&2
+ exit 2
+fi
+for binary in ROOM_DOCUMENT_E2E_MIGRATE_BINARY ROOM_DOCUMENT_E2E_DEMO_SEED_BINARY ROOM_DOCUMENT_E2E_TEAMHUB_BINARY; do
+ if [[ -n ${!binary:-} ]]; then
+ printf 'Unset %s so verification runs current-checkout source.\n' "$binary" >&2
+ exit 2
+ fi
+done
+export PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT=${PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT:-23008}
+export PLAYWRIGHT_ROOM_DOCUMENT_TEAMHUB_PORT=${PLAYWRIGHT_ROOM_DOCUMENT_TEAMHUB_PORT:-28089}
+export PLAYWRIGHT_ROOM_DOCUMENT_CONTROL_PORT=${PLAYWRIGHT_ROOM_DOCUMENT_CONTROL_PORT:-28088}
+export PLAYWRIGHT_ROOM_DOCUMENT_RUNTIME_PORT=${PLAYWRIGHT_ROOM_DOCUMENT_RUNTIME_PORT:-24328}
+export PLAYWRIGHT_ROOM_DOCUMENT_POSTGRES_PORT=0
+export TEAMHUB_TEST_DATABASE=isolated
+mkdir -p .cache
+if command -v flock >/dev/null; then
+ exec 9>.cache/verify-linger.lock
+ flock -n 9 || { printf 'Another verification owns this checkout.\n' >&2; exit 2; }
+else
+ mkdir .cache/verify-linger.lockdir 2>/dev/null || { printf 'Another verification owns this checkout.\n' >&2; exit 2; }
+ trap 'rmdir .cache/verify-linger.lockdir' EXIT
+fi
+for port in "$PLAYWRIGHT_ROOM_DOCUMENT_WEB_PORT" "$PLAYWRIGHT_ROOM_DOCUMENT_TEAMHUB_PORT" "$PLAYWRIGHT_ROOM_DOCUMENT_CONTROL_PORT" "$PLAYWRIGHT_ROOM_DOCUMENT_RUNTIME_PORT" ${VERIFY_CONNECTED_APPS:+${VERIFY_COMPOSIO_PORT:-28087}} ${VERIFY_CONNECTOR_CLI:+${VERIFY_COMPOSIO_PORT:-28087}}; do
+ if [[ ! $port =~ ^[0-9]+$ ]] || ((port < 1 || port > 65535)); then
+ printf 'Invalid verification port: %s\n' "$port" >&2
+ exit 2
+ fi
+ if { command -v ss >/dev/null && [[ -n $(ss -H -ltn "sport = :$port") ]]; } || { ! command -v ss >/dev/null && lsof -nP -iTCP:"$port" -sTCP:LISTEN >/dev/null; }; then
+ printf 'Port %s is already owned; choose a different port.\n' "$port" >&2
+ exit 2
+ fi
+done
+mkdir -p test-results/verify-linger
+export VERIFY_LINGER_EVIDENCE
+VERIFY_LINGER_EVIDENCE=$(mktemp -d "$repo/test-results/verify-linger/run.XXXXXX")
+printf 'Evidence: %s\n' "$VERIFY_LINGER_EVIDENCE"
+{
+ git rev-parse HEAD
+ git status --short
+ node --version
+ pnpm --version
+ printf 'TEAMHUB_TEST_DATABASE=%s\n' "$TEAMHUB_TEST_DATABASE"
+ printf 'CHOKIDAR_USEPOLLING=%s CHOKIDAR_INTERVAL=%s\n' "${CHOKIDAR_USEPOLLING:-}" "${CHOKIDAR_INTERVAL:-}"
+ env | LC_ALL=C sort | sed -n '/^PLAYWRIGHT_ROOM_DOCUMENT_.*_PORT=/p'
+} > "$VERIFY_LINGER_EVIDENCE/source.txt"
+git diff --no-ext-diff HEAD > "$VERIFY_LINGER_EVIDENCE/source.patch"
+{
+ git diff --name-only --diff-filter=d -z HEAD
+ git ls-files -z --others --exclude-standard
+} | while IFS= read -r -d '' changed_file; do
+ shasum -a 256 "$changed_file"
+done > "$VERIFY_LINGER_EVIDENCE/changed-files.sha256"
+set +e
+pnpm exec playwright test --config .agents/skills/verify-linger/playwright.config.ts "$@" 2>&1 | tee "$VERIFY_LINGER_EVIDENCE/run.log"
+result=${PIPESTATUS[0]}
+set -e
+printf '%s\n' "$result" > "$VERIFY_LINGER_EVIDENCE/exit-code.txt"
+printf 'Evidence retained: %s\n' "$VERIFY_LINGER_EVIDENCE"
+exit "$result"
diff --git a/AGENTS.md b/AGENTS.md
index def4a520..e5d0c9bb 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -49,6 +49,8 @@ Memory, and Voice services.
- `packages/document-model`: shared Room Document schema inspection and deterministic state helpers.
- `packages/service-kit`: shared isomorphic guards and helpers (`@linger/service-kit`) and the Node JSON logger and SHA-256 helper (`@linger/service-kit/node`).
- `skills`: versioned built-in Skill assets embedded into TeamHub.
+- `.agents/skills/verify-linger`: acceptance recipes and an isolated
+ real-service proof for a coding Agent verifying user journeys.
## Important Conventions