forked from unimatrix/web
48 lines
2.9 KiB
Markdown
48 lines
2.9 KiB
Markdown
# Deed offers and purchases
|
|
|
|
The clan/company Patronage form publishes an existing `entity-transfer` (XFR)
|
|
instruction through `relations.transfer`, then publishes that instruction in the
|
|
existing Exchange listing register. Political and protected organisation deeds
|
|
are excluded. The offer captures the current entity/deed versions and price in
|
|
integer DM minor units. Publishing does not transfer control or charge a buyer.
|
|
|
|
Exchange links to `/deed-purchase?listing=<listing UUID>`. The authenticated buyer
|
|
reviews the current price, seller payment account, purchasing Original/Royal
|
|
organisation and its authorised payment account. The existing CP session,
|
|
game-access and same-origin write checks apply. Quotes and purchase status are
|
|
private; a status request is visible only to its buyer.
|
|
|
|
Confirmation reserves existing Postbank funds and the scoped XFR instruction.
|
|
The existing central scheduler processes it at the ordinary bank window. No
|
|
additional worker, balance store or payment ledger is introduced. Execution
|
|
revalidates both deeds and calls `setEntityParent`; the local owner, roster and
|
|
personal voting rights remain unchanged. This is patronage/control acquisition.
|
|
|
|
Durable purchase states are `preparing`, `funded`, `applied`, `posted` and `failed`.
|
|
The request reference, quoted revision, price, purchaser and accounts are fixed.
|
|
Replays use the same reference. The bank order uses mode `deed`, state `escrow`,
|
|
so ordinary payment queue processing cannot release it prematurely.
|
|
|
|
Before the key is consumed, a permanent validation failure releases the bank
|
|
reservation and reconciles the unexecuted key. After consumption, a payment
|
|
failure retains the escrow and retries the existing Postbank posting operation.
|
|
It does not silently undo the deed or charge again. A crash between central key
|
|
commit and bank acknowledgement is recovered from the existing key receipt.
|
|
Proof readers reuse the held bank transaction connection.
|
|
|
|
Personal acquisition quests count a deed only when its consumed XFR dossier,
|
|
buyer/target/request bindings, posted bank order and balanced debit/credit legs
|
|
agree. An offer, reserved payment or self-founded organisation does not count.
|
|
Company acquisitions use `purchase`; a voluntarily sold clan uses the existing
|
|
`bend-the-knee` quest category. Repeated collection counts each entity once.
|
|
The existing conquest producer remains separate.
|
|
|
|
Bank startup adds `jarvis_deed_purchases` using the normal schema initializer.
|
|
Purchasing is unavailable when Postbank is disabled. No reset, old offer
|
|
conversion, Minecraft plugin change or real purchase is performed by deployment.
|
|
|
|
Local integration tests cover retries, changed deeds, withdrawn bank authority,
|
|
held payouts, interrupted acknowledgement, private status/origin checks and
|
|
verified quest credit. Form tests cover unchanged-intent retries and reopening a
|
|
purchase status link. Production publication is not evidence that a real sale
|
|
or transfer has executed; record that separately if the owner tests one.
|

Staff