babylon.formulas.consciousness

Ternary consciousness computation (Feature 034, US1).

Computes community consciousness as a derived quantity from the organizational landscape operating within the community. Organizations are the agents: consciousness is read off the pattern of which organizations are active, their tendencies, and their capacity.

Key design choices: - Unorganized population defaults to liberal (Jackson’s insight). - Substrate floor sets a minimum r regardless of org landscape. - Capacity factor = membership_density * cadre_level * cohesion.

See also

babylon.models.entities.consciousness: Data models. babylon.engine.systems.community: System that calls this. specs/034-ternary-consciousness/spec.md: Feature specification.

Functions

compute_ternary_consciousness(...[, ...])

Compute ternary consciousness from organizational landscape.

babylon.formulas.consciousness.compute_ternary_consciousness(community_type, org_landscape, substrate_floor=0.0)[source]

Compute ternary consciousness from organizational landscape.

Algorithm: 1. Sum weighted contributions per tendency.

Weight w_i = membership_density * cadre_level * cohesion.

  1. Unorganized fraction = max(0, 1 - sum(membership_densities)). Defaults to liberal (Jackson: passive acceptance is liberal hegemony).

  2. Normalize to simplex (r + l + f = 1.0).

  3. Apply substrate floor post-normalization: if r < floor, set r = floor and redistribute remaining (1-floor) to l and f proportionally.

Parameters:
  • community_type (CommunityType) – Which community this is for (used for logging).

  • org_landscape (list[OrgContribution]) – Organizations operating in the community.

  • substrate_floor (float) – Minimum r regardless of org landscape [0, 1].

Return type:

TernaryConsciousness

Returns:

TernaryConsciousness with r, l, f derived from org landscape. contestation_stored is None (uses Shannon entropy).