{
  "plan": "D17",
  "step": "D17-116 / [4.95]",
  "artifact": "next-bounded-writer-capability",
  "status": "SELECTED",
  "capability": "durable_step_idempotency_ledger",
  "reason": "The current step-envelope retry guard is correct during the live process, but its lookup is based on the recent audit contour. A worker restart must not permit a duplicate Qwen step.",
  "scope": [
    "persist idempotency_key with job_id, revision_id, trace_id, status and checkpoint hash",
    "reuse the persisted result for an identical retry",
    "reject the same key with a conflicting job or revision",
    "keep publication_allowed=false and side_effects=[]",
    "test normal retry, process-restart retry and key conflict"
  ],
  "out_of_scope": [
    "publication",
    "automatic article approval",
    "new Qwen capabilities",
    "changing source or HTML policy"
  ],
  "acceptance": [
    "first bounded step creates one durable record",
    "same-context retry returns the same trace_id and deduplicated=true",
    "retry after service restart returns the same result",
    "conflicting context is blocked with HTTP 422/REVIEW_REQUIRED",
    "no duplicate audit event and no second Qwen call"
  ],
  "next": "D17-117 / [4.96] implement and test durable step idempotency ledger",
  "rollback": "disable the durable ledger consumer and retain the existing audit-only guard"
}
