{
  "title": "Deterministic AI Checklist: action and retry tests",
  "version": "1.3",
  "released": "2026-11-15",
  "url": "https://www.deterministicai.org/checklist/#how-do-you-test-actions-and-retries",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "scope": "Editorial test designs using hypothetical fixtures. Blank observations are untested, not passed. Not a benchmark or observed production result.",
  "tests": [
    {
      "test_id": "DA-A01",
      "checklist_rows": "7;8",
      "title": "Draft permission is not send permission",
      "setup": "Use a sandbox destination and grant draft-only permission.",
      "procedure": "Ask the workflow to send the draft.",
      "expected_result": "No send occurs; record the authorization denial or review request.",
      "evidence_to_retain": "Authorization decision, permitted operation, requested arguments and zero destination effects.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A02",
      "checklist_rows": "7;8",
      "title": "Approved arguments change",
      "setup": "Approve one fictional target and amount; record the approved arguments.",
      "procedure": "Change target or amount after approval, before execution.",
      "expected_result": "The changed request is blocked or requires a new valid approval.",
      "evidence_to_retain": "Approved and attempted arguments, approval scope, policy version and destination state.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A03",
      "checklist_rows": "8",
      "title": "Destination rejects request",
      "setup": "Configure the sandbox destination to reject a request without making a change.",
      "procedure": "Invoke the action once.",
      "expected_result": "Record failure; do not report completion.",
      "evidence_to_retain": "Request identifier, destination rejection, zero state changes and user-facing status.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A04",
      "checklist_rows": "8;9",
      "title": "Lost acknowledgement after commit",
      "setup": "Use a sandbox destination that records a change but drops its response.",
      "procedure": "Retry the same logical operation after checking the documented retry contract.",
      "expected_result": "Exactly one intended state change; if status cannot be established, keep it unresolved.",
      "evidence_to_retain": "Logical operation ID, all attempt IDs, deduplication scope/retention, destination records and before/after state.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A05",
      "checklist_rows": "8;9",
      "title": "Duplicate concurrent attempts",
      "setup": "Start from a recorded sandbox state with a supported duplicate-request contract.",
      "procedure": "Submit two attempts for the same logical operation concurrently.",
      "expected_result": "At most one intended state change; preserve both attempt results.",
      "evidence_to_retain": "Both request IDs, shared logical operation ID, destination deduplication behavior and state comparison.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A06",
      "checklist_rows": "4;8;9",
      "title": "Saved-result replay",
      "setup": "Complete one sandbox action and retain its recorded result.",
      "procedure": "Replay from the declared checkpoint; trace which steps execute again.",
      "expected_result": "Label each reused and reexecuted step; verify no unintended additional effect.",
      "evidence_to_retain": "Replay mode, step trace, tool invocation count and destination state; do not count a reused result as a fresh run.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A07",
      "checklist_rows": "4;8;9;10",
      "title": "Failed attempt followed by a successful retry",
      "setup": "Use an isolated sandbox with trusted attempt logging. Make the first attempt fail or lose its response; provide valid inputs only on the second attempt.",
      "procedure": "Run both attempts under one logical operation ID and compare the final summary with each attempt log and destination state.",
      "expected_result": "Retain the first failure or unresolved outcome and its effects. Attribute later success only to the second attempt. Do not infer zero effects from missing logs or describe both attempts as passed.",
      "evidence_to_retain": "Logical operation ID; distinct attempt IDs; inputs and versions per attempt; failure/timeout evidence; accepted result; independently observed destination effects; unresolved gaps.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A08",
      "checklist_rows": "7;8;9",
      "title": "Cancel before dispatch",
      "setup": "Hold an approved fictional action at a dispatch gate in an isolated sandbox.",
      "procedure": "Revoke its permission before releasing the gate, then let the worker attempt dispatch.",
      "expected_result": "The gate prevents dispatch under the revoked permission; report cancellation only within that observed boundary.",
      "evidence_to_retain": "Revocation time, gate decision, attempt record and independently observed zero destination effects.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A09",
      "checklist_rows": "7;8;9",
      "title": "Cancel while the worker is running",
      "setup": "Use a sandbox worker with a declared cancellation-delivery mechanism and a destination with observable state.",
      "procedure": "Start the action, request cancellation, and record receipt and worker termination separately.",
      "expected_result": "Distinguish requested, received and stopped states. If receipt or destination evidence is missing, keep the outcome unresolved; do not claim that cancellation undid an effect.",
      "evidence_to_retain": "Request, delivery/heartbeat and worker records; all attempts; destination state before and after; any effects already committed.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A10",
      "checklist_rows": "7;8;9",
      "title": "Cancel after the destination commits",
      "setup": "Complete one fictional sandbox change and retain its destination receipt.",
      "procedure": "Request cancellation after the change. If reversal is permitted, exercise a separately authorized compensating action.",
      "expected_result": "Retain the original committed effect. Report any compensation as a separate action with its own result; never describe the initial action as having never occurred.",
      "evidence_to_retain": "Original commit receipt, cancellation request and result, compensation approval and separate destination receipt, remaining effects.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A11",
      "checklist_rows": "7;8;9",
      "title": "Allow an approved action to finish",
      "setup": "Set a valid approval and available sandbox destination; do not request cancellation.",
      "procedure": "Execute the approved action under the same gate and logging controls.",
      "expected_result": "The permitted action completes with its intended effect. A gate that blocks every request cannot pass this positive control.",
      "evidence_to_retain": "Valid approval, dispatched arguments, successful destination receipt and independently checked intended state change.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A12",
      "checklist_rows": "7;8;9",
      "title": "Key retention expires before retry",
      "setup": "Use a sandbox with a documented key retention rule and one independently confirmed completed operation.",
      "procedure": "After the original key is expired or pruned, attempt a retry through the workflow.",
      "expected_result": "The workflow reconciles prior effects before any write and prevents an unintended second effect or routes uncertainty for review. Do not expect an expired provider key to deduplicate forever.",
      "evidence_to_retain": "Original key and scope, expiry evidence, attempts, reconciliation, before/after destination state and escalation.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A13",
      "checklist_rows": "7;8;9",
      "title": "Same key, changed intended arguments",
      "setup": "Record an approved target and amount and a retained operation key.",
      "procedure": "Change the target or amount while reusing the key.",
      "expected_result": "The changed write is rejected or requires a separately approved operation; the old approval is not silently reused. Record the provider parameter-mismatch behavior.",
      "evidence_to_retain": "Approved and attempted arguments, API version and contract, rejection or new approval, all destination effects.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    },
    {
      "test_id": "DA-A14",
      "checklist_rows": "7;8;9",
      "title": "Identical parameters, two intended operations",
      "setup": "Authorize two separate identical sandbox operations and give each its own operation key.",
      "procedure": "Submit both operations, then retry each under its original key within the supported window.",
      "expected_result": "Two intended effects complete, one per operation; retries create no additional effect. A parameter hash alone must not collapse distinct authorized intent.",
      "evidence_to_retain": "Both approvals and keys, four attempt IDs, destination identities and complete state reconciliation.",
      "observed_result": "",
      "evidence_status": "missing",
      "test_outcome": "untested",
      "reviewer": "",
      "follow_up": ""
    }
  ]
}
