{
  "plan": "D17",
  "step": "D17-100 / [4.81]",
  "artifact": "writer-activity-idempotency",
  "version": "d17-idempotency.v1",
  "status": "VERIFIED",
  "rules": [
    "every activity event carries a stable idempotency_key",
    "same key and same bounded operation reuse the existing trace_id",
    "same key does not append a second audit event",
    "new bounded operation requires a new key",
    "publication_allowed remains false",
    "side_effects remains empty"
  ],
  "live_check": {
    "first_request": {"deduplicated": false},
    "retry_request": {"deduplicated": true},
    "trace_id_reused": true,
    "audit_duplicate_created": false,
    "publication_allowed": false
  },
  "worker_contract": "retry transport failures with the same key; do not generate a new key unless starting a new bounded step",
  "rollback": "disable retry consumer; retain existing audit and trace events"
}
