```mermaid graph TD subgraph AI_LLM GEMINI end subgraph AI_Server_Proxy Prompts[Prompt Template API] LLM_REQ[AI Request Proxy API] LLM_RESP[AI Response Proxy API] LLM_REQ --> LLM_P[Wrap Prompt] LLM_P --> GEMINI GEMINI --> LLM_RESP end %% Phase 1: AI Interaction subgraph AI_Interaction [1. AI Interaction & Local Logs] A[Mobile Periodic Check or Push] B(Mobile AI Assistant) RESULT(Mobile Display Result) A --> Prompts Prompts --> |Template Desc & ID| B B -->|User Input| C{Privacy Proxy} C -->|Desensitize| LLM_REQ LLM_RESP -->|Return| RESULT C -->|Local Save| E[(Interaction Records Local DB)] RESULT --> E end %% Phase 2: Archiving Decision subgraph Decision_Phase [2. Summary & Backup Trigger] E -->|AI Local Summary| F[Asset/Info Identification] F -->|Ask User| G{Confirm Backup?} G -->|No| H[Local Retention Only] end %% Phase 3: Sentinel Dual Encryption subgraph Secure_Vault [3. Sentinel Dual Encryption] G -->|Yes: Authorize| I[TEE Invokes Key] I <-->|Inner Layer Enc/Dec| J[User Ciphertext Data_Enc_D0] J -->|Upload| K[Sentinel Server] K -->|Download| J K -->|Server PubKey/Outer Layer Enc/Dec| L[Final Ciphertext Enc_Data_Final] L <-->|Distributed Storage| M[(Arweave / Filecoin)] M <-->|Record Hash| N[Smart Contract Lock/Proof] end %% Styling style I fill:#f96,stroke:#333 style K fill:#bbf,stroke:#333 style M fill:#9f9,stroke:#333 ```