Repository navigation
refactor: define sensor, event, provider and dev server internals natively - #375
Merged
Merged
Conversation
…e native core Sensor runtime shapes and enums, event observations, dev server shapes and provider discovery are native. The authored sensor classes and declarations, the event catalog classes, the Provider base class and the dev server request bodies stay Python, with retry validation and provider naming delegated to native functions. Sensor identity fingerprints are unchanged and pinned by tests. Package initializers no longer carry docstrings. Movable Python drops from 2685 to 1774 lines.
Provider discovery restores sys.path before rendering an import failure, so an exception whose message cannot be rendered no longer leaves the project directory on the path. Errors raised without an explicit cause chain to the exception being handled, as a Python raise does. Sensor identity fingerprints format each part as the previous f-string did.
kvlonge
enabled auto-merge (squash)
November 11, 2026 04:47
Deploying sqltide with
|
| Latest commit: |
87bf186
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5e82ba31.sqltide.pages.dev |
| Branch Preview URL: | https://wip-native-facades.sqltide.pages.dev |
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.
Why
Python in SQLTide should be a thin wrapper: only the documented authored API and third-party glue stay Python.
Changes
AuditCompleted/RunCompleted,Providerand the dev server request bodies stay Python; retry validation and provider naming call native functions.remaining_lines2685→1774. New stays: rule 3sensors/models.py,events/models.py,providers.py; rule 1sensors/types.py; rule 4dev_server/models.py. Removed stay:provider/main/_discover_provider_classes.py.Introspection and subclassing of internal shapes
As in the previous shape releases: native shapes have no
vars()/__dict__, generic field types, annotations and signatures, and passing imports of old modules are gone (no docs or examples use them). Package__doc__is nowNone.Verification
make check-cion the final head; goldens unedited. New regression tests, each passing on 0.65.13 first, pin sensor identity fingerprints with literal values, retry-policy and step validation messages, provider-discovery errors and module eviction, and event dispatch by identity. Against 0.65.13: 6×1500 differential shape cases and 2,003 sensor fingerprints match; 6×400 provider-discovery projects match on outcome, error chain and module state; planted mutations are caught; CLI, sensor and dev-server API outputs are identical after masking.