diff --git a/.agents/skills/verify-linger/features/README.md b/.agents/skills/verify-linger/features/README.md index d7ba2a275..a28b38bc6 100644 --- a/.agents/skills/verify-linger/features/README.md +++ b/.agents/skills/verify-linger/features/README.md @@ -11,33 +11,43 @@ Recipes are definitions, not execution results or claims about an uncommitted re ## 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 | -| Add or change an Agent Runtime | [New Runtime](local-computer.md#new-runtime-acceptance) | Runtime adapter fake-process tests; Runner smoke | Every tool class, permissions, complex Tasks and failures against a Claude Code baseline | -| Install, update and uninstall Desktop client | [Desktop & Installer](desktop-and-installer.md) | `verify-local-client.mjs`, `make check-desktop`, `make check-installer`, `make check-packages`, Windows native ACL/Pi smoke | Real `.dmg`/`.tar.gz`/`-setup.exe` install, Quick Install, updater swap, permissions, uninstall across macOS/Linux/Windows | -| Upgrade Desktop from the previous release | [Upgrade](desktop-and-installer.md#upgrade-from-the-previous-release) | Resume and local-model restore unit tests | Required for every release and RC: a real previous install, each upgrade path, Quit → Reopen, cold restart | -| Deploy local models and switch to BYOK | [Local Models & BYOK](local-models-and-byok.md) | `verify-local-client.mjs`, `localmodels` Go tests, `byok-endpoint` & Settings › Models unit/integration tests | Real `localmodels` kit download, GPU/Metal/CUDA load, drive check, BYOK endpoint execution & quit/resume teardown across macOS/Linux/Windows | -| Sleep, wake, crash and quit with local models | [Sleep, wake and quit](local-models-and-byok.md#sleep-wake-and-quit) | `computer-daemon-lifecycle.test.ts`, gateway liveness Go tests, `verify-sleep-quit.mjs` (frozen process tree) | Real lid close, Windows sleep, hibernate and Modern Standby, force quit, upgrade then Quit → Reopen | -| 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) | Document asset/preview E2E; Library and search unit tests | 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 | +| 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 | +| Add or change an Agent Runtime | [New Runtime](local-computer.md#new-runtime-acceptance) | Runtime adapter fake-process tests; Runner smoke | Every tool class, permissions, complex Tasks and failures against a Claude Code baseline | +| Install, update and uninstall Desktop client | [Desktop & Installer](desktop-and-installer.md) | `verify-local-client.mjs`, `make check-desktop`, `make check-installer`, `make check-packages`, Windows native ACL/Pi smoke | Real `.dmg`/`.tar.gz`/`-setup.exe` install, Quick Install, updater swap, permissions, uninstall across macOS/Linux/Windows | +| Upgrade Desktop from the previous release | [Upgrade](desktop-and-installer.md#upgrade-from-the-previous-release) | Resume and local-model restore unit tests | Required for every release and RC: a real previous install, each upgrade path, Quit → Reopen, cold restart | +| Deploy local models and switch to BYOK | [Local Models & BYOK](local-models-and-byok.md) | `verify-local-client.mjs`, `localmodels` Go tests, `byok-endpoint` & Settings › Models unit/integration tests | Real `localmodels` kit download, GPU/Metal/CUDA load, drive check, BYOK endpoint execution & quit/resume teardown across macOS/Linux/Windows | +| Sleep, wake, crash and quit with local models | [Sleep, wake and quit](local-models-and-byok.md#sleep-wake-and-quit) | `computer-daemon-lifecycle.test.ts`, gateway liveness Go tests, `verify-sleep-quit.mjs` (frozen process tree) | Real lid close, Windows sleep, hibernate and Modern Standby, force quit, upgrade then Quit → Reopen | +| 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) | Document asset/preview E2E; Library and search unit tests | 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 | +| Pair a phone and approve its confirmation code | [Pair a phone](mobile.md#pair-a-phone) | Mobile pairing and session tests, Go gateway, Web Phones tests | Match both displays, deny and expire invites, scan a physical QR, and read a Room after approval | +| Reach a computer on LAN or through a chosen Relay | [Connection route](mobile.md#select-a-connection-route) and [Relay nodes](mobile.md#manage-relay-nodes) | Connection scheduling, Relay registry, gateway allowlist, Relay splice tests | Measure request round trips, verify pin-only traffic, exercise custom-node limits, and send through the winning route | +| Switch computers, forget a pairing, or remove a phone | [Switch or unpair](mobile.md#switch-or-unpair-a-computer) and [remove a phone](mobile.md#remove-a-phone-from-the-computer) | Connection, outbox, grant, and Web Phones tests | Compare two hosts, inspect per-host deletion, observe the removed phone, and verify the other phone still works | +| Navigate chats and send text or files from a phone | [Messages and chats](mobile.md#navigate-messages-and-chats) and [sending](mobile.md#send-text-and-attachments) | Avatar, message composition, multipart, attachment, and mention tests | Inspect native avatars and read states, use the picker, and reopen the delivered file version | +| Deliver queued messages after a disconnect or restart | [Offline outbox](mobile.md#deliver-the-offline-outbox) and [computer restart](mobile.md#reconnect-after-the-computer-restarts) | Outbox, connection, and Room event tests | Lose an acknowledgement after commit, reboot the computer, and verify one ordered delivery per key | +| Follow Agent work and decide from the phone | [Run and Stop](mobile.md#follow-and-stop-a-run), [decisions](mobile.md#answer-a-decision), and [Agent sheet](mobile.md#inspect-an-agent) | Run control, typed-card, permission, connector, and Agent information tests | Stop one real Run, compare stale and desktop-only cards, and inspect Room-scoped read-only details | +| Read Documents, Wiki, and meetings on a phone | [Mobile Library](mobile.md#read-the-library) | File-kind, Wiki, knowledge Markdown, and Web Document tests | Check byte boundaries, historical versions, access denial, native viewers, and meeting playback | +| Record a meeting and recover its complete audio | [Record and deliver a meeting](mobile.md#record-and-deliver-a-meeting) | Mobile bridge, recorder, proxy, and Capture completion checks | Lock a physical phone, interrupt delivery, listen to the last word, and verify retention through message acceptance | +| Talk live on the phone or in the desktop mini window | [Phone Live](mobile.md#start-and-end-live-on-the-phone) and [desktop Voice Mode](mobile.md#use-the-desktop-voice-mode-window) | Live-turn, Live worker, Web mini-window, and Electron window tests | Check external-link consent, audible replies, turn persistence, and native float, return, and close | +| Receive a private alert or share diagnostics | [Notifications](mobile.md#receive-and-open-notifications) and [diagnostics](mobile.md#save-and-send-diagnostics) | Push grant, job, Relay push, app-log, and diagnostics upload tests | Tap real alerts across hosts, confirm offline revocation, and inspect saved and received logs for message text | For a full core acceptance, select the journeys exposed by the target deployment. For a routine change, select affected journeys and their shared boundaries. @@ -56,24 +66,30 @@ A release report without this journey, or with a target marked blocked, does not 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 | -| Desktop Client and Local Installer | [Desktop & Installer](desktop-and-installer.md): packaged `.dmg`/`.tar.gz`/`-setup.exe` install, Quick Install, Connect to Server, auto-updater, floating voice window, OS permissions, diagnostics, loopback manager CSRF/session auth, port recovery, uninstall and legacy migration | Native macOS arm64 (14.0+), Linux x64 (glibc ≥ 2.35), Windows x64 standard user; isolated `LINGER_DESKTOP_USER_DATA` and `LINGER_HOME` | -| Local Models and BYOK | [Local Models & BYOK](local-models-and-byok.md): `localmodels` kit download/sealing, hardware/drive inspection, library download/cancel/load/Make room/unload/remove, async Pi provisioning, BYOK base URL + path + endpoint, error pass-through, active-Run guard, quit/resume/uninstall teardown, scheduling | Supported Metal (Apple silicon) or NVIDIA CUDA (Linux/Windows) tier for real weights; Computer ≥ 0.56.0 + real/stub endpoint for BYOK | -| 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 | +| 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 | +| Desktop Client and Local Installer | [Desktop & Installer](desktop-and-installer.md): packaged `.dmg`/`.tar.gz`/`-setup.exe` install, Quick Install, Connect to Server, auto-updater, floating voice window, OS permissions, diagnostics, loopback manager CSRF/session auth, port recovery, uninstall and legacy migration | Native macOS arm64 (14.0+), Linux x64 (glibc ≥ 2.35), Windows x64 standard user; isolated `LINGER_DESKTOP_USER_DATA` and `LINGER_HOME` | +| Local Models and BYOK | [Local Models & BYOK](local-models-and-byok.md): `localmodels` kit download/sealing, hardware/drive inspection, library download/cancel/load/Make room/unload/remove, async Pi provisioning, BYOK base URL + path + endpoint, error pass-through, active-Run guard, quit/resume/uninstall teardown, scheduling | Supported Metal (Apple silicon) or NVIDIA CUDA (Linux/Windows) tier for real weights; Computer ≥ 0.56.0 + real/stub endpoint for BYOK | +| 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 | +| Mobile pairing and connectivity | [Pairing](mobile.md#pair-a-phone), [route selection](mobile.md#select-a-connection-route), and [Relay management](mobile.md#manage-relay-nodes) cover pending approval, LAN fallback, pinning, latency, denied addresses, and capacity | Physical phone for QR, cellular, and OS permission. Two reachable Relay nodes for selection | +| Mobile computer lifecycle | [Switch or unpair](mobile.md#switch-or-unpair-a-computer), [remote removal](mobile.md#remove-a-phone-from-the-computer), and [restart](mobile.md#reconnect-after-the-computer-restarts) cover isolation, revocation, deletion, and recovery | Two independent TeamHub hosts, second phone identity, and installed Desktop for reboot | +| Mobile Room collaboration | [Navigation](mobile.md#navigate-messages-and-chats), [attachments](mobile.md#send-text-and-attachments), [outbox](mobile.md#deliver-the-offline-outbox), [Run control](mobile.md#follow-and-stop-a-run), [decisions](mobile.md#answer-a-decision), and [Agent sheet](mobile.md#inspect-an-agent) | Simulator and real TeamHub. Working Runtime and model for execution. Additional identity for ownership denial | +| Mobile Library | [Library](mobile.md#read-the-library) covers current and historical versions, preview limits, generated Wiki pages, personal meeting visibility, and playback | Prepared artifacts for reading, native viewers for handoff, real services for generated content | +| Mobile recording and Live voice | [Meeting capture](mobile.md#record-and-deliver-a-meeting), [phone Live](mobile.md#start-and-end-live-on-the-phone), and [desktop window](mobile.md#use-the-desktop-voice-mode-window) cover consent, media, interrupted delivery, and session closure | Physical phone, LiveKit, phone bridge, speech recognition or xAI as applicable, and Electron for native window behavior | +| Mobile notifications and diagnostics | [Push](mobile.md#receive-and-open-notifications) and [diagnostics](mobile.md#save-and-send-diagnostics) cover per-host consent, tap routing, offline revocation, local log privacy, and report delivery | Push-capable physical build and Expo service for delivery. Configured diagnostics receiver for upload | Also reconcile Web routes in `apps/web/src/app/router.tsx`: login, Computer connection, Room, stable Document links, shared Document/history links, Library/Wiki/Wiki preview/Meetings, diff --git a/.agents/skills/verify-linger/features/mobile.md b/.agents/skills/verify-linger/features/mobile.md new file mode 100644 index 000000000..16b7c0889 --- /dev/null +++ b/.agents/skills/verify-linger/features/mobile.md @@ -0,0 +1,345 @@ +# Mobile App and paired computers + +Verify that a Human can pair a phone, use the intended computer, and recover work after a connection drops. Confirm each write from a fresh computer-side read. + +Record the installed phone, Desktop, TeamHub, Relay, and Voice Runtime versions before using these recipes. See the [shared verification rules](README.md), [parent skill](../SKILL.md), and [Mobile App design](../../../../docs/mobile.md). + +## Test environment and evidence + +| Environment | What it can establish | +| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| iOS Simulator with `axe` and a native Expo development build | Pairing links, approval, navigation, real TeamHub reads and writes, reconnects, decision controls, file previews, and diagnostics. Use the native build from `apps/mobile`, such as `npx expo run:ios`. | +| Physical phone | Optical QR scanning, cellular fallback, iOS Local Network permission, microphone capture, speaker playback, interruptions, screen lock, and actual push delivery. Use Android hardware for Android notification and viewer behavior. | +| Second phone identity | Spent invites, independent approvals, and removal isolation. A second Simulator can supply an independent identity. Use two registered physical devices to compare actual push delivery. | +| Second computer | Switching computers and isolating messages, recordings, Relay preferences, and push targets. Use two TeamHub instances with different private seeds, host IDs, and recognizable Rooms. | +| Real product Agent and model | A live Run, cancellation, a subsequent reply, or an approved action's business effect. Use an enrolled Computer, a working Daemon, and an authenticated Runtime. | +| Real voice services | Meeting capture needs LiveKit, the phone bridge, recorder, and configured speech recognition. Spoken Live replies need the Live worker and configured xAI service. Desktop media also needs a real desktop microphone. | + +Use an owned, disposable environment with a signed-in Human, PostgreSQL, TeamHub, and Web Settings > Phones. Provision Another Me, a second direct Agent chat, and a group Room. The parent skill's default Document proof starts only part of this environment. Add the dependencies required by each selected journey. + +Drive the Simulator by accessibility label. Read the current tree after navigation. The following example uses an approved phone and an open test Room. + +```sh +axe list-simulators +axe describe-ui --udid "$udid" +axe tap --label 'Open the menu' --udid "$udid" +axe tap --label 'Linger, your Another Me' --udid "$udid" +axe tap --label 'Message' --udid "$udid" +axe type 'mobile-check-01' --udid "$udid" +axe tap --label 'Send' --udid "$udid" +axe screenshot --udid "$udid" --output "$evidence/chat.png" +``` + +Use the provisioned Agent's display name when Another Me has been renamed. Inspect avatars, clipping, previews, and status placement in screenshots at the displayed size. An accessibility tree cannot show how a group avatar looks. + +For each branch, record the device, route, action, visible result, and independent evidence. Mark unexecuted branches as skipped or blocked and name the missing dependency. Keep invites, QR images, confirmation digits, keys, push tokens, grants, signed URLs, and private conversation content out of retained evidence. + +Mobile test paths below start at `apps/mobile/src/`. TeamHub integration test filenames refer to `apps/teamhub/tests/integration/`. `make check-mobile` and `make check-relay` are the owning fast checks. Reuse focused results from the tested revision. + +## Pair a phone + +Use a fresh phone identity and Web Settings > Phones at `/t/{tenantId}/settings/phones`. A Simulator covers the link and approval. A physical phone covers the camera. + +1. Choose `Pair a phone` on the computer. Scan the displayed QR using `Allow camera` on the phone. In another run, deny camera access and choose `Can't scan? Use a pairing link`. +2. Choose `Copy pairing link` on the computer. Paste privately into `Pairing link`, then tap `Pair`. Also open a fresh `linger://pair?d=...` link through the operating system. The Simulator can receive private clipboard input through `axe type --stdin`. +3. Compare the six digits on both devices. The phone displays two groups of three. The computer asks `Is this your phone?`. Leave approval pending and confirm that Room data remains inaccessible. +4. Disconnect and reconnect while pending. The same phone row and confirmation digits should return. Cover a lost initial welcome using the pairing test. A retry over another route must produce only one pending phone. +5. Choose `Approve` on the computer. The phone enters Linger after any notification prompt. Refresh Phones and check the platform, connection status, and push status. Repeat pairing over Relay with LAN unavailable. +6. On a separate invite, choose `Not my phone`. The waiting phone explains that the computer did not approve it and offers `Scan again`. Also let a pending approval expire. +7. Try an empty input, malformed link, newer link format, expired invite, and spent invite. Empty input disables `Pair`. An expired invite can be replaced with `New code`. Use a different phone identity for the spent invite. +8. Try a computer with only LAN, then one with no usable route or an unavailable Mobile Gateway. Check the computer's explanation. Restore a route and complete pairing with a valid invite. + +Keep the phone row ID, platform, timestamps, pending denial, and approved Room read. Record only whether the codes matched. Both the invite and pending approval have ten-minute lifetimes. + +Reuse `computer/pairing-link.test.ts`, `computer/pairing.test.ts`, `session/session.test.ts`, the Go `internal/mobilegateway` tests, and Web `phones-settings-page.test.tsx`. The mobile session test uses a Go gateway with stand-in business handlers and can skip when Go is unavailable. + +## Select a connection route + +Use one approved phone, reachable LAN, and two linked Relay nodes. The Simulator can use independently controlled test routes. Use a physical phone for cellular and iOS Local Network denial. Relay testing needs a private computer seed. The public development seed or an explicitly empty `TEAMHUB_MOBILE_RELAY_URL` gives a LAN-only environment. + +1. With LAN healthy, open Settings. Check `Connected` and `Same Wi-Fi`. Send a marker and read it on the computer. +2. Make LAN unreachable and reconnect. Settings names the winning Relay, its row says `In use`, and the sidebar says `Through a Relay`. Send another marker. On iOS hardware, repeat with Local Network denied and with cellular. +3. Choose `Automatic Relay node`. Reopen Settings and inspect the round-trip times. Each measured value is the rounded median of three `GET /v0/session` requests over an open session. An unavailable measurement can end in a dash. +4. Give the nodes distinguishable latencies. On a fresh connection, Automatic tries the fastest remembered node first. Make it unavailable and verify the other node can carry a message. +5. Choose `Use only