forked from unimatrix/web
Bind raid orders and recovery to atomic Postbank receipts
This commit is contained in:
parent
525be204dd
commit
23b1879de2
1 changed files with 451 additions and 4 deletions
|
|
@ -33,11 +33,11 @@ Definitive unpaid responses are exactly `{ok:true,schema:1,orderId,requestId,inp
|
|||
|
||||
`acceptedAt+noticeMs` is the warning deadline, not evidence that a party exists. Start the active timer only after actual successful party and commander spawn, then report the stable started event. Victory requires the same recorded start, surviving commander and900000 active milliseconds. Commander defeat is failure. Post-accept spawn failure, restart/interruption or server cancellation is neutral; no victory for missing entities, unloaded areas or elapsed offline time.
|
||||
|
||||
The coordinator chooses full original-fee recovery for these neutral service failures. Queue one idempotent refund against the original posted bank order, original source and original Tax destination, for exactly its fee. Reuse existing Postbank posting in the reverse direction with a stable refund reference and a JARVIS recovery record. Never mint compensation, choose a different recipient, reset a balance or mark a refund paid before posting. If the original account/treasury cannot safely settle it, keep the refund queued for reconciliation. An acknowledged neutral outcome may include `refundState:'queued'|'posted'`; the central durable job owns that liability after native acknowledgement. Preserve cooldown/chain audit history rather than erase the paid order to enable free replay.
|
||||
The coordinator chooses full original-fee recovery for these neutral service failures unless this order has already delivered its automatic war. Queue one idempotent refund against the original posted bank order, original source and original Tax destination, for exactly its fee. Reuse existing Postbank posting in the reverse direction with a stable refund reference and a JARVIS recovery record. Never mint compensation, choose a different recipient, reset a balance or mark a refund paid before posting. If the original account/treasury cannot safely settle it, keep the refund queued for reconciliation. An acknowledged neutral outcome may include `refundState:'queued'|'posted'`; the central durable job owns that liability after native acknowledgement. Preserve cooldown/chain audit history rather than erase the paid order to enable free replay.
|
||||
|
||||
Only real completed/failed raids produce the ordering-clan quest result:1000 Reputation XP for survival,100 for commander defeat, zero Personal XP and zero currency. Rejection, spawn failure, cancellation and restart are neutral. Stable order/outcome identifiers prevent reward replay. Use the existing quest/Reputation authority and outbox, not a native reward command.
|
||||
|
||||
At the third paid retaliation, enqueue one stable chain-bound job that automates the ORIGINAL war declaration/campaign flow with NOW and both actual clan rosters. Skip manual date/roster input only. Ordinary scheduled wars retain their existing rules; do not invent a parallel war engine, fake consent/identities or truncate an entire clan to a random eight. War/quest/refund work is durable and retried after the accepting transaction; no nested key transaction or payment replay.
|
||||
At the third paid retaliation, enqueue one stable chain-bound war job in `waiting_start`. Release it only after the matched actual STARTED acknowledgement, matching the supplied design's party-spawn threshold event. The job automates the ORIGINAL war declaration/campaign flow with NOW and both actual clan rosters. Skip manual date/roster input only. Ordinary scheduled wars retain their existing rules; do not invent a parallel war engine, fake consent/identities or truncate an entire clan to a random eight. A neutral result before a war is committed cancels its pending war job and permits the original-fee refund. War creation and the order's durable campaign receipt must commit atomically, serialized against neutral outcomes. Once that original war has actually launched, a later neutral raid interruption gives no automatic refund: respond `refundState:'not_due',refundReason:'war_started'`, retain the existing war and award no neutral quest reward. This prevents a failed-spawn or interruption from creating a free war. War/quest/refund work is durable and retried after the accepting transaction; no nested key transaction or payment replay.
|
||||
|
||||
## Release gates
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff