Skip to content

chore: upgrade @altimateai/altimate-core to 0.8.0 - #1530

Merged
anandgupta42 merged 3 commits into
mainfrom
chore/bump-altimate-core-0.8.0
Oct 17, 2026
Merged

anandgupta42 merged 3 commits into
mainfrom
chore/bump-altimate-core-0.8.0

Conversation

@anandgupta42

@anandgupta42 anandgupta42 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #1529

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR upgrades @altimateai/altimate-core from 0.7.0 to 0.8.0. That version is published to npm with all five platform packages, and to PyPI.

What users get from 0.8.0

  • Parser fixes for read syntax that 0.7.0 could not parse. sql_execute used to treat these statements as writes and ask for approval; they now classify and run as plain reads:
    • DuckDB // integer division
    • TIMESTAMPTZ '…' literals
    • a table aliased match
    • SQLite NOT GLOB
  • The second layer of the dbt reviewer: config lints are now parsed with the real dbt Jinja AST, and there is a new DBT006 finding for hardcoded relations. Findings flow through generically, so no consumer code changes were needed.
  • The TypeScript API is unchanged apart from a doc comment.

Changes in this PR

  • packages/opencode/package.json: the pin is now 0.8.0. bun.lock is refreshed, with the main package and its five platform packages at 0.8.0 and no other changes.
  • bunfig.toml: adds the six @altimateai/altimate-core* package names to minimumReleaseAgeExcludes. These are exact names, not a wildcard. Without the exemption, the 3-day cooldown blocks bun install from resolving a core release on the day it ships. The list already exempts other first-party and pinned packages such as @opentui/* and @ff-labs/*. Exact version pins and integrity hashes still apply.
  • Tests that pinned the old fail-closed behavior:
    • sql-execute.test.ts: the four statements now assert no approval request and exactly one dispatch of the original SQL.
    • sql-classify.test.ts:
      • The previously skipped DuckDB // aggregate test is enabled and expects read.
      • A malformed string_agg keeps parse-failure → write coverage.
    • The existing SELECT ( tests are unchanged. They cover the write-approval path with the parse diagnostic in its metadata, both when the write is denied and when it is approved.

How did you verify your code works?

All runs were local against the installed 0.8.0 (require('@altimateai/altimate-core/package.json').version → 0.8.0).

  • bun run typecheck in packages/opencode: clean.
  • bun test test/altimate: 9194 pass, 2 fail. The two failures are datamate_manager list-integrations 5-second timeouts. They fail the same way on main with 0.7.0 in this local environment and passed in CI on feat(analyst): harness robustness for data-question runs #1441. They are unrelated to this change.
  • bun test test/skill test/cli/check-e2e.test.ts test/install/smoke-test-binary.test.ts, the other suites that use core: 1158 pass, 0 fail.
  • Local Codex review of b12bce3775..5b3a5d5e30: no P0, P1 or P2 findings.
  • Independent review (Opus): one low-severity finding, a stale 0.7.0 pin reference in docs/internal/deterministic-checks-engine-split.md, fixed in 7507c57efe. It also tried adding writes after the newly parseable syntax, and all of them were still classified as writes.

Screenshots / recordings

Not applicable. There are no UI changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Improved SQL classification and execution for DuckDB integer division, TIMESTAMPTZ, and MATCH syntax, as well as SQLite NOT GLOB queries. These queries are recognized as reads and can proceed without write approval.
    • Malformed string_agg queries now report a parse error while remaining unblocked as writes.
  • Updates

    • Updated Altimate Core to version 0.8.0.

Note

Medium Risk
Bumps the native SQL engine and changes read/write classification for queries that previously required write approval, which affects the safety gate around sql_execute.

Overview
Upgrades @altimateai/altimate-core from 0.7.0 to 0.8.0 (lockfile and packages/opencode pin), and documents the new pin in internal engine-split docs.

bunfig.toml now exempts the six @altimateai/altimate-core* package names from the 3-day minimumReleaseAge rule so fresh core releases can be installed on ship day.

With 0.8.0’s parser fixes, several dialect-specific read statements (e.g. DuckDB //, TIMESTAMPTZ literals, match as a table name, SQLite NOT GLOB) are classified as reads instead of failing closed as writes. sql-execute and sql-classify tests are updated to expect no write-approval prompt and normal sql.execute dispatch for those cases; DuckDB // coverage is un-skipped, and malformed string_agg still asserts parse-error → write behavior.

Reviewed by Cursor Bugbot for commit 9740204. Bugbot is set up for automated code reviews on this repo. Configure here.

- Pin `@altimateai/altimate-core` 0.8.0 and refresh `bun.lock` (main + 5 platform packages).
- Exempt the first-party `@altimateai/altimate-core*` packages from the 3-day
  `minimumReleaseAge` in `bunfig.toml`, matching the existing first-party/pinned excludes,
  so a core release can be adopted on the day it ships.
- Update the tests that pinned the old fail-closed behaviour: DuckDB `//`, `TIMESTAMPTZ '...'`,
  a `match` alias and SQLite `NOT GLOB` now parse and run as reads; enable the previously
  skipped `//` aggregate test; keep parse-failure coverage with a malformed `string_agg`.

Closes #1529

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@cursor

cursor Bot commented Oct 16, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 911a771b-4cfb-48ff-8bca-eebb2648d365)

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eb79dadc-17b6-400b-9781-418dcde59804
📥 Commits

Reviewing files that changed from the base of the PR and between 7507c57 and 9740204.

📒 Files selected for processing: 1
  • bunfig.toml
🚧 Files skipped from review as they are similar to previous changes: 1
  • bunfig.toml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

📝 Walkthrough

Altimate Core was upgraded to version 0.8.0, and its packages were added to the minimum-release-age exclusions. SQL classification and execution tests now cover additional read syntax and malformed SQL.

Changes: Altimate Core Upgrade

Layer / File(s) Summary
Update Altimate Core dependency
packages/opencode/package.json, bunfig.toml, docs/internal/deterministic-checks-engine-split.md
The dependency and documented pin changed from 0.7.0 to 0.8.0. The minimum-release-age exclusions now include Altimate Core and its listed package variants.
Update SQL tool test expectations
packages/opencode/test/altimate/tools/sql-classify.test.ts, packages/opencode/test/altimate/tools/sql-execute.test.ts
Classification tests expect DuckDB integer-division queries to classify as reads without parse diagnostics. A malformed string_agg query is expected to classify as an unblocked write with an Expected RParen parse error. Execution tests expect four read-syntax cases to dispatch without write approval or result errors.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 97402

No actionable risk is established; the upgrade is mergeable after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the primary change: upgrading @altimateai/altimate-core to 0.8.0.
Description check Passed The description includes the issue reference, change type, detailed change summary, verification results, screenshot status, and completed checklist. It also documents the two unrelated test timeouts …
Linked Issues check Passed Issue #1529 requires the @altimateai/altimate-core pin update to 0.8.0 and test updates for syntax that previously failed closed. The PR updates packages/opencode/package.json, refreshes `bun.lock…
Out of Scope Changes check Passed The Bun release-age exclusions support installation of the six upgraded first-party packages on release day. The targeted SQL tests verify the issue behavior. The version-reference documentation match…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Full details: Description check

Explanation

The description includes the issue reference, change type, detailed change summary, verification results, screenshot status, and completed checklist. It also documents the two unrelated test timeouts and their baseline behavior.

Full details: Linked Issues check

Explanation

Issue #1529 requires the @altimateai/altimate-core pin update to 0.8.0 and test updates for syntax that previously failed closed. The PR updates packages/opencode/package.json, refreshes bun.lock for the main and five platform packages, and updates classification and execution tests for DuckDB //, TIMESTAMPTZ literals, a match alias, and SQLite NOT GLOB. The tests retain parse-failure coverage for malformed string_agg SQL. The dbt AST parsing and DBT006 finding are supplied by the upgraded dependency, so no consumer implementation is required.

Full details: Out of Scope Changes check

Explanation

The Bun release-age exclusions support installation of the six upgraded first-party packages on release day. The targeted SQL tests verify the issue behavior. The version-reference documentation matches the dependency upgrade. The reviewed changes show no unrelated product, API, or UI work.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the parser’s trail,
Two slashes pass without fail.
Four read forms move along their way,
A malformed query marks its parse error today.
Core’s new version joins the stack,
And release-age waits step back.

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

👋 This PR was automatically closed by our quality checks.

Common reasons:

  • New GitHub account with limited contribution history
  • PR description doesn't meet our guidelines
  • Contribution appears to be AI-generated without meaningful review

If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions

Copy link
Copy Markdown

👋 This PR was automatically closed by our quality checks.

Common reasons:

  • New GitHub account with limited contribution history
  • PR description doesn't meet our guidelines
  • Contribution appears to be AI-generated without meaningful review

If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you.

@kilo-code-bot

kilo-code-bot Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • bunfig.toml
Previous Review Summaries (2 snapshots, latest commit 7507c57)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 7507c57)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (6 files)
  • bun.lock
  • bunfig.toml
  • docs/internal/deterministic-checks-engine-split.md
  • packages/opencode/package.json
  • packages/opencode/test/altimate/tools/sql-classify.test.ts
  • packages/opencode/test/altimate/tools/sql-execute.test.ts

Previous review (commit 5b3a5d5)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • bun.lock
  • bunfig.toml
  • packages/opencode/package.json
  • packages/opencode/test/altimate/tools/sql-classify.test.ts
  • packages/opencode/test/altimate/tools/sql-execute.test.ts

Reviewed by gemini-4-argon · Input: 70.5K · Output: 672 · Cached: 95.7K

Review guidance: REVIEW.md from base branch main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cursor

cursor Bot commented Oct 16, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 3ba86801-f860-46a1-9e28-f3fd725743aa)

@github-actions

Copy link
Copy Markdown

👋 This PR was automatically closed by our quality checks.

Common reasons:

  • New GitHub account with limited contribution history
  • PR description doesn't meet our guidelines
  • Contribution appears to be AI-generated without meaningful review

If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you.

@github-actions

Copy link
Copy Markdown
- - - - - - - - - - - - - - - - - - - - - - - - -
                    AIRECEIPTS                    
            5 sessions behind this PR             

  CODEX HELPERS (5) — no commits
  (unattributed usage) · 1m.........589,303 tokens
  (unattributed usage) · 48s........339,117 tokens
  (unattributed usage) · 1m.........584,808 tokens
  (unattributed usage) · 1m.........470,561 tokens
  (unattributed usage) · 41s........269,694 tokens
--------------------------------------------------
TOTAL unpriced....................2,253,483 tokens
  counted: 5 sessions
  cache served 91% of input tokens
  full receipts + session ids: section below
- - - - - - - - - - - - - - - - - - - - - - - - -
                npx aireceipts-cli                
         github.com/anandgupta42/receipts         
- - - - - - - - - - - - - - - - - - - - - - - - -
full receipts (5 sessions)
session id scope turns time tokens in / out cached
codex 4510260d no commits 1 1m 38k / 3.8k 93%
codex d2dcdeed no commits 1 48s 27k / 1.4k 92%
codex 2eba8069 no commits 1 1m 53k / 2.9k 91%
codex e78b397a no commits 1 1m 51k / 2.1k 89%
codex 20b70449 no commits 1 41s 37k / 1.2k 86%

codex · 4510260d

- - - - - - - - - - - - - - - - - - - - - - - - -
                    AIRECEIPTS                    
 “# AGENTS.md instructions<INSTRUCTIONS># Resea…” 
    Codex · Oct 16 2026 19:41:58 UTC · 1m 55s     
            (unattributed usage) 100%             
         cache served 93% of input tokens         

(unattributed usage)........589,303 tok  (0 calls)
exec..............................0 tok  (9 calls)
followup_task......................0 tok  (1 call)
send_message.......................0 tok  (1 call)
spawn_agent........................0 tok  (1 call)

caveat: Codex request envelopes did not reconcile — request-level pricing disabled
--------------------------------------------------
TOTAL..................................589,303 tok
no price table matched
- - - - - - - - - - - - - - - - - - - - - - - - -
                npx aireceipts-cli                
         github.com/anandgupta42/receipts         
- - - - - - - - - - - - - - - - - - - - - - - - -

codex · d2dcdeed

- - - - - - - - - - - - - - - - - - - - - - - - -
                    AIRECEIPTS                    
 “# AGENTS.md instructions<INSTRUCTIONS># Resea…” 
      Codex · Oct 16 2026 19:42:19 UTC · 48s      
            (unattributed usage) 100%             
         cache served 92% of input tokens         

(unattributed usage)........339,117 tok  (0 calls)
exec..............................0 tok  (5 calls)
send_message......................0 tok  (3 calls)

caveat: Codex request envelopes did not reconcile — request-level pricing disabled
--------------------------------------------------
TOTAL..................................339,117 tok
no price table matched
- - - - - - - - - - - - - - - - - - - - - - - - -
                npx aireceipts-cli                
         github.com/anandgupta42/receipts         
- - - - - - - - - - - - - - - - - - - - - - - - -

codex · 2eba8069

- - - - - - - - - - - - - - - - - - - - - - - - -
                    AIRECEIPTS                    
 “# AGENTS.md instructions<INSTRUCTIONS># Resea…” 
    Codex · Oct 16 2026 19:51:20 UTC · 1m 59s     
            (unattributed usage) 100%             
         cache served 91% of input tokens         

(unattributed usage)........584,808 tok  (0 calls)
exec..............................0 tok  (9 calls)
spawn_agent.......................0 tok  (2 calls)

caveat: Codex request envelopes did not reconcile — request-level pricing disabled
--------------------------------------------------
TOTAL..................................584,808 tok
no price table matched
- - - - - - - - - - - - - - - - - - - - - - - - -
                npx aireceipts-cli                
         github.com/anandgupta42/receipts         
- - - - - - - - - - - - - - - - - - - - - - - - -

codex · e78b397a

- - - - - - - - - - - - - - - - - - - - - - - - -
                    AIRECEIPTS                    
 “# AGENTS.md instructions<INSTRUCTIONS># Resea…” 
    Codex · Oct 16 2026 19:51:38 UTC · 1m 04s     
            (unattributed usage) 100%             
         cache served 89% of input tokens         

(unattributed usage)........470,561 tok  (0 calls)
exec..............................0 tok  (8 calls)
send_message......................0 tok  (2 calls)

caveat: Codex request envelopes did not reconcile — request-level pricing disabled
--------------------------------------------------
TOTAL..................................470,561 tok
no price table matched
- - - - - - - - - - - - - - - - - - - - - - - - -
                npx aireceipts-cli                
         github.com/anandgupta42/receipts         
- - - - - - - - - - - - - - - - - - - - - - - - -

codex · 20b70449

- - - - - - - - - - - - - - - - - - - - - - - - -
                    AIRECEIPTS                    
 “# AGENTS.md instructions<INSTRUCTIONS># Resea…” 
      Codex · Oct 16 2026 19:51:42 UTC · 41s      
            (unattributed usage) 100%             
         cache served 86% of input tokens         

(unattributed usage)........269,694 tok  (0 calls)
exec..............................0 tok  (5 calls)
send_message.......................0 tok  (1 call)

caveat: Codex request envelopes did not reconcile — request-level pricing disabled
--------------------------------------------------
TOTAL..................................269,694 tok
no price table matched
- - - - - - - - - - - - - - - - - - - - - - - - -
                npx aireceipts-cli                
         github.com/anandgupta42/receipts         
- - - - - - - - - - - - - - - - - - - - - - - - -

Generated by aireceipts

@github-actions

Copy link
Copy Markdown

👋 This PR was automatically closed by our quality checks.

Common reasons:

  • New GitHub account with limited contribution history
  • PR description doesn't meet our guidelines
  • Contribution appears to be AI-generated without meaningful review

If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you.

1 similar comment
@github-actions

Copy link
Copy Markdown

👋 This PR was automatically closed by our quality checks.

Common reasons:

  • New GitHub account with limited contribution history
  • PR description doesn't meet our guidelines
  • Contribution appears to be AI-generated without meaningful review

If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cursor

cursor Bot commented Oct 16, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: cdc405f3-1c25-4fe5-813e-fa2abffba8cb)

@anandgupta42
anandgupta42 merged commit 439528b into main Oct 17, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade @altimateai/altimate-core to 0.8.0

1 participant