This document outlines how VersionGuard integrates with existing Team Brain agents, tools, and workflows.
- Integration Goals
- Agent-Specific Integrations
- Workflow Integration Points
- Tool Interoperability
- Communication Patterns
- Deployment Scenarios
- Prevent Time Waste: Catch version incompatibilities BEFORE development starts
- Automated Checking: Integrate with build pipelines and pre-commit hooks
- Team Awareness: Alert relevant agents when issues are detected
- Standardized Reporting: Consistent output format for all consumers
| Metric | Target |
|---|---|
| Time Saved per Session | 30+ minutes |
| False Positive Rate | <5% |
| Integration Adoption | 100% of build agents |
| Detection Accuracy | >95% |
Integration Priority: HIGHEST (requested this tool)
Use Cases:
- Pre-development environment validation
- New package installation checks
- Full-stack project health monitoring
Integration Points:
# IRIS Pre-Session Check
from versionguard import VersionGuard, CompatibilityStatus
from pathlib import Path
def iris_startup_check(project: str) -> bool:
"""Run before starting any development session."""
guard = VersionGuard(Path(project))
guard.scan_project()
guard.check_compatibility()
report = guard.generate_report()
if report.status == CompatibilityStatus.INCOMPATIBLE:
# CRITICAL: Do not proceed
return False
return TrueWorkflow:
- IRIS receives development task
- Run
versionguard scan ./project - If INCOMPATIBLE → Stop, notify FORGE via Synapse
- If COMPATIBLE/WARNING → Proceed with awareness
Integration Priority: HIGH
Use Cases:
- Workspace task integration
- Real-time file monitoring
- Extension recommendations
VS Code Tasks Integration:
{
"version": "2.0.0",
"tasks": [
{
"label": "VersionGuard: Check Compatibility",
"type": "shell",
"command": "python",
"args": ["${workspaceFolder}/tools/versionguard.py", "scan", "."],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
}
]
}Extension Integration:
- Add to workspace recommendations
- Include in debugging prerequisites
Integration Priority: HIGH
Use Cases:
- Build pipeline gating
- Automated dependency audits
- CI/CD integration
Pipeline Integration:
#!/bin/bash
# build.sh - BOLT execution script
echo "[BOLT] Step 1: Version Compatibility Check"
python versionguard.py scan . --json -o .versionguard.json
if grep -q '"status": "incompatible"' .versionguard.json; then
echo "[BOLT] FAILED: Version incompatibilities detected"
python versionguard.py scan .
exit 1
fi
echo "[BOLT] Version check passed"
# Continue with build...Integration Priority: MEDIUM
Use Cases:
- Track "Clean Stack" achievements
- Monitor version hygiene across projects
- Generate compatibility reports for reviews
Trophy Integration:
# CLIO Trophy Check
from versionguard import VersionGuard, CompatibilityStatus
def check_clean_stack_trophy(project_path: str) -> dict:
"""Check if project qualifies for Clean Stack trophy."""
guard = VersionGuard(Path(project_path))
guard.scan_project()
guard.check_compatibility()
report = guard.generate_report()
trophy_data = {
"trophy_id": "CLEAN_STACK",
"eligible": report.status == CompatibilityStatus.COMPATIBLE,
"frontend_deps": len(guard.frontend_deps),
"backend_deps": len(guard.backend_deps),
"issues_found": len(guard.issues)
}
return trophy_dataIntegration Priority: MEDIUM
Use Cases:
- Pre-task validation
- Tool request coordination
- Status reporting
Orchestration Integration:
# FORGE Task Validation
def validate_task_environment(task: dict) -> bool:
"""Validate project environment before assigning task."""
project_path = task.get("project_path")
if project_path:
guard = VersionGuard(Path(project_path))
guard.scan_project()
issues = guard.check_compatibility()
if any(i.severity.value == "critical" for i in issues):
# Block task assignment
return False
return TrueTrigger: Agent starts development session Action: Run compatibility scan Output: Pass/Fail with detailed report
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Agent starts │────▶│ VersionGuard │────▶│ Proceed or │
│ development │ │ scan │ │ Block │
└─────────────────┘ └──────────────────┘ └─────────────────┘
Trigger: Before npm install or pip install
Action: Validate new packages against existing
Output: Compatibility assessment
Trigger: CI/CD pipeline start Action: Automated scan and gate Output: Exit code (0=pass, 1=fail)
Trigger: PR/MR submission Action: Check if dependency changes introduce issues Output: Review comment or annotation
| Tool | Integration Type | Use Case |
|---|---|---|
| SynapseLink | Alert destination | Notify team of issues |
| TokenTracker | Metrics | Track scan costs |
| TaskFlow | Workflow | Pre-task validation |
| DevSnapshot | Context | Include in snapshots |
| ConversationAuditor | Verification | Audit version claims |
from synapselink import quick_send
from versionguard import VersionGuard, CompatibilityStatus
def check_and_alert(project_path: str):
guard = VersionGuard(Path(project_path))
guard.scan_project()
guard.check_compatibility()
report = guard.generate_report()
if report.status == CompatibilityStatus.INCOMPATIBLE:
quick_send(
recipients="FORGE,IRIS,BOLT",
subject="Version Incompatibility Detected",
body=f"Project: {project_path}\n\n{report.summary}\n\n" +
"\n".join(f"- {i.package}: {i.message}" for i in guard.issues),
priority="HIGH"
)from devsnapshot import DevSnapshot
from versionguard import VersionGuard
def create_enhanced_snapshot(project_path: str):
# Create development snapshot
snapshot = DevSnapshot(project_path)
# Add version compatibility data
guard = VersionGuard(Path(project_path))
guard.scan_project()
guard.check_compatibility()
snapshot.add_metadata({
"version_check": guard.generate_report().to_dict()
})
return snapshot.save()Critical Issue Alert:
[VERSIONGUARD] CRITICAL INCOMPATIBILITY DETECTED
Project: /path/to/project
Status: INCOMPATIBLE
Issues:
- socket.io: Socket.IO client v4.7.2 is incompatible with server v5.8.0
Action Required: Resolve before development
Recommendations:
- Use socket.io-client v4 with python-socketio v4
Warning Alert:
[VERSIONGUARD] Warning: Potential Compatibility Issues
Project: /path/to/project
Status: WARNING
Warnings:
- pydantic: Pydantic v2.0.0 - major API changes between versions
Review recommended before proceeding.
[2026-01-24 14:30:00] [VERSIONGUARD] Scanning /project...
[2026-01-24 14:30:01] [VERSIONGUARD] Found 12 frontend, 5 backend deps
[2026-01-24 14:30:01] [VERSIONGUARD] Checking compatibility...
[2026-01-24 14:30:01] [VERSIONGUARD] Status: COMPATIBLE
# Clone VersionGuard to tools directory
cd my-project
git clone https://github.com/DonkRonk17/VersionGuard.git tools/versionguard
# Run check
python tools/versionguard/versionguard.py scan .# Clone to shared location
git clone https://github.com/DonkRonk17/VersionGuard.git /shared/tools/VersionGuard
# Add alias
echo 'alias versionguard="python /shared/tools/VersionGuard/versionguard.py"' >> ~/.bashrc
# Usage
versionguard scan ./any-project# .github/workflows/version-check.yml
- name: Clone VersionGuard
run: git clone https://github.com/DonkRonk17/VersionGuard.git .versionguard
- name: Run Check
run: python .versionguard/versionguard.py scan . --json -o report.json- Deploy VersionGuard to shared tools location
- Configure IRIS pre-development hook
- Add NEXUS VS Code tasks
- Integrate BOLT build pipeline
- Set up SynapseLink alerts
- Train agents on usage
- Document in MEMORY_CORE
VersionGuard - Pre-validate. Don't waste time.