remove max patchsize limit from validate_patchset

Agent-Logs-Url: https://github.com/velocitatem/cvfs/sessions/e5483685-0807-4655-ba29-68311e6403db

Co-authored-by: velocitatem <60182044+velocitatem@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-07 10:08:56 +00:00
committed by GitHub
parent 9c57dcaedb
commit 3838bfe51a

View File

@@ -13,14 +13,9 @@ def validate_patchset(
document: StructuredDocument, document: StructuredDocument,
patches: Iterable[PatchPayload], patches: Iterable[PatchPayload],
*, *,
max_changes: int = 12,
max_growth_ratio: float = 1.45, max_growth_ratio: float = 1.45,
) -> None: ) -> None:
patch_list = list(patches) patch_list = list(patches)
if len(patch_list) > max_changes:
raise PatchValidationError(
f"Patchset exceeds max changes ({len(patch_list)} > {max_changes})"
)
block_map = {block.path: block for block in document.blocks} block_map = {block.path: block for block in document.blocks}
for patch in patch_list: for patch in patch_list:
block = block_map.get(patch.target_path) block = block_map.get(patch.target_path)