forked from unimatrix/web
96 lines
5.4 KiB
Markdown
96 lines
5.4 KiB
Markdown
# Alpha 1.0.0.7 — The Great Migration
|
|
|
|
## Batch 1: central directory and contextual account views
|
|
|
|
The existing CP account tool mixes staff access, user memberships and recognition.
|
|
The new directory separates Users and Staff while keeping one underlying account.
|
|
|
|
Review URL after this batch is deployed:
|
|
`https://cp.dunerealms.com/?migration=1#bureau/user-management`.
|
|
The regular URL continues to use the existing editor during this incremental batch.
|
|
|
|
Included:
|
|
|
|
- Central organisation vocabulary: two departments, nine branches, contextual roles.
|
|
- Additive `org_assignments` storage, indexed by account and scope.
|
|
- Read-only `/api/admin/citizens`, `/catalogue`, and `/:accountId` endpoints.
|
|
- Server-side whole-directory search by account name, Minecraft name/UUID or ID,
|
|
contextual staff filtering and 25-record pagination with an extra sentinel row.
|
|
- Users, Manage User and Manage Staff views. User responses exclude staff scopes
|
|
and staff provenance. Staff views retain imported source identity for review.
|
|
- Existing account administration and all live permissions remain unchanged.
|
|
|
|
Not claimed complete in batch 1: assignment writes, permission activation/projection,
|
|
native integration migration, the recognition editor and the audit timeline. Existing memberships have not
|
|
yet been imported into `org_assignments`; an empty new-model list is not a claim
|
|
that the citizen has no memberships in existing systems.
|
|
|
|
Validation: contextual disclosure, authentication and authorisation denials,
|
|
SQL parameterisation/literal wildcard search, filter validation, schema no-grant
|
|
behaviour, and pagination are covered by executable tests. No financial actions,
|
|
player identities or live staff appointments are changed by this batch.
|
|
|
|
## Migration rules
|
|
|
|
Reuse the existing API, database adapter and integration adapters. Do not rewrite
|
|
osTicket, MyBB or LuckPerms. Human ranks lose native user/group/permission editing
|
|
capabilities; those writes originate centrally. Do not remove or lock the native
|
|
modules. Dev retains existing service access, separate from the human organigram.
|
|
|
|
Official bank account management is reserved for the Big Four and Department Heads.
|
|
Existing system-account restrictions remain. Staff ranks contain explicit job
|
|
nodes, without wildcard or OP grants. Assignments may overlap and expire; their
|
|
derived rights/seals must follow their lifecycle. Earned honours remain intact.
|
|
|
|
## Subsequent batches
|
|
|
|
1. Contextual assignment editor, audited changes and central policy matrix.
|
|
2. Map current rights to the approved hierarchy and existing native adapters;
|
|
synchronisation/revocation, visible failures and retry.
|
|
3. Recognition, personal and function seals, signatures across connected systems.
|
|
4. Public staff organigram + ordered bio cards; separate Crysknife Order gallery.
|
|
5. Full public profile template preserving current features; verified Bedrock-name
|
|
normalisation; Picard memorial restyle/link and Big-Four-only Deceased workflow.
|
|
6. Access/lifecycle/privacy verification, release and combined .6/.7 announcement.
|
|
|
|
Do not change the public version banner or publish release news before .7 is done.
|
|
|
|
## Batch 2: audited assignment editor and policy preparation
|
|
|
|
Staff assignments can be recorded and revoked within the manager's scope. One
|
|
lead per branch/department is enforced under a shared scope lock. A scope version
|
|
prevents stale forms from overwriting another manager's work. Automatic records
|
|
must be changed at their source. Service accounts stay outside human appointments.
|
|
|
|
The permission matrix at `?migration=1#bureau/permissions` maps registered existing
|
|
nodes to each function. It rejects wildcard/OP/native-editor nodes and official
|
|
bank management on ordinary branch roles. Policy writes and assignments share
|
|
atomic audit and version checks. These are preparatory records: they do not yet
|
|
replace live roles. No native backend code is rewritten.
|
|
|
|
An explicit operator-run `scripts/bootstrap-organisation-control.mjs --apply`
|
|
pins the existing Big Four and Dev service by account ID for management authority.
|
|
It is idempotent, checks the established Owner/Dev identities, refuses conflicting
|
|
existing principals and does not run at application startup. Its audit clearly
|
|
states that it does not activate live permission projection.
|
|
|
|
## Additional Owner-approved bank work
|
|
|
|
After the current management batch, add a staff Client Management context reusing
|
|
Accounts & Payments components without generic Wire Transfers.
|
|
|
|
Add immediate Service Compensation from Payment Control, linked to the original
|
|
posted payment, with reason, consent, actual actor and a distinct purple type
|
|
badge in staff/customer histories and statements. Recover funds from the original
|
|
recipient when possible; otherwise the bank bears the cost. Never erase the
|
|
original payment or compensate its value more than once across retries/partials.
|
|
|
|
The shared budget is the available balance of a dedicated Compensation Reserve.
|
|
A monthly standing instruction funds it from Website Bank Treasury, initially
|
|
25,000 DM; unspent funds roll forward. Big Four and the bank CEO may change that
|
|
standing instruction and transfer reserve funds in/out through Treasury Accounts.
|
|
No extra Officer cap/counter, CEO override system, support ticket, approval flow,
|
|
or four-hour compensation queue. Reuse existing posting/audit infrastructure.
|
|
|
|
Cash conversion is reserved for the future in-game GUI + central API in both
|
|
directions. No cash web page, redeem code flow or game changes in this batch.
|

Staff