---
title: "Verify cancelled exports cannot deliver a completed file"
description: "Exercise cancellation of a queued sandbox export, checking worker state, download availability, and notification suppression after the processing checkpoint."
canonical_url: "https://vostride.com/agent-library/reporting-exports/cancel-export-stops-delivery.md"
md_url: "https://vostride.com/agent-library/reporting-exports/cancel-export-stops-delivery.md"
content_kind: "recipe"
topic: "reporting-exports"
---

# Verify cancelled exports cannot deliver a completed file

Exercise cancellation of a queued sandbox export, checking worker state, download availability, and notification suppression after the processing checkpoint.

## Risk

A cancelled badge can be purely local while a worker finishes and publishes an artifact. The test needs an externally held job and a completed post-cancellation worker cycle to establish that cancellation reached the execution path.

## Fixtures

- An owned sandbox reporting account with a synthetic large report and a sandbox-only export-notification sink.
- An external worker fixture holding a queued job before artifact publication and able to report its eventual terminal state.
- A read-only job and object oracle exposing cancellation, published artifacts, and delivery records for the unique job identifier.

## Steps

1. Request the report export and verify the job is queued or processing while the external fixture confirms publication is held.
2. Cancel the job through the product control and verify its visible state changes to the documented cancellation state.
3. Release the external worker checkpoint and verify its report reaches a terminal outcome after receiving cancellation.
4. Reopen export history and inspect the independent job, artifact, and sink oracles; verify no usable completed download or delivery exists for the cancelled job.

## Expected results

- Cancellation persists through the worker terminal transition.
- No final user-accessible artifact is published for the cancelled job.
- The sandbox notification sink receives no completed-export delivery for that identifier.

## False-pass traps

- Checking while the worker remains paused cannot prove it respects cancellation after resuming.
- A disabled UI link does not rule out an independently published artifact or notification.

## Cleanup

- Remove temporary export objects and reset the external worker hold fixture.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa first test](/docs/agent-qa/guides/first-test.md)
- [agent-qa hooks](/docs/agent-qa/guides/hooks.md)
- [agent-qa test](/docs/agent-qa/configuration/test.md)

- [Reporting and export QA recipes](/agent-library/reporting-exports.md)
- [Software factory QA library](/agent-library.md)
