PARACOSM AGENTOS | API Reference v0.9.1035
Home Simulation API Docs GitHub npm
Home Simulation API Docs GitHub npm AgentOS Discord
paracosm - v0.9.1035
    Preparing search index...

    Interface WorldPolitics

    Universal political/social state shared by every scenario.

    The previous shape baked in Mars-specific fields (earthDependencyPct, governanceStatus 'earth-governed'/'commonwealth'/'independent', independencePressure). Those still ship as defaults so the Mars and Lunar scenarios continue to work without changes, but a custom scenario (e.g., medieval kingdom with vassalLoyaltyPct, corporate sim with boardConfidence) can extend via the index signature without touching engine core.

    interface WorldPolitics {
        earthDependencyPct: number;
        governanceStatus: "earth-governed" | "commonwealth" | "independent";
        independencePressure: number;
        [key: string]: string | number | boolean;
    }

    Indexable

    • [key: string]: string | number | boolean

      Scenario-defined political variables beyond the universal set.

    Index
    earthDependencyPct: number

    Mars/Lunar-specific: percentage of supplies still relying on the parent body (Earth, planet, etc.). Custom scenarios may ignore.

    governanceStatus: "earth-governed" | "commonwealth" | "independent"

    Mars/Lunar-specific governance trajectory. Custom scenarios may ignore or override with their own status string via the index signature.

    independencePressure: number

    Mars/Lunar-specific: 0..1 pressure toward independence. Custom scenarios may ignore.