Skip to content

Architecture and workflow diagrams

Praxis naming: This page documents Praxis, the AIWS workflow engine. Existing engine/* source paths, /engine/... routes, aiws-engine/* protocol identifiers, and existing script names remain unchanged for compatibility.

The first ten diagrams were generated from the repository at commit 13f323f with Archify. Each one is a self-contained page with light and dark themes, pan and zoom, search, relationship tracing, guided views and PNG or SVG export. The two architecture pages link their nodes to the source files on GitHub. Use a diagram inside its frame, or open it full screen for the complete toolbar.

The JSON source of every diagram lives beside it under docs/diagrams/ in the repository, together with the regeneration commands and the browser evidence from the last delivery.

  • The engine under engine/src imports only Node built-ins. It does not depend on the SDK packages.
  • The static control API accepts four commands: approve, pause, resume and cancel. The eleven governed dynamic-workflow decisions ride a separate /engine/dynamic/v1/requests plane.
  • OTLP export is an SDK capability. The engine keeps a bounded telemetry queue but contains no OTLP code.
  • A timeout, signal or null exit code is classified UNKNOWN on every platform. Only the signed Windows native helper can prove self-termination.
  • The push and pull-request path of the native helper workflow builds and probes but never signs or uploads. Signing happens only on manual dispatch, and platform qualification is a manual step on a native Windows host.
  • Every platform-matrix cell remains UNVERIFIED.

The host application, the three native SDKs, the shared spec, the self-contained engine, this documentation site, CI and the signed Windows helper. Read with engine decisions and implementation boundary and the capability matrix.

System Overview · architecture. Host application, three native SDKs, shared spec, self-contained engine, docs site, CI and the signed Windows helper.Open full screen · pan, zoom, search and export work inside the frame

Human approval, implementation, validation, pinned evidence, bounded correction, holds and human resume. Read with run a governed coding workflow.

Governed Coding Workflow · workflow. Human approval, implementation, validation, pinned evidence, bounded correction, holds and human resume.Open full screen · pan, zoom, search and export work inside the frame

Inspect, approval challenge, single-transaction command, receipt and exact-retry replay. Read with engine API, CLI and web controls.

Control API Decision Lifecycle · sequence. Inspect, approval challenge, single-transaction command, receipt and exact-retry replay.Open full screen · pan, zoom, search and export work inside the frame

The five CodingStatus values, bounded correction, holds and cancellation. Read with run a governed coding workflow and validation and correction.

Coding Work Order Lifecycle · lifecycle. The five CodingStatus values, bounded correction, holds and cancellation.Open full screen · pan, zoom, search and export work inside the frame

Control plane, identity adapter, runner, bounded storage executor, SQLite worker thread, clock gate and telemetry queue. Read with engine decisions and implementation boundary and SQLite persistence and recovery tests.

Praxis Internals · architecture. Control plane, identity adapter, runner, bounded storage executor, SQLite worker thread, clock gate and telemetry queue.Open full screen · pan, zoom, search and export work inside the frame

Event and trace intent committed together, leased outbox, OTLP/HTTP export, retained failures and alerts. Read with observability, metrics and OTLP delivery.

Observability Export Pipeline · dataflow. Event and trace intent committed together, leased outbox, OTLP/HTTP export, retained failures and alerts.Open full screen · pan, zoom, search and export work inside the frame

Build and probe on push or pull request, Azure Artifact Signing and Authenticode verification on manual dispatch, then manual qualification on a native Windows host. Read with deployment and platform qualification.

Windows Native Helper Pipeline · workflow. Build and probe on push or pull request, Azure Artifact Signing and Authenticode verification on manual dispatch, manual qualification.Open full screen · pan, zoom, search and export work inside the frame

PREPARED, DISPATCHED, SUCCEEDED and CONFIRMED_APPLIED; UNKNOWN reconciliation, retry after CONFIRMED_NOT_APPLIED and epoch fencing. Read with effects, operation identities and retries and recovery.

Operation Effect Lifecycle · lifecycle. PREPARED, DISPATCHED, SUCCEEDED and CONFIRMED_APPLIED; UNKNOWN reconciliation, retry after CONFIRMED_NOT_APPLIED and epoch fencing.Open full screen · pan, zoom, search and export work inside the frame

Claim under the clock gate, supervised admission, acknowledge, execute without a shell and classify the outcome. Read with worker dispatch and coding execution.

Worker Dispatch Lease · sequence. Claim under the clock gate, supervised admission, acknowledge, execute without a shell and classify the outcome.Open full screen · pan, zoom, search and export work inside the frame

Checkpoint, sealed manifest, atomic publication, host-verified restore, RESTORE HOLD and human activation. Read with engine backups and same-machine restore.

Praxis Backup and Restore · workflow. Checkpoint, sealed manifest, atomic publication, host-verified restore, RESTORE HOLD and human activation.Open full screen · pan, zoom, search and export work inside the frame

M9.10 adds four scalable SVG maps. These are intentionally visual documentation assets rather than Mermaid/ASCII diagrams.

Praxis protocol interoperability architecture

Protocol mapping across MCP, A2A and AG-UI

Durable protocol identity and registry

UNKNOWN and recovery lifecycle

Read Praxis protocol interoperability, protocol operations and recovery and M9 completion and compatibility with these maps.

Each docs/diagrams/<name>.<type>.json file is the source of truth. After editing one, validate and deliver it with the Archify CLI, then run the browser check. Architecture pages need --repo-root because they carry source-file evidence.

Terminal window
node <archify>/bin/archify.mjs validate <type> docs/diagrams/<name>.json --quality showcase [--repo-root .]
node <archify>/bin/archify.mjs deliver <type> docs/diagrams/<name>.json docs/diagrams/<name>.html --quality showcase [--repo-root .]
node <archify>/bin/archify.mjs visual-check docs/diagrams/<name>.html

The site build copies the delivered HTML from docs/diagrams/ into public/diagrams/, so a regenerated diagram appears here after the next npm run build or npm run dev. Adding a diagram means adding its entry to docs/diagrams/index.json and a section on this page.