System Design Atlas

Building digital twin with controlled equipment actions

04 / 10Worked example

Interfaces

The same command retains its setpoint. Which conditions distinguish a retry?

After a connection loss, the interface retries.

Starting point Size time-series storage and control decisions separately.

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.

Command and evidence

Command and evidence

S-4260 % + revision4
ControllerLocal limits
EvidenceID + revision5 + 60 %

Send S-42 and receive matching controller confirmation; response loss triggers status reconciliation.

Send S-42 and receive a matching signed response; a lost response triggers status reconciliation.

Proposed domain contracts

  1. POST/stellauftraege/S-42

    Request an authorised setpoint.

    Input
    commandKey, actuator=G-42, setpointPercent=60, measurement=M-42, observedAt, mappingVersion, expectedControllerRevision
    Result
    Accepted with a command, or rejected because of measurement age or control limits.
    Retry behaviour
    The same key preserves the same command; a changed setpoint produces a conflict.
  2. POST/controller-rueckmeldungen

    Accept effect evidence durably.

    Input
    eventKey, command=S-42, appliedSetpoint, controllerRevision, appliedAt, signature
    Result
    Durably accepted; business outcome Applied or a discrepancy.
    Retry behaviour
    Double feedback takes effect once; confirmation only after commit.

The same command retains its setpoint.

The same command retains its setpoint.

commandKey binds the setpoint and measurement basis.

After a connection loss, the interface retries.

Return the existing command result with no second effect. Changed content conflicts; a new command requires new authorisation.

Alternative considered
Altered setpoint under the same key would be a hidden new intention.
Trade-off
New intent requires new authorisation.
Reassess
A protocol change requires a contract version.

Try it yourself

Specify responses to replaying 60% and changing to 61% under S-42.

A hint for your attempt

After a connection loss, the interface retries.

Compare with a possible solution
Identical
Return the existing command result; no second effect.
Changed
Conflict; a new command requires new authorisation.

Apply to your project

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

Step 5: an unresolved outcome remains distinct. Which evidence permits completion?