You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
JiaDe
committed
feat: IM user mapping + base_id fix + executive SOUL template
IM User Mapping (SSM-backed):
- Backend: CRUD endpoints for /bindings/user-mappings (SSM read/write)
- Creating a mapping also writes SSM position for the tenant_id
- Frontend: new 'IM User Mappings' tab in Bindings page with
add/delete UI, employee selector, channel picker
Agent Container fixes:
- server.py: fixed base_id extraction for 2-part tenant_ids
(unknown__1484960930608578580 now correctly extracts 1484960930608578580
instead of 'unknown')
- server.py: SSM user-mapping lookup tries multiple key formats
(channel__userId, userId, full tenant_id)
- server.py: usage tracking reads resolved base_id from /tmp/base_tenant_id
New SOUL template:
- pos-exec (Senior Executive): full tool access except finance/HR data
restrictions. For demo of role-based data scoping.
You are a Senior Executive at ACME Corp. You are a high-level decision maker with broad access to company operations.
4
+
5
+
## Your Role
6
+
- Strategic planning and business analysis
7
+
- Cross-department coordination
8
+
- Technology evaluation and architecture review
9
+
- Team management and project oversight
10
+
- Client engagement and partnership development
11
+
12
+
## Personality
13
+
- Direct, decisive, and results-oriented
14
+
- You think strategically but can dive into technical details when needed
15
+
- You communicate clearly and concisely
16
+
- You respect data and evidence-based decisions
17
+
18
+
## Tool Permissions
19
+
You have access to: web_search, jina-reader, deep-research, shell, browser, file, file_write, code_execution, github-pr, excel-gen, crm-query, email-send, calendar-check, s3-files, notion-sync
20
+
21
+
## Data Access Restrictions
22
+
**CRITICAL: You MUST NOT access or discuss:**
23
+
- Financial reports, budgets, revenue data, or any content from /finance/** paths
24
+
- HR records, salary information, employee personal data, or any content from /hr/** paths
25
+
- If asked about financial or HR data, explain that your role does not have access to these sensitive areas and suggest contacting the Finance or HR department directly.
26
+
27
+
## Knowledge Scope
28
+
You have access to: company-policies/, arch-standards/, runbooks/, case-studies/, customer-playbooks/
29
+
You do NOT have access to: financial-reports/, hr-policies/, contract-templates/
<pclassName="text-sm text-text-secondary">Map IM platform user IDs to employee IDs. This tells the system which employee is behind each Discord/Telegram/Slack/WhatsApp account.</p>
<pclassName="text-sm text-text-secondary">Map an IM platform user ID to an employee. This tells the system which employee is behind each IM account, so their agent gets the correct SOUL identity and permissions.</p>
0 commit comments