Skip to content

**<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Make create fail when blackboard document already exists** #60

@weilixu

Description

@weilixu

P1 Badge Make create fail when blackboard document already exists

save() treats expected_revision=None as an unconditional update by copying the current revision and writing anyway, so create() can overwrite an existing session document instead of failing. If two workers race through get_or_create on the same new session_id, the later create can clobber data written by the first request (resetting state back to initial_data) while still advancing the revision, which is a real state-corruption risk for concurrent workflows.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #58 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions