05-team-lead-scenarios.md 99 KB

Team Lead Perspective: OAC User Scenarios

Date: 2026-02-14
Role: Engineering Team Lead (5-10 developers)
Focus: Standardization, reproducibility, collaboration, governance


Executive Summary

As a team lead managing 5-10 developers, OAC needs to solve team coordination problems, not just individual developer productivity. This document outlines critical team workflows, pain points, and must-have features for successful team adoption.

Key Requirements:

  • ๐Ÿ”’ Reproducibility: Same setup across all team members
  • ๐Ÿ“‹ Standardization: Enforce coding standards and agent behavior
  • ๐Ÿ‘ฅ Collaboration: Easy sharing of agents and configurations
  • ๐Ÿ” Visibility: Track who has what installed
  • ๐Ÿš€ Onboarding: Get new hires productive in hours, not days
  • ๐Ÿ›ก๏ธ Governance: Policy enforcement without micromanagement

1. Team Workflows

1.1 Onboarding New Team Members

Scenario: Sarah joins the team on Monday. She needs to be productive by Wednesday.

Current Reality (Without OAC):

# Day 1: Setup chaos
- Clone repo โœ“
- Install dependencies (npm install) โœ“
- Read README... wait, which version of Claude Code?
- Copy .cursorrules from teammate's Slack message
- Manually set up agents... which ones?
- Configure approval gates... how?
- Add custom team agents... where are they?
- Day 1 ends: 50% set up, confused about what's missing

# Day 2: Troubleshooting
- "My agent doesn't have the team's code quality standards"
- "Where do I get the React specialist agent?"
- "Why does my setup look different from John's?"
- Senior dev spends 2 hours helping

# Day 3: Finally productive (maybe)

With OAC (Team Standard Workflow):

# Day 1 Morning: 15 minutes to full setup
cd ~/Projects/company-frontend
oac install --frozen

# OAC reads oac.lock (committed to repo)
๐Ÿ“ฆ Installing Team Configuration
  
  Reading lockfile: oac.lock
  Team: Frontend Team
  Last updated: 2026-02-10 by john@company.com
  
  Components (exact versions):
  โœ“ agent:openagent@0.7.1
  โœ“ agent:frontend-specialist@1.2.0
  โœ“ agent:tester@2.0.1
  โœ“ context:team-standards@1.0.0
  โœ“ context:react-patterns@1.5.0
  โœ“ skill:git-workflow@0.8.0
  
  Total: 6 components
  
? Install for which IDE?
  โœ“ OpenCode
  > Cursor

? Install location?
  > Local (this project: ~/Projects/company-frontend/.opencode)
    Global (~/.config/oac)

โšก Installing...
  โœ“ All components installed
  โœ“ Team standards applied
  โœ“ Approval gates configured
  โœ“ Git hooks installed

โœ… Setup complete!

๐Ÿ“Š Your setup matches team standard (100%)

๐Ÿ” Next steps:
  1. Review team standards: oac context show team-standards
  2. Test your setup: oac doctor
  3. Start coding!
  
๐Ÿ’ก Questions? Ask in #engineering-setup

Result: Sarah is productive in 15 minutes. Zero configuration drift.


1.2 Standardizing Agent Configurations

Scenario: Team lead wants all developers using same agent behavior (approval gates, context loading, etc.)

Challenge: Different developers have different preferences, but team needs consistency

Team Standard Configuration (oac-team.json):

{
  "version": "1.0.0",
  "team": {
    "name": "Frontend Team",
    "owner": "john@company.com",
    "enforced": true
  },
  "components": {
    "agents": [
      {
        "name": "openagent",
        "version": "0.7.1",
        "required": true,
        "config": {
          "behavior": {
            "approvalGates": true,
            "contextLoading": "lazy",
            "delegationThreshold": 4
          },
          "permissions": {
            "bash": "approve",
            "write": "approve",
            "edit": "approve",
            "task": "approve"
          }
        }
      },
      {
        "name": "frontend-specialist",
        "version": "1.2.0",
        "required": true,
        "config": {
          "frameworks": ["react", "nextjs"],
          "typescript": true,
          "testingLibrary": "vitest"
        }
      },
      {
        "name": "tester",
        "version": "2.0.1",
        "required": false,
        "recommendedFor": ["senior-devs"]
      }
    ],
    "contexts": [
      {
        "name": "team-standards",
        "version": "1.0.0",
        "required": true,
        "description": "Company coding standards and best practices"
      },
      {
        "name": "react-patterns",
        "version": "1.5.0",
        "required": true,
        "description": "Approved React patterns for this project"
      }
    ],
    "skills": [
      {
        "name": "git-workflow",
        "version": "0.8.0",
        "required": true,
        "description": "Company git workflow (branch naming, commit style)"
      }
    ]
  },
  "policies": {
    "allowCustomization": true,
    "allowAdditionalAgents": true,
    "enforceVersions": true,
    "requireLockfile": true,
    "auditChanges": true
  },
  "validation": {
    "frequency": "on-install",
    "strictMode": false,
    "warnOnDrift": true
  }
}

Team Lead Workflow:

# 1. Create team configuration
oac team init
? Team name: Frontend Team
? Owner email: john@company.com
? Enforce configuration? (Y/n) y

โœ“ Created: oac-team.json

# 2. Add required components
oac team add agent:openagent@0.7.1 --required
oac team add agent:frontend-specialist@1.2.0 --required
oac team add context:team-standards@1.0.0 --required

# 3. Configure policies
oac team policy set enforceVersions true
oac team policy set allowCustomization true

# 4. Generate lockfile
oac lock
โœ“ Created: oac.lock (based on team config)

# 5. Commit to repo
git add oac-team.json oac.lock
git commit -m "Add team OAC configuration"
git push

# 6. Announce to team
echo "Team: Please run 'oac install --frozen' to sync with team standard"

Developer Experience:

# Developer pulls latest
git pull

# OAC detects team config
โš  Team configuration detected
  
  Your setup differs from team standard:
  - agent:openagent: 0.6.5 (team: 0.7.1) โš 
  - context:team-standards: missing โŒ
  - skill:git-workflow: missing โŒ
  
? Update to team standard? (Y/n) y

โšก Updating to team standard...
  โœ“ agent:openagent: 0.6.5 โ†’ 0.7.1
  โœ“ context:team-standards: installed
  โœ“ skill:git-workflow: installed

โœ… Your setup now matches team standard (100%)

1.3 Sharing Custom Agents/Presets

Scenario: Senior dev creates amazing custom agent, wants to share with team

Without OAC:

  • Copy/paste agent file in Slack
  • Everyone manually copies to their .opencode folder
  • Updates? Manually notify everyone
  • Who has it installed? No idea
  • Version drift inevitable

With OAC:

# Senior dev creates custom agent
cd ~/Projects/company-frontend
oac create agent review-specialist

# ... edits agent prompt ...

# Package for team
oac team share agent:review-specialist
? Share with:
  > Current team (Frontend Team)
    Entire organization
    Specific team members

? Access level:
  > Recommended (team members can install)
    Required (auto-installed for everyone)
    Optional (discoverable in team registry)

โœ“ Shared: agent:review-specialist
โœ“ Added to team registry
โœ“ Slack notification sent to #frontend-team

๐Ÿ“Š Analytics:
  - Available to: 8 team members
  - Auto-installed for: 0 (recommended only)
  
๐Ÿ’ก Team members can install with:
    oac team install agent:review-specialist

Team Member Experience:

# Check team-shared components
oac team browse

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Team Components (Frontend Team)                    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Agents:                                            โ”‚
โ”‚  โœ“ review-specialist (recommended)                  โ”‚
โ”‚    By: john@company.com                             โ”‚
โ”‚    Downloads: 3/8 team members                      โ”‚
โ”‚    "Enhanced code review with team standards"       โ”‚
โ”‚                                                     โ”‚
โ”‚  Contexts:                                          โ”‚
โ”‚  โœ“ team-standards (required)                        โ”‚
โ”‚    By: john@company.com                             โ”‚
โ”‚    Installed: 8/8 team members                      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

# Install recommended agent
oac team install agent:review-specialist
โœ“ Installed: agent:review-specialist@1.0.0
โœ“ Added to your local config

1.4 Enforcing Coding Standards

Scenario: Team lead wants to ensure all code follows team standards

Team Standards Context (.oac/team/contexts/team-standards.md):

# Frontend Team Coding Standards

## React Patterns

### Component Structure
- Use functional components with hooks
- No class components (legacy only)
- Props interface above component
- Export at bottom of file

### State Management
- Use Zustand for global state
- No Redux (legacy projects only)
- Local state with useState for UI state

### Testing
- Vitest for unit tests
- Playwright for e2e tests
- Minimum 80% coverage for new code
- Test files: *.test.tsx

### File Structure

components/ Button/

Button.tsx
Button.test.tsx
Button.stories.tsx
index.ts

## Git Workflow

### Branch Naming
- feature/JIRA-123-short-description
- fix/JIRA-123-short-description
- chore/JIRA-123-short-description

### Commit Messages
- feat: Add user authentication
- fix: Fix login button not working
- chore: Update dependencies

### PR Requirements
- Minimum 1 approval
- All checks must pass
- No merge conflicts
- Linked to Jira ticket

Enforcement Workflow:

# Team lead creates standards context
oac create context team-standards
# ... adds standards content ...

# Make it required
oac team add context:team-standards@1.0.0 --required

# Configure agent to enforce standards
oac team config set agents.openagent.context.required team-standards
oac team config set agents.openagent.strictMode true

# Commit to repo
git add .oac/team/
git commit -m "Add enforced team standards"
git push

Developer Experience:

# Agent automatically loads team standards
> create a new button component

Agent checks team-standards.md:
โœ“ Using functional component (required)
โœ“ Creating test file Button.test.tsx (required)
โœ“ Creating story file Button.stories.tsx (recommended)
โœ“ Props interface above component (required)

Creating:
  components/Button/
    Button.tsx
    Button.test.tsx
    Button.stories.tsx
    index.ts

โœ… Follows team standards

1.5 Managing Updates Across Team

Scenario: New version of openagent released, team lead needs to coordinate update

Without OAC:

  • Manual announcement: "Everyone update to openagent 0.8.0"
  • Some update immediately, some forget
  • Version drift across team
  • Bugs appear on some machines, not others
  • Hard to debug: "Works on my machine"

With OAC:

# Team lead checks for updates
oac team update --check

๐Ÿ“ฆ Updates Available for Frontend Team

agent:openagent
  Current: 0.7.1 (team standard)
  Latest:  0.8.0
  
  Changes:
  - Improved delegation logic
  - Fixed approval gate bug
  - New context loading patterns
  
  Impact: 8/8 team members affected
  Breaking: No

? How would you like to proceed?
  > Review changes
    Update team standard
    Skip this update
    
# Review changes
oac diff agent:openagent 0.7.1 0.8.0
[Shows detailed diff]

# Update team standard
oac team update agent:openagent@0.8.0

โšก Updating team standard...
  โœ“ Updated: agent:openagent 0.7.1 โ†’ 0.8.0
  โœ“ Updated: oac.lock
  โœ“ Updated: oac-team.json

? Notify team?
  > Yes, send Slack notification
    No, silent update
    
โœ“ Slack notification sent to #frontend-team

๐Ÿ“Š Update Status:
  - Team standard: 0.8.0
  - Team members on 0.8.0: 0/8
  - Team members on 0.7.1: 8/8
  
๐Ÿ’ก Track adoption: oac team status

Team Member Experience:

# Pull latest code (next day)
git pull

โš  Team standard updated
  
  agent:openagent: 0.7.1 โ†’ 0.8.0 (required)
  
  Changes:
  - Improved delegation logic
  - Fixed approval gate bug
  
? Update now? (Y/n) y

โšก Updating...
  โœ“ agent:openagent: 0.7.1 โ†’ 0.8.0
  โœ“ Backup saved: .oac/backups/openagent-0.7.1.md

โœ… Up to date with team standard

# Team lead checks adoption
oac team status

๐Ÿ“Š Team Configuration Status
  Team: Frontend Team
  Members: 8
  
  agent:openagent@0.8.0 (required):
    โœ“ john@company.com (you)
    โœ“ sarah@company.com
    โœ“ mike@company.com
    โณ jane@company.com (pending)
    โณ bob@company.com (pending)
    โŒ alice@company.com (offline)
    โŒ tom@company.com (on vacation)
    โŒ lisa@company.com (needs update)
  
  Adoption: 3/8 (37.5%)
  
๐Ÿ’ก Send reminder: oac team remind agent:openagent

2. Key Experiences

2.1 Setting Up Team Standards (First Time)

Persona: John, Senior Frontend Lead, managing 8 developers

Goal: Establish team standards for new React project

Workflow:

# Week 1: Project kickoff
cd ~/Projects/new-frontend
git init
npm init

# Initialize OAC for team
oac team init

Welcome to OAC Team Setup! ๐Ÿ‘ฅ

? Team name: Frontend Team
? Owner (your email): john@company.com
? Team size: 
  > Small (2-10 developers)
    Medium (11-50 developers)
    Large (50+ developers)

? Primary tech stack:
  โœ“ React
  โœ“ TypeScript
  โœ“ Node.js
  โ˜ Python

? Strictness level:
  > Balanced (enforce core standards, allow customization)
    Strict (enforce all standards, minimal customization)
    Flexible (recommend standards, full customization)

โœ“ Created team configuration

๐Ÿ“ฆ Recommended setup for React + TypeScript team:
  
  Core Agents (required):
  - openagent@0.7.1
  - frontend-specialist@1.2.0
  
  Specialists (recommended):
  - tester@2.0.1
  - reviewer@1.8.0
  
  Contexts (required):
  - core/standards/code-quality
  - development/react-patterns
  
  Skills (recommended):
  - git-workflow
  - testing-workflow

? Install recommended setup? (Y/n) y

โšก Installing team setup...
  โœ“ Installed 4 agents
  โœ“ Installed 2 contexts
  โœ“ Installed 2 skills
  โœ“ Generated oac.lock
  โœ“ Generated oac-team.json

โœ… Team setup complete!

๐Ÿ” Next steps:
  1. Review team config: oac team config show
  2. Customize standards: oac context edit team-standards
  3. Commit to repo: git add .oac/ oac* && git commit
  4. Invite team: Share repo URL
  
๐Ÿ’ก Team members run: oac install --frozen

Customization:

# Customize team standards
oac context edit team-standards
[Opens in editor]

# Configure policies
oac team policy set enforceVersions true
oac team policy set allowCustomization true
oac team policy set auditChanges true

# Set up approval gates
oac team config set agents.openagent.permissions.bash approve
oac team config set agents.openagent.permissions.write approve

# Commit team configuration
git add .oac/ oac-team.json oac.lock
git commit -m "Add team OAC configuration

- Team: Frontend Team
- Core agents: openagent, frontend-specialist
- Required contexts: team-standards, react-patterns
- Policies: enforce versions, allow customization
"
git push origin main

# Announce to team
echo "Team setup complete! Clone repo and run 'oac install --frozen'"

2.2 Ensuring Everyone Has Same Setup

Scenario: New sprint starts, team lead wants to verify everyone is in sync

Team Lead Workflow:

# Check team configuration status
oac team status --detailed

๐Ÿ“Š Frontend Team Configuration Status
  Updated: 2026-02-10 10:30 AM
  Members: 8
  
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Component           โ”‚ Required โ”‚ Version    โ”‚ Adoption โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ openagent           โ”‚ Yes      โ”‚ 0.7.1      โ”‚ 8/8 โœ“    โ”‚
โ”‚ frontend-specialist โ”‚ Yes      โ”‚ 1.2.0      โ”‚ 7/8 โš     โ”‚
โ”‚ tester              โ”‚ No       โ”‚ 2.0.1      โ”‚ 5/8      โ”‚
โ”‚ team-standards      โ”‚ Yes      โ”‚ 1.0.0      โ”‚ 8/8 โœ“    โ”‚
โ”‚ react-patterns      โ”‚ Yes      โ”‚ 1.5.0      โ”‚ 7/8 โš     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โš  Issues:
  - bob@company.com: Missing frontend-specialist@1.2.0
  - bob@company.com: Missing react-patterns@1.5.0

? Actions:
  > Send reminder to bob@company.com
    Generate compliance report
    View detailed per-member status
    
# View per-member status
oac team members

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Member             โ”‚ Status   โ”‚ Compliance โ”‚ Last Sync  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ john@company.com   โ”‚ โœ“ Active โ”‚ 100%       โ”‚ Today      โ”‚
โ”‚ sarah@company.com  โ”‚ โœ“ Active โ”‚ 100%       โ”‚ Today      โ”‚
โ”‚ mike@company.com   โ”‚ โœ“ Active โ”‚ 100%       โ”‚ Yesterday  โ”‚
โ”‚ jane@company.com   โ”‚ โœ“ Active โ”‚ 100%       โ”‚ Today      โ”‚
โ”‚ bob@company.com    โ”‚ โš  Drift  โ”‚ 75%        โ”‚ 3 days ago โ”‚
โ”‚ alice@company.com  โ”‚ โœ“ Active โ”‚ 100%       โ”‚ Today      โ”‚
โ”‚ tom@company.com    โ”‚ โณ Away  โ”‚ 100%       โ”‚ Last week  โ”‚
โ”‚ lisa@company.com   โ”‚ โœ“ Active โ”‚ 100%       โ”‚ Today      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

# Send reminder to specific member
oac team remind bob@company.com

๐Ÿ“ง Reminder sent to bob@company.com

Subject: Update your OAC setup (Frontend Team)
  
Missing components:
- frontend-specialist@1.2.0 (required)
- react-patterns@1.5.0 (required)

Please run: oac install --frozen

# Generate compliance report
oac team report --export team-compliance.md

โœ“ Generated: team-compliance.md

๐Ÿ“„ Team Compliance Report
  Date: 2026-02-14
  Team: Frontend Team
  
  Overall Compliance: 93.75% (7.5/8 members)
  
  Required Components:
  - All members have: openagent, team-standards
  - Missing from 1 member: frontend-specialist, react-patterns
  
  Recommended Actions:
  1. Follow up with bob@company.com
  2. Consider reminder automation
  
  Compliance Trend:
  - Last week: 87.5%
  - This week: 93.75%
  - Change: +6.25% โœ“

Developer Self-Check:

# Developer checks their own compliance
oac team validate

๐Ÿ“Š Validating your setup against team standard...

Team: Frontend Team
Your compliance: 100% โœ“

Required components:
โœ“ openagent@0.7.1
โœ“ frontend-specialist@1.2.0
โœ“ team-standards@1.0.0
โœ“ react-patterns@1.5.0

Recommended components:
โœ“ tester@2.0.1
โœ“ git-workflow@0.8.0

โœ… Your setup matches team standard

# Developer has drift
oac team validate

๐Ÿ“Š Validating your setup against team standard...

Team: Frontend Team
Your compliance: 75% โš 

Required components:
โœ“ openagent@0.7.1
โŒ frontend-specialist: missing (required)
โœ“ team-standards@1.0.0
โŒ react-patterns: missing (required)

? Fix issues now? (Y/n) y

โšก Installing missing components...
  โœ“ frontend-specialist@1.2.0
  โœ“ react-patterns@1.5.0

โœ… Your setup now matches team standard (100%)

2.3 Reviewing Team's Agent Usage

Scenario: Team lead wants insights into how team uses agents

Analytics Dashboard:

oac team analytics

๐Ÿ“Š Frontend Team Analytics
  Period: Last 30 days
  Members: 8
  
Agent Usage:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Agent              โ”‚ Users     โ”‚ Sessions โ”‚ Avg/Day    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ openagent          โ”‚ 8/8 (100%)โ”‚ 2,340    โ”‚ 9.75       โ”‚
โ”‚ frontend-specialistโ”‚ 7/8 (87%) โ”‚ 1,890    โ”‚ 7.88       โ”‚
โ”‚ tester             โ”‚ 5/8 (62%) โ”‚ 450      โ”‚ 1.88       โ”‚
โ”‚ reviewer           โ”‚ 3/8 (37%) โ”‚ 210      โ”‚ 0.88       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Most Used Features:
1. Code generation (frontend-specialist): 890 sessions
2. Test writing (tester): 340 sessions
3. Code review (reviewer): 210 sessions
4. Refactoring (openagent): 180 sessions

Context Access:
- team-standards: 1,200 loads
- react-patterns: 980 loads
- api-docs: 450 loads

Insights:
๐Ÿ’ก reviewer is underused (37% adoption)
   โ†’ Consider team training or review workflow update
   
๐Ÿ’ก tester usage spiking (+40% this week)
   โ†’ Positive trend, sprint deadline approaching
   
๐Ÿ’ก frontend-specialist high usage (87%)
   โ†’ Good adoption, consider advanced features

? Actions:
  > Export detailed report
    Schedule weekly digest
    View per-member analytics

Per-Member Analytics:

oac team analytics --member sarah@company.com

๐Ÿ“Š Analytics: sarah@company.com
  Period: Last 30 days
  
Activity Summary:
- Total sessions: 342
- Agents used: 4
- Most active: Weekdays 9am-5pm
- Avg sessions/day: 11.4

Agent Breakdown:
1. frontend-specialist: 180 sessions (52%)
2. openagent: 120 sessions (35%)
3. tester: 30 sessions (9%)
4. reviewer: 12 sessions (4%)

Top Actions:
- Component creation: 45 times
- Test writing: 30 times
- Code refactoring: 25 times
- Bug fixing: 20 times

Productivity Metrics:
- Code commits: 87
- PRs created: 23
- Tests added: 156
- Reviews given: 18

Comparison to team average:
- Sessions: +15% above average
- Test coverage: +10% above average
- PR activity: Average

2.4 Handling Version Conflicts

Scenario: Project uses openagent@0.7.1 but new dependency requires openagent@0.8.0

Conflict Detection:

# Developer tries to add new agent
oac add agent:new-specialist

โš  Version Conflict Detected

Package: agent:new-specialist
Requires: agent:openagent@^0.8.0

Your setup:
  agent:openagent@0.7.1 (from team standard)

Team standard:
  agent:openagent@0.7.1 (locked)

? How would you like to resolve?
  > Request team update (contact team lead)
    Use compatible version (find alternative)
    Override locally (breaks team standard)
    Cancel installation

# Option 1: Request team update
? Request team update
  
๐Ÿ“ง Request sent to team lead (john@company.com)

Subject: Version conflict resolution needed
  
Developer: sarah@company.com
Requested component: agent:new-specialist
Conflict: Requires openagent@0.8.0, team has 0.7.1

Details:
- new-specialist requires openagent@^0.8.0
- Team is on openagent@0.7.1
- Suggested action: Update team standard

# Team lead receives request
oac team requests

๐Ÿ“ฌ Team Requests (1 pending)

1. Version Conflict: openagent@0.7.1 โ†’ @0.8.0
   Requested by: sarah@company.com
   Reason: Need agent:new-specialist
   Impact: All team members (8)
   Breaking: No
   
? Action:
  > Approve and update team standard
    Check for team impact first
    Request more info
    Reject (explain why)

# Approve update
oac team approve-request 1

โšก Approving request...
  โœ“ Updated team standard: openagent@0.8.0
  โœ“ Updated oac.lock
  โœ“ Sent notifications to team

๐Ÿ“ง Notifications sent:
  - sarah@company.com: Approved, you can now install
  - Team members (7): Team standard updated, please sync

# Sarah gets notified
โœ“ Your request was approved!

agent:openagent@0.7.1 โ†’ 0.8.0 (team standard updated)

? Install now? (Y/n) y

โšก Updating...
  โœ“ openagent: 0.7.1 โ†’ 0.8.0
  โœ“ new-specialist: installed

โœ… Installation complete

2.5 Migrating to New Versions

Scenario: Team needs to migrate from v0.7.x to v1.0.0 (breaking changes)

Migration Workflow:

# Team lead checks migration path
oac team migrate --check

๐Ÿ“ฆ Migration Available: v0.7.1 โ†’ v1.0.0

Breaking Changes:
โš  Approval gates: Configuration format changed
โš  Context resolution: New priority system
โš  Preset system: New metadata format

Migration Steps:
1. Backup current setup
2. Update configuration files
3. Test with subset of team
4. Roll out to full team

Estimated time: 2-4 hours
Estimated effort: Medium

? View detailed migration guide? (Y/n) y

# View migration guide
๐Ÿ“š Migration Guide: v0.7.1 โ†’ v1.0.0

### Step 1: Backup

bash oac team backup

Creates: .oac/backups/team-backup-2026-02-14.tar.gz


### Step 2: Create Migration Branch

bash git checkout -b oac-v1-migration


### Step 3: Run Migration Tool

bash oac team migrate --to v1.0.0

โšก Running migration... โœ“ Backed up current config โœ“ Updated configuration format โœ“ Migrated approval gates config โœ“ Updated context resolution โœ“ Migrated presets โœ“ Generated new lockfile

โš  Manual steps required:

  1. Review updated configs: .oac/team/
  2. Test locally: oac doctor
  3. Update README with new instructions

? Commit changes? (Y/n) y

โœ“ Changes committed


### Step 4: Test with Pilot Group

bash

Team lead designates pilot group

oac team pilot add sarah@company.com mike@company.com

๐Ÿ“ข Announcement: Pilot Group

Testing v1.0.0 migration Pilot members:

  • sarah@company.com
  • mike@company.com

Please:

  1. git checkout oac-v1-migration
  2. oac install --frozen
  3. Test for 1 day
  4. Report issues: #oac-migration

? Send notifications? (Y/n) y

Pilot members test

cd ~/Projects/company-frontend git checkout oac-v1-migration oac install --frozen

โš  Migration Detected: v0.7.1 โ†’ v1.0.0

Breaking changes:

  • Approval gates config updated
  • Context resolution changed
  • Presets migrated

? Install v1.0.0? (Y/n) y

โšก Installing... โœ“ All components migrated โœ“ Configuration updated

โš  Action required:

  • Test approval gates behavior
  • Verify context loading
  • Check presets

๐Ÿ’ก Report issues: #oac-migration

After 1 day of testing

oac team pilot report

๐Ÿ“Š Pilot Test Results Duration: 1 day Participants: 2/2

Feedback: โœ“ sarah@company.com: No issues, works great โœ“ mike@company.com: No issues, approval gates clearer

Issues: 0 Recommendation: Ready for full rollout

? Proceed with full team migration? (Y/n) y


### Step 5: Full Team Rollout

bash

Merge migration branch

git checkout main git merge oac-v1-migration git push origin main

Announce to team

oac team announce

๐Ÿ“ข Team Update: OAC v1.0.0 Migration

What: Upgrading to OAC v1.0.0 When: Now Impact: All team members

Breaking changes:

  • Approval gates config (automatically migrated)
  • Context resolution (automatically migrated)
  • Presets (automatically migrated)

Action required:

  1. git pull
  2. oac install --frozen
  3. Test your workflow
  4. Report issues: #oac-migration

Tested by: sarah@company.com, mike@company.com Estimated time: 5 minutes

? Send to team? (Y/n) y

โœ“ Sent to #frontend-team โœ“ Email sent to all members

Track migration progress

oac team status

๐Ÿ“Š Migration Status: v0.7.1 โ†’ v1.0.0

Completed: 2/8 (25%) In Progress: 3/8 (37.5%) Pending: 3/8 (37.5%)

Timeline:

  • Hour 1: 2 completed (sarah, mike)
  • Hour 2: 3 in progress (jane, bob, alice)
  • Pending: tom, lisa, you

Issues: 0

๐Ÿ’ก Migration going smoothly


---

## 3. Pain Points & Solutions

### 3.1 Developers Using Different Versions

**Pain Point**:
> "Half the team is on openagent 0.7.1, half on 0.8.0. Behavior is inconsistent. Hard to debug issues."

**Root Causes**:
- No enforcement mechanism
- Developers update independently
- No visibility into team versions
- Updates happen out of sync

**Solution 1: Version Locking**

bash

Team lead enables strict version enforcement

oac team policy set enforceVersions strict

oac-team.json

{ "policies": {

"enforceVersions": "strict",  // "strict" | "warn" | "off"
"allowOverrides": false

} }

Developer tries to install different version

oac add agent:openagent@0.8.0

โŒ Version Enforcement Error

Team standard requires: agent:openagent@0.7.1 You requested: agent:openagent@0.8.0

Policy: Strict (no overrides allowed)

? Actions:

Use team version (0.7.1)

Request version update from team lead
Cancel

**Solution 2: Automatic Drift Detection**

bash

Enable drift detection

oac team policy set driftDetection enabled

Developer's setup drifts

(git pull doesn't update oac)

On next oac command:

โš  Configuration Drift Detected

Your setup differs from team standard:

  • agent:openagent: 0.6.5 (team: 0.7.1) โš 

This may cause inconsistent behavior.

? Sync with team standard? (Y/n) y


**Solution 3: Pre-commit Hooks**

bash

Team lead enables git hooks

oac team hooks install

โœ“ Installed git hooks:

  • pre-commit: Check OAC compliance
  • pre-push: Validate team standard

Developer commits code with drift

git commit -m "Add feature"

โš  OAC Compliance Check

Your setup differs from team standard:

  • agent:openagent: 0.6.5 (team: 0.7.1) โš 

? How would you like to proceed?

Fix now (sync with team)

Commit anyway (not recommended)
Cancel commit

---

### 3.2 Customizations Breaking Team Standards

**Pain Point**:
> "Bob customized his agent and now he's getting different code suggestions. His PRs don't match team style."

**Root Causes**:
- No visibility into customizations
- Developer doesn't realize impact
- No enforcement of required contexts

**Solution 1: Customization Visibility**

bash

Team lead can see customizations

oac team members --show-customizations

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Member โ”‚ Compliance โ”‚ Customizations โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ john@company.com โ”‚ 100% โ”‚ None โ”‚ โ”‚ sarah@company.com โ”‚ 100% โ”‚ None โ”‚ โ”‚ bob@company.com โ”‚ 90% โš  โ”‚ 2 presets, 1 overrideโ”‚ โ”‚ mike@company.com โ”‚ 100% โ”‚ 1 preset (approved) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

View Bob's customizations

oac team member bob@company.com --customizations

๐Ÿ“Š Customizations: bob@company.com

Presets:

  • custom-openagent (overrides team agent)
  • custom-tester (adds extra behavior)

Context Overrides:

  • team-standards (local override) โš  Warning: Overrides required context

Impact:

  • May generate code not matching team standards
  • Test patterns may differ
  • PR reviews may flag inconsistencies

? Actions:

Discuss with bob@company.com

Request alignment with team standards
Approve customizations (if beneficial)

**Solution 2: Required vs Optional Contexts**

bash

Team lead marks contexts as required (cannot be overridden)

oac team add context:team-standards@1.0.0 --required --locked

Bob tries to override

cp team-standards.md .oac/context/override/team-standards.md

Agent tries to load context

โš  Required Context Override Blocked

Context: team-standards Status: Required and locked by team lead

You cannot override this context. Reason: Team consistency (enforced)

Using team version: .oac/team/context/team-standards.md

๐Ÿ’ก To suggest changes:

oac team context propose-change team-standards

**Solution 3: Preset Approval Workflow**

bash

Enable preset approval requirement

oac team policy set requirePresetApproval true

Bob creates preset

oac customize agent:openagent --name my-openagent

โœ“ Created preset: my-openagent

โš  Team Policy: Preset approval required

Your preset has been created locally but requires team lead approval to use.

? Submit for approval? (Y/n) y

๐Ÿ“ง Approval request sent to john@company.com

Team lead reviews

oac team approvals

๐Ÿ“ฌ Pending Approvals (1)

  1. Preset: my-openagent By: bob@company.com Base: agent:openagent Changes:
    • Modified approval gates (auto-approve reads)
    • Changed delegation threshold (4 โ†’ 6)

Impact: Individual only (preset is personal) Risk: Low

? Action:

Approve for bob@company.com only

Approve and recommend to team
Request changes
Reject

Approved

โœ“ Approved preset: my-openagent (bob@company.com only)

๐Ÿ“ง bob@company.com notified


---

### 3.3 Hard to Track What's Installed Where

**Pain Point**:
> "I have no idea what each team member has installed. Debugging is a nightmare."

**Solution: Team Dashboard**

bash

Team lead views comprehensive dashboard

oac team dashboard

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Frontend Team Dashboard โ•‘ โ•‘ Updated: 2026-02-14 3:45 PM โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Team Health: 95% โœ“

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Component Adoption โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ Required: โ”‚ โ”‚ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100% openagent@0.7.1 โ”‚ โ”‚ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘ 95% frontend-specialist โ”‚ โ”‚ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100% team-standards โ”‚ โ”‚ โ”‚ โ”‚ Recommended: โ”‚ โ”‚ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 62% tester โ”‚ โ”‚ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 37% reviewer โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Member Status (8 total) โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โœ“ Compliant (100%): 6 members โ”‚ โ”‚ โš  Minor drift (90-99%): 1 member (bob) โ”‚ โ”‚ โŒ Major drift (<90%): 1 member (alice, offline) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Recent Activity (24 hours) โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โ€ข sarah synced with team standard โ”‚ โ”‚ โ€ข mike installed reviewer@1.8.0 โ”‚ โ”‚ โ€ข bob created custom preset (pending approval) โ”‚ โ”‚ โ€ข jane updated to latest team config โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Alerts (2) โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โš  bob@company.com has configuration drift โ”‚ โ”‚ โš  alice@company.com offline 3+ days โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

? Actions:

View detailed member status

Send reminders
Generate report
Schedule weekly digest

**Solution: Installation Registry**

bash

Automatic installation tracking

Every install is logged to team registry

oac team registry

๐Ÿ“Š Installation Registry (Last 30 days)

2026-02-14 10:30 AM sarah@company.com installed frontend-specialist@1.2.0 Location: ~/Projects/company-frontend/.opencode

2026-02-14 09:15 AM mike@company.com updated openagent@0.7.0 โ†’ 0.7.1 Location: ~/Projects/company-frontend/.opencode

2026-02-13 4:20 PM bob@company.com created preset:my-openagent Status: Pending approval

2026-02-13 2:10 PM jane@company.com installed team standard Components: 6 (all required)

Filter by member

oac team registry --member bob@company.com

Filter by component

oac team registry --component openagent

Export audit log

oac team registry --export audit-log.csv


---

### 3.4 Updates Breaking Team Workflows

**Pain Point**:
> "We updated openagent and everyone's workflow broke. Spent 2 days debugging."

**Solution 1: Staged Rollouts**

bash

Team lead enables staged rollouts

oac team policy set rolloutStrategy staged

Update available

oac team update agent:openagent@0.8.0

? Rollout strategy:

Staged (pilot โ†’ gradual โ†’ full)

Immediate (all members now)
Scheduled (pick date/time)

Staged rollout

โšก Starting staged rollout: openagent@0.8.0

Stage 1: Pilot (2 members) Pilot members:

  • sarah@company.com
  • mike@company.com

Duration: 24 hours Start: Now

? Proceed? (Y/n) y

โœ“ Pilot stage started ๐Ÿ“ง Notifications sent to pilot members

24 hours later: Check pilot results

oac team rollout status

๐Ÿ“Š Rollout Status: openagent@0.8.0

Stage 1: Pilot (Complete) โœ“ Duration: 24 hours Success: 2/2 members Issues: 0 Feedback: Positive

? Proceed to Stage 2 (Gradual)?

Yes, continue (50% of team)

No, pause (investigate)
Rollback (revert pilot)

Stage 2: Gradual

Stage 2: Gradual (50% of team) Members: 4 more (sarah, mike already on 0.8.0) Duration: 48 hours

โœ“ Stage 2 started

48 hours later: Final stage

Stage 3: Full (remaining 2 members) Final members: bob, alice

โœ“ Rollout complete (100%)


**Solution 2: Automatic Rollback**

bash

Team lead enables automatic rollback

oac team policy set autoRollback true oac team policy set rollbackThreshold 30 # 30% failure rate

Update deployed

oac team update agent:openagent@0.8.0 --rollout staged

Problems detected

โš  Rollback Triggered

Component: agent:openagent@0.8.0 Reason: 40% failure rate (threshold: 30%)

Issues reported:

  • sarah@company.com: Approval gates not working
  • mike@company.com: Context loading errors
  • jane@company.com: Delegation failed

โšก Rolling back to openagent@0.7.1...

โœ“ Rollback complete (all members) ๐Ÿ“ง Notifications sent ๐Ÿ” Issue report created: .oac/issues/rollback-2026-02-14.md

๐Ÿ’ก Review issues before next update attempt


**Solution 3: Dry Run / Preview**

bash

Before updating team standard

oac team update --dry-run agent:openagent@0.8.0

๐Ÿ” Dry Run: Update Preview

Component: agent:openagent Current: 0.7.1 (team standard) Target: 0.8.0

Changes: โœ“ Improved delegation logic โœ“ Fixed approval gate bug โš  Breaking: Context loading API changed

Impact Analysis: Affected members: 8/8 Estimated impact: Medium Breaking changes: Yes Migration required: Yes

Compatibility: โœ“ Compatible with: frontend-specialist@1.2.0 โœ“ Compatible with: tester@2.0.1 โš  May conflict with: custom-presets (1 member)

Risk Assessment: Medium

  • Breaking changes require testing
  • Bob's custom preset may need updates
  • Migration script available

Recommendations:

  1. Test in pilot first
  2. Review Bob's custom preset
  3. Schedule update during low-activity period
  4. Have rollback plan ready

? Proceed with actual update?

No, just previewing

Yes, start pilot rollout

---

### 3.5 Onboarding Takes Too Long

**Pain Point**:
> "New developers spend half a day just setting up their environment. Then they still ask questions."

**Solution: One-Command Onboarding**

bash

New developer (Sarah) - Day 1, Hour 1

cd ~/Projects git clone git@github.com:company/frontend-app.git cd frontend-app

Run single onboarding command

oac onboard

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Welcome to Frontend Team! ๐Ÿ‘‹ โ•‘ โ•‘ Let's get you set up in 5 minutes. โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ” Detecting configuration... โœ“ Found team config: oac-team.json โœ“ Found lockfile: oac.lock โœ“ Team: Frontend Team โœ“ Owner: john@company.com

๐Ÿ“ฆ Team Configuration:

  • 4 agents (2 required, 2 recommended)
  • 2 contexts (required)
  • 2 skills (recommended)
  • Approval gates: Enabled
  • IDE: OpenCode (detected .opencode/)

? Confirm installation? (Y/n) y

โšก Installing team configuration... โœ“ agent:openagent@0.7.1 โœ“ agent:frontend-specialist@1.2.0 โœ“ agent:tester@2.0.1 (recommended) โœ“ agent:reviewer@1.8.0 (recommended) โœ“ context:team-standards@1.0.0 โœ“ context:react-patterns@1.5.0 โœ“ skill:git-workflow@0.8.0 โœ“ skill:testing-workflow@0.5.0

โœ… Installation complete! (4 minutes 32 seconds)

๐Ÿ“Š Setup verification... โœ“ All required components installed โœ“ Team standards loaded โœ“ Approval gates configured โœ“ Git hooks installed โœ“ IDE configured

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ You're all set! ๐ŸŽ‰ โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“š Next Steps:

  1. Review team standards: oac context show team-standards
  2. Read React patterns: oac context show react-patterns
  3. Test your setup: oac doctor
  4. Start coding: Try creating a component!

๐Ÿ’ก Resources:

๐ŸŽฏ Your First Task: Review this PR for practice: https://github.com/company/frontend-app/pull/123

Setup is complete - Sarah is ready to code!

Total time: 5 minutes (vs 4 hours previously)


**Solution: Interactive Tutorial**

bash

After onboarding, optional tutorial

oac tutorial

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ OAC Team Tutorial (5 minutes) โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Let's learn the basics of working with OAC in a team.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Lesson 1: Your Team Configuration

Your team has a shared configuration (oac-team.json). This ensures everyone has the same agents and standards.

Try this: $ oac team validate

[User runs command]

โœ“ Great! You're 100% compliant with team standards.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Lesson 2: Team Standards

Your team has coding standards in: team-standards

Try viewing them: $ oac context show team-standards

[Shows team standards]

๐Ÿ’ก Agents automatically follow these standards when generating code.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Lesson 3: Staying In Sync

Before each sprint, sync with team standard: $ oac team sync

Try it now: $ oac team sync

โœ“ Already in sync! You're good to go.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Lesson 4: Getting Help

If you need help:

  • Team commands: oac team --help
  • Ask teammates: #frontend-team
  • Team lead: john@company.com

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Tutorial Complete! ๐ŸŽ“ โ•‘ โ•‘ You're ready to work with the team. โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•


---

## 4. Edge Cases

### 4.1 Team Member Goes Rogue (Custom Setup)

**Scenario**: Bob decides to completely customize his setup, ignoring team standards

**Detection**:

bash

Bob's setup

oac list

Installed Components: โœ“ custom-agent (personal, not from team) โœ“ openagent@0.5.0 (old version, team: 0.7.1) โš  frontend-specialist: missing (required by team) โœ“ react-patterns (overridden with custom version)

Team lead notices in dashboard

oac team status

โš  Compliance Alert: bob@company.com

Compliance: 40% โŒ (critical)

Issues:

  • Using old version: openagent@0.5.0 (team: 0.7.1)
  • Missing required: frontend-specialist
  • Unauthorized override: react-patterns
  • Unapproved custom agent: custom-agent

Impact:

  • Code may not follow team standards
  • PRs may fail review
  • Potential bugs

? Actions:

Send compliance alert to bob@company.com

Schedule 1-on-1 discussion
Enforce team standard (reset bob's setup)

**Resolution Workflow**:

bash

Team lead sends alert

oac team alert bob@company.com

๐Ÿ“ง Compliance Alert Sent

To: bob@company.com Subject: OAC Setup Non-Compliant

Your OAC setup does not match team standards.

Issues:

  • Old version: openagent@0.5.0 (team: 0.7.1)
  • Missing: frontend-specialist (required)
  • Unauthorized override: react-patterns

Impact: Your code may not match team standards

Please run: oac team sync

Questions? Contact john@company.com

Bob receives alert and syncs

oac team sync

โš  Configuration Compliance Issue

Your setup differs significantly from team standard.

Compliance: 40% โŒ

Required actions: โœ“ Update openagent: 0.5.0 โ†’ 0.7.1 โœ“ Install frontend-specialist@1.2.0 โœ“ Revert react-patterns override

Optional actions: โš  Remove custom-agent (not approved)

? Sync with team standard? (Y/n) y

โšก Syncing... โœ“ Backed up your custom setup โœ“ Updated to team standard โœ“ Removed unapproved customizations

โœ… You're now compliant (100%)

๐Ÿ’ฌ Your custom setup was backed up to:

.oac/backups/custom-setup-2026-02-14/

๐Ÿ’ก To use custom agents, request approval:

oac team request-approval custom-agent

**Enforcement Options**:

bash

Team lead can enforce different levels

oac team policy set enforcementLevel flexible # warn only oac team policy set enforcementLevel balanced # warn + block critical oac team policy set enforcementLevel strict # enforce all

Strict mode example

Bob tries to install old version

oac add agent:openagent@0.5.0

โŒ Enforcement Policy Violation

Policy: Strict enforcement Team requires: agent:openagent@0.7.1 You requested: agent:openagent@0.5.0

This action is blocked.

? Actions:

Use team version (0.7.1)

Request exception from team lead
Learn more about team policy

---

### 4.2 Monorepo with Multiple Projects

**Scenario**: Monorepo with 5 projects, each needs different agent setups

**Structure**:

company-monorepo/ โ”œโ”€โ”€ apps/ โ”‚ โ”œโ”€โ”€ frontend/ # React frontend โ”‚ โ”œโ”€โ”€ admin/ # React admin panel โ”‚ โ”œโ”€โ”€ mobile/ # React Native โ”‚ โ””โ”€โ”€ docs/ # Documentation site โ”œโ”€โ”€ packages/ โ”‚ โ”œโ”€โ”€ ui-components/ # Shared components โ”‚ โ”œโ”€โ”€ api-client/ # API client โ”‚ โ””โ”€โ”€ utils/ # Utilities โ”œโ”€โ”€ oac-workspace.json # Workspace config โ””โ”€โ”€ package.json


**Workspace Configuration** (`oac-workspace.json`):

json { "version": "1.0.0", "workspace": {

"name": "Company Monorepo",
"owner": "platform-team@company.com",
"root": "."

}, "projects": {

"apps/frontend": {
  "profile": "frontend-react",
  "team": "Frontend Team",
  "agents": ["openagent", "frontend-specialist", "tester"],
  "contexts": ["team-standards", "react-patterns"]
},
"apps/admin": {
  "profile": "frontend-react",
  "team": "Frontend Team",
  "agents": ["openagent", "frontend-specialist"],
  "contexts": ["team-standards", "react-patterns", "admin-patterns"]
},
"apps/mobile": {
  "profile": "react-native",
  "team": "Mobile Team",
  "agents": ["openagent", "mobile-specialist", "tester"],
  "contexts": ["team-standards", "mobile-patterns"]
},
"apps/docs": {
  "profile": "documentation",
  "team": "Platform Team",
  "agents": ["openagent", "technical-writer"],
  "contexts": ["team-standards", "docs-style"]
},
"packages/*": {
  "profile": "library",
  "team": "Platform Team",
  "agents": ["openagent", "library-specialist"],
  "contexts": ["team-standards", "library-patterns"]
}

}, "shared": {

"contexts": [".oac/shared/contexts"],
"config": ".oac/shared/config.json"

}, "policies": {

"inheritShared": true,
"allowProjectOverrides": true,
"enforceVersions": true

} }


**Developer Workflow**:

bash

Working on frontend app

cd apps/frontend oac install

๐Ÿข Workspace Detected: Company Monorepo

Project: apps/frontend Profile: frontend-react Team: Frontend Team

Shared configuration: โœ“ Workspace config: ../../oac-workspace.json โœ“ Shared contexts: ../../.oac/shared/contexts

Project configuration: โœ“ Agents: openagent, frontend-specialist, tester โœ“ Contexts: team-standards, react-patterns

? Install project configuration? (Y/n) y

โšก Installing... โœ“ Shared contexts (workspace) โœ“ Project agents (apps/frontend) โœ“ Project contexts (apps/frontend)

โœ… Frontend project setup complete

Move to mobile app

cd ../mobile oac install

๐Ÿข Workspace Detected: Company Monorepo

โš  Different project detected

Current setup: apps/frontend (frontend-react) New project: apps/mobile (react-native)

? Switch to mobile project configuration?

Yes, switch (keeps both configs)

Yes, switch (remove frontend config)
No, keep current

Switch (keeps both)

โšก Installing mobile configuration... โœ“ Shared contexts (workspace) [already installed] โœ“ Mobile agents (mobile-specialist) โœ“ Mobile contexts (mobile-patterns)

โœ… Multi-project setup active:

  • apps/frontend (frontend-react)
  • apps/mobile (react-native)

๐Ÿ’ก OAC will auto-detect which config to use based on:

- Current directory
- File type
- Context

**Workspace Management**:

bash

Team lead manages workspace

oac workspace status

๐Ÿข Company Monorepo - Workspace Status

Projects: 5 active Teams: 3 (Frontend, Mobile, Platform) Members: 24

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Project โ”‚ Team โ”‚ Members โ”‚ Compliance โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ apps/frontend โ”‚ Frontend โ”‚ 8 โ”‚ 95% โœ“ โ”‚ โ”‚ apps/admin โ”‚ Frontend โ”‚ 5 โ”‚ 100% โœ“ โ”‚ โ”‚ apps/mobile โ”‚ Mobile โ”‚ 6 โ”‚ 90% โš  โ”‚ โ”‚ apps/docs โ”‚ Platform โ”‚ 2 โ”‚ 100% โœ“ โ”‚ โ”‚ packages/* โ”‚ Platform โ”‚ 3 โ”‚ 100% โœ“ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Shared Components: โœ“ team-standards: 24/24 (100%) โœ“ workspace config: 24/24 (100%)

? Actions:

View project details

Update shared configuration
Sync all projects

---

### 4.3 Different Teams Need Different Setups

**Scenario**: Frontend team needs React specialists, Backend team needs API specialists

**Solution: Multi-Team Configuration**

json // oac-teams.json (workspace root) { "version": "1.0.0", "teams": {

"frontend": {
  "name": "Frontend Team",
  "owner": "john@company.com",
  "members": ["sarah@", "mike@", "jane@", "bob@"],
  "config": {
    "agents": ["openagent", "frontend-specialist", "tester"],
    "contexts": ["team-standards", "react-patterns"],
    "skills": ["git-workflow"]
  },
  "policies": {
    "enforceVersions": true,
    "allowCustomization": true
  }
},
"backend": {
  "name": "Backend Team",
  "owner": "alice@company.com",
  "members": ["tom@", "lisa@", "charlie@"],
  "config": {
    "agents": ["openagent", "api-specialist", "database-specialist"],
    "contexts": ["team-standards", "api-patterns", "database-patterns"],
    "skills": ["git-workflow", "api-testing"]
  },
  "policies": {
    "enforceVersions": true,
    "allowCustomization": false
  }
},
"mobile": {
  "name": "Mobile Team",
  "owner": "emma@company.com",
  "members": ["frank@", "grace@"],
  "config": {
    "agents": ["openagent", "mobile-specialist"],
    "contexts": ["team-standards", "mobile-patterns"],
    "skills": ["git-workflow", "mobile-testing"]
  }
}

}, "shared": {

"contexts": ["team-standards"],
"skills": ["git-workflow"]

} }


**Cross-Team Developer**:

bash

Sarah works on both frontend and backend

cd ~/Projects/company-monorepo

Auto-detect team based on project

cd apps/frontend oac install

๐Ÿข Team Detected: Frontend Team โœ“ Installing frontend configuration...

cd ../../backend/api oac install

๐Ÿข Team Detected: Backend Team

โš  You're switching teams: Current: Frontend Team New: Backend Team

Different configurations:

  • Frontend: react-focused agents
  • Backend: API-focused agents

? Install backend configuration?

Yes, add backend config (multi-team mode)

Yes, replace frontend config
No, keep frontend only

Multi-team mode

โœ“ Multi-team mode enabled

Active configurations: โœ“ Frontend Team (apps/frontend) โœ“ Backend Team (backend/api)

๐Ÿ’ก OAC auto-detects correct config based on directory


---

### 4.4 Legacy Projects with Old Agents

**Scenario**: Maintaining old project with agents from 2 years ago

**Challenge**:
- Old agents (v0.3.x) incompatible with new OAC (v1.0)
- Can't update (legacy dependencies)
- Need to support both old and new

**Solution: Version Pinning & Compatibility Mode**

bash

Legacy project setup

cd ~/Projects/legacy-app

oac install --legacy

โš  Legacy Project Detected

Project uses old OAC configuration:

  • Agent format: v0.3.x (2 years old)
  • OAC version: 0.3.2 (current: 1.0.0)

? How would you like to proceed?

Compatibility mode (use old agents with new OAC)

Migrate to v1.0 (may require changes)
Keep old OAC version (not recommended)

Compatibility mode

โœ“ Compatibility mode enabled

โšก Installing with compatibility layer... โœ“ Loaded legacy agents (v0.3.x format) โœ“ Applied compatibility transforms โœ“ Pinned to legacy versions

โœ… Legacy project setup complete

โš  Limitations in compatibility mode:

  • No new features (skills, plugins)
  • Limited context resolution
  • No team features

๐Ÿ’ก Consider migration when possible:

oac migrate --check

**Version Coexistence**:

bash

Developer works on both legacy and modern projects

cd ~/Projects/legacy-app oac install --legacy

Uses OAC v0.3.x compatibility mode

cd ~/Projects/modern-app oac install

Uses OAC v1.0.0 with all features

OAC maintains separate configs

oac config list

Configurations: โœ“ ~/Projects/modern-app: OAC v1.0.0 (standard) โœ“ ~/Projects/legacy-app: OAC v0.3.x (legacy compat)

๐Ÿ’ก Each project uses correct version automatically


---

### 4.5 Remote Team Across Timezones

**Scenario**: Team spread across US (PST), Europe (CET), and Asia (IST)

**Challenge**:
- Updates roll out during work hours for some, sleep hours for others
- Hard to coordinate synchronous changes
- Need async-friendly workflows

**Solution: Scheduled Rollouts & Async Notifications**

bash

Team lead schedules update

oac team update agent:openagent@0.8.0 --schedule

? Rollout strategy:

Timezone-aware (roll out during work hours)

Scheduled (specific date/time)
Immediate (all members now)

Timezone-aware rollout

๐Ÿ“… Timezone-Aware Rollout

Team members by timezone:

  • PST (US West): 3 members
  • CET (Europe): 3 members
  • IST (Asia): 2 members

? Rollout window:

During work hours (9am-5pm local time)

Weekdays only
Custom schedule

During work hours

โœ“ Scheduled rollout:

PST (9am-5pm): Tue Feb 14, 9am PST

- sarah@company.com
- mike@company.com
- bob@company.com

CET (9am-5pm): Tue Feb 14, 9am CET (12am PST)

- alice@company.com
- tom@company.com
- lisa@company.com

IST (9am-5pm): Tue Feb 14, 9am IST (Sat 7:30pm PST)

- frank@company.com
- grace@company.com

๐Ÿ“ง Notifications:

  • Email: Sent to all members (async)
  • Slack: Posted to #frontend-team (async)
  • Calendar: Added to team calendar

? Confirm schedule? (Y/n) y

โœ“ Rollout scheduled


**Async Update Process**:

bash

Sarah (PST) starts work Tuesday 9am

cd ~/Projects/company-frontend

โš  Team Update Available

Component: agent:openagent@0.8.0 Scheduled: Today 9am PST (now)

? Install update now? (Y/n) y

Alice (CET) starts work Tuesday 9am (CET time)

cd ~/Projects/company-frontend

โš  Team Update Available

Component: agent:openagent@0.8.0 Scheduled: Today 9am CET (now)

? Install update now? (Y/n) y

Both update during their local work hours

Team lead sees progress across timezones

oac team rollout status

๐Ÿ“Š Rollout Progress: openagent@0.8.0

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Timezone โ”‚ Members โ”‚ Updated โ”‚ Status โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ PST โ”‚ 3 โ”‚ 3/3 โœ“ โ”‚ Complete โ”‚ โ”‚ CET โ”‚ 3 โ”‚ 2/3 โณ โ”‚ In progressโ”‚ โ”‚ IST โ”‚ 2 โ”‚ 0/2 โ”‚ Scheduled โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Overall: 5/8 (62.5%) Expected completion: Wed Feb 15, 5pm IST

๐Ÿ’ก All timezone windows respected


---

## 5. Must-Have Features

### 5.1 Lockfile for Reproducibility

**Feature**: `oac.lock` ensures exact same setup across all team members

**Format**:

json { "version": "1.0.0", "lockfileVersion": 1, "team": {

"name": "Frontend Team",
"owner": "john@company.com",
"generated": "2026-02-14T10:30:00Z"

}, "components": {

"agent:openagent": {
  "version": "0.7.1",
  "resolved": "https://registry.openagents.dev/agents/openagent-0.7.1.tar.gz",
  "integrity": "sha256-abc123...",
  "dependencies": {
    "context:core-standards": "^1.0.0"
  }
},
"agent:frontend-specialist": {
  "version": "1.2.0",
  "resolved": "https://registry.openagents.dev/agents/frontend-specialist-1.2.0.tar.gz",
  "integrity": "sha256-def456...",
  "dependencies": {
    "context:react-patterns": "^1.5.0"
  }
}

}, "metadata": {

"platform": "darwin",
"oacVersion": "1.0.0",
"node": "18.16.0"

} }


**Usage**:

bash

Generate lockfile

oac lock โœ“ Generated: oac.lock

Install from lockfile (exact versions)

oac install --frozen โœ“ Installing exact versions from oac.lock

Verify lockfile integrity

oac lock verify โœ“ All components match lockfile

Update lockfile after changes

oac lock update โœ“ Updated: oac.lock


**Benefits**:
- โœ… Reproducible installs across team
- โœ… No version drift
- โœ… CI/CD friendly
- โœ… Audit trail

---

### 5.2 Shared Team Configurations

**Feature**: Team config repository for centralized management

**Setup**:

bash

Team lead creates shared config repo

git init oac-team-configs cd oac-team-configs

Initialize team configs

oac team init --repo

โœ“ Created team config repository

Structure: teams/

frontend/
  config.json
  agents/
  contexts/
  skills/
backend/
  config.json
  agents/
  contexts/

Publish to GitHub

git remote add origin git@github.com:company/oac-team-configs.git git push -u origin main

Team members link to shared configs

cd ~/Projects/company-frontend oac team link git@github.com:company/oac-team-configs.git

โœ“ Linked to shared team config โœ“ Auto-sync enabled

๐Ÿ’ก Changes to team config will auto-update on pull


**Auto-Sync**:

bash

Team lead updates shared config

cd oac-team-configs/teams/frontend oac team add agent:new-specialist@1.0.0 git commit -m "Add new-specialist to team config" git push

Team members auto-sync

cd ~/Projects/company-frontend git pull # Pulls project code

โš  Team Configuration Updated

Shared config has new changes:

  • agent:new-specialist@1.0.0

? Sync with team config? (Y/n) y

โœ“ Synced with team configuration


---

### 5.3 Audit Trail (Who Installed What)

**Feature**: Complete audit log of all team installations and changes

**Audit Log** (`.oac/team/audit.log`):

json { "version": "1.0.0", "team": "Frontend Team", "entries": [

{
  "timestamp": "2026-02-14T10:30:00Z",
  "member": "sarah@company.com",
  "action": "install",
  "component": "agent:frontend-specialist",
  "version": "1.2.0",
  "location": "~/Projects/company-frontend/.opencode",
  "source": "team-standard",
  "success": true
},
{
  "timestamp": "2026-02-14T09:15:00Z",
  "member": "mike@company.com",
  "action": "update",
  "component": "agent:openagent",
  "versionFrom": "0.7.0",
  "versionTo": "0.7.1",
  "source": "team-update",
  "success": true
},
{
  "timestamp": "2026-02-13T16:20:00Z",
  "member": "bob@company.com",
  "action": "create-preset",
  "component": "preset:my-openagent",
  "base": "agent:openagent",
  "approved": false,
  "success": true
}

] }


**Query Audit Log**:

bash

View recent activity

oac team audit

๐Ÿ“Š Team Audit Log (Last 7 days)

2026-02-14 10:30 AM - sarah@company.com Installed: agent:frontend-specialist@1.2.0 Source: team-standard

2026-02-14 09:15 AM - mike@company.com Updated: agent:openagent 0.7.0 โ†’ 0.7.1 Source: team-update

2026-02-13 4:20 PM - bob@company.com Created: preset:my-openagent Status: Pending approval

Filter by member

oac team audit --member bob@company.com

Filter by action

oac team audit --action install

Filter by component

oac team audit --component openagent

Export audit report

oac team audit --export audit-report-2026-02.csv


---

### 5.4 Policy Enforcement

**Feature**: Configurable policies for team governance

**Policy Configuration**:

json { "policies": {

"versioning": {
  "enforceVersions": true,        // Require exact versions
  "allowBeta": false,             // Block beta versions
  "requireLockfile": true,        // Must use oac.lock
  "autoUpdate": false             // No auto-updates
},
"customization": {
  "allowPresets": true,           // Allow personal presets
  "requireApproval": true,        // Presets need approval
  "allowOverrides": false,        // No context overrides
  "allowCustomAgents": false      // No unauthorized agents
},
"compliance": {
  "enforceStandards": true,       // Enforce team standards
  "minimumCompliance": 90,        // 90% compliance required
  "blockOnDrift": true,           // Block commits if non-compliant
  "auditAll": true                // Audit all actions
},
"security": {
  "requireVerified": true,        // Only verified components
  "blockExternalSources": false,  // Allow GitHub sources
  "scanComponents": true,         // Scan for malware/secrets
  "requireSignatures": false      // GPG signatures required
}

} }


**Enforcement**:

bash

Developer tries to install beta version

oac add agent:openagent@0.8.0-beta

โŒ Policy Violation: Beta versions not allowed

Team policy: allowBeta = false You requested: openagent@0.8.0-beta (beta)

? Actions:

Use stable version (0.7.1)

Request policy exception
Learn more about team policies

Developer tries to commit with low compliance

git commit -m "Add feature"

โŒ Pre-commit Check Failed

OAC Compliance: 85% (minimum: 90%)

Issues:

  • Missing: frontend-specialist (required)
  • Old version: openagent@0.6.5 (team: 0.7.1)

Policy: blockOnDrift = true

? Actions:

Fix compliance now (sync with team)

Request exception
Skip pre-commit check (not recommended)

---

### 5.5 Easy Onboarding for New Hires

**Feature**: One-command onboarding with guided setup

**Onboarding Command**:

bash oac onboard

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Welcome to Frontend Team! ๐Ÿ‘‹ โ•‘ โ•‘ Let's get you set up in 5 minutes. โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Step 1/5: Team Detection โœ“ Detected team: Frontend Team โœ“ Team lead: john@company.com โœ“ Team size: 8 members

Step 2/5: Configuration โœ“ Found lockfile: oac.lock โœ“ Components: 6 (4 agents, 2 contexts) โœ“ IDE: OpenCode

Step 3/5: Installation โšก Installing team configuration... โœ“ agent:openagent@0.7.1 โœ“ agent:frontend-specialist@1.2.0 โœ“ context:team-standards@1.0.0 โœ“ context:react-patterns@1.5.0

Step 4/5: Verification โœ“ All components installed โœ“ Team standards loaded โœ“ Compliance: 100%

Step 5/5: Resources ๐Ÿ“š Team Wiki: https://wiki.company.com/frontend ๐Ÿ’ฌ Slack: #frontend-team ๐Ÿ‘ค Team Lead: john@company.com

โœ… Onboarding complete! (4m 32s)

? Start interactive tutorial? (Y/n)


---

## 6. Example Scenarios (Detailed)

### Scenario 1: Team Setup from Scratch

**Persona**: John, Engineering Manager  
**Goal**: Set up standardized development environment for new team  
**Team Size**: 8 developers  
**Tech Stack**: React, TypeScript, Node.js

**Timeline**: Week 1 - Project Kickoff

**Monday: Initial Setup**

bash

Create new project

mkdir company-frontend && cd company-frontend git init npm init -y

Initialize OAC for team

oac team init

Welcome to OAC Team Setup! ๐Ÿ‘ฅ

? Team name: Frontend Team ? Owner (your email): john@company.com ? Team size: Small (2-10 developers) ? Primary tech stack: React, TypeScript, Node.js ? Strictness level: Balanced

๐Ÿ“ฆ Recommended setup for React + TypeScript:

Core Agents:

  • openagent@0.7.1 (AI pair programmer)
  • frontend-specialist@1.2.0 (React/TS expert)

Specialists:

  • tester@2.0.1 (Test generation)
  • reviewer@1.8.0 (Code review)

Contexts:

  • team-standards (coding guidelines)
  • react-patterns (React best practices)

? Install recommended setup? (Y/n) y

โšก Installing team setup... โœ“ 4 agents installed โœ“ 2 contexts installed โœ“ Generated oac.lock โœ“ Generated oac-team.json

โœ… Team setup complete!

Customize team standards

oac context edit team-standards

[Editor opens with template]

Frontend Team Coding Standards

React

  • Functional components only
  • TypeScript strict mode
  • Props interfaces above components

Testing

  • Vitest for unit tests
  • 80% coverage minimum
  • Test files: *.test.tsx

Git

  • Branch naming: feature/JIRA-XXX-description
  • Commit messages: Conventional Commits
  • PR: Minimum 1 approval

[Save and close]

โœ“ Updated: team-standards

Configure policies

oac team policy set enforceVersions true oac team policy set allowCustomization true oac team policy set minimumCompliance 90

Commit team configuration

git add . git commit -m "Initial team OAC setup

  • Team: Frontend Team (8 developers)
  • Agents: openagent, frontend-specialist, tester, reviewer
  • Contexts: team-standards, react-patterns
  • Policies: Enforce versions, allow customization, 90% compliance " git remote add origin git@github.com:company/frontend.git git push -u origin main

Announce to team

echo "Team setup complete! ๐Ÿ“ฆ

Clone the repo and run 'oac onboard' to get started.

Repo: git@github.com:company/frontend.git " | slack-send #frontend-team

โœ“ Setup time: 30 minutes


**Tuesday: First Team Member Onboards (Sarah)**

bash

Sarah joins team

git clone git@github.com:company/frontend.git cd frontend

Run onboarding

oac onboard

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Welcome to Frontend Team! ๐Ÿ‘‹ โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ” Detecting configuration... โœ“ Team: Frontend Team โœ“ Lockfile: oac.lock โœ“ Components: 6

โšก Installing... [Progress bar: 100%]

โœ… Setup complete! (3m 45s)

? Start tutorial? (Y/n) y

Interactive tutorial

... (5 minutes) ...

Sarah starts coding

create a Button component

Agent (using team-standards): โœ“ Functional component โœ“ TypeScript โœ“ Props interface above โœ“ Test file included

Created: components/Button/

Button.tsx
Button.test.tsx
index.ts

โœ… Follows team standards

โœ“ Sarah productive in 15 minutes (vs 4 hours previously)


**Results**:
- Setup time: 30 minutes (one-time)
- Onboarding time: 15 minutes (per developer)
- Team compliance: 100% from day 1
- Zero configuration drift

---

### Scenario 2: New Developer Onboarding (First Day)

**Persona**: Sarah, Junior Developer (first dev job)  
**Goal**: Get productive on first day  
**Context**: Joining established team with existing OAC setup

**Hour 1: HR & Setup (9am - 10am)**
- Get laptop
- Create accounts
- Clone repos

**Hour 2: Development Environment (10am - 11am)**

bash

10:00 AM - Clone project

cd ~/Projects git clone git@github.com:company/frontend-app.git cd frontend-app

10:05 AM - Install dependencies

npm install # Takes 3 minutes

10:08 AM - Run OAC onboarding

oac onboard

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Welcome to Frontend Team! ๐Ÿ‘‹ โ•‘ โ•‘ Hi Sarah! Let's get you set up. โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ” Detecting your setup... โœ“ Git: Configured (sarah@company.com) โœ“ Node: v18.16.0 โœ“ IDE: OpenCode detected โœ“ Team: Frontend Team (8 members) โœ“ Team lead: john@company.com

๐Ÿ“ฆ Installing team configuration...

Components (from oac.lock): โ ‹ agent:openagent@0.7.1 [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘] 80% โœ“ agent:frontend-specialist@1.2.0 โœ“ agent:tester@2.0.1 โœ“ context:team-standards@1.0.0 โœ“ context:react-patterns@1.5.0 โœ“ skill:git-workflow@0.8.0

โšก Configuring... โœ“ Team standards applied โœ“ Approval gates configured โœ“ Git hooks installed

โœ… Installation complete! (4m 12s)

๐Ÿ“Š Verification... โœ“ All components installed โœ“ Team compliance: 100% โœ“ IDE configured

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ You're all set! ๐ŸŽ‰ โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“š Resources for you:

  • Team wiki: https://wiki.company.com/frontend
  • Code standards: oac context show team-standards
  • React patterns: oac context show react-patterns
  • Slack: #frontend-team
  • Your buddy: mike@company.com

๐ŸŽฏ Your first task: Review this PR to learn our code style: https://github.com/company/frontend-app/pull/456

? Start 5-minute interactive tutorial? (Y/n) y

10:12 AM - Interactive tutorial

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Quick Tutorial (5 minutes) โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Lesson 1/4: Team Standards Your team has coding standards in: team-standards

Let's view them: $ oac context show team-standards

[Shows standards]

โœ“ These are automatically enforced by your agents

Lesson 2/4: Creating Components Let's create a simple Button component:

create a Button component with TypeScript

Agent response: โœ“ Created components/Button/Button.tsx (functional, TS) โœ“ Created components/Button/Button.test.tsx (Vitest) โœ“ Follows team standards

๐Ÿ’ก Try it yourself!

Lesson 3/4: Running Tests $ npm test โœ“ All tests pass

๐Ÿ’ก Write tests for all new components

Lesson 4/4: Getting Help

  • Ask in #frontend-team
  • Your buddy: mike@company.com
  • Team lead: john@company.com
  • OAC help: oac team --help

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— โ•‘ Tutorial Complete! ๐ŸŽ“ โ•‘ โ•‘ You're ready to code! โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

10:17 AM - Tutorial complete

โœ“ Onboarding time: 17 minutes total


**Hour 3: First Tasks (11am - 12pm)**

bash

11:00 AM - Review PR (learning task)

Sarah reviews PR #456, learns code style

11:30 AM - First commit

create a simple Avatar component

Agent (using team-standards): Creating component following team standards...

โœ“ components/Avatar/Avatar.tsx โœ“ components/Avatar/Avatar.test.tsx โœ“ components/Avatar/Avatar.stories.tsx

All files follow team standards โœ“

Commit

git add components/Avatar git commit -m "feat: Add Avatar component"

Pre-commit hook runs

โœ“ OAC compliance check: 100% โœ“ Tests pass โœ“ Linting pass

Push

git push origin feature/JIRA-789-avatar

Create PR

gh pr create --title "feat: Add Avatar component"

โœ“ PR created: #457 โœ“ CI checks running... โœ“ All checks pass

11:45 AM - First PR merged!

โœ“ PR approved by mike@company.com โœ“ Merged to main

Sarah is fully productive by hour 3 of day 1!


**Results**:
- Time to setup: 17 minutes
- Time to first commit: 3 hours
- Time to first merged PR: 4 hours
- Team compliance: 100% from start
- Zero confusion about standards
- Zero questions about setup

**Comparison**:

| Metric | Before OAC | With OAC |
|--------|-----------|----------|
| Setup time | 4-8 hours | 17 minutes |
| First commit | 1-2 days | 3 hours |
| First PR merged | 2-3 days | 4 hours |
| Setup questions | 10-20 | 0-2 |
| Compliance issues | 5-10 | 0 |
| Onboarding buddy time | 4-6 hours | 30 minutes |

---

### Scenario 3: Handling Version Conflicts (Mid-Sprint)

**Persona**: Mike, Senior Developer  
**Goal**: Add new testing library that requires newer agent  
**Context**: Team on `openagent@0.7.1`, new library needs `@0.8.0`

**Wednesday Morning: Discovery**

bash

Mike wants to add Playwright specialist

oac add agent:playwright-specialist

โš  Dependency Conflict

Component: agent:playwright-specialist@1.0.0 Requires: agent:openagent@^0.8.0

Your current setup: agent:openagent@0.7.1 (from team standard)

Team standard: agent:openagent@0.7.1 (locked in oac.lock)

Conflict: Cannot install without updating openagent

? How would you like to resolve?

Request team update (contact team lead)

Find compatible version (alternative)
Override locally (breaks team standard - not recommended)
Cancel installation

Mike requests team update

? Request team update

๐Ÿ“ Creating update request...

? Reason for update: Need Playwright specialist for e2e testing. Playwright specialist requires openagent@0.8.0.

? Priority:

Medium (this sprint)

High (blocking)
Low (nice to have)

? Impact: Will require all team members to update openagent. No breaking changes expected (checked changelog).

โœ“ Request sent to team lead (john@company.com)

๐Ÿ“ง Request created:

  • ID: REQ-001
  • Component: agent:openagent 0.7.1 โ†’ 0.8.0
  • Requested by: mike@company.com
  • Status: Pending review

๐Ÿ’ก Track status: oac team requests ๐Ÿ’ก Team lead notified via Slack and email


**Wednesday Afternoon: Team Lead Review**

bash

John reviews request

oac team requests

๐Ÿ“ฌ Pending Update Requests (1)

REQ-001: openagent@0.7.1 โ†’ 0.8.0 Requested by: mike@company.com Reason: Need Playwright specialist for e2e testing Priority: Medium (this sprint)

Impact Analysis:

- Affects: 8/8 team members
- Breaking changes: None
- Dependencies: Compatible with all current agents
- Team adoption: Will require sync

Changelog (0.7.1 โ†’ 0.8.0):

โœ“ Improved delegation logic
โœ“ Fixed approval gate bug
โœ“ New context loading patterns
โŒ No breaking changes

? Action:

Approve and schedule update

Approve immediately
Request more information
Reject with reason
Test in pilot first

John approves with schedule

? Approve and schedule update

? Rollout strategy:

Staged (pilot โ†’ gradual โ†’ full)

Immediate (all members now)
Scheduled (specific date/time)

Staged rollout

? Pilot members: โœ“ mike@company.com (requester) โœ“ sarah@company.com

? Pilot duration: 24 hours

? Full rollout: If pilot successful, roll out to full team

โœ“ Update approved!

๐Ÿ“… Rollout Schedule:

Stage 1: Pilot (2 members)

- mike@company.com
- sarah@company.com
Start: Now
Duration: 24 hours

Stage 2: Gradual (4 members)

- jane@company.com
- bob@company.com
- alice@company.com
- tom@company.com
Start: If pilot successful
Duration: 24 hours

Stage 3: Full (remaining 2)

- lisa@company.com
- charlie@company.com
Start: If gradual successful

๐Ÿ“ง Notifications sent:

  • Pilot members: Update available now
  • Other members: Update scheduled
  • Slack: Posted to #frontend-team

? Proceed with pilot? (Y/n) y

โœ“ Pilot rollout started


**Wednesday Evening: Pilot Stage**

bash

Mike gets notification

โš  Team Update Available (Pilot)

Component: agent:openagent@0.8.0 Your role: Pilot tester Status: Approved by john@company.com

Changes:

  • Improved delegation logic
  • Fixed approval gate bug
  • New context loading patterns

? Install pilot update now? (Y/n) y

โšก Installing openagent@0.8.0 (pilot)... โœ“ Backed up current version (0.7.1) โœ“ Installed openagent@0.8.0 โœ“ Updated dependencies

โœ… Pilot update installed

โš  You're now in pilot mode

Please test the update and report:

  • Any issues: oac team pilot report-issue
  • Works well: oac team pilot approve
  • Critical problems: oac team pilot reject

Testing period: 24 hours

Mike tests for a few hours

Everything works great

Mike approves pilot

oac team pilot approve

โœ“ Pilot approved by mike@company.com

Feedback: ? Works as expected? โœ“ Yes ? Any issues? โœ— None ? Comments: Delegation seems faster, no issues

โœ“ Feedback submitted

Sarah also approves

(similar process)

Team lead sees pilot results

oac team rollout status

๐Ÿ“Š Pilot Results: openagent@0.8.0

Status: โœ“ Successful Duration: 24 hours Participants: 2/2

Feedback: โœ“ mike@company.com: Approved, no issues โœ“ sarah@company.com: Approved, works great

Issues: 0

? Proceed to Stage 2 (Gradual rollout)? (Y/n) y


**Thursday: Gradual Rollout**

bash

4 team members get notification

โš  Team Update Available

Component: agent:openagent@0.8.0 Status: Pilot successful, rolling out

Pilot results: โœ“ 2/2 approved โœ“ 0 issues reported โœ“ Feedback: Positive

? Install update now? (Y/n) y

All 4 members install successfully

Team lead monitors

oac team rollout status

๐Ÿ“Š Gradual Rollout Progress

Stage 2: Gradual (4 members) โœ“ jane@company.com: Installed โœ“ bob@company.com: Installed
โœ“ alice@company.com: Installed โณ tom@company.com: Pending (on vacation)

Status: 3/4 completed (75%)

? Action:

Wait for tom@company.com

Skip tom (complete stage 2)
Pause rollout

Skip tom (he's on vacation)

โœ“ Stage 2 complete (skipping tom)

? Proceed to Stage 3? (Y/n) y


**Friday: Full Rollout Complete**

bash

Final 2 members update

Rollout complete

oac team status

๐Ÿ“Š Team Update Complete: openagent@0.8.0

โœ… Rollout successful!

Timeline: Wed 2pm: Pilot started (2 members) Thu 2pm: Gradual rollout (4 members) Fri 10am: Full team (8 members)

Adoption: 7/8 (87.5%) โœ“ 7 members on 0.8.0 โณ 1 member pending (tom - on vacation)

Issues: 0

Next:

  • Tom will auto-update on return
  • Mike can now install playwright-specialist

Mike installs Playwright specialist

oac add agent:playwright-specialist

โœ“ Dependency check: openagent@0.8.0 (satisfied) โœ“ Installing agent:playwright-specialist@1.0.0

โœ… Installation complete!

Team successfully updated, zero disruption


**Results**:
- Total time: 3 days (staged rollout)
- Issues: 0
- Team disruption: Minimal (staged approach)
- Pilot caught potential issues: N/A (clean update)
- Rollback needed: No

---

### Scenario 4: Enforcing Standards (Code Review Crisis)

**Persona**: John, Team Lead  
**Problem**: PRs have inconsistent code style, reviews taking too long  
**Goal**: Enforce team standards automatically

**Monday: Problem Recognition**

bash

John reviews recent PRs

Notices issues:

- Inconsistent component structure

- Mixed class/functional components

- No test files

- Inconsistent file naming

Current state: Standards documented but not enforced

Solution: Create enforced team standards context


**Tuesday: Create Enforceable Standards**

bash

Create team standards context

oac create context team-standards --required

Edit with enforceable rules

oac context edit team-standards

Content:


version: 1.0.0 enforcement: strict rules:

  • id: functional-components level: error description: Use functional components only
  • id: typescript level: error description: All components must use TypeScript
  • id: test-files level: error description: All components must have test files
  • id: file-naming level: error description: PascalCase for components, camelCase for utils ---

Frontend Team Coding Standards

React Components

Structure (REQUIRED)

// components/Button/Button.tsx

import React from 'react';

interface ButtonProps {
  label: string;
  onClick: () => void;
}

export const Button: React.FC<ButtonProps> = ({ label, onClick }) => {
  return <button onClick={onClick}>{label}</button>;
};

Testing (REQUIRED)

// components/Button/Button.test.tsx

import { render, fireEvent } from '@testing-library/react';
import { Button } from './Button';

describe('Button', () => {
  it('calls onClick when clicked', () => {
    const handleClick = jest.fn();
    const { getByText } = render(<Button label="Click me" onClick={handleClick} />);
    fireEvent.click(getByText('Click me'));
    expect(handleClick).toHaveBeenCalled();
  });
});

File Structure (REQUIRED)

components/
  Button/
    Button.tsx        # Component (required)
    Button.test.tsx   # Tests (required)
    Button.stories.tsx # Storybook (recommended)
    index.ts          # Barrel export (required)

Enforcement

Agents will: โœ“ Generate components following this structure โœ“ Create test files automatically โœ“ Use TypeScript with strict mode โœ“ Follow file naming conventions โŒ Reject class components โŒ Reject components without tests โŒ Reject non-TypeScript files

[Save]

Make context required and locked

oac team add context:team-standards@1.0.0 --required --locked

โœ“ Added as required (cannot be overridden) โœ“ All team members must use this context

Configure agents to enforce strictly

oac team config set agents.frontend-specialist.strictMode true oac team config set agents.frontend-specialist.requireTests true

Update lockfile and push

oac lock update git add .oac/ oac.lock oac-team.json git commit -m "feat: Add enforced team standards

  • Created team-standards context (required, locked)
  • Configured strict enforcement
  • All components must:
    • Use functional components (TS)
    • Include test files
    • Follow file structure " git push origin main

Announce to team

slack-send #frontend-team "๐Ÿ“‹ New Team Standards Enforced

We've added enforced coding standards to improve PR quality.

Changes:

  • All components must be functional (TypeScript)
  • Test files required for all components
  • Strict file structure

Action: Pull latest and run 'oac team sync'

Agents will automatically follow these standards. Old code is grandfathered in. "

โœ“ Standards deployed


**Wednesday: Team Syncs**

bash

Team members pull and sync

git pull oac team sync

โš  Team Configuration Updated

New required component:

  • context:team-standards@1.0.0 (required, locked)

Agent configuration updated:

  • frontend-specialist: Strict mode enabled
  • frontend-specialist: Tests required

? Sync with team standard? (Y/n) y

โšก Syncing... โœ“ Installed: context:team-standards@1.0.0 โœ“ Updated: agent configuration

โœ… Synced with team standard

๐Ÿ’ก Try creating a component to see standards in action:

> create a Card component

**Wednesday Afternoon: Standards in Action**

bash

Sarah creates a component

create a Card component with title and description props

Agent (using team-standards): Creating component following team standards...

โœ“ Enforcing: Functional component (TypeScript) โœ“ Enforcing: Test file required โœ“ Enforcing: File structure

Created: components/Card/

Card.tsx          # Functional component, TypeScript
Card.test.tsx     # Vitest tests
Card.stories.tsx  # Storybook stories
index.ts          # Barrel export

All files follow team standards โœ“

Bob tries to create class component (bad habit)

create a Modal component using class

Agent (using team-standards): โŒ Enforcement: Class components not allowed

Team standard requires functional components. Creating functional component instead...

Created: components/Modal/

Modal.tsx         # Functional (not class)
Modal.test.tsx
index.ts

โœ“ Converted to functional component (team standard)

Mike forgets to add tests

create a Dropdown component

Agent (using team-standards): Creating component...

โœ“ components/Dropdown/Dropdown.tsx โœ“ components/Dropdown/Dropdown.test.tsx (auto-generated) โœ“ components/Dropdown/index.ts

โœ“ Test file automatically created (required by team)


**Thursday: PR Quality Improves**

bash

John reviews PRs

All PRs now:

โœ“ Functional components (TypeScript)

โœ“ Include test files

โœ“ Follow file structure

โœ“ Consistent style

PR review time drops from 30min to 10min

Style comments: Eliminated

Focus shifts to logic and business requirements

Team velocity increases


**Results**:
- PR review time: 30min โ†’ 10min (67% reduction)
- Style issues in PRs: ~15/PR โ†’ 0/PR (100% reduction)
- Test coverage: 60% โ†’ 95% (automatically enforced)
- Team consistency: 100% (enforced by agents)
- Developer happiness: Higher (less nitpicking in reviews)

---

### Scenario 5: Migration to New Version (Breaking Changes)

**Persona**: John, Team Lead  
**Challenge**: Migrate team from OAC v0.7.x to v1.0.0 (breaking changes)  
**Team Size**: 8 developers  
**Risk**: High (breaking changes)

**Week 1: Planning & Testing**

**Monday: Assessment**

bash

Check migration requirements

oac team migrate --check

๐Ÿ“ฆ Migration Available: v0.7.1 โ†’ v1.0.0

โš  Breaking Changes Detected:

  1. Approval Gates Configuration

    • Old format: approval.gates = ["bash", "write"]
    • New format: permissions.bash = "approve"
    • Impact: All team members (auto-migrated)
  2. Context Resolution

    • Old: Single context path
    • New: Layered resolution (project โ†’ global)
    • Impact: Custom context paths need update
  3. Preset System

    • Old: No presets
    • New: Preset metadata required
    • Impact: Custom agents need migration

Migration Complexity: Medium Estimated Time: 2-4 hours (full team) Auto-Migration: 80% (manual review needed)

? View detailed migration guide? (Y/n) y


**Migration Guide**:

bash ๐Ÿ“š Migration Guide: v0.7.1 โ†’ v1.0.0

Step 1: Backup (5 minutes)

oac team backup
# Creates: .oac/backups/team-backup-2026-02-14.tar.gz

Step 2: Create Migration Branch (2 minutes)

git checkout -b oac-v1-migration

Step 3: Run Migration Tool (10-15 minutes)

oac team migrate --to v1.0.0
# Auto-migrates: configs, presets, contexts
# Outputs: migration-report.md

Step 4: Manual Review (30-60 minutes)

  • Review updated configs
  • Test approval gates
  • Verify context resolution

Step 5: Pilot Test (1-2 days)

  • Test with 2-3 developers
  • Collect feedback
  • Fix issues

Step 6: Full Rollout (1-2 days)

  • Roll out to full team
  • Monitor for issues
  • Provide support

Total Time: 3-5 days (cautious approach)

? Start migration planning? (Y/n) y


**Tuesday: Migration Execution**

bash

Create backup

oac team backup

โœ“ Backup created: .oac/backups/team-backup-2026-02-14.tar.gz โœ“ Includes: all configs, agents, contexts, lockfile

Create migration branch

git checkout -b oac-v1-migration

Run migration tool

oac team migrate --to v1.0.0

โšก Running Migration: v0.7.1 โ†’ v1.0.0

Phase 1: Analysis โœ“ Scanning configurations... โœ“ Detecting breaking changes... โœ“ Planning migrations...

Phase 2: Backup โœ“ Backed up all configs

Phase 3: Auto-Migration โšก Migrating approval gates config...

โœ“ Converted 8 configurations

โšก Migrating context resolution...

โœ“ Updated context paths
โš  2 custom contexts need manual review

โšก Migrating presets...

โœ“ Added metadata to 3 custom agents

โšก Updating lockfile...

โœ“ Generated new oac.lock (v1.0.0 format)

Phase 4: Validation โœ“ Validating configurations... โš  2 warnings (see migration-report.md) โœ“ No errors

โœ… Migration Complete (80% automated)

๐Ÿ“Š Migration Summary:

  • Configurations migrated: 8/8
  • Auto-migrated: 80%
  • Manual review needed: 2 items
  • Breaking changes handled: 3/3

โš  Action Required:

  1. Review: migration-report.md
  2. Fix: 2 manual migration items
  3. Test: oac doctor
  4. Commit: git commit -m "Migrate to OAC v1.0.0"

? Open migration report? (Y/n) y


**Migration Report** (`migration-report.md`):

markdown

OAC Migration Report: v0.7.1 โ†’ v1.0.0

Date: 2026-02-14
Team: Frontend Team
Status: โš  Needs Manual Review

Summary

โœ… Auto-migrated: 80%
โš  Manual review: 2 items
โŒ Errors: 0

Auto-Migrations Completed

1. Approval Gates Configuration

โœ… Migrated all 8 team member configurations

Old format:

"approval": {
  "gates": ["bash", "write", "edit"]
}

New format:

"permissions": {
  "bash": "approve",
  "write": "approve",
  "edit": "approve"
}

2. Context Resolution

โœ… Updated context paths for layered resolution

Changes:

  • Updated project context paths
  • Added context priority configuration
  • Migrated global context references

3. Preset System

โœ… Added metadata to 3 custom agents

Custom agents migrated:

  • bob-custom-tester โ†’ preset:bob-custom-tester
  • sarah-reviewer โ†’ preset:sarah-reviewer
  • mike-debugger โ†’ preset:mike-debugger

Manual Review Required

1. Custom Context Paths (bob@company.com)

โš  Manual review needed

Issue: Bob has custom context override that conflicts with new layered resolution

Location: /Users/bob/.opencode/context/custom-patterns.md

Action Required:

  1. Review custom context
  2. Move to: .oac/context/override/ (new override location)
  3. OR: Integrate into team-standards

Priority: Medium (affects 1 member)

2. Legacy Agent Format (alice@company.com)

โš  Manual review needed

Issue: Alice has very old custom agent (v0.3.x format)

Location: /Users/alice/.opencode/agent/legacy-agent.md

Action Required:

  1. Update to v1.0.0 format
  2. OR: Remove if no longer needed
  3. Test after update

Priority: Low (custom agent, optional)

Testing Checklist

Before pilot rollout:

  • Test approval gates (new format)
  • Test context resolution (layered)
  • Test presets (new metadata)
  • Verify all agents load correctly
  • Run: oac doctor

Rollback Plan

If issues occur:

oac team rollback --to backup-2026-02-14

This will restore all configurations to pre-migration state.

Next Steps

  1. Fix manual review items (Bob, Alice)
  2. Run oac doctor to validate
  3. Start pilot with 2 members
  4. Full rollout after successful pilot

    
    **Wednesday: Fix Manual Items**
    
    

    bash

Contact Bob

slack-send @bob "Hey Bob, migration to OAC v1.0 needs your help.

You have a custom context that needs updating: /Users/bob/.opencode/context/custom-patterns.md

Options:

  1. Move to new override location (5 min)
  2. Integrate into team-standards (15 min)

Can you handle this today? Let me know if you need help. "

Bob fixes

(moves custom context to new location)

Contact Alice

slack-send @alice "Hey Alice, found an old custom agent during migration: /Users/alice/.opencode/agent/legacy-agent.md

Is this still needed? If not, we can remove it. If yes, needs update to v1.0.0 format (I can help). "

Alice confirms not needed

Removed

Validate migration

oac doctor

โœ“ All configurations valid โœ“ All agents load correctly โœ“ Context resolution working โœ“ Presets migrated successfully

โœ… Migration ready for testing


**Thursday: Pilot Test**

bash

Designate pilot members

oac team pilot add sarah@company.com mike@company.com

? Pilot duration: 1 day

โœ“ Pilot group created (2 members)

๐Ÿ“ง Sent to pilot members: "You've been selected for OAC v1.0 pilot test.

Please:

  1. git checkout oac-v1-migration
  2. oac install --frozen
  3. Test for 1 day
  4. Report: oac team pilot feedback

Questions? #oac-migration"

Pilot members test

Sarah tests, no issues

Mike tests, no issues

Collect feedback

oac team pilot report

๐Ÿ“Š Pilot Test Results (1 day)

Participants: 2/2 Completion: 100%

Feedback: โœ“ sarah@company.com:

  • No issues
  • Approval gates clearer
  • Likes new preset system

โœ“ mike@company.com:

  • No issues
  • Context resolution faster
  • No problems

Issues Reported: 0 Critical Bugs: 0

Recommendation: โœ… Ready for full rollout

? Proceed with full team rollout? (Y/n) y


**Friday: Full Rollout**

bash

Merge migration branch

git checkout main git merge oac-v1-migration git push origin main

Announce rollout

oac team announce

๐Ÿ“ข OAC v1.0 Migration - Ready to Roll Out

What: Upgrade to OAC v1.0.0 When: Now (pull latest from main) Duration: 5 minutes per person

Breaking Changes (auto-migrated): โœ“ Approval gates (new format) โœ“ Context resolution (layered) โœ“ Presets (new metadata)

Tested By: โœ“ sarah@company.com (no issues) โœ“ mike@company.com (no issues)

Action Required:

  1. git pull
  2. oac install --frozen
  3. Test your workflow
  4. Report issues: #oac-migration

Estimated time: 5 minutes

Rollback available if needed.

? Send to team? (Y/n) y

โœ“ Sent to #frontend-team โœ“ Emails sent to all members

Track rollout

oac team status

๐Ÿ“Š Migration Progress: v1.0.0

Completed: 6/8 (75%) In Progress: 2/8 (25%) Issues: 0

Timeline:

  • 10am: sarah โœ“
  • 10:15am: mike โœ“
  • 11am: jane โœ“
  • 11:30am: bob โœ“
  • 1pm: alice โœ“
  • 2pm: tom โœ“
  • Pending: lisa, charlie

โœ… Migration going smoothly

End of day: 8/8 complete

โœ“ Full team migrated โœ“ Zero issues โœ“ Total time: 3 days (cautious approach)


**Results**:
- Planning: 1 day
- Migration execution: 1 day
- Pilot test: 1 day
- Full rollout: 1 day (completed in hours)
- Total: 3 days (actual) vs 4 days (estimated)
- Issues: 0
- Rollbacks: 0
- Team disruption: Minimal

---

## Summary

### Key Insights for Team Leads

**What OAC Solves**:
1. โœ… **Onboarding**: 4 hours โ†’ 15 minutes
2. โœ… **Consistency**: 100% team alignment
3. โœ… **Standards**: Automatically enforced
4. โœ… **Updates**: Coordinated across team
5. โœ… **Visibility**: Full audit trail

**What OAC Needs**:
1. ๐Ÿšจ **Lockfile**: For reproducibility
2. ๐Ÿšจ **Team Dashboard**: Real-time compliance
3. ๐Ÿšจ **Audit Trail**: Who installed what, when
4. ๐Ÿšจ **Policy Enforcement**: Configurable governance
5. ๐Ÿšจ **Rollout Management**: Staged updates with rollback

**Must-Have Commands**:

bash oac team init # Set up team standards oac team status # Check team compliance oac team sync # Sync with team standard oac team update # Coordinate updates oac team dashboard # Team health overview oac team audit # Installation audit trail oac team policy # Configure policies oac onboard # One-command onboarding oac team migrate # Version migration oac team rollout # Staged rollout management ```

Success Metrics:

  • Onboarding time: <30 minutes
  • Team compliance: >95%
  • PR review time: -50%
  • Setup questions: -90%
  • Version drift: 0%

Next Steps: Use these scenarios to validate OAC design and implementation priorities.