Technical review request: LingShu local-first memory in an Anna App

Hi Anna team — following Kate’s recommendation, I’d like to review this architecture before implementing an Anna edition of LingShu.

LingShu is a macOS desktop AI pet assistant with a floating avatar, Apple Calendar scheduling, and SoulLedger memory with forgetting and personality evolution. Its existing stdio MCP server exposes memory retrieval/storage through a shared Memory Gateway. The Anna integration below is proposed, not implemented or approved for Qualified MAU.

Product and execution boundary

The Anna App would offer a complete “project decision review” workflow: a signed-in user selects a project and asks for a review; local LingShu retrieves permitted decisions and generates an AI-assisted summary with supporting local references; the App displays the user-approved result, with loading, cancellation, and actionable error states. A connection screen or bare MCP listing is not the primary function.

Anna would own the App UI, authenticated invocation and result delivery. Local LingShu would own memory storage, retrieval, permissions, forgetting and local processing. The existing pet UI and Calendar functionality remain separate; this initial App does not need calendar access.

Proposed call chain

Anna App UI
  → Anna Host Bridge / tools.invoke
  → user's online Anna Agent ON THE SAME MAC (routing to confirm)
  → bundled LingShu Executa adapter
  → MCP client → local lingshu-mcp (stdio)
  → local Memory Gateway → local memory stores
  → local summary + local disclosure approval
  → approved result → adapter → Anna Host → App UI

The adapter must translate Anna Executa’s initialize/invoke protocol into MCP calls; shared JSON-RPC/stdio transport does not make the protocols interchangeable. Initially expose only the scoped retrieval workflow, not arbitrary grants, conflict resolution or owner access. Use a dedicated restricted credential and enforce the scope locally; do not reuse the MCP server’s owner-session fallback for this integration.

This requires supported local-Agent targeting. A cloud Agent cannot reach the user’s Mac through its own localhost. If local routing is unavailable, pause this design for review rather than silently expose the local server publicly or upload the memory database.

Data boundary

Raw memories, embeddings/indexes, full provenance, personality state, local audit records and LingShu credentials would remain on the device in this configuration. Optional sync is a separate user choice and is not required for the App. Local-only processing requires a local model/embedding provider; selecting an external provider creates an additional disclosed data flow.

Anna necessarily receives App inputs and returned results through its Host. Requests should use project aliases and minimal instructions. Before anything leaves LingShu, a local approval step would allow only a bounded summary, opaque reference IDs and structured outcome metadata. No raw-memory export or memory-content logging is proposed. Returned summaries can still reveal personal information: this is selective disclosure, not a claim that all data stays on-device. Anna’s payload retention, model access and log redaction need confirmation.

Verifiability and Qualified MAU

The published rules count unique signed-in users completing a Qualified App Run in a UTC calendar month. They require successful primary-function execution and a meaningful result; opens, failures, cancellations, bots and internal test accounts are excluded. Free Credits, paid Credits and BYOK are eligible funding modes. October grants use deduplicated Builder Portfolio usage.

Proposed application of those rules, subject to review: a user becomes a candidate for this App’s Qualified MAU only after an Anna-originated review completes and its approved, substantive result is returned through the Host. Offline LingShu activity, other MCP clients, background maintenance and sync are outside this proposed count. No extra frequency or token threshold is assumed.

Anna can observe authenticated dispatch and returned outcomes; a local success flag alone cannot prove useful work. We propose correlating platform invocation IDs with minimal local receipts, terminal status and an approved output. These receipts are supporting evidence, not an independent MAU source or proof against a compromised client. Empty/no-match output is not presumed qualifying.

Questions for technical review

  1. Can a published App reliably target the user’s local macOS Agent and bundle this adapter? What manifest, installation and offline/error behavior is required? Is an external LingShu installation acceptable for App review?
  2. Does this AI-assisted local workflow meet the App and Qualified Run requirements when results return through Anna? Is any Anna-hosted inference mandatory, including for local-model or BYOK runs?
  3. Which existing invocation/session identifiers and terminal events support attribution? How should retries, cancellation races and multiple devices be deduplicated? Is an additional completion API required?
  4. What evidence of a meaningful result is sufficient without raw memories? How are no-match results treated, and can the team validate the proposed minimal receipt schema?
  5. Which request/result fields are stored, logged or sent to models, with what retention and deletion controls? Can memory-bearing fields be excluded from diagnostic logs?

I can provide a synthetic-memory walkthrough covering success, denied access, offline device, cancellation and retry. Development/QA runs would be validation evidence only. Please confirm the supported architecture and measurement contract before I claim any qualifying usage.

Technical references: Host API, Executa protocol, architecture. The accessible staging documentation is a design reference; production compatibility needs confirmation.

Implementation update (19 October 2026): the project-review flow is now implemented and tested in an Anna development draft (App 594, LingShu 0.2.0).

On one Apple Silicon Mac, I verified this path in the Anna UI:

App → local Anna Agent → bundled Executa → real LingShu MCP → scoped Memory Gateway retrieval → local Ollama model → separate local disclosure approval → approved result in Anna

The test used an isolated PostgreSQL database containing synthetic records. Before local approval, Anna received status only. After approval, it displayed three review points and their supporting excerpts. Rejecting or cancelling returned no review content. Reload recovery, no-match results, an unauthorized project, connection timeout/recovery and retry were also exercised. These are development/QA results, not production compatibility or qualifying-usage evidence.

The device credential is short-lived, read-only and restricted to one project; it cannot be used as an owner session. Disclosure rechecks current access and source content. Full memory stores, local model prompts and credentials remain on the device. Anna receives the App inputs and, only after approval, the bounded review, selected source excerpts, per-review reference labels and outcome metadata. Those excerpts are an explicit disclosure, so I am not claiming that every record-derived field stays local. No calendar or sync access is required.

The ARM64 test bundle includes the adapter, Python runtime, MCP and backend; it still requires local PostgreSQL and Ollama with an installed model. It is not yet Apple-notarized. The App remains an unpublished development draft, and the integration work is currently in a local review branch rather than the public repository’s default branch.

Could the team advise on these points before I freeze a review version?

  1. How should a published App reliably target the same Mac’s local Agent and fail clearly when it is unavailable, without falling back to another device?
  2. Are the external local dependencies and separate loopback approval page acceptable? What signing, notarization and install/upgrade requirements apply to this bundled Executa?
  3. Can a completed, user-approved review using only local inference meet the App’s primary-function and Qualified App Run requirements, or is Anna-hosted inference required?
  4. For start_review / get_review / cancel_review, which official invocation/session IDs and terminal events should be used? Is an official asynchronous-job mechanism required, and how should retries, no-match outcomes and cancellation be handled for attribution?
  5. What is the minimum acceptable result evidence without exporting the memory database, and what retention, model-access and diagnostic-log controls apply to approved summaries and excerpts?

I can provide a synthetic-data walkthrough and test-package checksums for technical review. No Qualified MAU is claimed from these tests; any eligibility or measurement definition remains subject to the team’s confirmation.