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

Corporate Mergers and Acquisitions

Last updated 2026-10-29
Source files

Summary#

Player guide: Corporate Mergers & Acquisitions

Players can offer to buy another non-state-owned corporation outright, whether a player or an AI (NPP) runs it. The acquirer's CEO proposes an all-in price and an outcome, merge or keep as subsidiary. A player-run target's CEO accepts or rejects; an AI-run target resolves automatically against its asking price. On a merge, the target's shareholders are cashed out, its cash and sectors move to the acquirer, and the target corporation is deleted. On a subsidiary outcome the shareholders are cashed out but the target survives with the acquirer as its only shareholder. If the combined firm would hold too large a share of a national industry, or a foreign-controlled group would take over a company under a screening law, the deal is referred to a named cabinet officeholder for review before it can complete. The whole subsystem is gated by the corpDealsEnabled game flag.

Why it works this way: acquisitions are the only way to fold one corporation into another, so the review gate exists to stop a player rolling up a whole national industry through offers. The reviewing seat is a named officeholder with published fallback bands, so a vacant seat is neither a loophole nor a coin flip.

Rules#

Constant Value Source
ACQUISITION_OFFER_DURATION_TURNS 24 turns
NPP_ACQUISITION_PREMIUM_MULTIPLIER 1.1 (AI-run target asking price = ceil(reference valuation x 1.1))
MERGER_REVIEW_THRESHOLD_PERCENT level 0 off, 1: 75, 2: 60, 3: 50, 4: 40
MERGER_REVIEW_TURNS 6 turns for the seat to rule
MERGER_REVIEW_REMEDY_MARGIN_PERCENT 5 points above threshold: auto-clears with remedy
MERGER_REVIEW_BLOCK_MARGIN_PERCENT 15 points above threshold: auto-blocks
MERGER_REMEDY_TURNS 12 turns to divest after the deal commits
MERGER_REMEDY_OVERDUE_FINE_RATE 0.05 of controlled-group revenue in the ordered industry, per turn
Screening referral threshold 100 (stored on the review; the margin can never reach the remedy band, so an undecided screening review auto-clears) assertMergerClearance in
GROUP_MERGER_CONCENTRATION_STAGE 5 (the groupSizeCostsStage at which concentration measures whole control groups)
Review note length 500 characters
Deals route rate limit 10 requests per 60 seconds per user
corpDealsEnabled default true for fresh worlds only (see Configuration)

Proposing an offer#

Entry point: proposeAcquisitionOffer() in , called from POST /api/corporations/[id]/deals with action: "propose".

Rejected up front if:

Target discovery uses GET /api/corporations/buyer-search?q=...&exclude=<corpId>, a name search across player-run and AI-run (ceoType: "npp"), non-state-owned corporations in any country (cross-border acquisitions are intentional, per code comment referencing issue #106). A corp counts as player-run via PLAYER_RUN_CEO_FILTER ().

On success, an AcquisitionOffer document is inserted into the acquisitionOffers collection:

Field Notes
priceAnchor Agreed all-in price for the whole target, in anchor currency (₳), rounded
targetValuationAnchor Reference valuation captured at propose time (see below), rounded
status "pending" | "accepted" | "rejected" | "withdrawn" | "expired" | "failed"
outcome "subsidiary" when the offer keeps the target as a subsidiary; absent for a merge
createdAtTurn / expiresAtTurn Offer lasts ACQUISITION_OFFER_DURATION_TURNS = 24 turns
proposedByCharacterId / proposedByUserId Who proposed, for authorization on withdraw

If the target has a player CEO (target.userId set), a corp_vote_opened-type notification is sent pointing them to the Deals tab.

If the target is genuinely AI-run (ceoType: "npp" with no player caretaker, isNppAutoResolvableTarget), no human can press Accept: the offer resolves immediately. A price at or above nppAcquisitionMinimumPrice (reference valuation x 1.1, rounded up) auto-accepts and executes; a lower price is stored as "rejected". Caretaker-run corporations stay player property and follow the normal pending-offer flow. If an auto-accepted offer then fails at execution (a guard, or a merger referral), the offer is flipped to "rejected" and the failure is returned; a thrown error also flips it to "rejected" and rethrows.

Reference valuation#

referenceValuationAnchor() computes a display/fair-value anchor for the target, independent of the offer price:

whole-corp value = computeWholeCorpValuation({
  sharePrice: target.sharePrice (converted to ₳),
  totalShares: target.totalShares,
  balanceSheetEquity: liquidCapital (₳) + sectorNpvAnchor,
  debt: 0,   // v1 blocks bonded targets entirely, so no debt to net out
})
// computeWholeCorpValuation (src/lib/nationalization/compensation.ts):
//   max(0, max(sharePrice x totalShares, balanceSheetEquity) - debt)

So the valuation is the larger of market capitalization and balance-sheet equity, never their sum. sectorNpvAnchor comes from sectorExitValueAnchor() (), the same replacement-cost-book anchor used for other corp exits (dissolution, restructuring, nationalization) once plants are enabled for the active market mode. The code comment (tagged "D11") is explicit that this is deliberate: a corp whose value is its plants should be quoted the plants, not a capitalized earnings stream. Below plants the sector leg is going-concern NPV with the growth cost excluded (excludeGrowthCost: true).

Responding to an offer#

POST /api/corporations/[id]/deals with action: "accept" | "reject" | "withdraw":

Executing an accepted acquisition#

acceptAcquisitionOffer() claims the offer, then calls executeAgreedAcquisition() (). Settlement is recorded in an acquisitionSettlements document claimed before money moves; each payout leg applies as an atomic credit-plus-stamp write, so a retry resumes from the record and never pays a holder twice. If execution returns ok: false before any money moves, the claim is released so the offer can be retried (status back to pending); a permanently unpayable leg refunds only the undelivered remainder and the offer goes to "failed".

v1 scope guards#

Two acquisition types are blocked outright with an error rather than being mishandled:

Both guards apply to the merge outcome only. Under the subsidiary outcome the target survives with its bonds and holdings, and checkSubsidiaryAcquisition instead refuses chaining, circular ownership and one player running both parent and subsidiary.

Bank charter and law guards#

Subsidiary outcome#

checkSubsidiaryAcquisition (, rules in rules/subsidiaryOutcome.ts) runs at propose time and again at execution. It refuses when: subsidiaryCorporationsEnabled is off; the acquirer is state-owned or already a formalized subsidiary; the target is state-owned, already controlled by another corporation, already a formalized subsidiary, or controls other corporations (no chains); buying it would create an ownership cycle; or the target's CEO already runs another of the acquirer's subsidiaries, or is the same player as the parent's CEO. On success the executor pays the price the same way as a merge, then transferTargetEquityToAcquirer rewrites the cap table so the acquirer is the only shareholder (publicFloat 0, subsidiaryFormalizedAtTurn set, pending share issuance and dual-class structure removed). Open orders, listings and offers on the target's shares are cancelled first, and index fund holdings in the target are swept. The target's sectors, cash, bonds, bank charter, identity and CEO are untouched.

Merger review gate (runs before any money moves)#

assertMergerClearance() is called with trigger "agreedAcquisition". If it returns ok: false, execution stops before any state changes, "a referral must leave the two corporations exactly as it found them" per the code comment. See Merger review below for the full gate logic.

Money and asset flow (once clearance is ok)#

  1. Debit acquirer the agreed price, converted to the acquirer's liquid currency via anchorToCorpLiquidCapital. Atomic, balance-gated (atomicallyDebitCorpLiquidCapital); insufficient funds aborts with a 400 before anything else happens.
  2. Pay target's shareholders the agreed price pool through a pinned payout plan (buildAcquisitionPayoutPlan, ) built on allocateShareholderPool: each shareholder row gets floor(price x shares / totalShares), characters and imperial characters to personal balances, corporate holders to liquidCapital, index funds to fund cash, and the public float slice to the target country's treasury (federalBudget). Per-row rounding dust and holder rows that match no bucket (for example NPP holders) are paid to nobody; this is a deliberate copy of the dissolution allocation's behaviour. Character holders accrue a pending stock tax receipt when the stock holding tax has started (stockHoldingTaxStartTurn). If a leg is permanently unpayable the settlement compensates.
  3. Fold target's liquid cash into the acquirer, the target's own liquidCapital converts to ₳ and credits the acquirer. Money is conserved: the offer price went to shareholders; the target's own cash just relocates to its new owner.
  4. Move every target sector to the acquirer via moveSectorToCorp(), described as "haircut-free" (no value loss), with currency re-denomination between target and acquirer currencies.
  5. Two/three ledger transactions are emitted (share_buyout_outflow for the acquirer's outflow, corp_dissolution_distribution for the shell cash absorbed/released), timed after every asset mutation succeeds so a failure earlier logs nothing.
  6. Tear down the target shell: cleans up its share-market activity, stamps it deleted (stampSubjectDeleted), records the exit as acquired with the acquirer as successor (recordCorporationExit), then corps.deleteOne.
  7. If the merger review cleared with a remedy, attachMergerRemedy() is called only now, after the merger has actually committed, to open the divestiture obligation.
  8. An audit record (action: "acquisition.execute") is written.
  9. Every other pending offer that referenced the now-deleted target (as either acquirer or target) is set to "withdrawn".

Merger review ("C3")#

Code: src/lib/corporations/mergerReview/{constants,gate,authority,concentration,divestiture,lifecycle}.ts. Db type: , collection mergerReviews.

When it applies#

Gating is on ownership and marketization, never a country allow-list (explicit design note in constants.ts, referencing spec ahd-b4-scrutiny-rework-spec):

Two call sites trigger the gate, both at the instant two corporations would actually become one: executeAgreedAcquisition (trigger "agreedAcquisition") and the hostile-takeover squeeze-out route (trigger "hostileTakeover", not documented here). Reviewing at share-purchase time would be too early, per the code's own reasoning, until absorption the two firms are still measured separately.

Antitrust law to threshold mapping#

Each country's antitrust level (0-4, from its existing competition-primary legislation, not a new statute) maps to a combined-market-share trip threshold:

Country Antitrust Law (existing legislation id) Reviewing Cabinet Seat
US us.economy.competition.primary (Antitrust and Fair Commerce Act) Attorney General (attorney_general)
UK uk.economy.competition.primary (Restrictive Practices and Competition Act) Business Secretary (business_secretary, era-renamed Board of Trade → Trade and Industry → Business)
RU ru.economy.competition.primary Minister of Internal Trade (minister_of_internal_trade)
DD dd.economy.competition.primary Minister of Internal Trade (minister_of_internal_trade)
Every other legislature its Competition Act (mechanicalLaws); DE also carries the GDR competition primary DE and JP: economy minister (economy_minister); IE: minister_for_enterprise; CN: minister_of_commerce; NG, FR, IT, ES, SE, TR, GR, AT, FI, BR: minister_of_trade_industry; PL, HU, RO, BG, CS, YU, UKR, BLR, BAL: minister_of_internal_trade

MERGER_REVIEW_THRESHOLD_PERCENT by enacted level:

Level Meaning Threshold
0 No Antitrust Enforcement off (null)
1 Case-by-Case Review / Monopolies Commission 75%
2 Active Enforcement 60%
3 Structural Enforcement 50%
4 Open Markets Charter 40%

thresholdForLevel rounds and clamps the level into 0 to 4, and returns null for a non-finite level.

Measuring concentration#

computeMergerConcentration() measures the combined post-merger share of every industry (CorporationType) where either side has a physical presence, scoped to the target's home country, that is the state whose market structure changes and whose authority reviews it. Only sectors physically located in that country count for both sides (a foreign acquirer's home-market plants don't count toward the target-country concentration).

The denominator is the same loadIndustryBasis() rollup used for the corporation page's own market-share displays, so the number shown to the reviewing authority matches what a player sees elsewhere. The basis is ₳ revenue below plants and capacity units under plants. For each overlapping sector type: acquirerSharePercent, targetSharePercent, combinedSharePercent (all rounded to 2 dp). The industry with the highest combinedSharePercent becomes leadSectorType and is the one measured against the threshold and, if remedied, the one ordered divested.

An industry only counts as an overlap if both sides hold share in it (ticket #1163). A single-sided industry is unchanged by the deal, so referring on it would report a state of the world the merger did not create. When groupSizeCostsStage is at least 5, each side is its whole control group (the acquirer's group, and the target with everything it controls, minus members already in the acquirer's group) so a deal cannot be sliced into pieces that each look small.

The gate decision (assertMergerClearance)#

Idempotent per (acquirer, target) pair:

  1. If a review already exists for the pair with status pending, blocked, cleared, or clearedWithRemedy:
    • cleared / clearedWithRemedy → proceed (the clearance is durable, letting a referred hostile takeover simply retry once cleared).
    • pending → blocked, 409, with the decision deadline in the error message.
    • blocked → blocked, 400, permanently.
  2. If review does not apply (ownership/marketization checks fail, no antitrust law mapped and no screening, level threshold is null and no screening, or no authority seat) → proceed, no review opened.
  3. Otherwise concentration is computed. If there's no overlapping sector or combinedSharePercent < threshold, and screening does not apply → proceed.
  4. Otherwise a new MergerReview document is inserted with status: "pending", openedAtTurn: currentTurn, decideByTurn: currentTurn + MERGER_REVIEW_TURNS (6 turns). The call returns ok: false, 409, blocking the deal. Notifications go to the seat holder (if a player) and to both corporations' owning users.

Deciding a review#

Two paths, both funneling through decideMergerReview() in lifecycle.ts:

Officeholder decision, POST /api/merger-reviews/[id]/route.ts. Authorization is the seat, re-resolved from cabinetMembers on every request (not cached, not derived from character.currentOffice), whoever holds the seat right now decides, and a reshuffled-out minister loses the queue immediately. Decision is one of "cleared" | "clearedWithRemedy" | "blocked", with an optional free-text note (max 500 chars) shown to both CEOs.

Deadline fallback, resolveDueMergerReviews(), a turn-phase sweep that resolves every review whose decideByTurn <= currentTurn and is still pending, using the deterministic, published autoResolveDecision():

margin = combinedSharePercent - thresholdPercent
margin >= 15 (MERGER_REVIEW_BLOCK_MARGIN_PERCENT)  -> blocked
margin >= 5  (MERGER_REVIEW_REMEDY_MARGIN_PERCENT) -> clearedWithRemedy
otherwise                                          -> cleared

The code is explicit that this is deliberately readable off the card ahead of time, "the difference between a review and a coin flip", and only kicks in when nobody holds the seat, or the holder lets the clock run out; a seated officeholder can decide however they like regardless of the bands.

A clearedWithRemedy decision always targets review.leadSectorType, the officeholder cannot pick a different sector to declare "solved," per an explicit anti-abuse comment.

The atomic claim on pending → decided prevents an officeholder decision and the deadline sweep from racing each other.

Divestiture remedy#

If a review resolves clearedWithRemedy, the obligation is not attached at decision time, only once the underlying deal actually commits, via attachMergerRemedy() called from executeAgreedAcquisition (or the takeover executor) after the merge succeeds. The obligation (PendingDivestiture, stored as corporation.pendingDivestiture):

Discharge is measured, not procedural. settleDivestitureIfSatisfied() (in divestiture.ts) checks whether the acquirer's controlled group (itself plus every corp it controls at >50% voting power, computed by controlledGroupIds(), a closure walk over shareholders/totalShares/superShareMultiplier, cycle-safe) still holds >= thresholdPercent of the ordered industry in the ordered country. A spin-off into a wholly-owned subsidiary does not discharge the order (the group's share is unchanged); the group has to actually sell down. This can be called opportunistically after any relevant action, and from the turn sweep.

Overdue enforcement, fineOverdueDivestitures(), a turn phase:

API surface#

Route Method Purpose
/api/corporations/[id]/deals GET Pending incoming/outgoing offers for a corp the viewer runs; reports { enabled: false } shape if flag off
/api/corporations/[id]/deals POST action: propose | accept | reject | withdraw; rate-limited 10/60s per user; requires corpDealsEnabled + general corp-actions flag
/api/corporations/buyer-search GET Name search for acquisition targets (and supply-agreement counterparties), any country, player-run + non-state-owned only
/api/merger-reviews GET CEO-side view: reviews involving any corp the viewer runs (both sides), decided or not
/api/merger-reviews/queue GET Officeholder-side view: national pending/decided queue for the seat the viewer holds; no-store; fails closed to { applies: false } if no seat, wrong era, command economy, or seat not held
/api/merger-reviews/[id] POST Officeholder hands down cleared | clearedWithRemedy | blocked, with optional note; seat re-resolved server-side every call

UI#

Key files#

Data#

Collection Fields Read / written Player-visible
acquisitionOffers acquirerCorporationId, targetCorporationId, priceAnchor, targetValuationAnchor, status, outcome, createdAtTurn, expiresAtTurn, resolvedAtTurn, proposer ids Written by propose, accept, reject, withdraw, and by the withdraw-others sweep after a commit Yes, in the Deals tab (pending offers only)
acquisitionSettlements pinned payout legs with per-leg stamps, status (in_progress, applied, compensated), progress flags (equityTransferred, bankCharterTransferred, sectorsMoved, shellDeleted), completedResult Written by the executor before money moves; read on retry No
corporations (target) acquisitionSettlementId (claim), shareholders, publicFloat, subsidiaryFormalizedAtTurn, liquidCapital, bankCharter Claim and equity transfer written; deleted on a merge Partly
corporations (acquirer) liquidCapital (debit, then shell cash credit), pendingDivestiture { reviewId, sectorType, dueTurn, thresholdPercent, countryId } Written Cash and the order, yes
corporateSectors corporationId Read for valuation and concentration; rewritten by moveSectorToCorp on a merge Yes
mergerReviews acquirerCorporationId, targetCorporationId, countryId, authoritySeatId, lawLevel, thresholdPercent, leadSectorType, combinedSharePercent, overlaps, trigger, reason, status, openedAtTurn, decideByTurn, resolvedAtTurn, resolvedBy, decidedByCharacterId, decisionNote, remedySectorType Written by the gate, the officeholder route and the deadline sweep Yes, to both CEOs and the seat holder
cabinetMembers positionId, characterId, isNPP Read to resolve the seat holder Yes
characters, imperialCharacters, indexFunds, federalBudget personal balance, fund cash, treasury balance Written by payout legs and fines Balance yes
gameState (_id: "current") corpDealsEnabled, corpDealsEnabledBy, corpDealsEnabledAt, subsidiaryCorporationsEnabled, corporationActionsPaused, stockHoldingTaxStartTurn Read No
gameConfig (_id: "default") marketSystemMode, groupSizeCostsStage Read No
notifications corp_vote_opened, merger_review_opened, merger_review_decided, merger_remedy_overdue Written Yes
financial transaction log share_buyout_payout, share_buyout_outflow, corp_dissolution_distribution, corp_fine Written Admin only

Configuration#

Setting Default Effect Where set
gameState.corpDealsEnabled true on fresh worlds; an existing world with the field absent is treated as off Server-side gate on POST /deals: HTTP 403 "Corporate acquisitions are not currently enabled." when off. GET reports { enabled: false, incoming: [], outgoing: [] } instead of erroring. Also tracked: corpDealsEnabledBy, corpDealsEnabledAt. gameState document; seeded by ; guard in src/lib/api/requireCorpDeals.ts
gameState.subsidiaryCorporationsEnabled true on fresh worlds Needed for the subsidiary outcome; GET reports subsidiaryAvailable featureFlagDefaults.ts, read in subsidiaryOutcome.ts
gameState.corporationActionsPaused false While paused, POST /deals is refused (requireCorporationActionsEnabled) gameState document
gameConfig.marketSystemMode "off" when absent At "plants" or above, valuation uses book value and concentration uses capacity units gameConfig document
gameConfig.groupSizeCostsStage 0 At 5 or more, concentration measures whole control groups gameConfig document, GROUP_MERGER_CONCENTRATION_STAGE
Enacted competition law level, per country per country and era Sets the review threshold (0 to 4) Legislation (mechanicalLaws and the competition primaries)
Foreign Investment Act level, per country open Ban refuses a foreign buyer outright; screening and cap levels add the screening referral mechanicalLaws
Subsidiary Limits Act level, per country open Caps how many subsidiaries one group may run in the country mechanicalLaws
Era per world A seat that does not exist yet in the era means no review

All numeric constants are code constants listed under Rules; none is overridden by scenario.

Timing#

propose (API) --> [AI target?] --yes--> price >= ceil(valuation x 1.1)? --no--> offer "rejected"
      |                                          | yes
      no                                         v
      v                                   executeAgreedAcquisition
 offer "pending" --accept (target CEO)---------->|
                                                 v
                          guards (bonds, equity, bank, Foreign Investment, Subsidiary Limits)
                                                 v
                                   assertMergerClearance
                       no referral |                      | referral: review "pending", deal 409
                                   v                      v
                              pay + move          corporationTurn sweep
                                   |              resolveDueMergerReviews (turn >= decideByTurn)
                                   v                      | cleared / clearedWithRemedy / blocked
                    attachMergerRemedy (if remedy)        v
                                   |              retry accept or re-propose (clearance is durable)
                                   v
              corporationTurn sweep: fineOverdueDivestitures (dueTurn < turn)

Worked trace#

Setup: the target is AI-run, in a country at antitrust level 2 (threshold 60). Target: share price 40, 100,000 total shares, liquidCapital 300,000, sector exit value 3,500,000, no bonds, no cross holdings. Cap table: a player 60,000 shares, a corporation 15,000, an index fund 5,000, public float 20,000. The acquirer offers 5,000,000, holds 35% of the target's lead industry in that country, and the target holds 30%. All amounts in ₳, no stock tax, no FX.

Valuation and asking price.

  1. Market cap = 40 x 100,000 = 4,000,000. Balance-sheet equity = 300,000 + 3,500,000 = 3,800,000.
  2. Reference valuation = max(4,000,000, 3,800,000) - 0 = 4,000,000.
  3. Asking price = ceil(4,000,000 x 1.1) = 4,400,000. The 5,000,000 offer meets it (an offer of 4,300,000 would fail: it is below 4,400,000, and the offer would be stored as rejected).

Gate (turn 100). The executor runs the bond and equity guards (none apply), then assertMergerClearance: 4. The law level is 2, so the threshold is 60. Combined share = 35 + 30 = 65, which is at or above 60, so a review opens: decideByTurn = 100 + 6 = 106, thresholdPercent 60, combinedSharePercent 65. 5. The call returns 409 and no money moves. Because the target is AI-run, the offer is stored as rejected; a human-run target's offer would return to pending.

Deadline (turn 106). Nobody ruled. resolveDueMergerReviews runs autoResolveDecision(65, 60): margin = 5. 5 is below 15 and at least 5, so the result is clearedWithRemedy, with remedySectorType set to the lead industry.

Retry (turn 107). The acquirer proposes again at 5,000,000 (valuation unchanged, so it still meets the 4,400,000 asking price). The gate finds the existing clearedWithRemedy review for this pair and proceeds. 6. Debit the acquirer 5,000,000. 7. Pay shareholders: player floor(5,000,000 x 60,000 / 100,000) = 3,000,000; corporation floor(5,000,000 x 15,000 / 100,000) = 750,000; index fund 250,000; public float 1,000,000 to the target country's treasury. The slices sum to 5,000,000 (no dust in this case). 8. Add the target's 300,000 cash to the acquirer. The acquirer's net cash change is -5,000,000 + 300,000 = -4,700,000, plus all the target's sectors (valued at 3,500,000 on the exit basis). 9. The target is deleted. attachMergerRemedy sets pendingDivestiture.dueTurn = 107 + 12 = 119.

Fines. At turn 119 the order is not yet overdue (dueTurn < turn is false). From turn 120, if the acquirer's controlled group still holds 60% or more of the ordered industry and earns 2,000,000 per turn from it, each sweep fines 0.05 x 2,000,000 = 100,000, debited from its cash and credited to the reviewing treasury, and new acquisitions are barred, until the group sells below 60%.

Edge cases and limits#

Invariants#

Invariant Enforced by
A referral leaves both corporations exactly as it found them (the gate runs before any state change) Order of checks in executeAgreedAcquisition; not directly tested (the executor suite mocks the gate, and gate.test.ts covers the gate alone)
Money is conserved: the price goes to the target's holders, the target's own cash relocates to the acquirer, nothing is minted Pinned payout plan and stamped legs;
A holder is never paid twice, whatever the retries Per-leg stamps; acquisitionSettlement.idempotency.test.ts, acquisitionOffers.settlement.test.ts
Only one live settlement owns a target acquisitionSettlementId claim on the target; covered by settlement tests
One review per acquirer and target pair is durable; pending or blocked is a hard gate
The deadline fallback is deterministic autoResolveDecision;
The remedy attaches only after a commit and targets the lead sector lifecycle.ts;
A spin-off does not discharge a divestiture
An AI-run target auto-accepts at exactly the asking price and not one unit below , rules.test.ts
State-owned targets can never be acquired Checked in propose and execute; nppAcquisitionOffers.test.ts
Offer expiry removes the offer from the pending list Not enforced: expiry is only checked at accept (see Known issues)

Failure and recovery#

Connections#

Driven by:

Affects:

Tests#

File Covers
Execution path and guards, including the bank charter conflict (the review gate is mocked here)
, rules.test.ts AI-run asking price, auto-accept and reject, stale-snapshot control flips
, acquisitionOffers.settlement.test.ts Pinned plan, replay, compensation, charter-claim recovery
, subsidiaryOffers.test.ts, acquisitionLegacyControl.test.ts Subsidiary outcome and legacy control cases
Referral, thresholds, level 0, screening, command economy, state-owned, pending, blocked, cleared, divestiture bar
, divestiture.test.ts, concentration.test.ts, constants.test.ts Decisions, deadline bands, remedy, fines, group measure, overlap rule, constants
Target search

Gaps: no route test for POST /api/corporations/[id]/deals (rate limit, flag guard, authorization by corporation), none for the three /api/merger-reviews routes (seat authorization, 500 character note limit), and no test that drives a real referral through the executor end to end.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask