Skip to content

fix(replay): refuse missing regression directories - #411

Merged
StepenkoAnatoli merged 1 commit into
mainfrom
fix/issue-307-missing-replay-directory
Oct 14, 2026
Merged

StepenkoAnatoli merged 1 commit into
mainfrom
fix/issue-307-missing-replay-directory

Conversation

@StepenkoAnatoli

Copy link
Copy Markdown
Owner

A missing regression directory previously made property-replay --all print PASS (0) and exit successfully. It now reports INCOMPLETE with exit 2 and a named path/remedy; an existing empty directory explicitly says no regressions were captured. JSON directory results carry the path and count.

Fixes #307

what changed: property-replay --all refuses a missing directory as INCOMPLETE with exit 2, names its path and remedy, and explicitly describes an existing empty directory. JSON directory results include the path and regression count. Add one regression covering text/JSON refusals, empty results and read-only behavior.

why: A missing regression directory previously reported PASS (0), hiding a typo or incomplete checkout. The obvious remedy is a CLI refusal and explicit empty result; no alternative design was set aside.

what it touched: research-kit/bin/property-replay.mjs, its test file, the replay seam in docs/ARCHITECTURE.md, research-kit/README.md and CHANGELOG.md. The library's listing contract and captured evidence are unchanged; the suite inventory is 1,836.

what you verified: verified - the new CLI regression failed on the current main baseline (4 passed, 1 failed), then all five property-replay tests passed after correction. Missing and empty directories remain unmodified. The normal full-suite commit gate accepted e71077b on Windows / Node 24.20.0, with its documented local unsupported-capability allowance. The README inventory is 1,836. GitHub CI will verify the published head on its supported platforms before merge.

what you got wrong and fixed: nothing to report.

Fixes #307

what changed: property-replay --all refuses a missing directory as INCOMPLETE with exit 2, names its path and remedy, and explicitly describes an existing empty directory. JSON directory results include the path and regression count. Add one regression covering text/JSON refusals, empty results and read-only behavior.

why: A missing regression directory previously reported PASS (0), hiding a typo or incomplete checkout. The obvious remedy is a CLI refusal and explicit empty result; no alternative design was set aside.

what it touched: research-kit/bin/property-replay.mjs, its test file, the replay seam in docs/ARCHITECTURE.md, research-kit/README.md and CHANGELOG.md. The library's listing contract and captured evidence are unchanged; the suite inventory is 1,836.

what you verified: verified - the new CLI regression failed on the current main baseline (4 passed, 1 failed), then all five property-replay tests passed after correction. Missing and empty directories remain unmodified. The normal commit gate runs the complete offline suite before accepting this commit; GitHub CI will verify the published head before merge.

what you got wrong and fixed: nothing to report.
@StepenkoAnatoli
StepenkoAnatoli merged commit 194bcfb into main Oct 14, 2026
7 checks passed
@StepenkoAnatoli
StepenkoAnatoli deleted the fix/issue-307-missing-replay-directory branch October 14, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

property-replay --all passes with "PASS (0)", exit 0, when the regressions directory does not exist (the default directory is absent in this repository)

1 participant