Guardrails & Audit

Policy engine · Role matrix · Audit trail

KP
Active Policies
PII Redaction

ปกปิดเลขโทรศัพท์ / email / เลข บัตร ปชช ก่อนส่งเข้าโมเดล

Financial Write Approval

ทุก tool ที่สร้าง/แก้ไขข้อมูล finance ต้องผ่าน approval

Role-Based Tool Access

จำกัด tool ตาม role (Admin / Sales / Engineer / Finance)

Rate Limit

จำกัด 20 requests / นาที / ผู้ใช้

Confidence Threshold

ปฏิเสธคำตอบที่ confidence ต่ำกว่า threshold

Audit Logging

บันทึกทุก interaction ลง audit trail

Role · Tool Matrix
Admin
*
Sales
lookup_inventoryget_customersforecast_demand
Engineer
get_service_ticketslookup_inventory
Finance
get_projectscreate_purchase_requestlookup_inventory
Viewer
lookup_inventory
Audit Log
TimestampUserRoleToolDecisionDuration
2025-05-20 09:14:22kanya@mw.co.thSalesget_customersallow320ms
2025-05-20 09:18:01somchai@mw.co.thEngineerget_service_ticketsallow180ms
2025-05-20 09:22:44narin@mw.co.thFinancecreate_purchase_requestapproval_required
2025-05-20 09:23:12narin@mw.co.thFinancecreate_purchase_requestapproved1.2s
2025-05-20 09:31:08guest@mw.co.thVieweradjust_stockblock (RBAC)
2025-05-20 09:45:50kanya@mw.co.thSaleslookup_inventoryallow210ms
2025-05-20 10:02:33somchai@mw.co.thEngineerforecast_demandallow420ms