Skip to content

T-YPBT-consolidate-the-3-duplicated-lease-payload-mint-call-sites

State: closed/done · Impact: low · Complexity: medium

From the Phase-4 audit’s recommended task list (docs/planning/notes/N-OCUK-2026-09-24-sdlc-1-0-audit.md, on origin/sdlc/p4-audit): Consolidate the 3 duplicated lease-payload-mint call sites into buildInitialTaskLeasePayload; ops/task/transition.ts delegates to transitionLease(); split loadReconcileState into categorizeRefs.

AreaNote
lib/services/lease/Lease-payload minting, transition, loadReconcileState
  • AC-1: Exactly one function mints the ~19-field task-lease payload, called from all 3 former sites.
  • AC-2: transition.ts calls transitionLease() rather than reimplementing it.
  • AC-3: loadReconcileState delegates to a new categorizeRefs helper.
  • none
  • none

← Back to Tasks