A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Economy & Finance

Subsidiary Corporations

Last updated 2026-10-29
Player wikiSubsidiary Corporations
Source files

Summary#

A player-owned corporation can control other player-owned corporations as a holding group: one corp (the parent) formalizes >50% voting control of another (the subsidiary), gaining management rights over its CEO seat, funding it directly, and setting a dividend floor. The relationship is always derived, never stored as a parent pointer, a corp is a subsidiary of whoever currently controls its votes, full stop. This companion doc covers that system; see corporations.md for the base corporation model it extends.

Player guide: Subsidiary Corporations

Feature flag: subsidiaryCorporationsEnabled on the gameState singleton (_id: "current"), default ON for fresh worlds via featureFlagDefaults. Fail-closed on any world that never stamped the flag, isSubsidiaryCorporationsEnabled() returns false unless the field is explicitly true. Every subsidiary API route, and every effect below, is gated behind this flag.

Rules#

Constants#

Constant Value Source
SUBSIDIARY_OWNERSHIP_THRESHOLD_PERCENT 50 (voting power must exceed this)
SUBSIDIARY_FORMALIZATION_THRESHOLD_PERCENT 50 (kept in sync with the above)
SUBSIDIARY_MIN_AGE_TURNS 24 turns between formalize and release
SUBSIDIARY_CAPITAL_INJECTION_MAX_PCT_OF_PARENT_LIQUID 0.25
SUBSIDIARY_CAPITAL_INJECTION_COOLDOWN_TURNS 24 turns per subsidiary
SPIN_OFF_COOLDOWN_TURNS 168 turns per parent
SPIN_OFF_BASE_COST_ANCHOR 500,000 ₳
SPIN_OFF_PER_SECTOR_COST_ANCHOR 100,000 ₳ per sector moved
MAX_DIVIDEND_RATE 25 (upper bound of a dividend floor, percent)
GROUP_SYNERGY_CONVERGENCE 0.05 of the gap per turn
GROUP_SYNERGY_MAX_SHARE 0.6 of the group leader's strength
SPINOFF_SYNERGY_MAX_SHARE 0.85
SPINOFF_BRAND_INHERITANCE_TURNS 96 turns after spin-off
TRANSFER_PRICING_AUDIT_THRESHOLD_ANCHOR 5,000,000 ₳ accrued exposure
TRANSFER_PRICING_PENALTY_RATE 0.4

One turn is about one real hour; 48 turns are one game year. So 24 turns is about one real day and 168 turns is about seven real days.

Group supply discount: the parent sets groupManagement.supplyDiscount from 0 to 0.35 (default 0), clamped by clampGroupDiscount to SUPPLY_AGREEMENT_PRICE_BAND = 0.35 (, ). Discounts move operating profit between members and apply only to consumption, never to unconsumed reservations. It needs the group supply engine (see Configuration).

Further constants: ARMS_LENGTH_TOLERANCE 0.05 premium below which an intra-group contract is treated as arm's length (); sprawl discount on the parent's share price is free up to 3 formalized subsidiaries and linear to -50% at 9 or more (SUBSIDIARY_SPRAWL_FREE_COUNT, SUBSIDIARY_SPRAWL_CAP_COUNT, SUBSIDIARY_SPRAWL_MAX_PENALTY, ; see Stock Market).

Core model: Derived Control, Not a Stored Edge#

There is no parentCorporationId field anywhere. Two facts combine to define "is this corp a managed subsidiary right now, and if so, of whom":

  1. Voting control, some corporation currently controls >50% of the target's voting power (SUBSIDIARY_OWNERSHIP_THRESHOLD_PERCENT = 50 in corporateOwnershipConstants.ts, re-exported from corporateOwnership.ts, kept in sync with SUBSIDIARY_FORMALIZATION_THRESHOLD_PERCENT = 50 in the subsidiaries module). Voting power, not raw share count, super-share multipliers are respected via acquirerOwnershipPercent() / getControllingCorporateParent().
  2. Formalization, Corporation.subsidiaryFormalizedAtTurn is set. This is an opt-in marker, not a parent pointer; it just records "yes, someone formalized this."

isFormalizedSubsidiary() requires both: a controlling parent AND the marker. If voting control lapses (parent sells down, dilution, etc.) the marker becomes stale and is cleared automatically by the turn processor's zombie cleanup (see below), there is no manual "unformalize because the numbers moved" step for players.

Unsold shares still sitting in the parent's own open sell orders or listings count toward its control for every derived-control check (loadReservedCorporatePositions / resolveControllingCorporateParent), so listing a controlling block for sale does not silently drop parent powers before the trade fills.

Eligibility#

Formalizing a Subsidiary#

POST /api/corporations/[id]/subsidiary/formalize, target is [id], parentCorporationId in the body.

Releasing a Subsidiary#

POST /api/corporations/[id]/subsidiary/release, dismissCaretaker optional in body.

Zombie Subsidiary Cleanup (turn processor)#

cleanupZombieSubsidiaries() runs every turn inside processCorporationTurn (gated by the feature flag), after financial-distress tracking and after group relief and synergies (see Timing):

Authorization: canActOnCorporationAsParent#

Every subsidiary management action (release, capital injection, dividend floor, CEO appointment) shares one authorization check:

true iff:
  feature flag is ON, AND
  sub.subsidiaryFormalizedAtTurn is set, AND
  sub is not national/state-owned, AND
  the caller is the sitting (non-vacant) CEO/owner of whoever currently
  controls >50% of sub's voting power (recomputed live, reserved holdings included)

Parent authority is recomputed on every call from live share data, it is never cached on userId.

Capital Injection#

POST /api/corporations/[id]/subsidiary/capital-injection, { amount } in the parent's local currency.

Parent Dividend Floor#

POST /api/corporations/[id]/subsidiary/dividend-floor, { floorPct } (0 to MAX_DIVIDEND_RATE).

CEO Appointment on Subsidiaries#

POST /api/corporations/[id]/subsidiary/appoint-ceo, { ceoType: "character" | "npp", characterId?, forcedNppId? }.

Blocked While a Formalized Subsidiary: Share Issuance#

subsidiaryIssuanceBlockReason() in issuanceGuard.ts blocks all equity issuance (public issuance, self-issuance, going public) on any corp with subsidiaryFormalizedAtTurn set, whenever the feature flag is on. Rationale in-code: any issuance dilutes the parent's stake and could drop it below the >50% control threshold, letting the subsidiary's CEO escape parent oversight. The parent must fund it via capital injection instead, or release it first if dilution is genuinely wanted. No-op when the feature is off or the corp isn't formalized, non-subsidiary issuance is unaffected.

Spin-Off#

POST /api/corporations/[id]/subsidiary/spin-off, { sectorType, name, tickerSymbol?, appointedCeoType, appointedCeoCharacterId?, forcedNppId? }.

Moves one of the parent's sector types into a new, wholly parent-owned private corporation, immediately formalized as a subsidiary of the parent.

Ownership Cycle Guard on Purchase#

corpPurchaseWouldCycle() (cycleGuard.ts) is checked when a corporation (not a player character) buys shares in another corporation, at the point of purchase rather than only at formalization time. It reads the full corp cap-table graph (_id, shareholders, totalShares, superShareMultiplier) and reuses the same wouldCreateOwnershipCycle() walk. Refusal message: OWNERSHIP_CYCLE_ERROR.

Holding Groups: Tax Relief, Balance Sheet, Synergies#

A group is the set of corporations connected by formalized subsidiary edges, resolved fresh every turn by resolveFormalizedGroups() in groups/groupMembership.ts. A group edge requires BOTH de-facto control (>50% voting) AND formalization, de-facto control alone is not a group for any of the effects below. Cycles that slip past the guards are handled defensively: the root-resolution walk is bounded by edge count and canonicalizes on the smallest id in any detected cycle so the group doesn't fragment into singletons and silently lose relief.

Group Loss Relief (tax)#

computeGroupRelief() in groups/lossRelief.ts. Each corp is still taxed alone during normal turn processing; relief is applied as a rebate afterward, not a recomputation of the tax figure, arithmetically identical to filing consolidated, but additive rather than invasive to the turn's hot path.

Group Balance Sheet (read-only consolidation)#

loadGroupBalanceSheet() in groups/groupBalanceSheet.ts. Consolidates nothing in the engine, every member keeps its own cash, shares, and shareholders. This is purely a display aggregation for a parent corp's page:

Group Synergies (marketing & logistics)#

computeGroupSynergies() in groups/synergies.ts. An explicitly asymmetric model: members are pulled up toward the group's best marketingStrength / logisticsStrength, never dragged down, averaging was rejected because it would make acquiring a weak subsidiary strictly punish a strong parent.

UI#

Data#

No new collection. State lives on existing documents.

Collection Fields Access Player-visible
corporations subsidiaryFormalizedAtTurn, parentDividendFloorPct, parentDividendFloorSetByCorpId, lastCapitalInjectionTurn, lastSpinOffTurn, isSpinOff, spunOffFromCorpId, spunOffAtTurn, pendingDivestiture; plus shareholders, totalShares, superShareMultiplier, liquidCapital, userId, ceoId, ceoType, ceoVacant, caretakerCeo, countryOwnerId, marketingStrength, logisticsStrength Read and write Group structure, floor and permission flags yes; cooldown anchors are shown as remaining turns
corporateSectors corporationId repointed on spin-off; revenue and currentGrowthCost re-denominated Write (spin-off only), read by relief and balance sheet Yes
characters CEO seat checks Read Yes
npps NPP caretaker selection Read Yes
gameState (_id: "current") subsidiaryCorporationsEnabled, subsidiaryCorporationsEnabledBy, subsidiaryCorporationsEnabledAt Read; written by the admin toggle No
gameConfig (_id: "default") groupSupplyCoordinationEnabled, supplyAgreementsEnabled, marketSystemMode Read by group management No
Financial ledger corp_capital_injection (both legs), corp_capital_seed (spin-off fee debit), gov_tax_revenue (treasury credit) Write Yes, in the corporation ledger
Audit log corp.capitalInjection, corp.subsidiary_cleanup Write No

Field meanings#

No new collection. All state lives on the existing corporations documents:

Field Meaning
subsidiaryFormalizedAtTurn?: number Presence = formalized; the turn it happened. Cleared automatically if control lapses.
isSpinOff?: boolean, spunOffFromCorpId?: ObjectId, spunOffAtTurn?: number Spin-off provenance; feeds the synergy brand-inheritance ceiling.
lastSpinOffTurn?: number Cooldown anchor on the parent for spin-offs it initiates.
lastCapitalInjectionTurn?: number Per-subsidiary cooldown anchor for capital injections received.
parentDividendFloorPct?: number, parentDividendFloorSetByCorpId?: ObjectId Dividend floor set by the controlling parent; only honored while that parent still controls >50%.
pendingDivestiture?: PendingDivestiture Merger-review remedy; measured against the controlled group, not discharged by a spin-off alone.

Configuration#

Timing#

All of this runs in the corporation phase of the turn (processCorporationTurn in ), only when subsidiaryCorporationsEnabled is on. Player actions (formalize, release, injection, floor, appoint, spin-off) run immediately when the API is called, outside the turn.

Order inside the corporation phase, earliest first:

  1. Per-corp sector processing, including dividends. The parent dividend floor is applied here ().
  2. Supply agreement settlement, then the transfer-pricing audit for cross-border intra-group premiums (groups/applyTransferPricingAudit.ts).
  3. Tax is charged and IMF bailout payments remitted.
  4. Phase 3e, group loss relief (groups/applyGroupRelief.ts), a rebate after tax.
  5. Phase 3f, group synergies (groups/applySynergies.ts).
  6. Later, after financial-distress tracking, zombie subsidiary cleanup (subsidiaries/turnCleanup.ts).

Because cleanup runs last, a group edge that lapsed this turn is only cleared at the end of the same phase. Group edges need both control and the formalization marker, so a lapsed parent already stops counting for relief and synergies in the same turn's resolution.

Worked trace#

Parent P (CEO is player X, liquid capital 2,000,000) holds 62% of the voting power of S. S's CEO is a different human, S has 6% dividend set by its CEO, and the turn is 1000. All amounts are in the same currency so no FX applies.

  1. Control: 62 is above 50, so P controls S.
  2. Formalize at turn 1000: S.subsidiaryFormalizedAtTurn = 1000. S cannot issue shares from now on.
  3. Injection: cap 0.25 x 2,000,000 = 500,000. X injects 500,000: P debits to 1,500,000, S credits 500,000, S.lastCapitalInjectionTurn = 1000, and S cannot receive another until turn 1024.
  4. Dividend floor: X sets 10 (at most 25). S's effective rate is max(6, 10) = 10. If S's CEO had 15, the rate stays 15.
  5. Release attempt at turn 1010: refused because 1010 - 1000 = 10 is under 24. Allowed from turn 1024.
  6. Loss relief (turn 1030): group members in the same country, A with pre-tax income +1,000,000 and tax paid 300,000, B with pre-tax -400,000 and tax paid 0. lossesSurrendered = min(400,000, 1,000,000) = 400,000; effectiveRate = 300,000 / 1,000,000 = 0.3; totalRelief = min(300,000, 400,000 x 0.3) = 120,000, allocated entirely to A (the only payer). A is rebated 120,000.
  7. Synergies: B has marketing strength 2.0 and the group leader has 10. Ordinary cap 0.6 gives a target max(2, 10 x 0.6) = 6, so the delta is (6 - 2) x 0.05 = 0.2 and B moves to 2.2. If B is a spin-off from a current member within 96 turns the cap is 0.85, the target 8.5 and the delta 0.325.
  8. Spin-off of 2 sectors: cost 500,000 + 100,000 x 2 = 700,000, debited from P and credited to P's country treasury. P cannot spin off again for 168 turns.
  9. Sprawl: with 6 formalized subsidiaries P's share price multiplier is 1 - 0.5 x (6 - 3) / (9 - 3) = 0.75.
  10. Lapse: P sells down to 48%. At the end of the next corporation phase cleanupZombieSubsidiaries clears subsidiaryFormalizedAtTurn, the floor fields, and S is no longer a group member. The 500,000 injected stays in S.

Edge cases and limits#

Invariants#

Failure and recovery#

Connections#

Driven by:

Affects:

Admin toggle: POST /api/admin/corporations/subsidiaries/toggle flips gameState.subsidiaryCorporationsEnabled. UI: src/components/admin/economy/SubsidiaryCorporationsToggle.tsx.

Key files:

Tests#

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask