Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

shared-mutable-index-rmw-race-use-marker-blob-per-item

النجوم٢
التفرعات٠
آخر تحديث٨ يوليو ٢٠٢٦ في ١١:٠٩

Use when DESIGNING a shared "see everyone's active/in-flight/recent items" index — a dashboard sidebar, an activity feed, a "running now" list, a per-team/per-workspace/per-user recent-items list — that CONCURRENT producers add to AND a reader prunes. If you back it with ONE shared mutable container (a JSON list/array in a GCS/S3 blob, a DB array column, a shared session-cookie list, a single file) that is read-modify-written, you get a read-modify-write RACE that silently and PERMANENTLY drops entries: the reader reads the list, a producer appends X, the reader writes back its pruned copy computed before X existed → X is gone forever and the feature's whole promise ("see each other's items") is silently violated for that item. Trigger symptoms: an item a colleague just created never appears in the shared list; "self-correcting" was assumed but the add fires only once so it never re-appears; review flags a concurrency race on a shared index. Fix: ONE marker blob/row PER ITEM (`<prefix>/<item_id>`), so create

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly