diff --git a/src/metaschema/examples/rules-component.xml b/src/metaschema/examples/rules-component.xml index 0184e6b15f..45b14ea7e3 100644 --- a/src/metaschema/examples/rules-component.xml +++ b/src/metaschema/examples/rules-component.xml @@ -4,53 +4,65 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 ../../../xml/schema/oscal_complete_schema.xsd" uuid="3559d200-4849-41ac-a420-28b2ffa22c52"> - - - - + Example Component Definition with Rules and Tests Linked to Component + 2022-08-22T00:00:00.000000000-04:00 + 0.0.1-alpha + 1.2.0 Important Rule 1 - This is a description of Important Rule 1. + +

is a description of Important Rule 1.

+
Test A for Rule 1 - This is Test A, it can be executed to demonstrate a system meets requirements for Rule 1. + +

This is Test A, it can be executed to demonstrate a system meets requirements for Rule 1.

+
Test B for Rule 1 - This is Test B, it can be executed to demonstrate a system meets requirements for Rule 1. + +

This is Test B, it can be executed to demonstrate a system meets requirements for Rule 1.

+
Test C for Rule 1 - This is Test C, it can be optionally executed to demonstrate a system meets requirements for Rule 1. + +

This is Test C, it can be optionally executed to demonstrate a system meets requirements for Rule 1.

+
Test D for Rule 1 - This is Test C, it can be optionally executed to demonstrate a system meets requirements for Rule 1. + +

This is Test D, it can be optionally executed to demonstrate a system meets requirements for Rule 1.

+
- - + + + + - + - + - - + + - + diff --git a/src/metaschema/oscal_rules-common_metaschema.xml b/src/metaschema/oscal_rules-common_metaschema.xml index 87f5299748..a948111db6 100644 --- a/src/metaschema/oscal_rules-common_metaschema.xml +++ b/src/metaschema/oscal_rules-common_metaschema.xml @@ -16,6 +16,31 @@ Rule Definition Universally Unique Identifier TODO + + + Rule Title + A name given to the rule, which may be used by a tool for display and navigation. + + + Rule Description + A summary of the rule, including the requirement(s) to be met when evaluating the rule against a target that the rule applies to. + + + + + + + + + + + + A string that identifies the revision of the rule. + + + A pointer to the resource that this rule is derived from. + + Test Definition @@ -24,58 +49,144 @@ Test Definition Universally Unique Identifier TODO + + + Test Title + A name given to the test, which may be used by a tool for display and navigation. + + + Test Description + A summary of the test, including implementation details of how its use examines an aspect or trait of a system. + + + + + + + + + + + + + A string that identifies the revision of the test. + + + A pointer to the resource that this test is derived from. + + Rule Testing Scenario A rule testing scenario - scenario Testing Scenario Universally Unique Identifier TODO + + Testing Scenario Rule Universally Unique Identifier Reference + TODO + - - condition + + + + + + + + condition + + + + + + Test Reference + TODO + + + Test Universally Unique Identifier Reference + A test UUID reference + + Rule Condition A rule implementation condition - + + Rule Condition Negation Flag + TODO + +

+

Negate Truth Table

+

true -> false, false -> true, error -> error, not-applicable -> not-applicable

+

+
+
+ Rule Condition Operator TODO and or - not + +

+

Operator Truth Table

+

+

+

What is eager evaluation and why does it matter?

+

How do prerequisites work in the processing of condition operators and precedence.

+
+ + + + + + - pre-condition + prerequisite + condition - - Test Reference - TODO - - Test Reference Universally Unique Identifier - TODO - - - Test Universally Unique Identifier Reference - A test UUID reference - - + + +
+ + Testing Scenario Universally Unique Identifier Reference + A testing scenario UUID reference + + + Testing Scenario Universally Unique Identifier + A testing scenari UUID reference + + + Testing Scenario Reference + A reference to a testing scenario. + + Testing Scenario Universally Unique Identifier Reference + TODO + + + + Rule Implementation TODO @@ -83,23 +194,19 @@ Rule Implementation Universally Unique Identifier TODO + + Rule Implementation Description + A summary of the rule implementation. + - - Testing Scenario Reference - A reference to a testing scenario. - - Rule Reference Universally Unique Identifier - TODO - - - Rule Universally Unique Identifier Reference - A rule UUID reference - - - Rule Universally Unique Identifier Reference - A rule UUID reference - - + + + + + + + + - \ No newline at end of file +