1st
Implement first because it is concrete, bounded, and directly missing from AirPilot WHMCS.
Promo redemption vertical slice
Add two AirPilot WHMCS tools: evaluate first, apply second. The apply path needs an idempotency key, ledger status, cap checks, and concurrency protection.
evaluate_promo_redemption -> apply_promo_redemption
Tests: rejected invoice, already credited, duplicate retry, concurrent apply, cap exceeded
Gate
The key behavior is blocking unsafe raw sends when polish fails.
Default-polish and processed-update hardening
AirPilot should distinguish in-flight, completed, stale, and failed Telegram updates. It should keep pending raw replies separate from normal menu state and expire them.
/reply -> default polish -> send polished OR ask "send as-is?"
Tests: bot-addressed commands, /nopolish, /cancel, stale callback, duplicate update replay
UX
Make WHMCS operators faster without replacing the AirPilot portal.
WHMCS-native conversation and recovery views
Build a panel-local log viewer that groups existing chat rows into sessions. Add Telegram deep links into the right conversation and keep raw logs for audit fallback.
Conversation tab + raw log tab + filters + badges + delete/session actions
Tests: session grouping, guest/admin/AI badges, permission checks, deep-link parameters
API
Share only where endpoint semantics match.
GPT-5 reasoning and endpoint behavior
AirPilot needs an explicit position on per-context reasoning, verbosity, Responses API support, SSE heartbeats, idle timeouts, and custom endpoint capability differences.
Official endpoint: clamp unsupported xhigh to high
Custom endpoint: preserve capability if vendor config declares support
No
Do not make LibCyberAI a WHMCS product by accident.
LibCyberAI backport policy
Backport shared primitives only: transport robustness or Telegram reply safety if the libcyber flow uses it. Do not add WHMCS invoices, billing correction, promo redemption, or WHMCS admin pages.
Allowed: generic OpenAI transport tests, Telegram replay hardening
Rejected: WHMCS tools, WHMCS migrations, WHMCS operator UI