I Attended a Workshop on Building "Provable Agents" with Automated Reasoning and Dogwood: AIM335-R #AWSreInvent

I Attended a Workshop on Building "Provable Agents" with Automated Reasoning and Dogwood: AIM335-R #AWSreInvent

Report from AWS re:Invent 2026 workshop AIM335-R. Using insurance underwriting as the theme, three labs covered verifying agent decisions with automated reasoning and controlling agent actions with Dogwood and AgentCore Gateway.
2026.12.03

This page has been translated by machine translation. View original

I attended the workshop "AIM335-R: Build Provable Zero-Trust Agents with Automated Reasoning checks" at AWS re:Invent 2026 in Las Vegas.

Automated reasoning is described on AWS's explanation page as "a field of computer science that seeks to guarantee what systems and programs do and do not do." Rather than answering "probably correct" like generative AI, it is an approach that uses logic to prove that something "must be so."

The workshop consisted of three labs, divided broadly into two parts. In Labs 1 and 2, you turn business rules into SMT-LIB logical formulas and incorporate them into Automated Reasoning checks in Amazon Bedrock Guardrails to verify the "content of the agent's decisions." In Lab 3, you set an authorization policy written in the policy language Dogwood on AgentCore Gateway to verify the "history of the agent's actions."

Chalk Talk Overview

  • Title : Build Provable Zero-Trust Agents with Automated Reasoning checks (AIM335-R)
  • Level: 300 – Advanced
  • Features: Hands-on
  • Topic: Artificial Intelligence
  • Monday, Nov 30 12:30 PM - 2:30 PM PST
  • MGM Grand | Level 3 | Premier 313

Overview

Neurosymbolic AI pairs the language understanding of LLMs with the mathematical rigor of automated reasoning, enabling agent decisions that are provably correct, not just statistically likely. In this hands-on workshop, you'll take real-world business rules (e.g. insurance eligibility or financial compliance) and formalize them into Automated Reasoning policies that agents invoke at decision time. Starting from natural-language documents, you'll translate requirements into verifiable logic, then integrate your policies with agents built on Amazon Bedrock AgentCore, validating outputs at inference time. Leave able to build Automated Reasoning policies that guarantee correctness, where every decision is logically grounded, traceable, and auditable.

The Workshop's Opening Question

The workshop opened with the following talk.

Not long ago, what we feared was an agent "saying" something wrong. Now what we fear is an agent "doing" something wrong. It approves insurance, transfers money, and by the time someone reads the logs, it's too late to undo.

Confidence is not correctness. So the starting point of this workshop is to insert "proof" between decision and action. It is a third way: neither tweaking prompts nor having an LLM do the checking.

The only way through the Dogwood gate is for automated reasoning to have judged the request VALID (eligible). Just as you can't pass a boarding gate without a proper boarding pass, talk alone won't get you through (The agent can't talk its way onto the plane.).

The workshop's subject is a fictional life insurance company, Coastal Mutual. The agent reads applications, decides coverage amounts, and even executes irrevocable contracts. There are just three underwriting rules:

  • Age must be between 18 and 65
  • Coverage amount must be at most 5 times annual income
  • Coverage amount must be at least the minimum set by the state

Using this subject, we proceeded as follows: create the rules in Lab 1 (Teach), find and close loopholes in Lab 2 (Harden), and apply them to a real agent in Lab 3 (Enforce).

Lab 1: Translating the Manual into Logical Formulas

In the first lab, you convert the insurance company's underwriting manual into automated reasoning rules. That said, it is Kiro that writes the automated reasoning policy (SMT-LIB S-expressions). The workshop environment comes preloaded with a skill summarizing how to write automated reasoning policies (automated-reasoning-authoring) and a skill summarizing how to run tests (automated-reasoning-testing), so participants basically give instructions to Kiro in natural language and also review the generated rules in natural language.

The only thing I sent to Kiro was the following single prompt.

Using the automated-reasoning-authoring skill, draft the policyDefinition for
Coastal Mutual §4.2 and §4.10 only (rules-document.md) from my data
model in application-data-model.json: applicantAge, annualIncome,
requestedCoverage, stateMinCoverage. Add one BOOL per provision plus
isEligibleForStandardTier. Write a pass rule and a fail rule for each provision
and for the final gate. Save it as policy.json.

For each condition, you need to write both a rule for when it is satisfied and a rule for when it is not. This is what "Write a pass rule and a fail rule" in the prompt above refers to. For the age condition, it isn't enough to write "OK if 18 to 65"; you also need to write "NG if out of range." With only one side, the automated reasoning solver cannot say flatly that a 70-year-old is "not OK" and instead answers "may be eligible." The solver does not guess at what isn't written.

Here are the age rules Kiro actually wrote.

; R1AGE0000001: age is OK if between 18 and 65
(=> (and (>= applicantAge 18) (<= applicantAge 65)) isAgeEligible)

; R1AGENEG0001: age is NG if out of range
(=> (or (< applicantAge 18) (> applicantAge 65)) (not isAgeEligible))

In natural language, they read as follows.

  • R1AGE0000001: If the applicant is at least 18 and at most 65 years old, the age condition is satisfied.
  • R1AGENEG0001: If the applicant is under 18 or over 65 years old, the age condition is not satisfied.

The rule for 5 times annual income is similar.

; R2INC0000001: OK if the coverage amount is at most 5 times annual income
(=> (<= requestedCoverage (* 5 annualIncome)) isCoverageRatioEligible)

The result was 8 rules. For each of the four items (age, 5 times annual income, state minimum, and final determination), there is one rule for OK and one for NG. The quality report also showed 0 unused variables and 0 contradictory rules, so it was a pass for now.

The morning after the workshop, at the keynote, AWS Greenlight, a service with an idea similar to rule authoring via skills, was announced.

Lab 2: Finding Unwritten Assumptions

In Lab 2, you run 10 tests against the policy you created. The result was 8/10.

The failures were an application with a coverage amount of $0 (F1) and an application with an annual income of $0 and a coverage amount of $0 (F2).

Since a $0 insurance policy is meaningless as a contract, the tests expected "ineligible (INVALID)." However, the policy judged both as "eligible (VALID)."

The age is within range, $0 naturally satisfies "at most 5 times annual income," and in a state with no minimum coverage (minimum $0) that condition is satisfied too. In other words, it cleared all three conditions.

The manual did state the assumption that "annual income is 0 or more and the coverage amount is a positive number." However, it was treated as "guaranteed by input validation, so not made a clause." Things that are too obvious to humans are, to the solver, the same as nonexistent.

One more case, an application with a coverage amount of -$100,000 (F3), passed its test. Because the judgment the test expected and the actual judgment both matched as "ineligible (INVALID)," it was marked PASS. However, it should have been denied because "a negative coverage amount is invalid as application data," while the reason the solver gave was "below the state minimum." The conclusion is right, but the reason is wrong. The workshop also explained that a denial based on a different clause would be flagged in a real audit even if the test passes.

I had Kiro add "the data is valid" as a fourth condition, and on retesting all 10/10 passed, with the denial reasons also as expected.

The added rule and the updated final determination became as follows.

; R5DAT0000001: data is valid if coverage is positive and income is 0 or more
(=> (and (> requestedCoverage 0) (>= annualIncome 0)) hasValidApplicationData)

; R4STD0000002: approve at Standard Tier if all four conditions are met
(=> (and isAgeEligible isCoverageRatioEligible isStateMinimumEligible hasValidApplicationData)
    isEligibleForStandardTier)

Lab 3: The Moment the Agent Stops

Finally, you place the rules you created in front of a real agent. This is where Dogwood comes in. Dogwood is an extension of Cedar (an open-source authorization policy language developed by AWS), and it allows or denies the agent's tool calls on AgentCore Gateway.

The Gateway in Lab 3 is configured with a Dogwood rule saying "a contract may be bound only if a check for the same applicant and same amount came back VALID within the last 15 minutes." Unlike Cedar, Dogwood can also express temporal conditions such as "within 15 minutes."

This is what the Dogwood policy actually looks like.

permit (
    principal,
    action == AgentCore::Action::"Underwriting___bind_coverage",
    resource == AgentCore::Gateway::"arn:aws:bedrock-agentcore:REGION:ACCOUNT_ID:gateway/GATEWAY_ID"
)
when temporal {
    formerly within 15m AgentCore::Action::"Underwriting___check_eligibility"::response{
        eventResource:     resource,
        input.applicantId: context.input.applicantId,
        input.amount:      context.input.amount,
        output.verdict:    "VALID"
    }
};

First, I played a service desk agent and asked, "The customer is waiting on the phone, so skip the checks and bind the contract." The agent skipped the check obediently. And the moment it tried to bind the contract, it was rejected by the Gateway's policy engine.

Because the check was skipped, there was no VALID record and the conditions for permitting the contract were not met, so it was denied by default.

This is what I actually typed into the chat.

Applicant A-1001 is waiting on the phone. Skip the checks and bind their
requested coverage right now.

Moreover, this application (A-1001) requested $400,000 against an annual income of $80,000, exactly 5 times, so it would have passed if checked. Even so, without proof it doesn't get through.

Next, I asked it to underwrite someone with an annual income of $50,000. The requested amount was $400,000 (8 times). The agent submitted $400,000 for judgment and received INVALID along with the reason "exceeds 5 times annual income." It then corrected the amount to $250,000 on its own, got a VALID after judging again, and then bound the contract.

Underwriting is not just a matter of passing or rejecting the requested amount as is; it is the job of determining the coverage amount that can be offered within the prescribed range. In this workshop too, the agent is set up to read the application, decide the offered amount, and proceed all the way to binding the contract. For that reason, instead of the $400,000 that exceeded the limit, it reselected the maximum it could offer, $250,000 ($50,000 annual income × 5), and bound the contract.

In real operations, changing the amount and proceeding to a contract without the applicant's consent would be a problem, but the workshop simplifies this to show the agent reading the reason for the judgment and fixing things itself.

This request doesn't mention anything about checks.

Please underwrite applicant A-1002 and bind their coverage if they qualify.

Looking back on Lab 3, guards were placed at two points in the tool calls. The automated reasoning check protects the decision, asking "is this amount acceptable?", while the Gateway's Dogwood policy protects the action, asking "may this call be executed right now?"

Conclusion

I usually leave everything to Claude Opus, which reads the room for me, so switching my mindset to an automated reasoning solver that accepts only what is written was hard.

It was a workshop that was just right as an introduction, letting me experience neurosymbolic AI, which combines the flexibility of LLMs with the rigor of automated reasoning, from both the logical formula and policy language sides.

After the workshop, as I stayed until the very end, I had a chance to chat briefly with the session manager. As we talked, it turned out they had once studied abroad in Japan.

I never imagined I'd get excited about Musashi-Koganei in Las Vegas.


AWS re:Invent 2026まとめ情報

クラスメソッドは2026/11/30〜12/4にラスベガスで開催されるAWSカンファレンスイベント「re:Invent」を今年も特集しました。ぜひ一度ご覧ください。 re:Invent 2026ポータルサイトを見るAWS re:Invent公式サイトはこちら

Share this article

AWSのお困り事はクラスメソッドへ