Type safety
Every tool contract is schema-validated before touching persistence, regardless of caller.
MESkit public website
MESkit uses a four-layer architecture that keeps operations typed, auditable, and reusable across interfaces. The same tool layer powers UI interactions, agent tool-use, and future MQTT ingestion paths.
Last updated: March 7, 2026
Design principle: one operation path, multiple interfaces.
UI clicks and natural-language commands both resolve to typed tool functions. Those functions validate inputs and execute against Supabase-backed ISA-95 tables. Intelligence layer logic and transport layers remain composable around that stable core.
Current stack plus planned device transport.
┌──────────────────────────────────────────────────────────┐
│ Frontend (Next.js App Router, responsive UI shell) │
├──────────────────────────────────────────────────────────┤
│ Tool Layer (Server Actions + Zod validation) │
│ UI calls tools • Agents call tools • same interfaces │
├──────────────────────────────────────────────────────────┤
│ Intelligence Layer │
│ Ask MESkit • Quality Monitor • Planner │
├──────────────────────────────────────────────────────────┤
│ Supabase (Postgres + Auth + Realtime + Edge Functions) │
├──────────────────────────────────────────────────────────┤
│ MQTT Broker (M6) → Edge Function bridge │
└──────────────────────────────────────────────────────────┘Single source of truth for operations.
Every tool contract is schema-validated before touching persistence, regardless of caller.
Business logic is isolated in functions that can be tested without UI rendering or model prompts.
Tool-level call traces provide clear accountability for user and automated actions.
Three automation layers building toward automated rescheduling.
The product vision is automated predictive rescheduling: predict a machine failure and coordinate the shop floor response before it happens. Three automation layers (Monitor, Plan, Act) build toward this — operators stay in command.
Monitor (Machine Health, M6)
→ detects degradation, outputs failure probability
↓
Plan (Production Planner, M5)
→ evaluates constraints, computes alternative schedules
↓
Act (Intelligence Layer, M1+)
→ acts through tool layer, updates schedules, notifies operatorsIn the MVP, these layers operate independently. Post-MVP, Monitor triggers Plan, which triggers Act — closing the coordination loop. See smart features for detailed profiles.
Claude tool-use with explicit constraints.
Prompt → tool selection → schema validation → execution against Supabase → structured result → final assistant response
Stable operational contracts across transport shifts.
meskit/{line_id}/{workstation_id}/{event_type}Answer-ready architecture summary.
It prevents business logic drift between UI handlers and agent actions.
No. MQTT changes transport, while execution remains on the same validated tool functions.
Supabase Realtime subscriptions push state updates to connected clients and triggers.
Supporting technical pages.