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
- In the Sidecar app, go to the Integrations page.
- Find the GitHub integration.
- Click Configure Contract Agent in GitHub.
- You will be redirected to GitHub to install the Sidecar GitHub App.
- Select the organization and repositories you want the Contract Agent to monitor.
- Click Install.
2. Verify the Installation
Create a test pull request that modifies a dbt model or schema file. After a few moments:- A check run should appear on the PR.
- 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
- Go to your GitHub organization’s Settings > GitHub Apps.
- Find the Sidecar app and click Configure.
- 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
- Go to your GitHub organization’s Settings > GitHub Apps.
- Find the Sidecar app and click Configure.
- Click Uninstall.
Troubleshooting
Check run not appearing
Check run not appearing
- 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.
Check run shows 'Skipped'
Check run shows 'Skipped'
The Contract Agent determined that the PR does not contain changes relevant to data contracts. No action is needed.
Check run shows 'Failure'
Check run shows 'Failure'
This indicates an internal error. Contact the Sidecar team via your dedicated Slack channel or at support@sidecardata.com.
Reviews are too noisy
Reviews are too noisy
If the Contract Agent is flagging too many changes, reach out to the Sidecar team to tune the sensitivity for your project.