TL;DR: if Flipt export fails with `wrong format for rule segments` on a variant flag that has no rules attached yet, upgrade past the release containing PR #3552. The PR fixed the root cause for rule-less variant flags and improved the export error message and UI. Note the fix cannot repair database rows already in the inconsistent state; those need to be re-exported or recreated.

```text
wrong format for rule segments
```

## Steps

1. Upgrade Flipt past the PR #3552 release.

2. Re-run the export.

   Expected: the export succeeds, including for rule-less flags. Success check: the exported state includes the flag.

3. For rows already in the inconsistent state, re-export or recreate them; the upgrade does not heal existing rows.

## When to use this

- Export fails on a variant flag with no rules (create flag, no rules, export).

## When NOT to use this

- Flags with rules fail; that is a different problem.
- Import fails; check the import format.

## Compatibility

- Flipt releases with PR #3552.

## Variant phrasings

- "flipt export wrong format rule segments"
- "flipt export fails variant flag no rules"

## Root cause

The exporter assumed every variant flag had rules and choked on the empty case.

## Edge cases

- A rule-less flag is a normal intermediate state, not corruption; do not delete flags to work around it.