Skip to content

AGENTWORKSHOP · INDUSTRIAL AGENT RUNTIME

Agent teams×the line×the twin

A configuration-driven industrial agent runtime: teams read telemetry and issue setpoints through governed controls (manual mode requires human approval). Events can stream to a 3D twin. Real protocol stacks, reproducible assertions; simulation evidence is distinct from physical HIL.

WHAT是什么A supervisory runtime, SCADA-adjacent · second-level soft real-time
FOR WHOM给谁用Line engineers · process & ops · industrial AI research & teaching · platform extension
WHY凭什么值6 driver classes (incl. serial plugin) · interlocks → policy-based approval → audited readback · 14 engines, one contract
FIG.00 · THE DATA PIPELINE — THE PRODUCT IS THIS CHAIN (SCHEMATIC)SAMPLING → STORAGE → STREAM → AGENT
Field devicesPLC / SENSORS
Drivers ×6MODBUS TCP/RTU · OPC UA · MQTT · HTTP · SERIAL (plugin)
QueueINPROC / MQTT · OFFLINE BUFFER
TSDBSQLITE / TIMESCALE
WS HUBAEP v1 · SEQ RESUME
Agent / TwinSAME EVENT STREAM
6field protocols
4entry points
14engines
144runtime settings
2355unit tests
7task states

Unit-test count from the 2026-11-25 local re-run (2,354 pass / 0 fail / 1 conditional skip); isolated production-build acceptance covered REST 73/73, DAQ 17/17, prefab binding 15/15 and line onboarding V1–V6 8/0. **This is simulator evidence, not physical PLC/HIL acceptance.** Report: docs/audit/evidence/2026-11-25-stability-audit/REPORT.md. The 2026-09-24 historical full-coverage wave (~1100 assertions) remains archived in docs/audit/e2e-2026-09-24-full-coverage.md and docs/audit/e2e-2026-09-24-all-features.md. The rest are countable facts: 6 driver classes (5 built-in + the serial-bridge plugin) / 4 entry points (WS · MCP · A2A · REST) / 14 harnesses (agents/registry.ts) / 144 settings in 19 groups (aw config list) / 7 task states.

Version v0.23.0 · releasedLicense Apache License 2.0Runtime Node ≥ 23.4.0 · Nuxt 4 · Vue 3.5 · TypeScript 5.7Docs 简体中文 / English
00

New this month

CURRENT SOURCE · v0.23.0 (RELEASED 2026-11-29)

v0.22.0 (2026-11-28) completes the memory center: local ONNX retrieval models (BGE Small Chinese / MiniLM) download, activate and backfill from the UI, and semantic retrieval hits with near-zero lexical overlap; the graph derivation face gains agent-viewer isolation; parameter-experience scope whitelists fail closed and the cross-tenant read is closed; human session messages sediment dialogs again; injection layers de-duplicate and the curator handbook lands 45 s after a task. Real-model acceptance (ustc/deepseek-flash) passed end to end on production-line and normal Channels, and Runtime instance metadata hot-reload takes effect. Parameter dispatch and other writes still run after node authorization and recipe approval; simulation evidence is not physical HIL. See line governance.

LIFECYCLE

A session you can govern

Only manual sessions can be renamed, archived or restored; an archived session must be closed first, a busy close is bounded to 150 ms (a second archive returns SESSION_CLOSING); task, project and catalog sessions are refused by their channel lifecycle. Archived rows come only from visible channels and the owner scope.

Acceptance report →

FAIL-CLOSED

Delete where you trigger it

Unmount channel, delete workspace, remove team/member, unbind DAQ, purge an archived session — all confirm in a standard a-popconfirm: cancelling sends no request, only confirm acts, and dangerous buttons are red. The AML delete no longer falls back to deleting when its dialog fails to load.

Governance and audit →

ONE SURFACE

Sessions live in the chat page

A session bar and the session detail sit on the same page; the sidebar returns to group chat, archiving the active session selects the next or group chat; old ?view=sessions resolves to chat, and a project deep link selects its target once.

Changelog →

Verification

v0.22.0 (2026-11-28): memory-center completion round. Isolated production-build acceptance — memory/knowledge/experience full chain (isolation matrix 53, retrieval models 19, timing 8), real-model scenarios (ustc/deepseek-flash: normal 15, production line 15, runtime metadata hot-reload 10) all green; full unit suite 2,542 tests / 2,540 pass / 0 fail / 2 skip, eslint 0, typecheck, i18n 4,008/4,008, docs 101/0, build, boot-smoke 6/6. Mimosa deep scans (three) sealed; all 46 findings triaged to false positives / gitignored local artifacts (0 true positives on the production surface); the scanner coverage verdict stays inconclusive on this machine — not claimed as a full security pass. See PR #306.

01

The system in 90 seconds

SYSTEM FILM · v0.20.1 · 2026-11-25

A task replayed on a real 0.20.1 desktop instance: submit a goal → query telemetry → two independent statistics → write a deliverable → check the update centre. Not a UI render and not a concept film; the numbers come from task 0c3e927d and can be read back in the task list, the status timeline and the artifact drawer. On-screen text is Chinese; the English scene index is on the demo page.

FILM.01AGENTWORKSHOP 0.20.1 · SYSTEM FILM87.7s · 1920×1080 · Chinese on-screen captions

A real task, not a mock. A data analyst completed 270 15-second buckets / 1,912 raw points / mean 185.048 °C / +0.048 °C deviation in 6 m 37 s. Only 67 minutes of valid data exist, and both the film and the deliverable say so. The demo line ln-cca0c356 is a shadow simulation (simulated=true); simulator evidence is not physical HIL or production approval; Mimosa is inconclusive, no security endorsement. Scene index and specs →

02

Interface

INTERFACE

Every screen below was recorded from a running instance, not a render. The three share one event bus — a sample written by a DAQ channel is at once the twin's input, a point on the trend curve, and the row an agent reads.

FIG.00-BCORE DEMO · 3'00" · ENGLISH UI · EN/ZH CAPTIONSREAL UI RECORDING · ISOLATED MOCK LINE

From the control room to the EDA studio. Dashboard → live DAQ → EDA analysis pipeline → governed tool catalog → published ontology → four agent workspaces → plugins → analysis ledger → EDA studio. It runs on an isolated mock line with mock DAQ drivers; no physical PLC is connected and no control command is sent to real equipment. The analysis records and ontology are seeded demo data.

FIG.01DIGITAL TWIN · LINE OVERVIEWTHREE.JS · LIVE EVENT STREAM

Digital twin control room — line equipment, DAQ channels, trends and device monitoring on one screen

The twin is a render of the same event bus. Equipment ledger, DAQ channels, live trends, alarm strip and device health on one screen; the real render readout sits top-right (129 FPS) and the quality ladder (DPR / shadows / bloom) tracks a wall-clock frame budget, so mid-range machines stay honest too.

FIG.02DAQ CONSOLE · ACQUISITION51 NODES · WS FAN-OUT

DAQ centre — gauge strip, per-node ledger, sampling period and WS fan-out state

The acquisition chain, end to end. Under the gauge strip (nodes / published / consumed / lost / stored) sits the per-node ledger: live value, sampling period, WS fan-out state, driver type — and for control nodes the SET / ACT pair read back through the very calibration path used to write.

FIG.03LINE OPERATIONS · LINE OPSLINES · PRODUCTS · RECIPES · BATCHES

Line operations — line cards, recipe binding, control-node counts and start entry

Starting a line = gating acquisition with its recipe window. From then on every sample carries product / recipe / batch; control nodes only declare classification parameters and process ranges — the actual write still passes interlock and approval.

03

Architecture

ARCHITECTURE

One manager behind every door: four entry points converge into one runtime; the industrial stack and the agent runtime share the same event bus. Every cell below is a real module you can open in the repository.

EntryENTRY
WSAEP v1 stream · seq resume
MCP25 in-process tools (+ 38-tool stdio gateway)
A2AJSON-RPC 2.0 + AgentCard
REST/api/workshop/**
RuntimeRUNTIME
AgentChannelManagerchannel & instance orchestration
SchedulerLooplead supervision · rule fallback
TaskEngine7-state task machine
AgentMemoryFTS5 + optional vectors
IndustrialINDUSTRIAL
DAQ gatewayper-node edge runtimes
DCW write controlinterlock → HITL → readback
Queueinproc / MQTT · offline buffer
TSDBSQLite / Timescale
EnginesHARNESS ×14
mockin-process · scripted
claudein-process · Agent SDK
PersistentPERSISTENT · 6
ompstdio RPC
codexapp-server JSON-RPC
dshACP v1
qwenACP (legacy Zed)
hermesACP v1
opencodeserve + HTTP/SSE
Headless CLIHEADLESS · 6
geministream-json
copilotJSONL
cursorstream-json
crushrun -q
goosestream-json
pi-p --mode json

Sampling: driver → queue → consumer three-way fan-out (WS push · TSDB write · twin writeback)  |   Write: interlock → approval → PLC write → readback  |  Storage: SQLite (channels · agents · tasks · messages · events)

04

Design principles

DESIGN PRINCIPLES
01

Server-authoritative

The UI renders facts; it is not their source. Nodes, tasks and grants live server-side — the screen shows exactly as many DAQ points as the server holds.

02

Enforced in the data plane

Line permissions (none / read-only / operate) are enforced in the data plane: unauthorized line data never leaves the server — it is not merely hidden by the frontend.

03

Honest observability

Drop counters, loss metrics and pipeline watermarks are exposed as they are; the audit log attributes every action to "Channel/Member". Even window.__townStats refuses to lie about rendering.

04

Config-driven

config.yml < runtime-settings < env — one descriptor registry drives both the CLI and the Settings UI. 144 settings, zero hardcoded defaults.

05

Protocol-stack simulation

E2E uses Modbus/OPC UA/MQTT/HTTP stacks with a PLC simulator to verify writes, readbacks and approvals; this is not physical PLC/HIL evidence. The 2026-09-24 historical wave passed ~1100+ baseline assertions; follow-up items remain individually reported.

06

Human in the loop

Agents propose, humans decide where policy requires, and every action is audited. Manual-mode writes wait for review; auto mode retains interlocks and audit and is never a physical-safety substitute.

05

Capabilities

CAPABILITIES
UI

ChatGPT-style harness console

800px reading column, full-width agent blocks, a harness chip on every reply and a 26px composer; Channel / Project / entry pages rebuilt with every data-testid and interaction preserved, usable at 390px.

SESS

Channel sessions

Template → channel → session; clone base members with isolated runtime / mailbox / execution lock / engine process / memory domain. Serial inside a session, parallel across sessions; closing one leaves the rest running.

PRJ

Project delivery mode

Blueprint instantiation → plan approval → WBS with dependsOn → L1 technical review → L2 owner acceptance → deliverables; observe / supervised / auto, with CAL-3 78/78 on a real line.

PROTOCOL

Six-protocol DAQ & control

Modbus TCP/RTU · OPC UA · MQTT · HTTP in both directions + the built-in serial plugin (direct RS-232/485) — connection pools, classified errors, per-driver connection tests. Protocols are plugins: newly injected protocols appear in the frontend with zero form changes.

R/W

Read-write control nodes

Every control node reads its PLC value back through the same calibration path it writes with — SET vs ACT side by side, passive and never interlocked.

HITL

Human-approved writes

Safe-range ∩ recipe-window interlock → approval → PLC write → readback → signed history; every decision audited.

RCT

Recipe versioning & governance

Parameter changes versioned with attribution (source + operator + reason); roll back to any revision or last-good batch, non-destructively.

BATCH

Evidence scoped to the running batch

daq_query resolves the active run and filters by run_id + recipe_id — after a recipe switch an agent only ever reads the recipe currently running, with the scope echoed in the header; scope:'all' widens it for cross-recipe review.

TWIN

Hybrid twin × MPC

Grey-box physics core + bounded PyTorch residual; TwinSnapshot / VirtualTrial / RecommendationCertificate with UQ/OOD screening and all-trajectory gates; the hybrid_twin profile injects twelve twin/mpc tools and stays recommendation-only by default.

HRN

Multi-harness teams

Fourteen engines behind one contract, in three transport classes (in-process / persistent session / headless CLI); each channel picks harness → provider → model, with availability probing and dispatch-time checks.

TEAM

Team-scoped plugins

Each channel keeps its own plugin switch set — a disabled plugin's tools never enter that team; plugins themselves are hot-managed.

PERM

Line-level permissions

Three-state grants enforced in the data plane; agent bindings validate line grants too.

OPS

Full-operation audit log

User / agent / system actions attributed to "Channel/Member", queryable by line, recipe, source and kind — streamed live.

MEM

Persistent memory

Private + shared domains, FTS5 with CJK segmentation, optional vector hybrid recall; team chronicle and idle reflections accrue.

CHAT

Channel group chat

A member's request becomes a trackable job, not a lost message; native HITL (omp ask → approval → receipt), member permissions and notifications first-class.

SCHED

Scheduled tasks

Attach any channel task to an interval or daily schedule — per-run history, busy-guard, consecutive-failure circuit breaker. Line patrol runs unattended.

QOS

Root queue & leases

FIFO root queue with visible queue positions; queued roots never burn execution budget while waiting, and a deterministic lead-rescue sweep revives starved admissions; assignment generation + execution-lease fencing drops stale worker events; the supervision watchdog tells stuck from slow.

PROD

Production hardening (v0.7.58)

Hold-heartbeat lifecycle governance (failed writes never occupy the setpoint · change-point value clearing · line-active gate); silent mock fallback blocked; frame pixel sha256 fingerprints + day-directory object GC with DB cross-check; Timescale daily chunks + columnstore compression; heap watermark watch with child auto-respawn; governance windows persisted; grant re-checks include the channel-bound line.

EDA

Data workbench & EDA studio (/data · /studio)

Three data shapes (scalars, array profiles, CCD images) with compound queries, bulk export job ledger (manifest + merged.csv) and WS live mirroring; the studio adds charts & grid dashboards, golden phase-referenced deviation scoring, FDC reference-band features, SPC control charts (Nelson/I-MR/EWMA/CUSUM), commonality analysis, OCAP dispositions, virtual metrology (OOD rejection) and derived datasets — all line-scoped and preflight-checked.

OPT

Process optimizer & solver (v0.7.71)

End-to-end parameter optimization: process model (lineage-verified dataset + eligibility gates) → AML training (G1–G3 gates) → profile freeze & binding → hash-pinned ProblemIR compile → OSQP/SLSQP worker (process pool, timeout degradation, NaN fail-closed) → independent TS crosscheck (≤1e-6) → governed dispatch (single HITL throat, eight re-verifications, device read-back ackSummary). Agent tools, REST and MCP share one chain; optimizer tools are injected only with a valid binding.

GOV

Declarative tool-face governance (v0.7.71)

Reference checks moved onto the tool definitions themselves (104 host tools fully declared; write-family tools without a declaration are rejected at registration); plugin tools join the same check once declared, with full auditing; per-agent full-tool stdio bridge (ETag/304 incremental polling); token rotation with grace windows; DAQ push fallback requires line operate plus a default ±1h backfill window.

ONTO

Ontology service (v0.8.0)

Control-oriented ontology: 10 entity kinds × 8 closed relation kinds × three evidence levels × five-state lifecycle; four compiled artifacts (process model / ProblemIR delta / scene patch / guard set) under a tighten-only invariant with per-rule traces; runtime guards fail closed, ontology hashing is separated from solver IR hashing. Six-tab /ontology console (the graph tab is an interactive node-edge view with 1/2-hop neighbourhood drawer) + ten agent tools.

LOOP

AI-first model loop (v0.8.0)

Agents build the virtual model themselves — scene discovery → human-approved freeze → physics-spec skeleton → server-sampled snapshot → virtual trial — then train, propose adoption via optimizer_profile_propose, and a HITL approval publishes + rebinds so the next solve runs the new model. Verified live across two consecutive rounds (v1→v2→v3) with zero device writes.

06

Where it fits

APPLICATIONS
S.1

Line supervision & twin ops

Multi-line equipment, DAQ channels, alarms and trends on one 3D overview — second-level soft real-time, reachable from any browser.

S.2

Agent-assisted optimization

The controlled loop: analyze trends → propose a setpoint → human approval → write & readback → numeric verdict. Auditable and reversible at every step.

S.3

Industrial AI research & teaching

Six-protocol acquisition/write-control (serial as a plugin), multi-engine orchestration and a real simulator stack out of the box — a testbed for papers and courses, with protocol-real verification.

S.4

Platform extension

Typed REST SDK plus plugins that register drivers, processors and agent tools; four entry points open the platform to external systems and agents.

SCOPE

AgentWorkShop is a supervisory (SCADA-adjacent) layer running at second-level soft real-time. It is not a hard real-time controller: any <10 ms critical loop (interlocks, safety, servo) must live inside the PLC — setpoints written here are advisory and plant-side logic may veto.

07

Up and running in a minute

QUICK START
bash
# install globally, run from any directory (the published tarball ships a prebuilt .output/)
npm i -g agentworkshop
aw start            # → http://localhost:3001 · config root ~/.AgentWorkShop

Go deeper: your first agent × line session (the whole chain in ~2 minutes) · Harness console · Channel sessions · Project mode · SDK guide · plugin guide · aw CLI manual

08

Research paper

RESEARCH PAPER

The platform's mechanisms are documented in a submission-ready manuscript: "Agent-Mediated Online Data Acquisition and Governed Setpoint Control in Industrial Production Lines" (IEEE Transactions on Industrial Informatics, anonymous review draft, 10 pages, IEEEtran). Source and compiled PDF live in paper/tii/TII-SUBMISSION-PACKAGE-20261112/. The paper's mechanism claims are backed by archives in this repository: docs/benchmarks/ (October 2026 deployment-scale regression campaign — 14 pipeline executions, 1134 checks, zero failed, including graded write-acknowledgment and HITL evidence legs), docs/experiments/ (cast-film closed-loop reports) and docs/audit/ (acceptance reports). AW_BENCH_MODE=1 re-runs the same paper pipeline locally via bench/PIPELINE.md.

Put an agent team on a real production line

14 engines, 6 field protocols, 144 runtime settings and 1100+ baseline acceptance assertions (plus the follow-up wave reports) are already in the repository. Supervisory by design, second-level soft real-time; protocol-real, assertion-reproducible.

Licensed under the Apache License 2.0 · Commercial and production use permitted