App State and History Sync#
This page describes current app-state and history-sync behavior implemented in Waton.
Protocol side effects#
When low-level normalized events are processed, WAClient applies persistence
side effects for specific protocol event types.
Implemented flows:
messages.app_state_sync_key_share: app-state sync key metadata is stored increds.additional_data["app_state_sync_keys"].messages.history_sync: processed history entries are appended tocreds.processed_history_messageswith dedupe checks.
Message secret persistence#
When message content indicates poll/event creation with message_secret_b64,
Waton stores the secret under:
creds.additional_data["message_secrets"][message_id]
This enables later decryption attempts for:
encrypted poll vote updates
encrypted event response updates
Cache size is controlled by:
max_message_secrets_cache
Support status#
Partial support:
Persistence and event-side handling are implemented.
A full high-level app-state command API is not yet exposed as user-facing wrappers.
Practical guidance#
Keep credentials storage healthy and durable (for example SQLite in stable path).
Avoid deleting auth DB between runs if you rely on incremental app-state/history behavior.
Next steps#
Full event categories: Event Model
Troubleshooting sync/retry behavior: FAQ and Troubleshooting