Add Snowflake integration pack#656
Open
santoshkumarradha wants to merge 9 commits into
Open
Conversation
Contributor
📊 Coverage gateThresholds from
✅ Gate passedNo surface regressed past the allowed threshold and the aggregate stayed above the floor. |
Contributor
📐 Patch coverage gateThreshold: 80% on lines this PR touches vs
✅ Patch gate passedEvery surface whose lines were touched by this PR has patch coverage at or above the threshold. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the first Snowflake integration pack with two separate surfaces:
snowflaketrigger source for Snowflake event-table/custom-query pollingThis keeps ingress in the control plane while keeping data/API capabilities modular, deployable, and callable from any AgentField SDK.
Developer Experience
Trigger side
Operators configure Snowflake from Integrations -> Snowflake -> Connect or through
POST /api/v1/triggers.The target node/reasoner must already be registered. The trigger stores only a secret env-var reference, for example
SNOWFLAKE_PAT; the PAT value stays in the control-plane environment.Example config shape:
{ "mode": "event_table_poll", "account_url": "https://<account>.snowflakecomputing.com", "database": "AGENTFIELD_TEST", "schema": "PUBLIC", "table": "AGENTFIELD_EVENTS", "warehouse": "AGENTFIELD_WH", "role": "AGENTFIELD_TEST_ROLE", "interval_seconds": 30, "max_batch_size": 100 }The source persists inbound event history, dedupes by
EVENT_ID, normalizes payload/provenance, and dispatches to the selected reasoner.Node side
Users deploy the optional Snowflake node as a Go binary in Docker. It registers as a normal AgentField node, for example
snowflake-prod.Other nodes then call it through AgentField:
Included Capabilities
query_readonlydescribe_tablesearch_columnscortex_analyst_messagecortex_search_querycortex_completesemantic_askexplain_resultinvestigate_metric_changePrompt-backed reasoners load prompts from
SNOWFLAKE_PROMPTS_FILEor packaged defaults, so prompt behavior is not hardcoded into the binary.Implementation Notes
control-plane/internal/sources/snowflakethrough the built-in source registry.integrations/snowflakecontracts, manifest, Dockerfile, prompt defaults, docs, and e2e harnesses.202 Acceptedpolling.TO_VARCHAR(..., 'YYYY-MM-DD"T"HH24:MI:SS.FF9')andTO_TIMESTAMP_NTZ(...); this was verified against a real Snowflake account after the first live smoke uncovered Snowflake JSON timestamp serialization behavior.Validation
go test ./internal/sources/snowflake ./internal/sources/allgo test ./...inintegrations/snowflake/nodego test ./...inintegrations/snowflake/e2e/caller-nodego test ./...inintegrations/snowflake/e2e/fake-snowflakenpm run buildincontrol-plane/web/clientquery_readonlysucceeded through AgentFieldSafety / Scope