Dragonire9

Results issues of Dragonire9

### Summary Hardens ackend/database/hourly_usage_updates.py::prepare_hourly_usage_updates against map hierarchy corruption, timezone partition skew, and non-positive/non-finite usage rollups. ### Problem Analysis 1. **Dotted plan_key Breaks Nested Field Structure**: est_usage_fields expands dotted field paths...

## Problem Description The server-driven review configuration module (`backend/database/app_review_config.py`) toggles subscription-surface visibility for Apple and macOS app reviewers. However, it suffers from several critical input sanitization, error-handling, and testability shortcomings:...

## Problem Description The catalog-backed phone call configuration module (`backend/database/phone_call_config.py`) overlays live Firestore settings onto catalog defaults. However, it suffers from several sanitization, validation, error-handling, and testability shortcomings: 1. **Unsanitized...

## Problem Description The assistant voice preferences module (`backend/database/voice_preferences.py`) reads and persists user voice choices from/to the Firestore data plane. However, it currently has several input sanitization, error resilience, and...

## Problem Description The first-party session visibility module (`backend/database/channel_visibility.py`) streams user channel links and chat sessions from Firestore. However, it currently has several input sanitization, error resilience, performance, and testability...

## Problem Description The trends data access module (`backend/database/trends.py`) queries public trends and persists topic aggregations across user memories. However, it currently has several error resilience, input sanitization, and testability...

## Problem Description The budget choice data access module (`backend/database/budget_choice.py`) stores and retrieves per-account bounded budget choices (`on_device` vs `upgrade`). However, it has several input sanitization, error resilience, and testability...

## Problem Description The action item normalization layer (`backend/database/action_item_codec.py`) processes task payloads across all database reads and writes (`prepare_action_item_for_read` and `prepare_action_item_for_write`). However, it has several critical safety and testability issues:...

## Problem Description The API key metadata projection module (`backend/database/api_key_metadata.py`) guards authentication contracts, credential metadata projection, scope parsing, and app identity validation across MCP and Developer API keys. However, it...

## Problem Description The batch privacy query layer (`backend/database/batch_pipeline_privacy_queries.py`) executes bounded Firestore queries for retention, segment artifact lifecycles, and user data purge flows across batch jobs. However, it currently has...