verocase - process assurance case LTAC file and update Markdown/HTML
Project description
verocase README
verocase is an open source software (OSS) tool
that makes it easy and efficient
to create and maintain an assurance case,
e.g., for justifying why a system is secure against attack.
The name verocase is derived from the Latin vero
(meaning "in truth" or "truly") and case,
(representing the tool's purpose to manage an assurance case).
The verocase program reads a file written
in our extended version of the simple
Lightweight Text Assurance Case (LTAC) format
and updates all related markdown or HTML documentation.
The result is an easily read and easily modified assurance case.
The program can automatically generate graphics
for both Structured Assurance Case Metamodel (SACM) and
Goal Structuring Notation (GSN), and it generates many hyperlinks
to make it easy to navigate an assurance case.
Because the inputs are simple text files,
they're easily read and easily modified both by humans and by AI.
An assurance case is "a body of evidence organized into an argument demonstrating that some claim about a system holds (i.e., is assured). An assurance case is needed when it is important to show that a system exhibits some complex property, such as safety, security, privacy, or reliability." (NIST Special Publication 800-53A Revision 5).
The tutorial explains how to use the tool. The reference manual explains tool use in detail.
Background
Large assurance cases are often maintained using specialized tools that manage data structures containing the assurance case information. Examples include Adalard ASCE and Argevide PREMIS. These specialized tools allow people to edit diagrams that flexibly present the information graphically. For large assurance cases where maximum flexibility is critical, these tools can be quite helpful.
However, these sophisticated tools seem excessive for smaller and medium-sized assurance cases. They require installation, learning to use them, and committing to storing all data in a database that can only be managed by a complex tool. I was looking for an alternative.
An obvious alternative to these sophisticated tools is to write an assurance case entirely as a traditional document. That's possible, and traditional document editing tools make it easy to edit a document. I've done this for a while. However, this approach doesn't provide any support for the structure of an assurance case. Maintaining an assurance case this way requires a lot of extra work to keep parts consistent. It's too easy to make mistakes, leading to inconsistencies, and the results often go slowly out of date. Such documents often don't provide many helpful graphics to show the overview, since those graphics are a pain to create and maintain.
The graphics matter, too. There are several graphical notations for easily expressing and maintaining assurance cases, including the Object Management Group's Structured Assurance Case Metamodel (SACM), Goal Structuring Notation (GSN), and Claims Arguments Evidence (CAE). Hand-maintaining the graphics can be burdensome, involving carefully placing all the symbols, and moving and updating them as information changes. An AI can help, but it's error-prone for humans to maintain them, and AI can make the same mistakes.
Our approach
This tool, verocase, takes a completely different approach:
- As input, it reads a simple text file (default file
case.ltacin./ordocs/). This file is written in our extended version of the Lightweight Text Assurance Case (LTAC) format. This simple format is easily understood and used, and makes it easy to express simple hierarchy of structure and high-level statements. The tool will identify and report various kinds of invalid constructs (e.g., citations of undefined elements, invalid types, logical circularity, unreachable elements, and so on). - As output, it updates a set of 1+ documents (in markdown or HTML),
including fixing headers and inserting/updating graphics
(default file
case.[md,html]in./ordocs/). Note that it automatically generates graphical notation in SACM or GSN notation - you don't need to fiddle with the graphics at all. It also automatically generates many hypertext links, making it easy to navigate the assurance case. The expectation is that humans and AIs would edit these documents to provide all the details (aka SACM "content").
Just run verocase and the document files will be updated based on the
input LTAC file.
Currently the tool can generate both SACM and GSN notation in mermaid format. It can also generate a markdown indented bullet list that looks like LTAC format but adds hyperlinks, making it easy to go from a high-level summary to specific details and back. It might someday support CAE notation as well. The tool can also insert various cross-references and update heading names as appropriate.
The result is much easier to integrate into version control systems like git, since all information is kept in simple text files. Both AI and humans find this information really easy to follow. AI systems love markdown and HTML, and they also know how to handle indented structures like LTAC. It's remarkably easy to edit, too - just use tools you already know how to use.
Handling evolution
Assurance cases evolve. If you purely edit an assurance case in a document various errors can creep in, the diagrams and document headings can easily go out of sync, and there's no hint that there's a problem. This tool is designed to easily handle assurance case evolution better than a simple document can.
This tool does a number of validation checks;
see --help for the full list.
If it validates, the tool automatically updates the documents to match
the LTAC input, e.g., it updates the graphics and the headings.
Database-based tools can make it easy to make specific changes "everywhere". However, database-based tools are complex and requiring using that specialized tool for almost all assurance case tasks. Our goal is to get many of those benefits using a different and simpler approach.
We achieve similar capabilities using a few simple options.
Normally the tool will only read the LTAC file, not modify it.
However, a few options will update the LTAC file.
The --update option updates the LTAC file so that all elements that cite an
element will have their statements updated to match the definition.
The option --rename OLD NEW let you rename IDs in
the LTAC and document files, while
--restate LABEL STATEMENT lets you change the statment of a given label
in the LTAC and document files.
This gives us many of the advantages of database-based approaches
(you can do one operation to change
certain values "everywhere"), while providing better transparency,
greater simplicity, and easier integration with AI and version control
of a text-based approach.
Pros and Cons
The big pro of this approach is that it takes very little time to get started, get graphical representations, and generate information. It's also fairly easy to edit material.
The key outline of the assurance case is stored in the LTAC file. The details (e.g., the "contents" in SACM terminology) is always kept in one or more markdown or HTML files, which are updated by this program. Everything is done in easily-edited files, not in a database that requires a special tool to maintain. Since we do have some basic information on the element types in the assurance case, we can report (and complain) about problems in it. We can also complain about problems such as an element with no supporting information. In short, this approach makes it easy to notice and fix problems in a way that a pure document approach does not.
The big con of this approach is that to make it work, we are intentionally imposing various limits:
- We require that the assurance case be organized as a set of packages, where each package is a hierarchy. This restriction is required by our extended LTAC input form. This restriction is allowed but not strictly required by widely-used assurance case notations like GSN, SACM, and CAE. This is key to our approach; this restriction greatly simplifies expression the assurance case, as a package can now be represented as clearly indented information. Each package must have a single top claim or justification, as we name the package after that top element. This restriction is not a problem in practice, because a claim or justification may be referenced in any package, and "Links" allow references to an element already in use in a package.
- We generate graphics automatically, and we currently
use
mermaidbecause it's directly support by GitHub's built-in markdown processor. Mermaid is limited in what it can do, but this isn't a serious problem if your packages don't have too many elements. You can have as many packages as you want, so we suggest limiting the size of each package. Smaller packages are easier for humans to follow, too. - This is not a database, it's a way to make it easier to manage documents. If you want a database, this tool isn't it. So if you are managing a large assurance case, this approach is probably less appealing.
Other information
The specification of extended LTAC that we implement is in file docs/ltac-extended.txt.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file verocase-0.1.0.tar.gz.
File metadata
- Download URL: verocase-0.1.0.tar.gz
- Upload date:
- Size: 199.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63c3fc37286716fb16aa32b2afea43e2681fd63665deb7a4faa8eb06cc0723de
|
|
| MD5 |
36c8117bd8e89e2e79194d2f8505955e
|
|
| BLAKE2b-256 |
b5a0fa21ac8816690e60acf997fe4936cfc7d375d4fc8e82e4d7572c03f5d054
|
Provenance
The following attestation bundles were made for verocase-0.1.0.tar.gz:
Publisher:
publish.yml on david-a-wheeler/verocase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
verocase-0.1.0.tar.gz -
Subject digest:
63c3fc37286716fb16aa32b2afea43e2681fd63665deb7a4faa8eb06cc0723de - Sigstore transparency entry: 1088174308
- Sigstore integration time:
-
Permalink:
david-a-wheeler/verocase@a15b382b1588760d2de481a858dc2480c8f93cbe -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/david-a-wheeler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a15b382b1588760d2de481a858dc2480c8f93cbe -
Trigger Event:
release
-
Statement type:
File details
Details for the file verocase-0.1.0-py3-none-any.whl.
File metadata
- Download URL: verocase-0.1.0-py3-none-any.whl
- Upload date:
- Size: 42.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adae6666e4217f58768c89a48996425602235be37eee70e7d1f830a0a0715ccd
|
|
| MD5 |
e44365966490b9211c85e2fb6675ae34
|
|
| BLAKE2b-256 |
774766acaaa41ba096205af4386010fccfbb025edd32049a6303ab031d54a985
|
Provenance
The following attestation bundles were made for verocase-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on david-a-wheeler/verocase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
verocase-0.1.0-py3-none-any.whl -
Subject digest:
adae6666e4217f58768c89a48996425602235be37eee70e7d1f830a0a0715ccd - Sigstore transparency entry: 1088174345
- Sigstore integration time:
-
Permalink:
david-a-wheeler/verocase@a15b382b1588760d2de481a858dc2480c8f93cbe -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/david-a-wheeler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a15b382b1588760d2de481a858dc2480c8f93cbe -
Trigger Event:
release
-
Statement type: