Skip to main content

Sentinel

Sentinel scans your dbt project for concrete improvements - a model that should be incremental, one that builds more often than anyone reads it, SQL that could be cheaper, or models nobody uses. Each finding comes with the agent's reasoning. You review it, chat about it, and apply it as a pull request.

What it looks for​

Each kind of scan is run by its own focused agent:

ScanWhat it suggests
Convert to incrementalTurns a full-rebuild table model into an incremental one when that is safe and worth it, with the strategy, unique key, and filter.
Reduce build frequencyBuilds a model less often when its readers don't need it that fresh.
SQL optimizationRewrites a model's SQL or config so it produces the same output more cheaply.
Prune unused modelsRemoves a model and everything downstream of it when none of them are really used. It checks exposures, semantic models, and other references first.

Administrators can add their own scan types with the Agent Builder.

Suggestions draw on what Zingle knows about each model: its SQL and lineage, how often and how long it builds, what it costs, and how it is used (from warehouse query history and, if connected, DataHub).

Starting a scan​

  1. Open Sentinel and start a new scan.
  2. Pick the repository and environment.
  3. Pick one or more scan types.
  4. Choose which models to scan:
    • Whole repository, or
    • Select models - pick folders, then trim the list, or
    • Describe criteria - say in plain words which models you mean, for example "the 30 most expensive tables" or "models costing more than $50 a month". Zingle turns it into a list of models you can check before the scan starts. For Prune unused models, the criteria can also say what counts as unused.
  5. Optionally share the scan with your organization.

The scan checks each model and shows its progress live. Models it cannot act on are skipped with a reason, such as "Already incremental" or "Not built on a schedule".

Reviewing suggestions​

Each model ends up in one of these states:

StateMeaning
Needs reviewThe agent suggests a change. Read why, chat, or apply.
Ruled outThe agent checked the model and found nothing worth changing, and says why.
In chatA chat about the suggestion is open.
FixingThe agent is applying the change and opening a pull request.
Fix failedThe change didn't apply. Retry, or ask the agent why.
PR openA pull request with the change is open.
MergedThe pull request was merged.
DismissedYou hid the suggestion.

A suggestion shows the evidence behind it and, where it can be measured, the expected improvement and estimated monthly savings. You can:

  • Apply and create PR - the agent makes the change on a new branch and opens a pull request.
  • Chat - ask questions, push back, or describe the fix you want, then let the agent make it in the chat.
  • Run an impact check - see what the change does to the data before you merge. See Impact check.
  • Dismiss - hide it from the open list.

Nothing changes in your repository until you apply a suggestion, and every change lands as a pull request you review and merge.

Sharing and assigning​

  • A scan is private to the person who started it unless they share it. A shared scan and its findings are visible to everyone in your organization.
  • Each suggestion is assigned to one person, and only they can apply, chat about, or dismiss it. On a shared scan, a colleague can take a suggestion over by applying or dismissing it.
  • A scan can only be shared if every agent it ran is shared with the organization, so a private agent's instructions never become visible to others.