Ariyachan

Results issues of Ariyachan

## Problem 1. **Explicit `None` settings default to disabled instead of enabled (`backend/database/users.py:236-260`)**: `get_meeting_note_screenshots_enabled` and `get_user_private_cloud_sync_enabled` previously used `user_data.get(..., True)`. When an explicit `None` value is stored on a user...

memory
p3

## Problem 1. **Unhandled AttributeError during staged task deduplication (backend/database/staged_tasks.py:58)**: In create_staged_task, deduplication streams existing staged tasks: doc.to_dict().get('description', '') When doc.to_dict() evaluates to None (for an unpopulated or empty Firestore...

intelligence
p3

## Problem 1. **Unhandled `KeyError: 'id'` drops entire category from public `/v1/trends` (`backend/database/trends.py:31`)**: In `get_trends_data`: ```python category_topics_ref = trends_ref.document(category_data['id']).collection('topics') ``` If a category document snapshot in Firestore does not have...

retrieval-action
p3

## Problem 1. **Unhandled `ValidationError` in `process_user_expression_measurement_callback` (`backend/utils/conversations/process_conversation.py:3258`) when stored task document lacks explicit `id`**: In `backend/database/tasks.py`: ```python def get_task_by_action_request(action: str, request_id: str) -> dict[str, Any] | None: ... tasks:...

intelligence
p3

## Problem 1. **`NotFound` exception in tester access mutations (`backend/database/apps.py:325-334`)**: In `add_app_access_for_tester_db` and `remove_app_access_for_tester_db`: ```python def add_app_access_for_tester_db(app_id: str, uid: str) -> None: app_ref = db.collection(testers_collection).document(uid) app_ref.update({'apps': ArrayUnion([app_id])}) ``` When granting...

## Problem 1. **`NotFound` exception in `update_meeting` (`backend/database/calendar_meetings.py:63`)**: `update_meeting` executes: ```python _get_meetings_collection(uid).document(meeting_id).update(meeting_data) ``` If the target meeting document in `users/{uid}/meetings/{meeting_id}` does not exist (for example, if purged by retention cleanup,...

retrieval-action
p3

## Problem 1. **Uncaught exceptions on invalid or empty parameters (`backend/database/wrapped.py:47-91`)**: - `get_wrapped(uid, year)`, `create_wrapped(uid, year)`, `reset_wrapped_for_regeneration(uid, year)`, `update_wrapped_status(...)`, and `update_wrapped_progress(...)` operate directly on `db.collection('users').document(uid).collection('wrapped').document(str(year))`. - Passing an empty or...

intelligence
p3

## Problem 1. **Race condition and uncaught `NotFound` in `mark_consolidated` (`backend/database/short_term_memories.py:22-38`)**: - `mark_consolidated` checks `if not doc_ref.get().exists: return`. However, if the document is pruned or deleted concurrently between the `.get()`...

memory
p3

## Problem 1. **Missing input validation and crash on whitespace identifiers (`backend/database/recording_sessions.py`)**: - `tombstone_and_delete_empty_conversation(uid, conversation_id, recording_session_id)` does not validate `uid` or `conversation_id`. Passing an empty or whitespace-only string raises `ValueError:...

capture
p2

## Problem 1. **Uncaught `KeyError` and `TypeError` on partial counters in `upsert_desktop_daily_usage` (`backend/database/daily_summaries.py:46-77`)**: - `upsert_desktop_daily_usage` loops over `DESKTOP_DAILY_USAGE_COUNTER_FIELDS` and accesses `counters[field]` directly. If a caller submits a partial dictionary (e.g....

intelligence
p3