1.8 KiB
Codex loan dossier bridge
Replace only the osTicket review bridge. Loan products, simulations, scoring, borrowing authority, staff authority, self-review restrictions, approval/offer acceptance, reservations, repayment and four-hour settlement stay in the existing bank services. Both borrower and staff open a Codex dossier from their existing My Credit / Credit Management lists. Existing ticket review deep links still work.
The Codex loan adapter projects the existing immutable loan UUID as a non-secret COD-LOAN reference. Bank status and version remain authoritative: there is no second database copy of balances, credit decisions or financial status. Pending, accepted and denied are dossier labels; the detailed bank state remains visible. The adapter is the shared Codex record interface for this domain, not a bearer key granting access. Reads use the existing bank entity/mandate checks.
The dossier page reuses the existing confirmed approval, rejection, offer acceptance, withdrawal and repayment handlers. Staff cannot approve their own controlled borrowing; stale/session/authority checks remain server-side. No privileges are granted by changing a URL or dossier reference.
New applications create no osTicket job. Application and decision API paths no longer spawn the native ticket helper, and the per-minute credit_support ticker is removed. Historical job rows and ticket records are retained; the legacy reconciler remains available for explicit historical reconciliation only.
Validation: authorisation and dossier projection tests; no new support jobs; source-state/revision changes reflected directly; existing bank engine regression suite; user/staff browser tests confirm one existing bank action per confirmed acceptance/approval and no ticket UI. Full suite and CI before publication.

Staff