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

Harden #881 regression guard: loosen regex + sweep all altimate-core tool descriptions

Open anandgupta42 opened this issue 6 months ago • 0 comments

Summary

Follow-up hardening for the regression guard added in #882 (fix for #881).

The #882 test pins only the two tool descriptions that carried the stale "Requires altimate_core.init() with API key" claim, and uses a length-bounded regex. Two small gaps remain:

  1. Bounded regex. /requires?\b[^.]{0,40}\bapi key\b/ caps the gap at 40 chars, so a variant like "requires an API key for authentication and access" could slip through.
  2. Two-tool coverage. Only column_lineage / track_lineage are guarded. A newly added altimate-core-* tool could reintroduce the false claim and go uncaught.

Proposed change (test-only)

  • Loosen the regex to /requires?\b.*?\bapi key\b/ (still does not false-positive on the legitimate "no API key required" copy).
  • Add a source sweep over every altimate-core-*.ts tool asserting none contains the unambiguous altimate_core.init marker (no native engine tool calls a dispatcher method by that name, so any occurrence is a regression).

Type

Test hardening — no runtime/behavior change.

anandgupta42 avatar Jun 04 '26 04:06 anandgupta42