Emergent Role Assignment

**Category:** Phase 3 Core - Self-Organization

16 stars

Best use case

Emergent Role Assignment is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

**Category:** Phase 3 Core - Self-Organization

Teams using Emergent Role Assignment should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/emergent-role-assignment/SKILL.md --create-dirs "https://raw.githubusercontent.com/plurigrid/asi/main/ies/music-topos/.codex/skills/emergent-role-assignment/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/emergent-role-assignment/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Emergent Role Assignment Compares

Feature / AgentEmergent Role AssignmentStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

**Category:** Phase 3 Core - Self-Organization

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Emergent Role Assignment

**Category:** Phase 3 Core - Self-Organization
**Status:** Skeleton Implementation
**Dependencies:** `sheaf-theoretic-coordination`, `chemical-organization-theory`

## Overview

Implements spontaneous role assignment in multi-agent systems through self-organization, dynamic hierarchy adaptation, and reward-based emergence without central coordination.

## Capabilities

- **Spontaneous Hierarchy**: Agents self-organize into hierarchical structures
- **Dynamic Role Adaptation**: Roles change based on task demands
- **Reward-Based Emergence**: Roles emerge from collective optimization
- **Stability Analysis**: Verify organizational stability and convergence

## Core Components

1. **Role Dynamics** (`role_dynamics.jl`)
   - Role state representation
   - Transition dynamics between roles
   - Stability attractors

2. **Hierarchy Formation** (`hierarchy_formation.jl`)
   - Emergent leadership via fitness
   - Span of control optimization
   - Dynamic reorganization triggers

3. **Reward Shaping** (`reward_shaping.jl`)
   - Collective reward functions
   - Credit assignment without centralization
   - Multi-agent learning objectives

4. **Stability Verification** (`stability_verification.jl`)
   - Lyapunov function construction
   - Convergence guarantees
   - Resilience to perturbations

## Integration Points

- **Input from**: `sheaf-theoretic-coordination` (consensus on roles)
- **Output to**: `chemical-organization-theory` (roles as stable organizations)
- **Coordinates with**: `feedforward-learning-local` (local learning signals)

## Usage

```julia
using EmergentRoleAssignment

# Define multi-agent system
agents = [Agent(id=i, capabilities=rand(5)) for i in 1:20]
environment = GridWorld(10, 10)

# Initialize role assignment system
role_system = RoleSystem(
    n_roles=4,
    transition_rates=0.1,
    reward_fn=collective_foraging_reward
)

# Simulate emergence
trajectory = simulate_emergence(role_system, agents, environment, steps=1000)

# Analyze stability
stability = analyze_role_stability(trajectory)
hierarchy = extract_hierarchy(trajectory.final_state)
```

## References

- Bonabeau et al. "Self-Organization in Social Insects" (1997)
- Wolpert & Tumer "Optimal Payoff Functions for Members of Collectives" (1999)
- Tumer & Wolpert "A Survey of Collectives" (2004)

## Implementation Status

- [x] Basic role dynamics
- [x] Simple hierarchy formation
- [ ] Full reward shaping framework
- [ ] Stability verification
- [ ] Benchmark on multi-agent tasks

Related Skills

testing-api-for-mass-assignment-vulnerability

16
from plurigrid/asi

Tests APIs for mass assignment (auto-binding) vulnerabilities where clients can modify object properties they should not have access to by including additional parameters in API requests. The tester identifies writable endpoints, adds undocumented fields to request bodies (role, isAdmin, price, balance), and checks if the server binds these to the data model without filtering. Part of OWASP API3:2023 Broken Object Property Level Authorization. Activates for requests involving mass assignment testing, parameter binding abuse, auto-binding vulnerability, or API over-posting.

securing-aws-lambda-execution-roles

16
from plurigrid/asi

Securing AWS Lambda execution roles by implementing least-privilege IAM policies, applying permission boundaries, restricting resource-based policies, using IAM Access Analyzer to validate permissions, and enforcing role scoping through SCPs.

implementing-container-image-minimal-base-with-distroless

16
from plurigrid/asi

Reduce container attack surface by building application images on Google distroless base images that contain only the application runtime with no shell, package manager, or unnecessary OS utilities.

exploiting-mass-assignment-in-rest-apis

16
from plurigrid/asi

Discover and exploit mass assignment vulnerabilities in REST APIs to escalate privileges, modify restricted fields, and bypass authorization controls by injecting unexpected parameters in API requests.

building-role-mining-for-rbac-optimization

16
from plurigrid/asi

Apply bottom-up and top-down role mining techniques to discover optimal RBAC roles from existing user-permission assignments, reducing role explosion and enforcing least privilege.

zx-calculus

16
from plurigrid/asi

Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)

zulip-cogen

16
from plurigrid/asi

Zulip Cogen Skill 🐸⚡

zls-integration

16
from plurigrid/asi

zls-integration skill

zig

16
from plurigrid/asi

zig skill

zig-syrup-bci

16
from plurigrid/asi

Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation

zig-programming

16
from plurigrid/asi

zig-programming skill

zeroth-bot

16
from plurigrid/asi

Zeroth Bot - 3D-printed open-source humanoid robot platform for sim-to-real and RL research. Affordable entry point for humanoid robotics.