Meta-Patterns Extracted from Role-Based Taxonomy

July 1, 2026 · View on GitHub

Analysis Date: 2025-11-09 Artifacts Analyzed: 100+ (commands, agents, skills, workflows, settings) Roles Defined: 5 (sre-devops, platform-engineer, web-developer, researcher, personal) Shared Infrastructure: 3 profiles (foundational, orchestration, context)


Pattern 1: Role Archetypes Map to Work Modes

Discovery: Each role represents a distinct mode of thinking, not just tooling.

RoleArchetypePrimary ModeKey Question
sre-devopsFirefighter/GuardianReactive + Proactive"Is it working?"
platform-engineerBuilderCreative"How do I build this?"
web-developerPresenterCommunicative"How do I show this?"
researcherSynthesizerAnalytical"What pattern is this?"
personalStrategistReflective"Where am I going?"

Insight: Switching roles = switching cognitive modes, not just tools.

Application: When stuck in one role, try viewing problem through different role's lens.


Pattern 2: Token Budgets Reveal Complexity Hierarchy

Discovery: Role token budgets directly correlate with domain complexity.

sre-devops:        30k tokens (most complex - production systems)
researcher:        25k tokens (high complexity - meta-analysis)
platform-engineer: 20k tokens (medium complexity - application building)
web-developer:     15k tokens (moderate complexity - UI/frontend)
personal:          10k tokens (lowest complexity - planning/reflection)

Shared:
  foundational:     3k tokens (always loaded - constitutional baseline)
  orchestration:    6k tokens (JIT - workflow coordination)
  context:          4k tokens (on-demand - knowledge management)

Insight: Complexity isn't about "harder" - it's about surface area of concerns.

  • SRE: Production, monitoring, incidents, deployment, infrastructure, security (6 domains)
  • Personal: Planning, growth, strategy (3 domains)

Application: Use token budget as proxy for "how much do I need to know?"


Pattern 3: Shared Infrastructure Enforces Consistency

Discovery: All roles inherit same foundational profile (Laws, standards, git hooks).

Structure:

foundational (3k tokens) → Always loaded, never disabled

All 5 roles inherit this baseline

Constitution enforced universally

What this achieves:

  • Same Laws apply to SRE work AND personal planning
  • Same commit format across all domains
  • Same hook enforcement regardless of role
  • Institutional memory captured uniformly

Insight: Shared foundation enables cross-domain learnings to transfer.

Example:

  • ADHD patterns discovered in personal → Inform 40% rule in sre-devops
  • AgentOps Laws surfaced in research → Apply to web-developer docs

Pattern 4: Roles Compose via Multi-Flavor Loading

Discovery: Real work often requires 2-3 roles simultaneously.

Observed Combinations:

Work TypeRoles LoadedToken BudgetUse Case
Deploy app to productionsre-devops + platform-engineer~50k (25%)Create app + monitor deployment
Build showcase websiteweb-developer + researcher~40k (20%)Frontend + document patterns
Career planning with proofpersonal + researcher~35k (17.5%)Strategy + extract accomplishments
Full-stack featureplatform-engineer + web-developer~35k (17.5%)Backend + frontend

Insight: Token budgets designed for composition (stay under 40% rule).

Design Principle:

  • Single role: 10-30k tokens
  • Two roles: 20-50k tokens (~25% avg)
  • Three roles: 40-75k tokens (~37.5% max)
  • Leaves headroom for context growth during session

Pattern 5: Triggers Enable Auto-Detection

Discovery: Each role defines keywords, file patterns, git patterns for auto-suggestion.

Example Auto-Detection Flow:

User says: "There's a production incident with Redis"

Keywords matched: "production", "incident", "redis"
  → Suggests: sre-devops role

File context: work/gitops/apps/redis/
  → Confirms: sre-devops role

Loads:
  - foundational (3k)
  - orchestration (Read CLAUDE.md) (2k)
  - sre-devops (monitoring, incidents, deployment agents) (8k)

Total: ~13k tokens (6.5%)

Insight: Role detection is contextual, not manual.


Pattern 6: Knowledge Sources Form Feedback Loops

Discovery: Each role both consumes AND produces knowledge.

Feedback Loop Structure:

researcher → Extracts patterns → Documentation

sre-devops → Uses patterns → Production work

Git history (commits, session logs)

researcher → Analyzes production work → New patterns

Cycle repeats...

Concrete Example:

  1. researcher: Analyzes 204 sessions, extracts "harmonize pattern"
  2. researcher: Documents in docs/reference/workflows/harmonize.md
  3. sre-devops: Uses harmonize workflow in production
  4. sre-devops: Commits with learnings ("learned X about Y")
  5. researcher: Analyzes new commit, refines pattern
  6. Loop: Pattern improves over time through production usage

Insight: Knowledge OS is designed to improve through role interaction (whether it self-improves in practice is an unproven hypothesis, per ADR-0011).


Pattern 7: Skills vs Agents vs Workflows (Reusability Hierarchy)

Discovery: 3 levels of reusability emerged across roles.

LevelDescriptionExampleToken CostReusability
SkillsDeterministic scriptsvalidate.sh, sync.sh100-300 tokensVery high (used by all roles)
AgentsSpecialized workflowsapplications-create-app.md2000-3000 tokensMedium (role-specific)
WorkflowsMulti-phase processesResearch→Plan→Implement600-800 tokensHigh (shared across roles)

Reuse Pattern:

sre-devops uses:
  - Skills: validate.sh, sync.sh, harmonize.sh (shared with platform-engineer)
  - Agents: incidents-response.md, monitoring-alerts.md (SRE-specific)
  - Workflows: debug-cycle.md (shared with platform-engineer)

platform-engineer uses:
  - Skills: validate.sh, test.sh, rendering.sh (shared with sre-devops)
  - Agents: applications-create-app.md (platform-specific)
  - Workflows: application-creation.md (shared with web-developer)

Insight: Skills are most reusable (lowest token cost), agents are most specialized.

Design Implication: Extract common logic into skills, keep domain specifics in agents.


Pattern 8: Role Boundaries Reveal Domain Separation

Discovery: Where one role ends and another begins shows natural domain boundaries.

Boundary Analysis:

BoundaryRole ARole BHandoff Point
Build → Deployplatform-engineer creates appsre-devops deploys to productiongit push (ArgoCD takes over)
Deploy → Monitorsre-devops deployssre-devops monitorsDeployment complete → Alert setup
Work → Document(any role) does workweb-developer documentsFeature complete → Tutorial creation
Production → Researchsre-devops operatesresearcher analyzesSession ends → Learning extraction
Technical → Personal(any role) accomplishespersonal tracks in MCIMilestone reached → Capability update

Insight: Handoff points are where context needs to transfer cleanly.

Application: Bundle system enables handoffs (bundle captures context for next role).


Pattern 9: MCP Integration Patterns by Role

Discovery: Different roles use different MCP servers.

RoleMCP Servers UsedWhy
sre-devopsmemory (incident tracking)Remember past incidents, pattern match
platform-engineercontext7 (K8s API docs), memory (app patterns)Latest API schemas, app creation patterns
web-developercontext7 (React/Next.js docs), podman (containers)Frontend frameworks, dev environments
researchermemory (pattern tracking), context7 (research latest)Cross-session pattern analysis
personalmemory (growth tracking)Long-term capability evolution

Shared Across All: memory (institutional memory capture)

Insight: MCP server usage reveals role's external dependencies.


Pattern 10: Git Patterns as Role Signatures

Discovery: Commit prefixes reveal which role was active.

Git PatternRoleWhat It Signals
fix(ops):, fix(monitoring):sre-devopsOperational fix
feat(apps):, feat(charts):platform-engineerNew application/chart
feat(ui):, docs(tutorial):web-developerFrontend or documentation
docs(explanation):, docs(research):researcherFramework development
docs(life):, feat(career):personalPersonal planning

Application: Git history reveals role activity distribution over time.

Example Query:

# How much time in each role last quarter?
git log --since="3 months ago" --pretty=format:"%s" | \
  grep -E "(ops|monitoring)" | wc -l  # SRE work
git log --since="3 months ago" --pretty=format:"%s" | \
  grep -E "(apps|charts)" | wc -l    # Platform work
# etc...

Insight: Git commits are role activity telemetry.


Pattern 11: Documentation Follows Role Perspective

Discovery: Same system documented differently by each role.

Example: ArgoCD Documentation

RoleDocumentation FocusFile Path
sre-devopsTroubleshooting sync issuesdocs/how-to/troubleshooting/argocd-debug.md
platform-engineerCreating ArgoCD applicationsdocs/how-to/guides/create-argocd-app.md
web-developerArgoCD UI/dashboard usagedocs/tutorials/argocd-ui-guide.md
researcherArgoCD pattern analysisdocs/explanation/patterns/argocd-gitops.md

Insight: Diátaxis format maps to roles (How-to=sre, Tutorial=web-dev, Explanation=researcher).


Pattern 12: Token Budget Composition Mathematics

Discovery: Designed for 2-3 role composition while staying under 40% rule.

Composition Math:

Foundational (always loaded):           3k
Orchestration (JIT - if needed):       +6k
Role 1 (primary):                     +20k
Role 2 (secondary):                   +15k
─────────────────────────────────────────
Total:                                 44k (22% of 200k context window)

Leaves 156k (78%) for:
  - Session work
  - File reading
  - Git operations
  - Validation output
  - Learning extraction

Maximum Safe Composition (3 roles):

Foundational:                           3k
Orchestration:                         +6k
sre-devops:                           +30k
platform-engineer:                    +20k
web-developer:                        +15k
─────────────────────────────────────────
Total:                                 74k (37% of 200k window) ✅ Under 40%!

Insight: Can load ALL 5 roles if needed:

Foundational + Orchestration + Context:  13k
All 5 roles (30k+20k+15k+25k+10k):    +100k
─────────────────────────────────────────
Total:                                 113k (56.5%) ⚠️ Over 40%

Design Principle: 40% rule prevents loading all roles simultaneously → forces intentional role selection.


Pattern 13: Evolution Path Visible in Git History

Discovery: Roles evolved over time, visible in git commits.

Evolution Timeline (inferred from workspace):

  1. Phase 1 (2023-2024): Monolithic (everything in gitops, no roles)
  2. Phase 2 (Early 2025): Separation (work/ vs personal/)
  3. Phase 3 (Mid 2025): Specialization (12-factor-agentops, life, agentops-showcase)
  4. Phase 4 (Nov 2025): Explicit taxonomy (this role system)

Git Evidence:

  • 538 commits in 60 days → High activity in Phase 2
  • 204 sessions logged → Institutional memory capture began Phase 2
  • 52 agents created → Specialization in Phase 3
  • Role taxonomy → Formalization in Phase 4

Insight: Role boundaries emerged organically, then formalized explicitly.


Pattern 15: Role-Specific Validation Strategies

Discovery: Each role validates work differently.

RoleValidation MethodToolsSuccess Criteria
sre-devopsMonitoring, alerts, production healthPrometheus, ArgoCDZero downtime, SLO met
platform-engineerTests, builds, manifestsmake test-app, yamllintCI passes, app deploys
web-developerVisual testing, cross-browserBrowser DevTools, LighthouseRenders correctly, accessible
researcherColleague review, production usageGit history analysisPattern adopted in production
personalCareer outcomes, opportunitiesResume, interviews, offersGoal achieved, growth measured

Insight: Validation is role-contextual, not universal.


Summary: The Taxonomy as Knowledge Architecture

Key Discovery: Roles aren't just organizational - they're architectural.

What This Taxonomy Achieves:

  1. Discoverability: "I'm doing X" → Load role Y
  2. Composition: Mix roles without exceeding 40% rule
  3. Consistency: Shared foundation across all roles
  4. Evolution: Roles can specialize independently
  5. Feedback: Cross-role learnings transfer cleanly
  6. Measurement: Token budgets reveal complexity
  7. Optimization: Reusable skills reduce duplication
  8. Continuity: Bundles enable multi-session work
  9. Visibility: Git patterns show role distribution
  10. Self-awareness: System knows which role is active

Meta-Pattern: Role-based taxonomy is a knowledge architecture, not just a filing system.


Total Patterns Extracted: 15

Reusability: These patterns apply beyond this workspace (generalizable).

Next: Document this taxonomy for others to adopt.