You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mcp): pre-execution lint scanner and namespace pre-injection for catalog code
Add a static AST scanner that catches bad import patterns before any user
code executes, and pre-inject the four canonical names (ibis, xo,
from_catalog, from_project) into the module namespace so catalog scripts
need zero import statements for common usage.
Session analysis showed `import ibis` and `import xorq as xo` caused 3 of
5 MCP failures — both required 1-2 retries to recover from runtime errors
with cryptic AttributeErrors. The scanner now returns a clear rejection
before exec; the pre-injection means well-written code works without imports.
Also fix the summary-stats sandbox: Exception and common exception types
were missing from _SAFE_BUILTIN_NAMES, forcing `except Exception:` to fail
with NameError.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments