Governance & RBAC
Role-based tool access, audit logging, tool classification, factory roles
Overview
The Governance system provides role-based access control (RBAC) for all MCP tool calls. Every tool invocation is classified by sensitivity, checked against the user's factory role, and logged in an immutable audit trail.
This ensures that operators on the shop floor can only access tools appropriate to their role, while planners and quality engineers get broader access to analytical and management tools.
Factory Roles
Six predefined roles map to common manufacturing organizational structures:
OperatorShop floor access: machine status, BDE entry, basic OEE queries
MeisterShift lead access: production overview, quality alerts, tool management
PlannerPlanning access: orders, scheduling, capacity, material management
Quality EngineerQuality access: defect analysis, SPC, audit data, CAPA management
AdminSystem administration: user management, configuration, system health
Full AccessUnrestricted access to all tools (development and demo use)
Tool Categories
Tools are organized into functional categories that map to manufacturing domains:
- ERP — Production orders, customers, deliveries, BOM
- OEE — Machine performance, availability, quality metrics
- QMS — Defect reports, inspections, audits, CAPA
- TMS — Tool management, lifecycle, wear tracking
- KG — Knowledge Graph queries, impact analysis, chart generation
- UNS — Unified Namespace MQTT topics, live machine data
- History — Time-series queries, trend analysis, anomaly detection
- Maintenance — Work orders, preventive schedules, spare parts
Tool Classification
Every tool is automatically classified by the governance agent with a sensitivity level:
lowRead-only queries, status checks, dashboard datamediumAnalytical tools, report generation, data exporthighWrite operations, configuration changes, order modificationscriticalSystem administration, user management, destructive operationsAudit Log
Every MCP tool call is logged with full context for compliance and debugging:
- User — Authenticated user identity and assigned role
- Timestamp — ISO 8601 timestamp of the tool invocation
- Tool — Tool name, category, and sensitivity level
- Parameters — Full input parameters (sensitive fields redacted)
- Result — Success/failure status, execution time, error details
- Decision — Whether access was granted or denied, and the matching rule
Admin UI
The Governance Admin UI provides four tabs for managing access control:
Roles TabCreate and edit factory roles. Assign tool categories and sensitivity thresholds to each role. Preview effective permissions.
Categories TabManage tool categories. Group related tools, set default sensitivity levels, and configure category-level access rules.
Classifications TabReview and override auto-generated tool classifications. See which tools are assigned to which sensitivity level.
Audit TabSearch and filter the audit log by user, role, tool, category, time range, and decision (allow/deny). Export to CSV.