Feature Drift
Explain stale, missing, orphan, and unparseable feature files and how to recover.
Abstract
Explain stale, missing, orphan, and unparseable feature files and how to recover.
Feature drift means the generated or checked feature file no longer matches the run the team expects. The file may be stale, missing, orphaned, or impossible to parse cleanly.
Audience
These pages help users recover from common failures without opening an issue.
Common Causes
- The system behavior changed but the feature file was not regenerated.
- The generator produced a file for a run the repo no longer recognizes.
- A rename or refactor broke the link between scenario and artifact.
- The file format changed enough that the parser or checker no longer accepts it.
First Checks
- Compare the generated file with the current scenario or behavior.
- Check whether the source of truth is the latest runtime evidence.
- Confirm the file name and path match the current page or scenario slug.
- Inspect whether the artifact is stale, orphaned, or malformed.
Recovery
- Regenerate the feature file from the current run.
- Update the catalog or scenario naming if the behavior is intentionally new.
- Delete or quarantine orphaned files that no longer correspond to live scenarios.
- If the file is unparseable, reduce it to the smallest reproducible example.
Content Outline
- Identify the symptom.
- List likely causes in order.
- Provide diagnostic commands and artifact checks.
- Explain when to report a bug and what to include.
What To Report If It Still Fails
- The feature file path and scenario name.
- The run that produced it.
- The expected versus actual behavior.
- Any parser or checker error text.
Evidence To Add
- Real commands, APIs, or artifacts from the Blackbox showcase system.
- Links to related concept, guide, reference, or troubleshooting pages.
- Clear limits and prerequisites where the page touches alpha behavior.