Skip to content
Browse

The Specification System

Where does the system end?

The story

The spark needs a container. The SYSMOD owl draws a circle on the whiteboard — the system boundary — and places every actor and part carefully inside or outside it. Nothing sits on the line. But the owl is strict about one thing: everything inside the circle still describes what the system must deal with, never how — the solution hasn’t been invented yet. Every actor and part now drawn becomes the vocabulary the team will use to write requirements and sketch use cases — nothing gets invoked that isn’t already on this circle.

The SYSMOD owl draws on a whiteboard: the system boundary around a drone, a charging network and a payload system, with weather and the airspace authority outside it.

The Definition

The bounded system context: the system of interest plus the actors and use cases that interact with it. Everything inside this boundary is still problem space, not solution space — no design decisions yet. Every actor and every part of the system named here becomes the vocabulary that the system requirements and use cases are specified against; nothing enters a requirement or a use case that hasn’t already been placed on this boundary.

ISO/IEC/IEEE 15288: System Requirements Definition

SYSMOD step: specifySystem, nested step modelSpecificationContext

SysML v2 SYSMOD library

specificationContext specializes the system idea context and becomes the owner of the system’s use cases: it holds the actors and the system at the system boundary. Its Impl counterpart adds the internal structure at this level; subparts or attributes of the system that use cases and requirements refer to belong there. The black box specification system is the subject of the use cases, the white box specification system the subject of the system requirements.

occurrence def Project {
  part specificationContext :> systemIdeaContext {
      doc
      /* The specification context includes the actors and the system, 
        * which are defined during the requirements analysis. The specification 
        * context is also the owner of the system use cases. The context 
        * specializes the black box system idea context. */
      part <soi> specificationSystem :>> systemIdeaContext::soi {
          doc
          /* The specification system as a black box. It redefines the system idea 
            * and is the subject of the use cases. */
      }
  }
  part specificationContextImpl :> specificationContext, systemIdeaContextImpl {
      doc
      /* The white box view of the specification context. It combines the black box 
        * specification context with the internal structure view inherited 
        * from the system idea implementation context. Additional features, such as 
        * subparts or attributes, which are used by use cases and requirements 
        * can be defined here. */
      part <soiImpl> specificationSystemImpl :>> specificationContext::soi, systemIdeaContextImpl::soiImpl {
          doc
          /* The white box view of the specification system including its internal 
            * structure. It is the subject of the system requirements, so that 
            * requirements can refer to its subparts and attributes. */
      }
  }
}

Concrete model: Delivery Drone

The story in the model, a bit more detailed.

Redefining soi with a doc comment fixes what “the system” now means. The context now owns all four use cases, each just typed and bound to an external definition — the detail is in Step 8. DeliveryDroneSystem itself grew into the shared owner of every action any use case needs.

SysML v2 view SpecificationSystemView: the delivery drone system as a black box with its system ports, the actors with their ports, the interfaces between them and the system use cases of the context.

View specificationSystemView : SpecificationSystemView · about the view

#project occurrence def <PRJ> 'Delivery Drone Project' {
  part deliveryDroneSpecificationContext :>> specificationContext : DD_SPECIFICATION::DeliveryDroneSystemContext :> deliveryDroneSystemIdeaContext {
      part deliveryDroneSystem :>> deliveryDroneSystem, deliveryDroneSystemIdeaContext::deliveryDroneSystem, Project::specificationContext::soi;
  }
  part deliveryDroneSpecificationContextImpl :>> specificationContextImpl : DD_SPECIFICATION::DeliveryDroneSystemContextImpl :> deliveryDroneSpecificationContext, deliveryDroneSystemIdeaContextImpl {
      part deliveryDroneSystemImpl :>> deliveryDroneSystem, deliveryDroneSystemImpl, deliveryDroneSystemIdeaContextImpl::deliveryDroneSystemImpl, Project::specificationContextImpl::soiImpl;
  }
}
#systemContext part def DeliveryDroneSystemContext :> DD_SYSTEMIDEA::DeliveryDroneSystemIdeaContext {
    doc
    /* The black box specification context. It fixes the system boundary for
      * the requirements analysis and owns the system use cases. */
    #system part deliveryDroneSystem :>> deliveryDroneSystem : DeliveryDroneSystem;
    use case deliverPackage : UseCases::DeliverPackage {
        subject :>> droneSystem :> deliveryDroneSystem;
    }
    use case chargeDrone : UseCases::ChargeDrone {
        subject :>> droneSystem :> deliveryDroneSystem;
    }
    // + reportFleetStatus, handleEmergencyLanding, same pattern
}
#systemContext part def DeliveryDroneSystemContextImpl :> DeliveryDroneSystemContext, DD_SYSTEMIDEA::DeliveryDroneSystemIdeaContextImpl {
    doc
    /* The white box specification context: adds the internal structure of
      * the specification system. */
    #system part deliveryDroneSystemImpl :>> deliveryDroneSystemImpl : DeliveryDroneSystemImpl;
}
part def DeliveryDroneSystem :> DD_SYSTEMIDEA::DeliveryDroneSystem {
    doc
    /* The specification system as a black box; the subject of the system
      * requirements and the use cases. It owns every action any use case
      * in Step 8 needs — planDelivery, flyToPosition, pickUpPackage,
      * dropOffPackage, chargeInFlight, requestStatus, and more — so a
      * use case only ever references a shared action, never redefines one. */
    item homePosition : Position {
        doc /* The position of the home base of the drone. */
    }
    action planDelivery {
        in item order : DeliveryOrder = operatorPort.order {
            // ...
        }
        out item task : DeliveryTask {
            // ...
        }
    }
    action flyToPosition : FlyToPosition {
        // ...
    }
    action pickUpPackage {
        in item pkg : Parcel = payloadPort.pkgIn {
            // ...
        }
    }
    // + 18 more actions, covering charging, fleet status, and emergencies
}
part def DeliveryDroneSystemImpl :> DeliveryDroneSystem, DD_SYSTEMIDEA::DeliveryDroneSystemIdeaImpl {
    doc
    /* The specification system as a white box. */
    part drones :>> drones : DeliveryDrone;
}
part def DeliveryDrone :> DD_SYSTEMIDEA::DeliveryDrone {
    doc
    /* The delivery drone at the specification level. */
    attribute payloadMass :> ISQ::mass;
}

AI skill and prompt

How to ask an AI assistant to perform this step.

This is the actual AI metadata carried by specificationContextAI in the library, verbatim.

// specificationContextAI, from the SYSMOD library
metadata specificationContextAI : AI about specificationContext {
  name = "sysmod-specification-context";
  create_prompt =
    "1. Specialize systemIdeaContext by redefining the soi
      part (black box view) with a specification-level system
      definition, within specificationContext. Specialize
      specificationContext and systemIdeaContextImpl by
      redefining the soiImpl part (white box view) with the
      matching specification implementation, within
      specificationContextImpl.
    2. Identify and add any actors and interfaces at the
      system boundary that become visible during requirements
      analysis to the specificationContext (black box). Add
      subparts or attributes of the system that use cases and
      requirements refer to, e.g., the drones of a drone
      delivery system, to the soiImpl within
      specificationContextImpl (white box), not to the black
      box soi.
    3. Add system use cases to the specificationContext that
      describe how actors interact with the system of interest
      at the specification level.
    4. Each use case definition declares the specification
      system as its first parameter (subject) and a typed
      actor parameter for each participating actor. Each use
      case usage in the specificationContext subsets its
      subject from the context's soi and binds each actor
      parameter to the context's actor part usage.
    5. Create the SysML v2 textual notation for the
      specificationContext and specificationContextImpl,
      including actor parts and use case usages.
    6. If the user asks to insert the specificationContext
      into the SysML model, find the project and redefine the
      inherited specificationContext and
      specificationContextImpl part usages.";
  create_questions = (
    "Which use cases describe how actors interact with the
      system?",
    "Are there additional actors that become visible at the
      specification level, or subparts and attributes of the
      system that the use cases and requirements refer to?"
  );
  validation_prompt =
    "Validate the specificationContext and
      specificationContextImpl against the SYSMOD
      Specification Context concept and report findings
      grouped as errors, warnings, and suggestions.
    Check:
    1. The specificationContext part usage is present in the
      project and specializes systemIdeaContext.
    2. The soi part is redefined within specificationContext
      with a named specification system definition that
      specializes the system idea soi.
    3. The specificationContextImpl part usage is present,
      specializes specificationContext and
      systemIdeaContextImpl, and redefines the soiImpl part,
      specializing the specification soi.
    4. At least one use case usage is present in the
      specificationContext, referencing the
      specificationSystem as its subject.
    5. Each use case has at least one actor parameter, and
      in the specificationContext every actor parameter is
      bound to an actor part usage subsetting actors.
    6. Each use case has a meaningful name and doc comment
      describing the interaction goal.
    7. All actors from the systemIdeaContext are inherited
      or redefined — no actor should silently disappear.
    8. The specificationContext does not contain solution
      elements or subparts of the system — it should remain a
      black box view of the system; subparts and attributes
      used by use cases and requirements are defined in the
      specificationContextImpl.
    Report each finding with the element name, the violated
      SYSMOD rule, and a concrete suggestion for correction.";
}

The code on this page is an excerpt of SYSMOD 5.1.8. Check the complete library and model with a SysML v2 parser in your browser.