MC/docs/design/CLAN-REBELLION-JARVIS.md
2026-11-27 23:43:05 +00:00

5.3 KiB

Clan rebellion — DR_DEV-000009M

The existing Clan Missions & Decisions page owns this flow. Decisions starts a rebellion, Missions shows its quest and verified progress, and History retains the result. Available quests appear before declaration. The former separate Clan Decisions route is an alias, not another menu or control panel.

Eligibility and targets

House challenges are visible only for the clan leader's linked race/faction: faction is House allegiance, not the planet on which the clan lives. The same check runs at execution. Imperial rebellion remains the common throne challenge. The current ordinary clan leader and linked UUID are required. Companies and protected institutional clans cannot use this PvP route.

Both Home Blocks must exist: the attacking clan's marker and the political House/Imperial office marker. The office target resolves through its current Royal staff charter and the protected claim registry. It does not silently fall back to a personal clan Home Block when staff remove the office marker.

A declaration is a QST bound to both Home Blocks/worlds, the current office deed, attacker clan/deed revision, leader UUID, House, active season and execution requirements. The previous declaration key's timestamp enforces a clan-wide 15-day cooldown. Cancelled/revoked declarations still count. Replaying the same request returns its original instruction. There is no timer job or time script.

Verified outcomes

A future trusted game producer records a QSM with source:'minecraft', mode:'open-rebellion', declaration/event IDs, attacker/defender identities, Home Block/world IDs, beneficiary UUID, source office term and capture timestamp. outcome is attacker-victory or defender-victory; legacy omitted outcomes mean attacker victory. The default producer authorizer denies all callers. This batch includes no Minecraft producer, plugin or browser victory override.

  • Attacker captures office Home Block: consume QST, supersede the incumbent deed and grant only its remaining scheduled term. Preserve elections and ballots.
  • Office forces capture rebel clan Home Block: record a verified defeat. The current office holder gets a decision on the existing political Decisions tab to bring the losing clan under that office. Reuse setEntityParent with parent_kind:'politics' and origin:'conquest'. Local ruler/roster remain intact. Changed clan deeds require review; an old defeat cannot overwrite a new deed.

A defender result cannot be cancelled by the defeated leader. Revoked evidence, stale identities/terms, changed claims and unavailable Home Blocks fail before mutating office or rewards. Repeated source keys return existing receipts.

The succession chain and rewards

An Imperial office won through rebellion carries its winning QST as the deed source. Other Houses, including the original/deposed House, may challenge that verified succession. The next QST stores counterChallengeOf and chainRoot. Further verified outcomes can repeat the same flow, retaining the lineage.

Normal rewards: Emperor 10,000 Reputation XP + 25,000 DM; other compatible offices 2,500 Reputation XP + 5,000 DM. Reputation uses the existing separate POL ledger and goes to the incoming holder; DM goes to the winning clan.

The first successful rebellion across the realm gets an additional 5 times the original reward, so 6 times total, once globally. Declaring, cancelling, losing or generating a key does not award it. A serialized existing office lock and unique reward marker prevent concurrent first-win bonuses. Later normal victories return to default; a verified Imperial counterchallenge earns 2 times base. Ordinary reward claims remain once per clan/office/season. Counterchallenge claims are once per clan and verified source-result key, so the chain can continue without replaying one result for another payout.

The minute reward consumer uses existing standard Postbank processing. Configure REBELLION_REWARD_SOURCE_ACCOUNT and REBELLION_REWARD_SOURCE_OWNER_ID to an existing funded account and its current authorised payer. No account has been selected by this change. Missing funding or expired authority leaves the reward waiting; no money is minted or taken from the defeated player. The winning QST UUID is the durable payment request ID across crashes and retries.

Staff can break the chain

claims.remove-homeblock is an ordinary staff overwrite action carried by a STAFF-CLAIM key. The server-only createStaffHomeBlockKeys consumer requires an existing current staff-authority adapter, staff ticket/reason and pinned claim revision. Applying it removes only the Home Block marker and records an audit receipt. Estates, balances, rosters and prior keys remain. Existing conditions then deny new declarations and pending captures/claims. There is no separate war-stop control panel, permission system, timer or election reset.

Presentation and scope

Use wide responsive cards, House seals and the normal quest style. Execution requirements on the QST select the existing website-only blue or shared/gameplay olive/gold palette. Website-only artwork stays unchanged. Shared gameplay cards reuse assets/progression/field-mission-v1.webp, including Reputation missions. Personal XP remains separate. Seasonal cross-type guard/holding awards remain deferred. Tests use isolated verified producer fixtures, never live fake captures.