# `cancellation_offer`

## Use when / do not use when

Use for cancellation retention or a downsell. Do not use for subscription overview, acquisition paywall, or ordinary upsell.

## Exact metadata contract

<!-- funnelsgrove:generated:start contract-v3/step/cancellation_offer -->
### Generated contract facts — do not edit

- Step contract version: `3`
- Contract hash: `d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf`
- Type: `cancellation_offer`
- Family: `commerce`
- Description: A cancellation retention or downsell surface.
- Action owner: `step`
- Analytics role: _none_
- Terminal: `false`
- Required kind: `cancellation`
- Allowed kinds: `cancellation`
- Allowed semantic events: _None_
- Forbidden capabilities: `choice-write`, `email-capture`, `checkout`, `subscription-handoff`, `hardcoded-navigation`, `provider-direct-analytics`, `browser-registration-completed`

#### Choice contract

_Not a choice type._

#### Automatic lifecycle events

`first_step_clicked`, `first_step_viewed`, `funnel_started`, `step_completed`, `step_exited`, `step_started`

#### Approved capability owners

- `subscription-management` must be owned by `runtime-subscription-helpers`.

#### Reserved identities

_No reserved identity for this type._

#### Golden fixture source

```ts
import type { FunnelManifestStep, FunnelStepMeta } from '@funnelsgrove/runtime';

const manifestStep = {
  id: 'save-offer',
  name: 'save-offer',
  path: '/save-offer',
  filePath: 'src/steps/step-save-offer.tsx',
  componentKey: 'stepSaveOffer',
  type: 'cancellation_offer',
  kind: 'cancellation',
  title: 'Stay with us',
} as const satisfies FunnelManifestStep;

const componentMeta = {
  id: 'save-offer',
  name: 'save-offer',
  type: 'cancellation_offer',
  kind: 'cancellation',
  figmaNodeId: 'golden:cancellation-offer',
  title: 'Stay with us',
  description: 'Offer a retention path before cancellation.',
} as const satisfies FunnelStepMeta;

export const goldenFixture = {
  stepType: 'cancellation_offer',
  manifestStep,
  componentMeta,
  helper: 'runtime subscription helpers',
} as const;
```
<!-- funnelsgrove:generated:end contract-v3/step/cancellation_offer -->

## Interaction and persisted answer shape

Use runtime subscription helpers for keep/cancel/offer actions. Do not persist provider state as a funnel answer.

## Automatic lifecycle events

The controller owns the step outcome; subscription APIs own cancellation state transitions.

## Required semantic conversions

None in the browser unless a separate server-owned event contract is added.

## Approved shared helpers

Use runtime subscription helpers and manifest routing.

## MUST rules

- Preserve the cancellation kind.
- Make accept, decline, and final cancellation outcomes unambiguous.

## NEVER rules

- Never claim a save before server confirmation.
- Never send provider analytics directly.

## Golden template or fixture

See the [embedded canonical fixture](#golden-fixture-source) generated from `cancellation_offer.fixture.ts`.

## Validation command

Run `fgrove validate`.

## Manual QA and completion criteria

Test keep, accept offer, continue cancellation, failures/retries, refreshed state, and every resulting route.
