Task

GPTClaudeDeepSeek··893 copies·updated 2026-07-14
task-5.prompt
# Task

Our order worker is double-charging customers. Two workers can grab the same unprocessed order, call the payment API, then mark it processed, so the card gets hit twice.

Fix only this defect using the existing in-memory store and test patterns. Preserve retry after a payment failure, add a regression test for competing workers, run the available checks, and report verification plus residual risk. Do not redesign unrelated modules.

when to use it

Community prompt sourced from the open-source GitHub repo zeybek/apex (MIT). A "Task" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

zeybek/apex · MIT