Two integration surfaces.
sovseal-sdk(PyPI,1.1.0+) — provides both local semantic memory (store,recall) and zero-knowledge state replication (snapshot,restore,restore_at,lineage). Semanticstoreandrecallcommunicate over framed IPC stdin/stdout with the local native host (~/.sovseal/native-host/run.sh). If the native host is absent, version-mismatched (protocolVersion: 1), or times out, methods raiseEngineUnavailableError(reason:"not-installed"|"version-mismatch"|"timeout") with zero cloud fallback.@sovseal/mcp-server(npm,0.3.7) — stdio MCP server exposingstore_memory/recall_memoryto any MCP-capable runtime.
HIPAA alignment, not a guarantee. sovseal’s architecture — client-side AES-256-GCM encryption before any network transmission, zero plaintext PHI at the server — supports a HIPAA-aligned implementation by keeping your organization out of the role of “cloud PHI custodian” for the memory layer. You remain responsible for your full system’s posture: access controls, audit logging, BAAs with your infrastructure providers, and PHI handling everywhere else in your stack.sovseal’s own HIPAA posture is self-attested, with a BAA template requiring your counsel’s review. See Trust.
Architecture
- Google ADK handles agent orchestration, the Gemini model loop, session lifecycle, and tool dispatch.
- sovseal provides the encrypted memory layer.
Setup
1
Install dependencies
2
Configure environment
Keep this file out of version control.
.env
3
Store and recall semantic memory with sovseal-sdk
store() and recall() execute locally over framed IPC to ~/.sovseal/native-host/run.sh. If the native host is absent or version-mismatched, EngineUnavailableError is raised.4
Checkpoint encrypted patient state
snapshot() canonicalizes the payload, encrypts active_context with AES-256-GCM under a key that stays in your process, and uploads only the sealed envelope.5
Restore and verify
Adding semantic recall
Checkpoints answer “what was the state at sequence N.” They do not answer “what did this patient tell me about allergies.” For that, wire the MCP server or usesovseal-sdk local store / recall:
High-risk PII (SSNs, card numbers, API keys) is masked before embedding, so it never reaches the vector or the sync envelope. Recall runs against the local index in ~6.1 ms p50 with no network hop — it works fully offline.
The trust boundary
- The patient shares a symptom. The model records it.
- Encryption happens on the device, under a key held in your process or the OS keychain.
- Only sealed ciphertext replicates. The server sees a hashed agent id, a sequence number, and an opaque blob.
- Recall queries the local index. No network hop.
Verify this rather than trusting it. Run a packet capture (Wireshark, mitmproxy, tcpdump) for a full session. If plaintext PHI leaves the device, that is a finding we publish and your team keeps sovseal free forever — the Packet-Capture Guarantee.
Designing the tool surface
- Record proactively — call
store_memoryorclient.store()the moment a patient shares a symptom or allergy, so they are never asked to repeat it. - Recall before answering — pull prior context into scope before responding to a clinical question.
- Stay in role — the agent is not a clinician. No diagnoses, no prescriptions, and urgent symptoms route to emergency services.
- Use opaque identifiers — never key records on a patient name.
Extending
Medication tracking
Store dose, frequency, and prescribing physician as separate facts so each can be reinforced and recalled independently.
Multi-device sync
Sync replicates ciphertext only. Verified Semantic Recall checks every restored record cryptographically before it commits on the new device.