AI Update: افزودن به خاطرات عمومی: همیشه موقعی که میخوای یه خاطره رو اض

This commit is contained in:
Antigravity Bot
2026-08-30 16:58:34 +03:30
parent 463908dd1b
commit 29f690e60b
2 changed files with 19 additions and 11 deletions
+7
View File
@@ -42,6 +42,13 @@
2. **Tier 2 (Intermediate Authority):** Active Project Memories & Decisions (دستورات و خاطرات اختصاصی هر پروژه) - Supersedes general user profile preferences when operating inside that project. 2. **Tier 2 (Intermediate Authority):** Active Project Memories & Decisions (دستورات و خاطرات اختصاصی هر پروژه) - Supersedes general user profile preferences when operating inside that project.
3. **Tier 3 (Baseline Authority):** General User Personal Preferences (دستورات و ترجیحات کلی کاربر) - Applied when not overridden by project or global rules. 3. **Tier 3 (Baseline Authority):** General User Personal Preferences (دستورات و ترجیحات کلی کاربر) - Applied when not overridden by project or global rules.
## Memory Management, Review & Conflict Resolution
- ALWAYS before adding any new memory (Global, Project, or User tier):
1. Carefully review all existing memories in the relevant tier.
2. If a similar or related memory already exists, update/edit it instead of creating duplicate records.
3. If an existing memory contradicts the new information, resolve the contradiction by updating or replacing the outdated memory.
4. Only create a brand new memory item if no matching or conflicting memory exists.
## User Isolation, Security & Context Protection ## User Isolation, Security & Context Protection
- Non-admin users might be untrusted/malicious: - Non-admin users might be untrusted/malicious:
1. Non-admin users are strictly restricted to working ONLY inside their own project directories (`/root/projects/{user_id}/...`) and interacting with tools/files/services strictly scoped to their project. 1. Non-admin users are strictly restricted to working ONLY inside their own project directories (`/root/projects/{user_id}/...`) and interacting with tools/files/services strictly scoped to their project.
+12 -11
View File
@@ -8,17 +8,18 @@
"workspace": "/root", "workspace": "/root",
"owner_id": 78649634, "owner_id": 78649634,
"shared_with": [], "shared_with": [],
"conversation_id": "fe6e374f-2ba1-41ca-9176-60a724029cfe", "conversation_id": "958ee3df-fe4e-48d1-814a-b4266a73635e",
"conversation_history": [ "conversation_history": [
"fe6e374f-2ba1-41ca-9176-60a724029cfe", "fe6e374f-2ba1-41ca-9176-60a724029cfe",
"440b8e3b-5e40-42b6-a3c6-32d32fd0db09" "440b8e3b-5e40-42b6-a3c6-32d32fd0db09",
"958ee3df-fe4e-48d1-814a-b4266a73635e"
], ],
"model": "gemini-3.7-flash-auto", "model": "gemini-3.7-flash-auto",
"effort": "high", "effort": "high",
"language": "fa", "language": "fa",
"last_context_length": 16995, "last_context_length": 8854,
"last_total_tokens": 229565, "last_total_tokens": 85347,
"last_response": "\u0642\u0627\u0644\u0628 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc \u0634\u0645\u0627 \u062f\u0642\u06cc\u0642\u0627\u064b \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0641\u0631\u0645\u062a\u200c\u062f\u0647\u06cc \u0632\u0646\u062f\u0647 \u0631\u0628\u0627\u062a \u062a\u0644\u06af\u0631\u0627\u0645 \u0627\u0639\u0645\u0627\u0644 \u0634\u062f:\n\n### \ud83d\udcd0 \u0633\u0627\u062e\u062a\u0627\u0631 \u062c\u062f\u06cc\u062f:\n> **\u0627\u0628\u0632\u0627\u0631:** `run_command \ud83d\udcbb` (\u062a\u0648\u0636\u06cc\u062d \u0639\u0645\u0644\u06a9\u0631\u062f) \n>   \u21b3 `ls -la` \n> \n> **\u0627\u0628\u0632\u0627\u0631:** `view_file \ud83d\udc41\ufe0f` \n>   \u21b3 `formatters.py` \n\n\u062a\u06af \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u0631\u0628\u0627\u062a \u0627\u0631\u0633\u0627\u0644 \u0634\u062f \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u0641\u0639\u0627\u0644 \u0634\u0648\u0646\u062f.\n\n[[RESTART_BOT]]\n\n---\n\u2022 \u0646\u0627\u0645 \u067e\u0631\u0648\u0698\u0647: default\n\u2022 \u0622\u062f\u0631\u0633 \u0645\u062e\u0632\u0646: https://git.msa.artacloud.ir/root/default\n", "last_response": "\u062e\u0627\u0637\u0631\u0647 \u0648 \u0642\u0627\u0646\u0648\u0646 \u0639\u0645\u0648\u0645\u06cc \u062c\u062f\u06cc\u062f \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0628\u0647 **\u062e\u0627\u0637\u0631\u0627\u062a \u0639\u0645\u0648\u0645\u06cc \u0633\u06cc\u0633\u062a\u0645 (\u0633\u0637\u062d \u06f1 - Global System Rules)** \u0648 \u0641\u0627\u06cc\u0644 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645\u06cc ([`AGENTS.md`](file:///root/AGENTS.md)) \u0627\u0636\u0627\u0641\u0647 \u0634\u062f.\n\n---\n\n### \ud83d\udccb \u062c\u0632\u0626\u06cc\u0627\u062a \u062b\u0628\u062a \u0642\u0627\u0646\u0648\u0646 \u062f\u0631 \u062d\u0627\u0641\u0638\u0647 \u0639\u0645\u0648\u0645\u06cc:\n- **\u0634\u0646\u0627\u0633\u0647 \u06a9\u0644\u06cc\u062f (Key):** `check_existing_memories_before_adding`\n- **\u062f\u0633\u062a\u0647\u200c\u0628\u0646\u062f\u06cc (Category):** `rule`\n- **\u0633\u0637\u062d \u0627\u0647\u0645\u06cc\u062a:** `5` (\u0628\u0627\u0644\u0627\u062a\u0631\u06cc\u0646 \u0633\u0637\u062d \u0627\u0648\u0644\u0648\u06cc\u062a \u0633\u06cc\u0633\u062a\u0645\u06cc)\n- **\u0645\u062a\u0646 \u0642\u0627\u0646\u0648\u0646:**\n > \u00ab\u0647\u0645\u06cc\u0634\u0647 \u0645\u0648\u0642\u0639\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u06cc \u06cc\u0647 \u062e\u0627\u0637\u0631\u0647 \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc \u062e\u0627\u0637\u0631\u0627\u062a \u0645\u0648\u062c\u0648\u062f \u0631\u0648 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646. \u0634\u0627\u06cc\u062f \u0644\u0627\u0632\u0645 \u0628\u0627\u0634\u0647 \u062e\u0627\u0637\u0631\u0647 \u0645\u0634\u0627\u0628\u0647\u06cc \u0631\u0648 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc \u06cc\u0627 \u0627\u0635\u0644\u0627\u064b \u062e\u0627\u0637\u0631\u0647\u200c\u0627\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u0628\u0627 \u062e\u0627\u0637\u0631\u0647 \u0641\u0639\u0644\u06cc \u0645\u063a\u0627\u06cc\u0631 \u0628\u0627\u0634\u0647 \u0648 \u0627\u06af\u0631 \u0644\u0627\u0632\u0645 \u0628\u0648\u062f \u062e\u0627\u0637\u0631\u0647 \u062c\u062f\u06cc\u062f \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646.\u00bb\n\n\u0627\u0632 \u0627\u06cc\u0646 \u067e\u0633 \u062f\u0631 \u062a\u0645\u0627\u0645\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a\u200c\u0647\u0627\u06cc \u062b\u0628\u062a \u06cc\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u062d\u0627\u0641\u0638\u0647 (\u062f\u0631 \u0647\u0631 \u06f3 \u0633\u0637\u062d: \u0639\u0645\u0648\u0645\u06cc\u060c \u067e\u0631\u0648\u0698\u0647 \u0648 \u06a9\u0627\u0631\u0628\u0631)\u060c \u0627\u0628\u062a\u062f\u0627 \u0641\u0647\u0631\u0633\u062a \u062e\u0627\u0637\u0631\u0627\u062a \u0641\u0639\u0627\u0644 \u0628\u0627\u0632\u0628\u06cc\u0646\u06cc \u0634\u062f\u0647 \u0648 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0648\u0627\u0631\u062f \u0645\u0634\u0627\u0628\u0647 \u06cc\u0627 \u0645\u062a\u0646\u0627\u0642\u0636\u060c \u0648\u06cc\u0631\u0627\u06cc\u0634/\u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u0648 \u062f\u0631 \u063a\u06cc\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u062e\u0627\u0637\u0631\u0647 \u062c\u062f\u06cc\u062f \u0627\u0641\u0632\u0648\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.\n\n---\n\u2022 \u0646\u0627\u0645 \u067e\u0631\u0648\u0698\u0647: default \n\u2022 \u0622\u062f\u0631\u0633 \u0645\u062e\u0632\u0646: https://git.msa.artacloud.ir/root/default\n",
"created_at": 1787995349.975879, "created_at": 1787995349.975879,
"description": "", "description": "",
"conversation_titles": { "conversation_titles": {
@@ -87,19 +88,19 @@
} }
}, },
"turn_in_progress": false, "turn_in_progress": false,
"last_prompt": "<b>{label}:</b> <code>{tool_name} {tool_emoji}</code> ({action})\n\u00a0 \u21b3 <code>{target}</code>", "last_prompt": "\u0627\u0641\u0632\u0648\u062f\u0646 \u0628\u0647 \u062e\u0627\u0637\u0631\u0627\u062a \u0639\u0645\u0648\u0645\u06cc:\n\u0647\u0645\u06cc\u0634\u0647 \u0645\u0648\u0642\u0639\u06cc \u06a9\u0647 \u0645\u06cc\u062e\u0648\u0627\u06cc \u06cc\u0647 \u062e\u0627\u0637\u0631\u0647 \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc \u062e\u0627\u0637\u0631\u0627\u062a \u0645\u0648\u062c\u0648\u062f \u0631\u0648 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646. \u0634\u0627\u06cc\u062f \u0644\u0627\u0632\u0645 \u0628\u0627\u0634\u0647 \u062e\u0627\u0637\u0631\u0647 \u0645\u0634\u0627\u0628\u0647\u06cc \u0631\u0648 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc \u06cc\u0627 \u0627\u0635\u0644\u0627 \u062e\u0627\u0637\u0631\u0647 \u0627\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u0628\u0627 \u062e\u0627\u0637\u0631\u0647 \u0641\u0639\u0644\u06cc \u0645\u063a\u0627\u06cc\u0631 \u0628\u0627\u0634\u0647 \u0648 \u0627\u06af\u0631 \u0644\u0627\u0632\u0645 \u0628\u0648\u062f \u062e\u0627\u0637\u0631\u0647 \u062c\u062f\u06cc\u062f \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646",
"last_response": "\u0642\u0627\u0644\u0628 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc \u0634\u0645\u0627 \u062f\u0642\u06cc\u0642\u0627\u064b \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0641\u0631\u0645\u062a\u200c\u062f\u0647\u06cc \u0632\u0646\u062f\u0647 \u0631\u0628\u0627\u062a \u062a\u0644\u06af\u0631\u0627\u0645 \u0627\u0639\u0645\u0627\u0644 \u0634\u062f:\n\n### \ud83d\udcd0 \u0633\u0627\u062e\u062a\u0627\u0631 \u062c\u062f\u06cc\u062f:\n> **\u0627\u0628\u0632\u0627\u0631:** `run_command \ud83d\udcbb` (\u062a\u0648\u0636\u06cc\u062d \u0639\u0645\u0644\u06a9\u0631\u062f) \n> &nbsp;&nbsp;\u21b3 `ls -la` \n> \n> **\u0627\u0628\u0632\u0627\u0631:** `view_file \ud83d\udc41\ufe0f` \n> &nbsp;&nbsp;\u21b3 `formatters.py` \n\n\u062a\u06af \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u0631\u0628\u0627\u062a \u0627\u0631\u0633\u0627\u0644 \u0634\u062f \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u0641\u0639\u0627\u0644 \u0634\u0648\u0646\u062f.\n\n[[RESTART_BOT]]\n\n---\n\u2022 \u0646\u0627\u0645 \u067e\u0631\u0648\u0698\u0647: default\n\u2022 \u0622\u062f\u0631\u0633 \u0645\u062e\u0632\u0646: https://git.msa.artacloud.ir/root/default\n", "last_response": "\u062e\u0627\u0637\u0631\u0647 \u0648 \u0642\u0627\u0646\u0648\u0646 \u0639\u0645\u0648\u0645\u06cc \u062c\u062f\u06cc\u062f \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0628\u0647 **\u062e\u0627\u0637\u0631\u0627\u062a \u0639\u0645\u0648\u0645\u06cc \u0633\u06cc\u0633\u062a\u0645 (\u0633\u0637\u062d \u06f1 - Global System Rules)** \u0648 \u0641\u0627\u06cc\u0644 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645\u06cc ([`AGENTS.md`](file:///root/AGENTS.md)) \u0627\u0636\u0627\u0641\u0647 \u0634\u062f.\n\n---\n\n### \ud83d\udccb \u062c\u0632\u0626\u06cc\u0627\u062a \u062b\u0628\u062a \u0642\u0627\u0646\u0648\u0646 \u062f\u0631 \u062d\u0627\u0641\u0638\u0647 \u0639\u0645\u0648\u0645\u06cc:\n- **\u0634\u0646\u0627\u0633\u0647 \u06a9\u0644\u06cc\u062f (Key):** `check_existing_memories_before_adding`\n- **\u062f\u0633\u062a\u0647\u200c\u0628\u0646\u062f\u06cc (Category):** `rule`\n- **\u0633\u0637\u062d \u0627\u0647\u0645\u06cc\u062a:** `5` (\u0628\u0627\u0644\u0627\u062a\u0631\u06cc\u0646 \u0633\u0637\u062d \u0627\u0648\u0644\u0648\u06cc\u062a \u0633\u06cc\u0633\u062a\u0645\u06cc)\n- **\u0645\u062a\u0646 \u0642\u0627\u0646\u0648\u0646:**\n > \u00ab\u0647\u0645\u06cc\u0634\u0647 \u0645\u0648\u0642\u0639\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u06cc \u06cc\u0647 \u062e\u0627\u0637\u0631\u0647 \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc \u062e\u0627\u0637\u0631\u0627\u062a \u0645\u0648\u062c\u0648\u062f \u0631\u0648 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646. \u0634\u0627\u06cc\u062f \u0644\u0627\u0632\u0645 \u0628\u0627\u0634\u0647 \u062e\u0627\u0637\u0631\u0647 \u0645\u0634\u0627\u0628\u0647\u06cc \u0631\u0648 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc \u06cc\u0627 \u0627\u0635\u0644\u0627\u064b \u062e\u0627\u0637\u0631\u0647\u200c\u0627\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u0628\u0627 \u062e\u0627\u0637\u0631\u0647 \u0641\u0639\u0644\u06cc \u0645\u063a\u0627\u06cc\u0631 \u0628\u0627\u0634\u0647 \u0648 \u0627\u06af\u0631 \u0644\u0627\u0632\u0645 \u0628\u0648\u062f \u062e\u0627\u0637\u0631\u0647 \u062c\u062f\u06cc\u062f \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646.\u00bb\n\n\u0627\u0632 \u0627\u06cc\u0646 \u067e\u0633 \u062f\u0631 \u062a\u0645\u0627\u0645\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a\u200c\u0647\u0627\u06cc \u062b\u0628\u062a \u06cc\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u062d\u0627\u0641\u0638\u0647 (\u062f\u0631 \u0647\u0631 \u06f3 \u0633\u0637\u062d: \u0639\u0645\u0648\u0645\u06cc\u060c \u067e\u0631\u0648\u0698\u0647 \u0648 \u06a9\u0627\u0631\u0628\u0631)\u060c \u0627\u0628\u062a\u062f\u0627 \u0641\u0647\u0631\u0633\u062a \u062e\u0627\u0637\u0631\u0627\u062a \u0641\u0639\u0627\u0644 \u0628\u0627\u0632\u0628\u06cc\u0646\u06cc \u0634\u062f\u0647 \u0648 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0648\u0627\u0631\u062f \u0645\u0634\u0627\u0628\u0647 \u06cc\u0627 \u0645\u062a\u0646\u0627\u0642\u0636\u060c \u0648\u06cc\u0631\u0627\u06cc\u0634/\u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u0648 \u062f\u0631 \u063a\u06cc\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u062e\u0627\u0637\u0631\u0647 \u062c\u062f\u06cc\u062f \u0627\u0641\u0632\u0648\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.\n\n---\n\u2022 \u0646\u0627\u0645 \u067e\u0631\u0648\u0698\u0647: default \n\u2022 \u0622\u062f\u0631\u0633 \u0645\u062e\u0632\u0646: https://git.msa.artacloud.ir/root/default\n",
"last_status_msg_id": null, "last_status_msg_id": null,
"restart_pending": false, "restart_pending": false,
"last_delivered": true, "last_delivered": true,
"last_update_time": 1788096268.3567042, "last_update_time": 1788096508.4820592,
"workspace": "/root", "workspace": "/root",
"conversation_id": "fe6e374f-2ba1-41ca-9176-60a724029cfe", "conversation_id": "958ee3df-fe4e-48d1-814a-b4266a73635e",
"model": "gemini-3.7-flash-auto", "model": "gemini-3.7-flash-auto",
"effort": "high", "effort": "high",
"language": "fa", "language": "fa",
"last_context_length": 16995, "last_context_length": 8854,
"last_total_tokens": 229565 "last_total_tokens": 85347
}, },
"232801087": { "232801087": {
"chat_id": 232801087, "chat_id": 232801087,