Skip to content

bug(memory): snapshot_index catches only JSONDecodeError, so deeply nested input can raise #20061

Closed

Description

@mrveiss

Found in review of #20033, the same class as its normalizer fix. snapshot_index.py:99 catches only JSONDecodeError, so deeply nested input raises RecursionError, and an over-long integer raises ValueError.

Acceptance criteria

  • Both inputs are handled as a bad record instead of raising (test).

Activity

  1. mrveiss commented on Oct 31, 2026

    @mrveiss
    OwnerAuthor

    Landed in merge train #20188, main 87e5871, via #20137. Tests: services/execution/snapshot_index_test.py for the index, autobot_shared/prompt_rules_test.py for frame markers.

  2. mrveiss commented on Oct 31, 2026

    @mrveiss
    OwnerAuthor

    Landed via the merge train (PR #20188), main 87e5871. Verified: snapshot_index.py _read catches JSON_ERRORS and OSError; snapshot_index_test.py test_unparseable_index_is_a_bad_record_not_an_exception covers '['*200000 and a 5000-digit integer. AC met. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions