Skip to content

Understanding the output of Automated Reasoning checks.

0

I'm running a very simple test to try and understand the output of Automated Reasoning checks (inside of Bedrock Guardrails). My source document is

If A is true then B and C are both true.
If A is false then either B or C (or both) are false.

which is equivalent to A == B ^ C. Now I run apply_guardrail with content to be checked:

A is false, B is false, and C is true

This should be valid wrt the source document. In the output of apply_guardrail I see

"automatedReasoningPolicy": {
        "findings": [
          {
            "satisfiable": {
              "translation": {
                "premises": [],
                "claims": [
                  {
                    "logic": "(not A)",
                    "naturalLanguage": "A is false"
                  },
                  {
                    "logic": "(not B)",
                    "naturalLanguage": "B is false"
                  },
                  {
                    "logic": "C",
                    "naturalLanguage": "C"
                  }
                ],
                "untranslatedPremises": [],
                "untranslatedClaims": [],
                "confidence": 1.0
              },
              "claimsTrueScenario": {
                "statements": [
                  {
                    "logic": "(= B false)",
                    "naturalLanguage": "B is false"
                  },
                  {
                    "logic": "(= A false)",
                    "naturalLanguage": "A is false"
                  },
                  {
                    "logic": "(= C true)",
                    "naturalLanguage": "C is true"
                  }
                ]
              },
              "claimsFalseScenario": {
                "statements": [
                  {
                    "logic": "(= B false)",
                    "naturalLanguage": "B is false"
                  },
                  {
                    "logic": "(= A false)",
                    "naturalLanguage": "A is false"
                  },
                  {
                    "logic": "(= C false)",
                    "naturalLanguage": "C is false"
                  }
                ]
              }
            }
          }

So, how do I interpret this? The translation appears to have 0 premises and three claims. Shouldn't there be 2 (or 3) premises and three claims? And how can the falseScenario be (and (not A) (not B) (not C)) as C is set to be true in the content being checked.

I'm interpreting the premises as being those logical statements that are extracted from the source document, and the claims as being those that come from the content-to-be-checked. Is this incorrect?

asked a year ago581 views

2 Answers
1

Premises are the contextual facts and conditions established by the statement to be validated, while claims are the logical consequences asserted to follow from those conditions. A statement is VALID when, given the policy rules and the specific premises, the claims are always true.

In this example, the policy states that A == B ∧ C.

Since there are no premises, the claims assert that under this policy, it is always the case that A is false, B is false, and C is true. However, while this scenario is possible, it is not always true.

Therefore, ARc determines that the statement is satisfiable and provides two scenarios that are possible under the policy:

claimsTrueScenario: An example where the claims hold true claimsFalseScenario: An example where the claims are false (notably, C is false in this scenario)

Now consider validating a different statement: "If A is true, then both B and C are true."

This translates to:

Premises: A is true Claims: B is true AND C is true

This statement would be VALID under the policy. Given the policy rule A == B ∧ C and the premise that A is true, there are no other possible values for B and C—both must be true.

AWS

answered 10 months ago

0

When interpreting Automated Reasoning check results in Amazon Bedrock Guardrails, you're seeing a "satisfiable" finding, which means the claims could be either true or false depending on additional assumptions not provided in the input context.

Your interpretation of premises and claims is correct. Premises typically represent the logical statements extracted from your policy (source document), while claims represent factual statements from the content being checked. In your case, the system has identified three claims from your content: "A is false", "B is false", and "C is true".

The absence of premises in your output suggests that the system may not have properly translated your policy rules into formal logic. This could happen if the input isn't relevant to the Automated Reasoning policy, or if the policy doesn't have variables to model relevant input. This is what would be indicated by a "noTranslations" finding.

Regarding the "claimsFalseScenario" showing C as false when your input states C is true - this is actually expected behavior for a "satisfiable" result. The system is showing you two possible scenarios:

  1. "claimsTrueScenario": A scenario where your claims are consistent (A is false, B is false, C is true)
  2. "claimsFalseScenario": A contrasting scenario where the claims could be false (A is false, B is false, C is false)

The "satisfiable" result indicates that your claims are consistent with at least one possible interpretation of the policy rules, but not necessarily guaranteed by them. This means your statements don't contradict the policy, but they're not definitively proven by it either.

For a result to be "valid" (which is what you expected), the system would need to determine that your claims are logically valid and definitively true based on the provided premises and policy rules. The fact that you're getting "satisfiable" instead suggests that your policy rules may not have been fully translated or that the logical relationship between A, B, and C wasn't captured exactly as you intended.
Sources
Validate your Automated Reasoning policy test results - Amazon Bedrock
CreateAutomatedReasoningPolicyTestCase - Amazon Bedrock
GuardrailAutomatedReasoningFinding - Amazon Bedrock

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.