Skip to content

fix(cli): reject negative --seeds instead of silently running defaults - #32

Merged
sx4im merged 1 commit into
mainfrom
overnight-fixes
Sep 29, 2026
Merged

sx4im merged 1 commit into
mainfrom
overnight-fixes

Conversation

@CodeWhitaker

Copy link
Copy Markdown
Collaborator

Bug

chronos sweep --seeds=-3 silently ignored the negative value and ran the default 1000-seed sweep with exit 0. Reproduced with the built binary before the fix (the existing test passed vacuously).

Fix

Negative values now reach validation and fail fast: ERROR sweep seeds must be a positive integer, exit 2. Regression test strengthened plus a new positional--3 case.

Verification

  • 326/326 tests passing (baseline 325/326; the single baseline failure was environmental — inspector dist/ not built, CI builds first)
  • tsc + eslint clean

Note: unknown --flags in the seeds position now error instead of being silently ignored — flagging in case that's release-note worthy.

chronos sweep --seeds=-3 silently ignored the negative value and ran the
default 1000-seed sweep with exit 0. Negative values now reach validation
and fail fast with a clear error (exit 2).
@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-site-chronos Ready Ready Preview Sep 26, 2026 6:40pm UTC

@sx4im
sx4im merged commit e45b604 into main Sep 29, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 43dd0c5b Deployed Sep 26, 2026 by vercel[bot]
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.

2 participants