name: agent-checkout-flow-compliance-testing
description: Test agent-driven checkout flows against published retailer terms using scripted computer-use sessions with recorded evidence.
metadata:
source: skills/10-computer-use/agent-checkout-flow-compliance-testing.md
category: 10-computer-use
version: "v1"
Agent Checkout Flow Compliance Testing
Description
Test agent-driven checkout flows against published retailer terms using scripted computer-use sessions with recorded evidence. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.
When to Use
- An operator needs this capability to proceed safely and verifiably.
- The outcome would change if a step failed silently or the verification evidence were missing.
- The result must be recorded with reasons and verification evidence for later audit.
Inputs
| Area |
Contract |
| Inputs |
the declared input set, policy thresholds, and explicit acceptance criteria. |
| Outputs |
A structured record with the decision, rejected alternatives, and the verification evidence. |
| Safety |
Failures must fail closed and be reported with evidence rather than retried silently. |
Procedure
- Define the goal, the constraints, and the boundary of what this procedure may change.
- Inventory the available inputs and flag gaps or ambiguities that block progress.
- Script the checkout flow per published retailer term, execute it in a recorded session, and verify every term boundary from the session trace before declaring compliance.
- Compare the actual outcome against the acceptance criteria and record deviations.
- On failure, apply the declared fallback path, and never widen permissions to recover.
- Emit a structured result with evidence and provenance for downstream consumers.
Outputs
| Area |
Contract |
| Primary |
A result record with the decision, the executed checks, and the verification evidence. |
| Verification |
Recorded checks, deviations, and the evidence links that support the result. |
| Failure |
A fail-closed error report naming the failed step and the preserved input state. |
Runnable Example
def verify_checkout_compliance(trace, terms):
report = []
for step in trace:
rule = terms.get(step["action"])
if rule == "forbidden":
report.append({"step": step["action"], "compliant": False})
elif rule is None:
report.append({"step": step["action"], "compliant": False, "reason": "unmapped action"})
return report
trace = [{"action":"select_item"},{"action":"read_payment_info"}]
terms = {"read_payment_info":"forbidden"}
rep = verify_checkout_compliance(trace, terms)
assert any(not r["compliant"] for r in rep)
Failure Modes
- The scripted flow tests the happy path only and forbidden branches are never exercised.
- Session recordings are not retained so a compliance failure cannot be re-verified from evidence.
- The script uses a test account whose terms differ from the published agent terms.
- Terms are read from a cached copy and a retailer update invalidates the test silently.
- Human approval prompts are auto-dismissed in testing and the flow passes without real approval evidence.
Security and Authority Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.
Evidence
- Walmart launched an Agent Gateway MCP server letting approved agents search inventory and make purchases, with codified terms for non-human shoppers, while Amazon and booking sites block agents (agenticexpo.ai, dated October 23, 2026) (public signal)
- The roundup notes Walmart returns policy applies even when an agent purchases incorrectly, making end-to-end checkout compliance testable (agenticexpo.ai, dated October 23, 2026) (public signal)
- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.
Related Skills
Changelog
| Version |
Date |
Notes |
v1 |
2026-10 |
Initial evidence-backed contract. |
1---2name: agent-checkout-flow-compliance-testing-23description: Test agent-driven checkout flows against published retailer terms using scripted computer-use sessions with recorded evidence.4---5---6name: agent-checkout-flow-compliance-testing7description: Test agent-driven checkout flows against published retailer terms using scripted computer-use sessions with recorded evidence.8metadata:9 source: skills/10-computer-use/agent-checkout-flow-compliance-testing.md10 category: 10-computer-use11 version: "v1"12---1314# Agent Checkout Flow Compliance Testing1516## Description17Test agent-driven checkout flows against published retailer terms using scripted computer-use sessions with recorded evidence. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.1819## When to Use20- An operator needs this capability to proceed safely and verifiably.21- The outcome would change if a step failed silently or the verification evidence were missing.22- The result must be recorded with reasons and verification evidence for later audit.2324## Inputs25| Area | Contract |26|---|---|27| Inputs | the declared input set, policy thresholds, and explicit acceptance criteria. |28| Outputs | A structured record with the decision, rejected alternatives, and the verification evidence. |29| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |3031## Procedure321. Define the goal, the constraints, and the boundary of what this procedure may change.332. Inventory the available inputs and flag gaps or ambiguities that block progress.343. Script the checkout flow per published retailer term, execute it in a recorded session, and verify every term boundary from the session trace before declaring compliance.354. Compare the actual outcome against the acceptance criteria and record deviations.365. On failure, apply the declared fallback path, and never widen permissions to recover.376. Emit a structured result with evidence and provenance for downstream consumers.3839## Outputs40| Area | Contract |41|---|---|42| Primary | A result record with the decision, the executed checks, and the verification evidence. |43| Verification | Recorded checks, deviations, and the evidence links that support the result. |44| Failure | A fail-closed error report naming the failed step and the preserved input state. |4546## Runnable Example47```python48def verify_checkout_compliance(trace, terms):49 report = []50 for step in trace:51 rule = terms.get(step["action"])52 if rule == "forbidden":53 report.append({"step": step["action"], "compliant": False})54 elif rule is None:55 report.append({"step": step["action"], "compliant": False, "reason": "unmapped action"})56 return report5758trace = [{"action":"select_item"},{"action":"read_payment_info"}]59terms = {"read_payment_info":"forbidden"}60rep = verify_checkout_compliance(trace, terms)61assert any(not r["compliant"] for r in rep)62```6364## Failure Modes65- The scripted flow tests the happy path only and forbidden branches are never exercised.66- Session recordings are not retained so a compliance failure cannot be re-verified from evidence.67- The script uses a test account whose terms differ from the published agent terms.68- Terms are read from a cached copy and a retailer update invalidates the test silently.69- Human approval prompts are auto-dismissed in testing and the flow passes without real approval evidence.7071## Security and Authority Boundary72This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.7374## Evidence75- Walmart launched an Agent Gateway MCP server letting approved agents search inventory and make purchases, with codified terms for non-human shoppers, while Amazon and booking sites block agents (agenticexpo.ai, dated October 23, 2026) ([public signal](https://www.agenticexpo.ai/news/weekly-roundup-23-october-2026))76- The roundup notes Walmart returns policy applies even when an agent purchases incorrectly, making end-to-end checkout compliance testable (agenticexpo.ai, dated October 23, 2026) ([public signal](https://www.agenticexpo.ai/news/weekly-roundup-23-october-2026))77- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.7879## Related Skills80- [Agentic Checkout Integration Testing](../11-web/agentic-checkout-integration-testing.md)81- [Computer Use Approval Gate Automation](../10-computer-use/computer-use-approval-gate-automation.md)8283## Changelog84| Version | Date | Notes |85|---|---|---|86| `v1` | `2026-10` | Initial evidence-backed contract. |