babylon.engine.systems.decomposition

Decomposition system for class breakdown during terminal crisis.

Implements LA decomposition during SUPERWAGE_CRISIS: - 30% of Labor Aristocracy becomes CARCERAL_ENFORCER (guards, cops) - 70% falls into INTERNAL_PROLETARIAT (precariat, unemployed)

This models the shift from productive jobs to carceral jobs as the imperial economy contracts. The carceral state expands to manage the surplus population.

See ai-docs/terminal-crisis-dynamics.md for full theory.

Classes

DecompositionSystem()

Handles class decomposition during terminal crisis.

class babylon.engine.systems.decomposition.DecompositionSystem[source]

Bases: object

Handles class decomposition during terminal crisis.

The Labor Aristocracy decomposes when super-wages can’t be paid: - Checks event bus history for SUPERWAGE_CRISIS events - Splits LA population: 30% enforcer / 70% internal proletariat - Transfers wealth proportionally - Emits CLASS_DECOMPOSITION event

Must run AFTER ImperialRentSystem (which emits SUPERWAGE_CRISIS).

name = 'Decomposition'
step(graph, services, context)[source]

Check for SUPERWAGE_CRISIS and execute LA decomposition with delay.

Uses persistent_data to track when SUPERWAGE_CRISIS was detected and delays CLASS_DECOMPOSITION by the configured number of ticks. This ensures phase staggering (temporal separation between phases).

Parameters:
Return type:

None