Add audited staff assignments and central policy mapping editor

This commit is contained in:
unimatrixgit 2026-11-14 23:41:54 +01:00
commit 396d2f3e2e

View file

@ -20,9 +20,8 @@ Included:
and staff provenance. Staff views retain imported source identity for review.
- Existing account administration and all live permissions remain unchanged.
Not claimed complete: assignment writes, permission activation/projection, native
integration migration, the recognition editor and the audit timeline. Their UI
states are explicitly marked as subsequent batches. Existing memberships have not
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.
@ -55,3 +54,43 @@ derived rights/seals must follow their lifecycle. Earned honours remain intact.
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.