ADR-017: Cohort-Based Community Layers
Date: 2025-12-29 Status: Accepted Deciders: Development Team Related: ADR-003 (Multi-Tenant RLS), ADR-011 (Reputation Decay)
We decided to sort the members of a community into three layers, based on how often they take part. The inner circle is 5 to 7 people who interact weekly or more. The active community is about 15 to 50 people who interact monthly. The extended network is about 50 to 150 people who interact quarterly or less.
Why: the record says human communities naturally form layers like these, and that treating every member the same ignores that. The record also names the risks. Members of the outer layer may feel second-class, people may inflate their activity, and some communities may reject any ranking.
What it means for you: you are never assigned a layer by hand. It follows from your activity over the last six months. The record says the calculation is visible to the member. The record says no stigma attaches to a layer, because it describes activity and does not judge anyone.
Does it still hold? The record is marked Accepted. The part it describes as deployed is small. A layer label is calculated and shown to community admins, and it is for information only. The record lists perks for each layer, such as priority alerts and a stronger voice in decisions. It says layers change no notifications and no voting for now. Later steps are only planned.
For builders: the full technical record
Trimmed in Sprint 149 for readability. Full earlier text: ADR-017 at d800110c
Context
Human communities naturally organize in layers based on interaction frequency and trust depth. Anthropological research (Robin Dunbar, etc.) shows:
- Inner circles: 5-7 people (high frequency, deep trust)
- Active community: ~50 people (regular interactions, medium trust)
- Extended network: ~150 people (Dunbar's Number, baseline trust)
Current Karmyq implementation treats all community members equally, missing opportunity to model natural social structures.
Decision
Implement cohort-based community layers reflecting natural human social organization.
Layer Structure
Inner Circle (5-7 people)
- High frequency interactions (weekly or more)
- Deep trust relationships
- Core decision-making group
- Regular mutual assistance
- Quick response to urgent requests
Active Community (~15-50 people)
- Regular interactions (monthly)
- Medium trust relationships
- Engaged in community governance
- Consistent participation in exchanges
- Shared norms and culture
Extended Network (~50-150 people)
- Occasional interactions (quarterly or less)
- Baseline trust relationships
- Broader community participation
- Resource sharing network
- Discovery layer for new connections
Layer Assignment
Self-Organizing: Layers determined by interaction patterns, not manual assignment.
Algorithm: interactions per month over the last 6 months. At 4 or more per month the layer is
inner_circle; at 1 or more it is active_community; otherwise extended_network. The SQL
function calculate_community_layer() in
infrastructure/postgres/migrations/026-cohort-layers.sql is the implementation. It counts
requests created, offers made and messages sent.
Layer Benefits
Inner Circle Members:
- Priority notification for urgent requests
- Access to "inner circle only" exchanges
- Stronger voice in governance decisions
- Cross-community introduction privileges
Active Community Members:
- Standard notification priority
- Access to most exchanges
- Full governance participation
- Community event organizing rights
Extended Network Members:
- Lower notification priority (opt-in for urgent)
- Access to public exchanges
- Observation of governance (limited voting)
- Path to active participation
Dynamic Movement
Members naturally move between layers based on participation:
- Increased interaction → move to more engaged layer
- Decreased interaction → move to less engaged layer
- Transparent calculation visible to member
- No stigma attached to layer (it's descriptive, not prescriptive)
Consequences
Positive
- Models Reality: Reflects how humans naturally organize
- Reduces Noise: Notifications targeted by interaction frequency
- Encourages Depth: Inner circles build deeper trust
- Scales Gracefully: Extended network can grow without overwhelming actives
- Measurable Engagement: Clear metrics for community health
Negative
- Exclusion Feelings: Extended network members may feel "second-class"
- Gaming Potential: People may artificially boost interaction frequency
- Calculation Complexity: Algorithm must balance multiple factors
- Cultural Sensitivity: Some communities may reject hierarchy
Alternatives Considered
Alternative 1: Flat Community Structure
- Why rejected: Doesn't model human social reality; overwhelms engaged members with noise
Alternative 2: Manual Role Assignment
- Why rejected: Creates explicit hierarchy; subject to politics and favoritism
Alternative 3: Fixed Member Tiers
- Why rejected: Rigid; doesn't adapt to changing participation patterns
Implementation Notes
Phase 1: Read-Only Layer Display (v9.0)
- Calculate layers based on interaction history
- Display in member profiles
- No functional differences (just informational)
Phase 2: Layer Calculation Deployed (Sprint 16 — soft version)
calculate_community_layer()PostgreSQL function added (migration 026)- Layer field returned on community members API response
- Layer chip visible to admins in the community members view (informational only)
- No notification priority or governance gating — layers are descriptive this sprint
- Future governance: inner circle as natural moderators, active community as norm proposers
Phase 3: Cross-Layer Dynamics (v11.0+)
- Mentorship programs (inner → extended)
- Layer transition rituals
- Inter-layer trust building activities
Database Schema
No new tables: layers are computed values. The function is defined in
infrastructure/postgres/migrations/026-cohort-layers.sql.
API Changes
GET /communities/:id/members returns, per member, id, name, layer, interactionsPerMonth and
layerSince, and a layerCounts object (inner_circle, active_community, extended_network)
beside the members array, inside the standard { success, data } envelope.
References
- Dunbar, R. "Grooming, Gossip, and the Evolution of Language" (1996)
- Dunbar's Number research (cognitive limit of ~150 stable relationships)
- Social Brain Hypothesis
- Anthropological studies of hunter-gatherer band sizes