Systems Lab / Workflow design
Systems Lab Reference Model: Input, Logic, Action & Control
A practical reference model for dependable workflows: define inputs, validate logic, make actions traceable and build for failure recovery.
A dependable workflow is not simply a chain of connected tools. It is a controlled path from input to action, with validation, ownership, observable status and a safe way to recover when a step fails. The Systems Lab uses four stages—Input, Logic, Action and Control—to make assumptions visible before automation is built.
The four-stage reference model
1. Input — capture a valid event
Document where the event originates, who can submit it, which fields are required and how malformed or missing information is handled. Decide what data must be stored, what should be minimized and what consent or access rules apply. Do not let an automation act on unvalidated input just because an upstream form normally constrains it.
2. Logic — apply rules and interpret ambiguity
Use deterministic rules for permissions, arithmetic, validation and known routing decisions. Consider AI only for the parts that genuinely require interpretation of unstructured or ambiguous information. Define allowed outputs, confidence handling, review thresholds and how the application rejects unsupported results. Keep core business rules outside prompts where possible.
3. Action — make the intended change
Specify the system that will be changed, the identity under which the action runs and the exact expected side effect. Actions should be idempotent wherever practical, so receiving the same event twice does not create duplicate records or messages. Separate record creation from external notification and record each step’s completion.
4. Control — observe, assign and recover
Give the workflow an identifiable run ID, status, monitored failure path and a named owner. Log enough to investigate the issue without collecting unnecessary sensitive data. Define retries for transient failures, manual review for non-retryable failures and a runbook to pause, inspect and safely resume work. A process without ownership or recovery instructions is not ready for reliable operations.
Worked example: enquiry intake
Input receives a form submission and a request ID. Logic validates the nonce, fields, rate limit and routing category. Action stores a private enquiry record and attempts a notification. Control records the result of each step, alerts the site owner when notification fails and lets the owner retry without duplicating the enquiry. The design separates “record stored” from “email delivered” because they are different outcomes.
Worked example: editorial publishing
Input is an approved brief and source material. Logic checks the outline, evidence, intended reader and required reviews. Action publishes the page with its metadata and links. Control records approval, a review date and the owner responsible for refreshing time-sensitive claims. A technical SEO check cannot replace subject-matter review; both belong in the workflow.
How to decide whether to automate
Map the current process before selecting a tool. Count handoffs, identify exceptions and ask whether the current steps are stable enough to encode. If a process changes weekly or depends on undocumented judgement, start with discovery and standardization. Automating ambiguity can make the wrong behavior faster and harder to spot.
Estimate the full cost of ownership: licensing, usage, engineering, review time, monitoring, training, support and future changes. For each external dependency, document authentication, rate limits, data handling and the fallback if the service is unavailable. Prefer the smallest system that satisfies the requirement and can be maintained by the people who inherit it.
Production readiness checklist
- Inputs, data fields and validation rules are explicit.
- Deterministic rules are used where they are sufficient.
- AI outputs are constrained, evaluated and reviewed where appropriate.
- Actions are authorized, traceable and safe to retry.
- Partial runs, duplicates, timeouts and external-service failures are tested.
- Logs, privacy, retention, alerting and recovery steps are documented.
- A named person owns ongoing maintenance and can pause the workflow.
Explore the AI triage flow, Editorial Quality Workflow and Lead Intake & Routing for applied examples. The Automation Discovery Worksheet is a practical starting point for documenting a process before implementation.
Make the workflow observable
For every stage, decide which facts must be visible to the operator: the event identifier, current state, validation result, rule or model version, action attempted, time of the last transition and recovery status. The goal is not to log everything. Record the minimum useful operational evidence, protect sensitive payloads, set retention rules and ensure only authorized people can inspect records. Avoid storing secrets or copying entire customer messages into logs merely because they are convenient to debug.
Design for partial completion
External systems do not share one transaction. A record may be created successfully while an email or third-party update fails, and a timeout may leave it unclear whether a remote action completed. Model those states explicitly. Use stable identifiers, idempotency keys where supported, bounded retries with backoff, and a manual reconciliation path for ambiguous outcomes. Do not retry an irreversible action blindly. A workflow should explain what can safely be repeated and what requires a human check.
Define the operating contract
Before implementation, write down the process owner, business owner, permitted data, expected volume, service expectations, alert recipient, review cadence and pause authority. Add a runbook that tells an operator how to inspect failures, resume work, revert a bad rule and communicate an incident. A diagram without ownership and recovery instructions is an illustration, not a maintainable operational model.
Evaluate the real task
Measure the outcome that matters at the process level. Depending on the workflow, that may include invalid-input rejection, incorrect routing, missed requests, duplicate side effects, human-review effort, latency, cost, accessibility, or time to recover from an outage. Establish a baseline and release thresholds before optimizing. Use representative and edge cases, keep an independent holdout set for AI-assisted decisions, and test the failure path as deliberately as the successful path. Re-run evaluation after changes to inputs, prompts, models, integrations or business rules.
Use this reference model as a review aid, not a guarantee of reliability. The deployment environment, data quality, permissions and operating practices determine whether an implementation meets its goals. If a system cannot be monitored, paused, retried safely and owned after handover, reduce the scope until those controls can be built and tested.
Reference model; examples are illustrative rather than deployed client systems.
Map a workflow of your own.
Start with what comes in, what needs to happen, and where the result should go.
Discuss automation