| name | auditing-sibling-projects |
| description | Runs cross-repo contract detection and impact analysis on sibling projects in a workspace. Detects schema, route, command, and config changes, traces the dependency graph, and produces an impact report with severity and recommended actions. |
Auditing Sibling Projects
When to Use
- Before merging changes that affect shared contracts (schemas, routes, configs)
- When a provider repo (e.g., CLI) has changed and consumers (e.g., API) need review
- During sprint planning to assess cross-repo impact
- When the user asks to check impact or audit sibling projects
Prerequisites
- A workspace must be configured (
.paircoder-workspace.yaml exists)
- Projects must declare
consumers/consumes relationships
- Must be run from within a project directory inside the workspace
Workflow
1. Load Workspace
bpsai-pair workspace status
Verify workspace is configured and all projects are discovered.
2. Check Impact
bpsai-pair workspace check-impact
bpsai-pair workspace check-impact --since <commit-hash>
bpsai-pair workspace check-impact --json
Review the impact report:
- Severity: high (schema/route), medium (command), low (config)
- Affected repos: consumers that may need updates
- Recommended actions: specific steps for each affected repo
3. Audit a Specific Sibling
bpsai-pair workspace audit <project-name>
bpsai-pair workspace audit <project-name> --json
bpsai-pair workspace audit <project-name> --fix
4. Review and Act
For each recommended action:
- Open the affected sibling project
- Check the specific files mentioned in the impact report
- Update schemas, routes, or configs as needed
- Run tests in the sibling project
- Create cross-repo tasks if changes are needed
5. Record Results
The audit is automatically recorded in .paircoder-audit.jsonl.
Severity Guide
| Level | Change Types | Action Required |
|---|
| High | Schema, Route | Immediate review of all consumers |
| Medium | Command | Review consumer integrations |
| Low | Config | Check config compatibility |
Example Session
> bpsai-pair workspace check-impact --since HEAD~5
Impact Analysis
Severity: high
Affected repos: api, website
Recommended Actions:
- Update api to match new schema from cli
- Update website API client for route changes in cli
> bpsai-pair workspace audit api
Audit: api
Severity: high
Changes: 2
Recommended Actions:
- Update api to match new schema from cli