babylon.engine.dialectics.party

PartyDialectic — Vanguard ↔ Mass Line (MLM theory).

The party is the organizational form produced by sublation of the ClassDialectic. It holds the class that generated it (via parent_id) and governs that class’s subsequent motion through directives.

The Vanguard pole represents organizational discipline, cadre quality, and theoretical clarity. The Mass Line pole represents the party’s connection to and support from the masses.

When the vanguard loses contact with the masses (weight → -1), the party degenerates into bureaucracy. When the mass line dominates (weight → +1), the party dissolves into spontaneism.

Classes

MassLine(**data)

Mass Line pole: connection to and support from the masses.

PartyDialectic(**data)

Vanguard ↔ Mass Line party contradiction.

Vanguard(**data)

Vanguard pole: organizational discipline and theoretical clarity.

class babylon.engine.dialectics.party.MassLine(**data)[source]

Bases: BaseModel

Mass Line pole: connection to and support from the masses.

Parameters:

support (Annotated[float, Ge(ge=0.0), Le(le=1.0)])

support

Popular support level ∈ [0, 1].

model_config: ClassVar[ConfigDict] = {'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

support: float
class babylon.engine.dialectics.party.PartyDialectic(**data)[source]

Bases: Dialectic[Vanguard, MassLine]

Vanguard ↔ Mass Line party contradiction.

Weight semantics:

weight < 0 → vanguard dominant (risk of bureaucratic degeneration). weight > 0 → mass line dominant (risk of spontaneism). weight ≈ 0 → healthy dialectical balance.

Motion law:

Reads the sublated class’s state to calibrate the directive. Discipline decays without class struggle input; mass support grows with material grievance.

observe() emits:
  • current_directive: float ∈ [-1, 1], a governance signal that the sublated ClassDialectic reads via find_successor().

  • discipline: vanguard discipline level.

  • mass_support: mass line support level.

Parameters:
type_tag: str
step(inputs, world)[source]

Motion law T for the party dialectic.

Parameters:
Return type:

PartyDialectic

Returns:

New PartyDialectic with updated weight and tick.

observe()[source]

Project party state for downstream governance.

Emits current_directive — the governance signal that the sublated ClassDialectic reads in its step().

Return type:

dict[str, Any]

Returns:

Base observation extended with party-specific metrics.

model_config: ClassVar[ConfigDict] = {'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: UUID
pole_a: A
pole_b: B
weight: float
parent_id: UUID | None
tick_created: int
tick_updated: int
class babylon.engine.dialectics.party.Vanguard(**data)[source]

Bases: BaseModel

Vanguard pole: organizational discipline and theoretical clarity.

Parameters:

discipline (Annotated[float, Ge(ge=0.0), Le(le=1.0)])

discipline

Party discipline level ∈ [0, 1].

model_config: ClassVar[ConfigDict] = {'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

discipline: float