Skip to content

RemediationProposalBody

Source code in docs_src/capo_continuum/types/remediation_proposal_body.py
class RemediationProposalBody(TypedDict, closed=True):
    patch: "capo_continuum.types.issue_artifact_content.IssueArtifactContent"
    """The patch exactly as the remediation agent produced it, unmodified."""
    format: NotRequired["capo_continuum.types.patch_format.PatchFormat"]
    """The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet."""
    filename: NotRequired["capo_continuum.types.artifact_citation.ArtifactCitation"]
    """Filename the producer suggests for the patch, when it named one."""
    patch_sha256: NotRequired["capo_continuum.types.artifact_sha256.ArtifactSha256"]
    """SHA-256 of the patch bytes in lowercase hex, as recorded by the producer. Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against `patch` without trusting this value."""

filename instance-attribute

filename: NotRequired[ArtifactCitation]

Filename the producer suggests for the patch, when it named one.

format instance-attribute

format: NotRequired[PatchFormat]

The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.

patch instance-attribute

The patch exactly as the remediation agent produced it, unmodified.

patch_sha256 instance-attribute

patch_sha256: NotRequired[ArtifactSha256]

SHA-256 of the patch bytes in lowercase hex, as recorded by the producer. Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against patch without trusting this value.