2.7 KiB
Funded rebellion rewards
The existing verified rebellion claim creates Reputation XP and one durable monetary job. The fixed reward remains 25,000 DM for Emperor or 5,000 DM for another compatible office, with the existing first-success and counter-challenge policy. XP belongs to the incoming holder; money belongs to the winning clan.
REBELLION_REWARD_FUND=website-treasury selects the existing funded Website Bank Treasury (sys_web_treasury), using the official DuneRealms account as the recorded service actor. It does not use that account's personal Start balance. It does not debit a player, defeated ruler, office, tax reserve, capital issuer or compensation reserve. It cannot mint currency, overdraw funds or consume existing reservations. Insufficient available treasury funds retain the job for review/retry. Explicit legacy ordinary-account funding remains supported when this setting is absent.
This private consumer is not a new browser action, bank permission, ledger or scheduler. The existing central minute scheduler drains verified jobs. The consumer posts a system order through PostbankPayments.post, with the existing two balanced ledger entries and audit in one bank transaction. It has no API for arbitrary recipients or staff-entered reward amounts.
Before payment, the caller locks the actual consumed, unrevoked QST instruction and checks its owner, type, season, request scope, declared winning clan, holder, office, challenge and reward bonus against the durable rebellion receipt and policy. The consumer rechecks the current official service identity, locks the actual clan bank entity and treasury/recipient accounts, then checks available funds and account state. It pays only an active ordinary account of that exact clan. The quest UUID is the bank order UUID and immutable fingerprint reference. Concurrent attempts and a crash after the bank commit recover the same posted order; they never issue another payment. A conflicting receipt remains for review.
The central and bank databases do not share a transaction. Recovery therefore relies on the existing durable bank order and unique quest reference, rather than a claim of cross-database atomicity. Once bank payment is durable it is not reversed by a later source revocation. Historical payments remain history.
No real rebellion, capture, office transfer or payout is manufactured for deployment verification. The game producer remains future integration; isolated signed-key fixtures exercise the full existing office/XP/reward chain, funding failures, revocation, concurrency and lost acknowledgements. Live verification checks source publication, the explicit selected funding setting, the current funded treasury and the absence/presence of real pending jobs without creating them.

Staff