web/docs/design/HOME-BLOCK-WEB-UPGRADE.md

2.7 KiB

One Home Block upgrade command, two entry points

The temporary web Upgrade claims button is functional with an explicitly fake WorldGuard/bank provider. It reviews the next sequential tier and confirms an idempotent server command. Fake organisation credit pays the fake Tax treasury; real land, account balances and clan tier records are untouched. State is temporary, bounded and resets on process restart/expiry.

Shared business handler: node/claim-command-service.mjs. HTTP authentication adapter: control-panel/claim-home-block-route.mjs. Web entry: cp-v2-home-block.mjs. Keep this same business command for the future ingame right-click; add authenticated game proof rather than copying the upgrade logic.

  • GET /api/v1/claims/home-blocks returns the authorised owner's simulated block.
  • POST /api/v1/claims/home-blocks/{id}/commands accepts action claim.tier.upgrade, requestId, expectedRevision, targetTier, tariffVersion, expectedUnlockMinor and confirmed=true. Actor/organisation/recipient are derived by the server, never supplied as arbitrary request overrides.
  • Lock one block command at a time. Exact retries return the existing receipt; stale versions, changed prices and skipped tiers fail. Basic stops before KC_T0 until its trusted charter context confirms an original key.
  • Capacity upgrades do not automatically claim spare chunks. The fake region snapshot retains the existing claimed area. Real bank/game adapters must coordinate durable confirmation and reconciliation; pending is not applied.

Current website access is the linked ordinary clan owner. Delegated mother-house authority, company/royal providers, real settlement and real WorldGuard changes remain later work. The real payer is always the relevant organisation, including the original daughter when the mother acts. Upkeep/unlocks route to sys_tax_treasury through existing banking components later.

Broader agreed boundaries: clans are for PvP, companies for economic roleplay. Companies may contract clans for protection/operations without gaining PvP or bypassing conquest eligibility. Financial identities remain separate over time. Basic has no internal organisation Exchange; Keyed unlocks it. Personal Exchange access is unaffected. Kits may be Exchange products with buyer-owned redeem codes; resale needs an authoritative entitlement transfer, not merely sharing a code. These future Exchange/kit rules are recorded, not implemented by this batch.

Focused checks cover repeat requests, concurrent clicks, stale/forged commands, Basic eligibility, test Tax routing and a working browser confirmation at desktop, tablet and mobile widths. Comprehensive game/transfer tests remain the later run.