Snowflake Code Bundles are generally available. A bundle name doesn’t pin the evaluator.
A scheduled SQL-agent evaluation can run different Python code without a change to the SQL that launches it.
Snowflake made Code Bundles generally available Nov. 19. They package non-SQL code for execution on Snowflake compute. For a team that grades SQL-agent answers with a Python program, that provides a way to run the grader as a separate job. But the name in the scheduled SQL is not a permanent reference to the grader’s source code: Snowflake’s guide says a named bundle runs its default version, which is the last version added.
The SQL can stay the same while the scoring rules change
The command reference documents headless execution from a worksheet, a Snowflake task or an external orchestrator. A custom Python bundle can run on a warehouse, and a Python method entrypoint can return a value. Snowflake’s bundle guide describes individual versions as immutable snapshots. The distinction is that the snapshot stays fixed while the default version of the named object moves. A scheduled task that names the object can therefore pick up a new evaluator without any edit to the task. The command also permits a run-specific WITH SPECIFICATION override, so the bundle’s source version alone does not capture every runtime setting.
Consider a team comparing two prompts on a fixed set of sales questions. In the first run, the grader treats duplicate answer rows as irrelevant; in the second, a grader update makes duplicates a failure. A lower score on the second run is not, by itself, evidence that the new prompt wrote worse SQL. The scoring rule changed between runs. Before comparing the prompts, score both sets of answers with the same grader and record the grader version, effective configuration, and fixture snapshot with the results.
Give the grader its own release cycle
For a baseline that must stay fixed, one option is to deploy a separately named bundle for each approved grader release and keep its versions unchanged, then point the evaluation task at the approved name. Treat a grader update as a change to the measuring instrument: replay saved answers with both graders before comparing new agent results. Keep the grader and its reference answers outside the agent’s write permissions. The release makes the job easier to package and schedule; it does not make two scores comparable when the rules used to calculate them differ.
sources
- Snowflake Nov. 19 release note: Code Bundles GAdocs.snowflake.com
- Snowflake Code Bundles guide: compute targets and immutable versionsdocs.snowflake.com
- EXECUTE CODE BUNDLE: named execution, entrypoints and runtime overridesdocs.snowflake.com
comments · 0