Master System State Snapshot — CPL Real Rewards Platform¶
Snapshot ID: SNAPSHOT-20260816-2325
Timestamp: August 16, 2026, 23:25 UTC
Active Environment: Staging & Production Ready
Primary Repository: git@github.com:pngflaver/odoo.real.rewards.git (main)
Production Remote: git@github.com:luciusfox-cmd/odoo-realrewards.git (main)
1. Executive Summary & System Health¶
This document captures a complete 360-degree operational and structural snapshot of the CPL Real Rewards Loyalty Odoo 17 Platform.
SYSTEM HEALTH METRICS:
Core Platform: Odoo 17.0 Community / Enterprise
Database Engine: PostgreSQL 15 (Docker container: odoo_db)
SSL & Proxy: Nginx Alpine Reverse Proxy (HSTS/CSP Secured)
Zero-Trust Connectivity: Twingate Connector Active
Total Member Profiles: 137,324 Registered Loyalty Members
Member UUID Anchors: 137,324 Stamped & Verified (Format: RR-YYYY-<HEX12>)
Active Cards Aligned: 15,637 / 15,637 (100.0% Parity with Pronto CSV)
Discrepancies: 0
Staff User Accounts: 49 Active Users (12 Checkers, 37 Store Makers)
Git Repository Status: 100% In Sync across local main, origin/main, & production/main
2. Codebase & Directory Structure Snapshot¶
The workspace root (/home/lucius_fox/ODOO) is structured into clean, documented subdirectories:
/home/lucius_fox/ODOO/
├── data/
│ ├── README.md <-- Dataset catalog and schema dictionary
│ ├── Cards in Pronto replacement.csv <-- 15,641 replacement card pairs
│ ├── Cards in Pronto - Excl.csv <-- 100,000+ master active store cards
│ ├── cplgroup_users_25_Jul_2026_1784979710.csv <-- 137,300+ customer profiles & balances
│ ├── unassigned_category_1_typos.csv <-- 4 self-referential prefix typo rows
│ ├── unassigned_category_2_unregistered.csv <-- 3 unregistered replacement pair rows
│ └── unassigned_replacement_cards_audit.zip <-- Compressed audit package
│
├── docs/
│ ├── README.md <-- Master documentation index
│ ├── reports/
│ │ ├── README.md <-- Technical reports & UAT artifacts index
│ │ ├── SYSTEM_STATE_SNAPSHOT_20260816.md <-- This master snapshot document
│ │ ├── PRONTO_REPLACEMENT_CARDS_MIGRATION_REPORT.md
│ │ ├── pronto_import_report.txt
│ │ └── pronto_replacements_import_report.txt
│ └── troubleshooting/
│ ├── README.md <-- Operations & emergency recovery manual
│ └── scripts/ <-- Health check & query termination tools
│
├── scripts/
│ ├── README.md <-- Script index & CLI execution parameters
│ ├── build_production_data.py <-- Master 8-stage production build orchestrator
│ ├── process_pronto_replacements_direct.py <-- Replacement card importer
│ ├── backfill_member_uuids.py <-- Customer UUID anchor generator
│ ├── batch_update_remote_staging.py <-- Parallel JSON-RPC staging sync
│ ├── fix_active_rrp_cards.py <-- Active card alignment script
│ ├── list_all_staff_users.py <-- Staff user extraction script
│ └── list_non_cpl_users.py <-- External email filter script
│
├── odoo/ <-- Custom Odoo modules (cpl_real_rewards_ui, etc.)
├── nginx/ <-- Dedicated SSL reverse proxy configuration
├── docker-compose.yml <-- Multi-container orchestration manifest
└── start.sh <-- Master startup & Cloudflare tunnel runner
3. Custom Odoo Modules Inventory (odoo/addons/)¶
All 7 custom modules are fully installed, tested, and validated:
| Module Name | Version | Dependencies | Status |
|---|---|---|---|
cpl_real_rewards_ui |
17.0.1.0.0 |
base, web, contacts, point_of_sale, real_rewards_loyalty, real_rewards_importer, real_rewards_security, stock, mail, auth_totp |
INSTALLED & VERIFIED |
real_rewards_loyalty |
17.0.1.0.0 |
contacts, loyalty, point_of_sale |
INSTALLED & VERIFIED |
real_rewards_importer |
17.0.1.0.0 |
point_of_sale, loyalty, real_rewards_loyalty |
INSTALLED & VERIFIED |
real_rewards_security |
1.0 |
base, auth_totp, auth_totp_mail, web |
INSTALLED & VERIFIED |
real_rewards_api_mailer |
1.0 |
base, mail |
INSTALLED & VERIFIED |
real_rewards_onboarding |
1.0 |
base, project, mail, real_rewards_uat_automation |
INSTALLED & VERIFIED |
real_rewards_uat_automation |
1.0 |
base, project |
INSTALLED & VERIFIED |
4. Key Architectural Accomplishments Captured¶
A. Immutable Customer Member UUID Anchors¶
- Field:
res_partner.member_uuid(Format:RR-YYYY-<HEX12>). - Purpose: Decouples customer identities from physical RRP card numbers, preventing data corruption during card replacements.
- Coverage: Stamped across 100.0% (137,324) of member accounts.
B. ORM Search Overrides (_name_search)¶
- Extended
_name_searchinres_partner.pyso that searching by active card, expired replaced card, customer name, email, phone, or member UUID resolves directly to the member profile.
C. Dashboard Breadcrumb Header Cleanup¶
- Added
_compute_display_nameindashboard.pyreturning""and updated server action#474title to' ', eliminating thereal.rewards.dashboard,121breadcrumb header.
5. Staff User Accounts Breakdown¶
- Total Active Staff Accounts:
49 - Approval Checkers:
12 - Store Makers:
37 - Accounts using Non-CPL (
@gmail.com) Logins:25(Filtered & logged inscripts/list_non_cpl_users.py).
6. Remote Staging Server Verification (angry-mad-smile.cpl.com.pg)¶
- Domain:
https://angry-mad-smile.cpl.com.pg - Database:
cpl_real_rewards - Active Card Alignment: All 15,637 replacement records set Column 2 as active card with Column 1 logged in replacement history.
- Module State:
cpl_real_rewards_uifully upgraded and active.