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 3, 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. Agent runtime 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 │
├──────────────────────────────────────────────────────────┤
│ Agent Runtime (Claude tool-use) │
│ Operator Assistant • Quality Analyst • 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 agent actions.
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.