AGENTWORKSHOP · INDUSTRIAL AGENT RUNTIME
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.
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.
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.
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.
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.
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.
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.
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.
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 →
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.
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.

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.

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.

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.
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.
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)
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.
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.
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.
config.yml < runtime-settings < env — one descriptor registry drives both the CLI and the Settings UI. 144 settings, zero hardcoded defaults.
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.
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.
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.
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.
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.
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.
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.
Safe-range ∩ recipe-window interlock → approval → PLC write → readback → signed history; every decision audited.
Parameter changes versioned with attribution (source + operator + reason); roll back to any revision or last-good batch, non-destructively.
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.
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.
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.
Each channel keeps its own plugin switch set — a disabled plugin's tools never enter that team; plugins themselves are hot-managed.
Three-state grants enforced in the data plane; agent bindings validate line grants too.
User / agent / system actions attributed to "Channel/Member", queryable by line, recipe, source and kind — streamed live.
Private + shared domains, FTS5 with CJK segmentation, optional vector hybrid recall; team chronicle and idle reflections accrue.
A member's request becomes a trackable job, not a lost message; native HITL (omp ask → approval → receipt), member permissions and notifications first-class.
Attach any channel task to an interval or daily schedule — per-run history, busy-guard, consecutive-failure circuit breaker. Line patrol runs unattended.
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.
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.
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.
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.
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.
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.
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.
Multi-line equipment, DAQ channels, alarms and trends on one 3D overview — second-level soft real-time, reachable from any browser.
The controlled loop: analyze trends → propose a setpoint → human approval → write & readback → numeric verdict. Auditable and reversible at every step.
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.
Typed REST SDK plus plugins that register drivers, processors and agent tools; four entry points open the platform to external systems and agents.
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.
# install globally, run from any directory (the published tarball ships a prebuilt .output/)
npm i -g agentworkshop
aw start # → http://localhost:3001 · config root ~/.AgentWorkShopGo 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
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.
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.