Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sidecardata.com/llms.txt

Use this file to discover all available pages before exploring further.

What is the Contract Agent?

The Contract Agent is a GitHub-integrated PR reviewer that automatically analyzes pull requests for data contract changes. When a PR modifies dbt models or schema files, the Contract Agent evaluates the downstream impact and posts a review comment.

Prerequisites

  • A Sidecar account with the Contract Agent feature enabled
  • Account Admin role in Sidecar
  • dbt connected to Sidecar
  • Admin access to the GitHub repository you want to monitor

1. Install the GitHub App

  1. In the Sidecar app, go to the Integrations page.
  2. Find the GitHub integration.
  3. Click Configure Contract Agent in GitHub.
  4. You will be redirected to GitHub to install the Sidecar GitHub App.
  5. Select the organization and repositories you want the Contract Agent to monitor.
  6. Click Install.

2. Verify the Installation

Create a test pull request that modifies a dbt model or schema file. After a few moments:
  1. A check run should appear on the PR.
  2. A review comment should be posted with the Contract Agent’s analysis.
The Contract Agent’s findings are informational — they do not result in a failing GitHub Check.

Managing the Installation

Add or remove repositories

  1. Go to your GitHub organization’s Settings > GitHub Apps.
  2. Find the Sidecar app and click Configure.
  3. Under Repository access, add or remove repositories as needed.

Pause the Contract Agent

To temporarily stop the Contract Agent from reviewing PRs, contact the Sidecar team via your dedicated Slack channel.

Uninstall

  1. Go to your GitHub organization’s Settings > GitHub Apps.
  2. Find the Sidecar app and click Configure.
  3. Click Uninstall.

Troubleshooting

  • Verify the GitHub App is installed on the correct repository.
  • Ensure the PR modifies a dbt model or schema file that Sidecar tracks.
  • Check that the Contract Agent feature is enabled in your Sidecar account.
The Contract Agent determined that the PR does not contain changes relevant to data contracts. No action is needed.
This indicates an internal error. Contact the Sidecar team via your dedicated Slack channel or at support@sidecardata.com.
If the Contract Agent is flagging too many changes, reach out to the Sidecar team to tune the sensitivity for your project.