Practically Formal Development and Assurance of Complex - - PowerPoint PPT Presentation

practically formal development and assurance of complex
SMART_READER_LITE
LIVE PREVIEW

Practically Formal Development and Assurance of Complex - - PowerPoint PPT Presentation

Practically Formal Development and Assurance of Complex Software-Intensive Safety-Critical Systems Alan Wassyng work with Zinovy Diskin, Nicholas Annable, and Mark Lawford CyPhyAssure, 20 March 2019 GSN-like Assurance Cases Pros


slide-1
SLIDE 1

Practically Formal Development and Assurance of Complex Software-Intensive Safety-Critical Systems

Alan Wassyng

work with Zinovy Diskin, Nicholas Annable, and Mark Lawford

CyPhyAssure, 20 March 2019

slide-2
SLIDE 2

GSN-like Assurance Cases

Pros

§ Appealingly intuitive § Does seem to improve safety (for example) by making people examine the “case” more critically

1

G1

Top Claim

J1

Justification for strategy

A1

Assumption

C2

More context

C1

Context

G3

Sub-claim of G1

G2

Sub-claim of G1

G4

Sub-claim of G1

G5

Sub-claim of G1

S1

Strategy: why G2-G5

A2

Assumptions in strategy

G6

Sub-claim of G2

G7

Sub-claim of G2

S2

Strategy: why G6-G7

Sn1

Evidence for G3

G8

Sub-claim of G4

G9

Sub-claim of G4

S3

Strategy: why G8-G9

Sn2

Evidence for G5

Sn6

Evidence for G9

Sn5

Evidence for G8

Sn4

Evidence for G7

Sn3

Evidence for G6

GSN-like is meant to include other similar notations such as Claims, Arguments and Evidence (CAE) and tabular approaches GSN was introduced by Tim Kelly in 1998 He and others have turned it into the most popular notation for assurance cases

[Kelly1998]

slide-3
SLIDE 3

GSN-like Assurance Cases

Cons § Cases tend to have an ad hoc structure dictated by experience & preference

  • Patterns help but they are not the “solution”

§ Cross-cutting concerns abound § There is an element of confirmation bias § Provides a false sense of confidence (no matter how we “measure” confidence) since we think our reasoning is rigorous (most never claim formal) – but it is not § Safety impact analysis is difficult to impossible

  • In general, effective traceability is tough

2 [Wassyng2011]

slide-4
SLIDE 4

GSN Intent

The actual intent behind GSN was fundamentally flawed in some ways

3

GSN COMMUNITY STANDARD VERSION 1 - 2011

  • 1. Strategy is optional!
  • 2. The arrows indicate

decomposition, not an argument based on premises

  • 3. The promised explicit

argument is just not present – if justification was supposed to represent reasoning as some people claim, then why does it support strategy instead of the other way around?

  • 4. GSN/CAE experts say

that the only place an explicit argument is necessary is to support evidence, but there is no strategy node even – so, what argument? Better in SACM 2.0

[GSN2011]

slide-5
SLIDE 5

A New Approach

4

§ Before we explore why we came up with a different approach the following slide shows components of the new assurance – as an integral part of the development § This gives us some idea of where we are headed § The basis is metamodels and model transformations, refinements and instances

slide-6
SLIDE 6

5

Process Product Assurance

workflow+

slide-7
SLIDE 7

Assurance Case Templates (ACTs)

6

P Legend:

  • Claim or sub-claim
  • Evidence
  • A is claim

B is premise

A B

acceptance criteria on evidence required specified in the template 0-1 0-1 1-2 1

Describes an assurance case (AC) for a product line or domain. Needs to be instantiated for a specific product. Developed BEFORE building products. Reduces confirmation-bias. Facilitates incremental assurance. Could be used to direct development – as a process guide

  • r even as a

standard.

[Wassyng2016]

slide-8
SLIDE 8

Assurance Case Templates (ACTs)

7

P Legend:

  • Claim or sub-claim
  • Evidence
  • A is claim

B is premise

A B

acceptance criteria on evidence required specified in the template 0-1 0-1 1-2 1

Describes an assurance case (AC) for a product line or domain. Needs to be instantiated for a specific product. Developed BEFORE building products. Reduces confirmation-bias. Facilitates incremental assurance. Could be used to direct development – as a process guide

  • r even as a

standard.

We have championed “product-focused certification” and we really like ACTs – so why develop workflow+ ?

[Wassyng2016]

slide-9
SLIDE 9

Extract from Assurance Case Safety Template for ADAS

8 <ADAS> considered as an ISO 26262 item, delivers the behaviour required, and does not adversely affect the safety of the vehicle, over its expected lifetime, in its intended environment.

Strategy: G can be decomposed into

  • 1. Functional safety concept verified. (GS) 2. <ADAS> complies with Functional safety requirements and is released for production (26262). (GR)
  • 3. Production and maintenance processes. (GPM) 4. Configuration management. (GC)
  • 5. Change management. (GCM) 6. <ADAS> not expected to violate documented assumptions (GA)

Reasoning: Premise: GS, GR, GPM, GC, GCM and GA are true. Claim: G is true i) These 6 premises cover all the major premises in 26262 (See SRi) ii) GR as in 26262 has been supplemented by our knowledge of SE. Specifically, general functional requirements must not adversely interact with the safety requirements. (See SRii) iii) Important component is operational assumptions are not so onerous that drivers are likely not to comply with them, and those related to the environment will also be valid. (See SRiii)

The safety concept of <ADAS> is

  • Verified. This

includes that all necessary functional safety requirements are derived from a vehicle level hazard and risk analysis and validated Implementation of <ADAS> complies with requirements within tolerance. Requirements are unambiguous, complete on input domain and internally consistent. They include all necessary <ADAS> Functional Safety Requirements, derived from HARA. Safety of the vehicle is maintained throughout its

  • perating life,

through compliance with Production Requirements, Service Maintenance Requirements, & Decommissioning Requirements in ISO 26262. Configuration Management complies with ISO 26262. Change Management complies with ISO 26262. <ADAS>

  • perational

assumptions are documented, and

  • peration of the

vehicle in which <ADAS> is installed is not expected to violate these assumptions.

G SR GS GR GPM GC GCM GA

[Chowdhury2017]

slide-10
SLIDE 10

Extract from Assurance Case Safety & Security Template

9

[Chowdhury2018]

slide-11
SLIDE 11

We Like the Benefits of ACTs

§ They are templates for a product line developed ahead of work on individual products § They facilitate incremental assurance in the same way that information hiding makes software designs robust with respect to anticipated changes § They provide some protection against confirmation bias § They standardize an approach so that regulators (in particular) can develop expertise in evaluating them

10

slide-12
SLIDE 12

But Could Not Overcome the Flaws in GSN

§ GSN is inherently ad hoc – there is no theoretical foundation for its assurance steps § The “logic” for the explicit argument is either non- existent or hopelessly inadequate to deal with a property like safety

  • We have not managed to define safety semantics for the

arrows in GSN – No, SACM does not do this

  • Safety or security impact analysis in GSN is fundamentally

unsound

§ Cross-cutting concerns are unavoidable § GSN diagrams typically are a mixture of template and instance – see next slide

11 [SACM2.0]

slide-13
SLIDE 13

Template or Instance?

12

T T T T T T T T T I I I I I I I I I I I I I

This is not inherent in GSN – but GSN is so ad hoc in its approach that this is what we see most of the time

slide-14
SLIDE 14

Why workflow+?

§ We need process!

  • Even if we want product-focused certification we have

always said it has to be based, at the very least, on notions

  • f an idealized process

§ We can cope with process, product, people, in much more structured ways § workflow+ is a formal notation and the inherent assurance steps are not ad hoc § workflow+ provides a rigorous way of producing and maintaining traceability links providing a method to turn incremental analysis into syntactic checks

13

slide-15
SLIDE 15

12

So Sour urce Da Data Tar Target et Da Data :exeT conformsTo conformsTo tr traceability ility ma mapping | = | = = So Sour urce Me Metamodel Tar Target et Me Metamode l tr traceability ility me metamo model Pr Process Rules Process Definition MT def is Ok SM def is Ok TM def is Ok

  • Trc. def is Ok
  • Struct. is Ok
  • Constr. Ok

[H] is Ok [C] is Ok sound compl …. …. … … … SD is Ok Exe is Ok [multipl] Ok … verify validate Structure conforms

  • Constr. are

satisfied sound complete F1 is Ok F2 is Ok

  • ther functions?

verify validate uB1 =? gw1(F1) uB2 =? gw1(F2) uB3 =? gw2(F2) sound complete gw5(F1)? … gw7(F2)? ....

[ Process is done Ok ]

EJ pattern

Def is Ok S

  • u

r c e d a t a i s O k Execu- tion is Ok

de depe pends ndsOn d e p e n d s O n de depe pends ndsOn

Where did it come from?

§ Last year we published an early version of the framework in MoDELS

14 These “assurance steps” are suggested by the mathematical structure - no longer ad hoc. [Diskin2018]

slide-16
SLIDE 16

Demonstrate by Way of Example

15

slide-17
SLIDE 17

16

Example of an Assurance Case Segment

GSN COMMUNITY STANDARD VERSION 1 - 2011 Note: We do realize that this was produced to illustrate GSN constructs not as an example of a safety case, but it is useful for our purpose since it is (sort of) plausible and is simple enough but with some (implicit) detail

slide-18
SLIDE 18

17

workflow+ representation based on the GSN example

Legend

slide-19
SLIDE 19

18

So, where did the assurance steps come from? There is a constraint that says every hazard must be “dealt with” by a safety requirement We then have 2 checks on that:

  • 1. semantic – needs

people

  • 2. syntactic – can be

automated

slide-20
SLIDE 20

19

1 2 3 4 5 6 7 8 9 10e 11e 12e 13e 14e 16e 15e 18e 17e 20e 19e 21e 22e 10 11 12 19

workflow+ representation based on the GSN example

Number the assurance assets to show the mapping to GSN We have not added all the reviews in the process nor shown how we deal with people in this example The framework for each of those can be defined using aspects

slide-21
SLIDE 21

20

No check for bad emergent behaviour This was an assumption in the GSN example but would not be in practice

Partial GSN model derived from workflow+ model. Showing only claims and evidence so as not to clutter the diagram. Numbers in node title maps to workflow+ in previous slide. REQUIRED evidence can be specified in more detail with the aid of the data items in workflow+

slide-22
SLIDE 22

21

Expansion of the module on the previous slide

slide-23
SLIDE 23

22

No check for bad emergent behaviour This was an assumption in the GSN example but would not be in practice

Partial GSN model derived from workflow+ model. Showing only claims and evidence so as not to clutter the diagram. Numbers in node title maps to workflow+ in previous slide. REQUIRED evidence can be specified in more detail with the aid of the data items in workflow+

AND – this is an Assurance Case Template! It is at the level of a metamodel, not an instance. The evidence nodes are very similar to what we wanted in the Assurance Case Template.

slide-24
SLIDE 24

Benefit 1

§ Traceability

  • Have a look at the GSN view
  • Now consider traceability – remember our discussion on

traceability between artifacts (development, assurance etc) and the problem of granularity of evidence

  • If we look at the workflow+ example, the traceability links are
  • bvious and they link between artifacts in all components of

the model(s)

  • They can extend into the environment as well!
  • This will become important when we extend this to

incremental assurance

23

slide-25
SLIDE 25

Benefit 2

§ workflow+ is a metamodel – it is automatically a template for all products produced using the same processes, etc

  • Yes, it is a lot of work, but it is done once used many times.

Also, a lot of the work has to be done anyway

  • It is developed before you build the products and thus

reduces confirmation-bias

  • The evidence at this level (like in ACTs) describes what

evidence must be produced for a product, and should be linked to the appropriate data items in the model. This will provide definitive acceptance criteria

  • This approach satisfies both process and product assurance

– and the product assurance is much more specific than competing methods (see the previous bullet)

24

slide-26
SLIDE 26

Benefit 3

§ With appropriate tooling, workflow+ facilitates many automatic checks – aids in development as well as assurance § The technology is pretty standard and commercial tool vendors are starting to produce tools based on very similar notations (not for assurance cases etc – I was thinking of tools like Medini Analyze when I wrote that, it aids safety analysis)

25

slide-27
SLIDE 27

Benefit 4

§ Compared with something like GSN, workflow+ is much closer to the way in which many companies have built safety-critical systems in the past

26

slide-28
SLIDE 28

Benefit 5

§ workflow+ facilitates separating process, product and people –intuitively what many people would prefer. Our experience is that this is fundamentally difficult in GSN

  • We often need a combination of these as premises for a

claim

  • And need the same premises elsewhere in the GSN graph
  • That means we either have to resort to duplication, or we

have links stretching across different slices of the graph

27

slide-29
SLIDE 29

Benefit 6

§ Current standards such as ISO 26262 can be modeled using workflow+ and could be used as normative models for conformance checks of internal company processes

  • We have experience of constructing UML models of ISO

26262 – before we defined workflow+

  • workflow+ models would be very similar

28

slide-30
SLIDE 30

What is missing?

§ The explicit demonstration that the system is safe!!!! § We are working on that § There are various options

  • Best I think is to do what we have always done –

demonstrate that

  • The requirements will result in a safe system
  • The system as implemented complies with its requirements

29

slide-31
SLIDE 31

What is missing?

§ The explicit demonstration that the system is safe!!!! § We are working on that § There are various options

  • Best I think is to do what we have always done –

demonstrate that

  • The requirements will result in a safe system
  • The system as implemented complies with its requirements

30

Actually, also show that (all) obstacles to achieving these 2 results have been

  • vercome
slide-32
SLIDE 32

What is missing?

§ The explicit demonstration that the system is safe!!!! § We are working on that § There are various options

  • Best I think is to do what we have always done –

demonstrate that

  • The requirements will result in a safe system
  • The system as implemented complies with its requirements
  • These are already process steps so it should not be difficult to

augment them appropriately in workflow+

31

Actually, also show that (all) obstacles to achieving these 2 results have been

  • vercome
slide-33
SLIDE 33

Thank You!

References

32

[Chowdhury2017]

  • T. Chowdhury, C.W. Lin, B.G. Kim, M. Lawford, S. Shiraishi, A. Wassyng, "Principles for Systematic

Development of an Assurance Case Template from ISO 26262", ISSRE Industry Day, 2017. [Chowdhury2018]

  • T. Chowdhury, E. Lesiuta, K. Rikley, C-W. Lin, E. Kang, B. Kim, S. Shiraishi, M. Lawford, A. Wassyng.

"Safe and Secure Automotive Over-the-Air Updates." SAFECOMP 2018, Springer, 172-187. [Diskin2018] Zinovy Diskin, Tom Maibaum, Alan Wassyng, Stephen Wynn-Williams, Mark Lawford, “Assurance via model transformations and their hierarchical refinement,” MoDELS 2018: 426-436. [GSN2011] GSN Community, GSN Community Standard, Std., Rev. Ver. 1, 2011. [Online]. Available: http://www.goalstructuringnotation.info/documents/GSN Standard.pdf [Kelly1998]

  • T. Kelly, “Arguing safety – a systematic approach to managing safety cases,” Ph.D. dissertation,

University of York, September 1998. [SACM2.0] Obtainable from: https://www.omg.org/spec/SACM/About-SACM/ [Wassyng2011]

  • A. Wassyng, T. Maibaum, M. Lawford, and H. Bherer, “Software certification: Is there a case against

safety cases?” in Foundations of Computer Software. Modeling, Development, and Verification of Adaptive Systems, ser. Lecture Notes in Computer Science, R. Calinescu and E. Jackson, Eds. Springer Berlin Heidelberg, 2011, vol. 6662, pp. 206–227. [Wassyng2016]

  • A. Wassyng, P. Joannou, M. Lawford, T. Maibaum, N.K. Singh, “New Standards for Trustworthy Cyber-

Physical Systems.” A. Romanovsky, F. Ishikawa, Trustworthy Cyber-Physical Systems Engineering, CRC Press, 2016, 341-371.