Skip to content

fix(regret.js): honest deprecation message for 'regret ci' — acknowledge kotlin/zig limitation (#549) - #554

Merged
Wolfvin merged 1 commit into
mainfrom
fix/deprecate-regret-ci-549
Jun 28, 2026
Merged

fix(regret.js): honest deprecation message for 'regret ci' — acknowledge kotlin/zig limitation (#549)#554
Wolfvin merged 1 commit into
mainfrom
fix/deprecate-regret-ci-549

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Summary

Red team R-2 found that regret ci deprecation message claimed 'functionally identical to regret validate --fail-fast', but for kotlin/zig stacks the --fail-fast flag is silently dropped (validate scripts reject unknown flags). Contract violation.

Root cause (after code review)

The dispatch logic is CORRECT — kotlin/zig skip --fail-fast intentionally with comments explaining why (validate scripts reject unknown flags with exit 2). The bug was only in the misleading message.

Fix

Update deprecation message to honestly state:

  • kotlin/zig do not accept --fail-fast
  • for those stacks, regret ci runs all clusters (no early exit)

No behavior change. No code logic change. Just accurate messaging.

Why not full deprecation (option 3 from issue #549)

Full deprecation (removing the ci case entirely) deferred to separate issue — it requires migrating the --init flag (which generates CI workflow files via ci-init.js) to another command like regret init --ci. That's a breaking change that needs its own plan.

Verification

  • node --check scripts/regret.js → OK
  • No behavior change (only console.warn text updated)

Test plan

  • CI green
  • Reviewer confirms message is accurate

Closes #549

…dge kotlin/zig limitation (#549)

Red team R-2 found that 'regret ci' deprecation message claimed
'functionally identical to regret validate --fail-fast', but for
kotlin/zig stacks the --fail-fast flag is silently dropped (validate
scripts reject unknown flags). Contract violation.

After code review, the dispatch logic is CORRECT — kotlin/zig skip
--fail-fast intentionally with comments explaining why. The bug was
only in the misleading message.

Fix: update deprecation message to honestly state:
- kotlin/zig do not accept --fail-fast
- for those stacks, 'regret ci' runs all clusters (no early exit)

No behavior change. No code logic change. Just accurate messaging.

Full deprecation (removing the 'ci' case entirely) deferred to separate
issue — it requires migrating the --init flag (which generates CI
workflow files via ci-init.js) to another command like 'regret init --ci'.

Closes #549
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Wolfvin
Wolfvin merged commit 4627ea6 into main Jun 28, 2026
6 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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.

fix(regret.js): 'regret ci' silently drops --fail-fast for kotlin/zig stacks

1 participant