altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

`altimate_core_*`, `sql_analyze`, `schema_diff` all return "unknown error" — error propagation broken across core bridge

Open anandgupta42 opened this issue 8 months ago • 1 comments

Problem

The altimate_core_validate tool fails with "unknown error" and error class "unknown" — providing no useful information for debugging. This is the 5th most common tool failure overall.

Scale

1,208 total failures in the last 7 days across all versions.

CLI Version Occurrences Error Message
0.5.2 601 unknown error
0.5.7 391 unknown error
0.5.3 171 unknown error
0.5.5 18 unknown error

On dev branches where error propagation was improved (fix/ai-5975-tool-error-propagation), the actual errors surfaced properly:

  • "No schema provided. Provide schema_context or schema_path so table/column references can be resolved."
  • "Table ? not found"
  • "Validation failed: Table 'fact_inventory' not found"
  • "Validation failed: Syntax error: sql parser error: Expected: ), found: . at Line: 8, Column: 10"

Root cause

The released versions (0.5.2 through 0.5.7) are catching exceptions from altimate_core_validate and replacing them with a generic "unknown error" string. The fix branch (ai-5975) appears to address this but hasn't shipped to a release yet.

Impact

  • Users see a useless error message and can't understand why validation failed
  • The agent can't adapt its behavior based on the error (e.g., providing schema context when it's missing)
  • 1,200+ failures in a week that could have been recoverable if the error was surfaced

Suggested fix

  1. Ship the error propagation fix from the ai-5975 branch to a release
  2. Ensure all altimate_core_* tool errors propagate the original error message and a meaningful error_class
  3. For the common case of "No schema provided", consider having the tool auto-resolve schema context or return a structured error the agent can act on

anandgupta42 avatar Mar 24 '26 21:03 anandgupta42

Update: Multiple altimate_core_* tools affected (Mar 26)

This is not limited to altimate_core_validate — the same "unknown error" swallowing pattern affects at least 3 tools:

Tool Failures (Mar 26, single day)
altimate_core_equivalence 270
sql_analyze 88
schema_diff 51
altimate_core_validate 24

altimate_core_equivalence is now the #1 new failure today at 270 occurrences — all returning "unknown error" with no actionable details.

This suggests the error propagation issue is systemic across the core bridge, not isolated to validate. The fix/ai-5975-tool-error-propagation branch (being tested internally) should address all of these, but it needs to ship soon — these tools are hitting real users daily.

Recommend updating the title to reflect the broader scope: all altimate_core_* tools + sql_analyze + schema_diff.

anandgupta42 avatar Mar 26 '26 16:03 anandgupta42