AltimateAI / AltimateAI/altimate-code

data_diff: configurable MAX_STEPS and wall-clock timeout

オープン
#720 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
811
フォーク
134
平均マージ
3日 2時間
マージ済み PR(30日)
50

説明

Flagged during v0.5.22 release review (End User + Tech Lead personas).

`MAX_STEPS = 200` in `packages/opencode/src/altimate/native/connections/data-diff.ts` is hardcoded. The error message now suggests `partition_column` / `where_clause` remediations (good), but:

- No per-query wall-clock timeout — runaway cross-database HashDiff can hang and rack up warehouse cost
- No user override for legitimate billion-row table cases
- No telemetry breadcrumb when we hit the cap

Proposed:
- `data_diff_max_steps` config, default 200
- Per-SQL-step wall-clock timeout (60s default, configurable)
- Emit telemetry event on cap hit so we know how often users need more headroom

Deferred because: no reported hits in the field yet. File for tracking.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。