forked from unimatrix/web
Provision audited Rihla cash custody and persistent activation
This commit is contained in:
parent
484f121fcc
commit
0097a856f7
1 changed files with 134 additions and 0 deletions
15
website/docs/RIHLA-CASH-CONFIGURATION-20261129.md
Normal file
15
website/docs/RIHLA-CASH-CONFIGURATION-20261129.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Activate the existing Rihla cash custody service
|
||||
|
||||
The deployed ATM can render and select denominations, but live read-only inspection found all three Rihla activation/backing settings absent and no dedicated Rihla backing account. The existing central route therefore cannot construct its cash ledger. The owner's cash-operation history contained no operation rows at diagnosis; no agent cash transaction was performed.
|
||||
|
||||
## Bounded execution
|
||||
|
||||
Build and review this source through the website pipeline. Run the built `ops/configure-rihla-cash.mjs` first without arguments, then with `--apply`. It validates the existing native receipt reader and shared transactional MySQL server before setup. It creates a dedicated internal type-999 custody account with zero balance and zero reserve, using the existing Postbank account/audit tables. It does not create a client, payment, ledger entry, cash serial, voucher or account mandate, and never funds custody from a treasury or resets existing custody funds.
|
||||
|
||||
The tool privately backs up the environment and setup plan, validates the existing tax treasury and backing account, and atomically writes only `RIHLA_POSTBANK_ENABLED`, `RIHLA_CASH_ENABLED` and `RIHLA_POSTBANK_BACKING_SYSTEM_KEY`. File ownership/mode and all other values remain preserved. A concurrent environment change stops activation. If activation fails after creating the empty account, retain that audited account and retry; do not delete later cash custody. A normal runtime restart is required to read the settings; record it and verify the existing route's read-only account response. Do not invoke `cash_pending` merely as a read test, because pending recovery refreshes custody state.
|
||||
|
||||
## Acceptance and tests
|
||||
|
||||
Tests cover write-free planning, zero-balance creation, replay after subsequent custody funds, incompatible-account refusal, missing treasury, audit rollback, and configuration preservation/idempotency. Existing Rihla custody, reserve, settlement and native receipt tests must also pass. Production cash movement is not a test: the owner may verify an actual action after deployment, with the real native/bank receipt used as evidence. Never clear a pending operation or invent a replacement reference.
|
||||
|
||||
Rollback disables the three activation settings by restoring the private environment backup and restarting through the existing runtime service. Retain the custody account and all native/bank operation records; never reverse an actual withdrawal by deleting data. This change does not alter transaction rules, permissions, prices, fees or backend JARs.
|
||||
Loading…
Reference in a new issue

Staff