Skip to main content

Module patchset

Module patchset 

Source
Expand description

AI PatchSet snapshot.

PatchSet stores one immutable candidate diff produced during a Run.

§How to use this object

  • Create one PatchSet per candidate diff worth retaining.
  • Use sequence to preserve ordering between multiple candidates in the same run.
  • Attach diff artifacts, touched files, and rationale before persistence.

§How it works with other objects

  • Run is the canonical owner through PatchSet.run.
  • Evidence may validate a specific patchset via patchset_id.
  • Decision selects the chosen patchset, if any.

§How Libra should call it

Libra should use PatchSet as immutable staging history. Acceptance, rejection, or promotion to repository commit should be represented by Decision and Libra projections rather than by mutating the PatchSet.

Structs§

PatchSet
Immutable candidate diff snapshot for one Run.
TouchedFile

Enums§

ChangeType
DiffFormat