Skip to content

fix: always try altimate-code check first + expand non_deterministic regex#4

Merged
anandgupta42 merged 2 commits intomainfrom
fix/cli-install-and-regex-gaps
Mar 25, 2026
Merged

fix: always try altimate-code check first + expand non_deterministic regex#4
anandgupta42 merged 2 commits intomainfrom
fix/cli-install-and-regex-gaps

Conversation

@anandgupta42
Copy link
Contributor

What does this PR do?

Fixes two issues found by the simulation system:

1. CLI check never tried (always fell back to regex)
The routing only used altimate-code check when v2 config was detected. Since most repos have no .altimate.yml, it always fell back to regex rules. Now the action tries altimate-code check first regardless of config version, falling back to regex only when the CLI is unavailable.

2. generate_uuid() not detected as non-deterministic
The regex only matched CURRENT_DATE, NOW(), GETDATE(). Added: GENERATE_UUID, UUID, NEWID, RANDOM, RAND, SYS_GUID.

3. Improved CLI install reliability
Removed error suppression (2>/dev/null || true) from binary extraction. Added verification step that checks the binary exists and prints version.

Type of change

  • Bug fix

How did you verify?

Checklist

  • Found by simulation evaluator
  • Lint passes (0 errors)
  • Typecheck passes
  • Tests pass

anandgupta42 and others added 2 commits March 24, 2026 19:43
…c regex

Two issues found by simulation:

1. CLI check was never tried — the routing only used `altimate-code check`
   when v2 config was detected. Since the demo repo has no `.altimate.yml`,
   it always fell back to regex. Now tries CLI first regardless of config.

2. `generate_uuid()` not detected as non-deterministic — regex only matched
   CURRENT_DATE/NOW/GETDATE. Added: GENERATE_UUID, UUID, NEWID, RANDOM,
   RAND, SYS_GUID.

Also improved CLI install: removed error suppression, added binary
verification step, better PATH handling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@anandgupta42 anandgupta42 merged commit 795cd2a into main Mar 25, 2026
12 of 16 checks passed
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.

1 participant