System Design Atlas

Building digital twin with controlled equipment actions

10 / 10Worked example

Final design

Connect control limits and physical effects end to end. Which evidence establishes completion?

A simulation-only run does not test physical effects.

Starting point Block new effects until revision reconciliation.

Assumptions for the example case

A fictional laboratory setup with a ventilation demonstrator. Local hardware limits operate independently; this example replaces neither building automation nor a safety function. All quantities, thresholds and operational targets in this design are illustrative assumptions.

Effect with evidence

Digital twin with local control limits

Model-maintenance and operations interfaceAuthenticated authorisation
Digital twin APIModel + authorisation
Relational order datastoreProposals + commands
Telemetry adapterMeasurement ingestion
Time-series datastoreM-42
Simulation workerNo physical effect
Actuation workerSend S-42
ControllerHardware limit
Model-maintenance and operations interface → Twin APIModel + control authorisation
Twin API → Relational command datastoreProposal + S-42 + response
Controller → Telemetry adapterM-42
Telemetry adapter → Time-series datastoreMeasurement + timestamp
Relational command datastore → Simulation workerRead model
Time-series datastore → Simulation workerRead measurements
Simulation worker → Relational command datastoreProposal only
Relational command datastore → Actuation workerCommitted S-42
Actuation worker → ControllerSetpoint 60 %
Controller → Twin APIConfirmation

Simulation writes proposals only; the actuation worker sends committed commands; hardware limits remain independently enforced outside the platform.

Topology from step 6 with markers for age at the API, revision at the controller and response loss at the worker; revisit steps 2, 5 and 7.

Test plan with expected outcomes

Input and initial stateExpected resultReturn to an earlier step
G-42 controllerRevision=4 → commands A/B and B/A against revision 4The controller accepts at most one; the second conflicts, and the platform reconciles the evidence.Step 5/7
S-42 setpoint 60 accepted → identical replay, then setpoint 61 under the same keyOne command; the second payload conflicts.Step 4
Measurement age → 29,999/30,000/30,001 ms and setpoint 19/20/80/81 %Only the first age is permitted; 20 and 80 are allowed, 19/81 rejected.Step 2
Effect already 60%, response lost → timer 5 s, then matching confirmationInitially unresolved, then Applied; no new control command.Step 7/9

G-42 controllerRevision=4 → commands A/B and B/A against revision 4

Expected result
The controller accepts at most one; the second conflicts, and the platform reconciles the evidence.
Return to an earlier step
Step 5/7

S-42 setpoint 60 accepted → identical replay, then setpoint 61 under the same key

Expected result
One command; the second payload conflicts.
Return to an earlier step
Step 4

Measurement age → 29,999/30,000/30,001 ms and setpoint 19/20/80/81 %

Expected result
Only the first age is permitted; 20 and 80 are allowed, 19/81 rejected.
Return to an earlier step
Step 2

Effect already 60%, response lost → timer 5 s, then matching confirmation

Expected result
Initially unresolved, then Applied; no new control command.
Return to an earlier step
Step 7/9

End-to-end test and unresolved agreements

First end-to-end path
Propose and authorise 60%, lose the controller response and reconcile the same command. Then reject a measurement exactly 30 seconds old and a setpoint of 81%.
Clarify before real use
Real protocols, equipment authorisations, fallback procedures and functional safety require equipment-specific specialist design.

The end-to-end test connects control boundaries and physical effects.

The end-to-end test connects control boundaries and physical effects.

Test boundary checks and a lost response together.

A simulation-only run does not test physical effects.

The API rejects 30 s and 81%; revisit step 2 on failure. The worker reconciles S-42 rather than creating another command; revisit steps 4 and 7 on failure.

Alternative considered
Testing only the happy path hides uncertainty about physical effects.
Trade-off
Controlled error points are necessary.
Reassess
Real equipment requires separate technical approval.

Try it yourself

Assign the boundary test and response-loss test to modules and earlier steps to revisit.

A hint for your attempt

A simulation-only run does not test physical effects.

Compare with a possible solution
Boundary test
The API rejects 30 s and 81%; revisit step 2 on failure.
Effect test
The worker reconciles S-42 rather than creating another command; revisit steps 4 and 7 on failure.

Apply to your project

What is the equivalent of connecting control limits with evidenced effects in your project?

Transfer the decisions and their counterexamples to the editable design template.

Start your own design

Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.

Download design template (.md)
Compare the ten tasks with the example case
  1. Purpose and boundary

    What is the equivalent of simulation without physical effects in your project?

    In the example: Explicit control authorisation separates simulation from physical effect.

  2. Requirements

    What is the equivalent of checking data age and control limits together in your project?

    In the example: Age<30 s and 20..80 % must both hold.

  3. Scale estimates

    What is the equivalent of telemetry determining raw volume in your project?

    In the example: Size time-series storage and control decisions separately.

  4. Interfaces

    What is the equivalent of retaining a command’s setpoint in your project?

    In the example: commandKey binds the setpoint and measurement basis.

  5. Data and states

    What is the equivalent of an explicit unresolved-outcome state in your project?

    In the example: Only evidence permits terminal effect states.

  6. Overall architecture

    What is the equivalent of an external controller boundary in your project?

    In the example: The control worker crosses the external boundary with versioned commands.

  7. Critical flow

    What is the equivalent of reconciling the same command after response loss in your project?

    In the example: Querying S-42 resolves the effect.

  8. Bottlenecks and trade-offs

    What is the equivalent of diagnosing rejection causes in your project?

    In the example: Measure rejection reasons separately.

  9. Operations and security

    What is the equivalent of reconciling physical effects before recovery in your project?

    In the example: Block new effects until revision reconciliation.

  10. Final design

    What is the equivalent of connecting control limits with evidenced effects in your project?

    In the example: Test boundary checks and a lost response together.