MC/docs/operations/PROGRESSION-BACKEND.md
2026-11-27 23:43:05 +00:00

63 lines
3.4 KiB
Markdown

# Personal progression backend
This batch connects the approved personal mission interface to the central
J.A.R.V.I.S. quest register. Organisation decisions and organisation mission
definitions remain in preview until their own domain adapters are connected.
## Installed components
- A versioned system instrument installs the initial six-month S01 season,
level cap 70 and configurable XP rewards. Restarts preserve existing settings.
- All nine personal branches and the optional company/clan acquisition tiers
have server-owned conditions. The browser cannot submit counters or XP.
- Starting a mission creates one persistent quest instrument. Claiming consumes
that instrument transactionally with the XP ledger and history.
- Optional rewards grant double XP. Reaching the seasonal completion threshold
queues the remaining mandatory claims; optional objectives remain independent.
- Excess XP remains in reserve. A sealed next-season instrument moves existing
reserve rather than crediting lifetime XP a second time.
- Halfway and completion milestones enter the existing-style transactional
outbox once per account and season. Public Gazette delivery is a separate
adapter, not an announcement already sent by this batch.
- The personal mission page displays real progress, server eligibility, claims
and private history. It preserves the shared CP theme and selected context.
## Connected sources and boundaries
The website reader currently verifies onboarding, profile and faction choice;
linked forum registration and eligible contributions; and posted personal bank
transfers and payroll income. A failed source remains unavailable. No browser
event is evidence of gameplay completion.
Minecraft travel, harvesting, kit repair, equipment upgrades and other gameplay
facts remain unconnected. No Minecraft code is included. Physical/DM rewards
are not issued by the initial XP-only configuration. Reward jobs are retained
for the existing delivery integration when a reviewed reward is configured.
Acquisitions require a verified deed-settlement adapter. A relation label is
insufficient evidence and the runtime rejects it by default. Founding does not
count as acquisition. Conquest and voluntary submission share the clan tiers.
XP corrections require an approved, recipient-bound case with an explicit XP
budget. The default runtime resolver rejects issuance until that approval
adapter is connected. Next-season transfers require a separately authorised
season transition; installing this batch does not reset any balance or season.
Staff generation permissions are separate from ordinary play. System records
are not redeemable player codes. Dev keys remain server-only and never appear
in the website generator or player receipts.
## Validation
Domain tests cover replay safety, prerequisites, revision conflicts, rollback,
XP ceilings and reserve, case-budget checks, and automatic mandatory completion.
HTTP tests cover identity, account scope, foreign origins and forged counters.
Local browser checks cover desktop/mobile claims, acquisition navigation and
view disposal. A push is not a production deployment.
## Release packaging
The server release builder was repaired on 2026-11-18 to archive `website tools`
instead of `website` alone. Dev-key tests live under `tools/tests` and run as an
explicit CI step. Keep those CLI-only capabilities out of web routes and assets;
including their source in the immutable release does not expose a web endpoint.