---
title: "Cancel a pending fixture invitation"
description: "Verify that canceling a pending collaboration invitation removes the pending entry and prevents the prepared recipient token from joining afterward."
canonical_url: "https://vostride.com/agent-library/collaboration/invitation-cancel-state.md"
md_url: "https://vostride.com/agent-library/collaboration/invitation-cancel-state.md"
content_kind: "recipe"
topic: "collaboration"
---

# Cancel a pending fixture invitation

Verify that canceling a pending collaboration invitation removes the pending entry and prevents the prepared recipient token from joining afterward.

## Risk

An invitation row can disappear while its join token remains usable. This scenario uses only test recipients and a prepared external acceptance probe to verify the canceled invitation boundary.

## Fixtures

- A test workspace has one pending invitation for a synthetic fixture recipient routed to a non-delivering sink.
- The prepared fixture verifier has the corresponding invitation identifier and token without exposing token material in artifacts.
- The product contract invalidates an invitation immediately when the owner cancels it.

## Steps

1. Open workspace invitations and verify the fixture recipient is Pending with the expected role.
2. Choose Cancel invitation and verify the confirmation identifies only that recipient.
3. Confirm cancellation and verify the pending list no longer contains the invitation.
4. Run the prepared recipient acceptance probe and verify the canceled token is rejected without creating membership.
5. Reload the members list and invitation history, verifying the recipient has no membership and the invitation is canceled where history is supported.

## Expected results

- The stored invitation changes from pending to canceled for the recorded identifier.
- The prepared acceptance probe cannot create membership after cancellation.
- The final member inventory excludes the synthetic recipient and existing members retain their roles.

## False-pass traps

- An absent pending row may mean the invitation was accepted, so membership must also be checked.
- A probe using an unrelated or already expired token would not establish cancellation behavior.

## Cleanup

- Delete the canceled invitation fixture and purge its sink message and recipient probe state.

## 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 test](/docs/agent-qa/configuration/test.md)
- [agent-qa first test](/docs/agent-qa/guides/first-test.md)
- [agent-qa web testing](/docs/agent-qa/guides/web-testing.md)

- [Collaboration QA recipes](/agent-library/collaboration.md)
- [Software factory QA library](/agent-library.md)
