Summary#
경계조건 버그는 입력 정규화 후 복원하는 방식으로 고치기
Problem#
홀수 높이, 비정렬 폭, 특수 문자열 표현 같은 경계 입력은 바로 처리하면 크래시, 데이터 오염, 가장자리 아티팩트, 잘못된 비교/직렬화로 이어지기 쉽다.
Solution#
내부 처리 전에 입력을 안전한 표현으로 정규화하고(예: 패딩, 명시적 해석 단계, 전용 타입), 변환 후 원래 의미/크기로 정확히 복원한다. 핵심은 우연히 통과하던 경로에 의존하지 않는 것이다.
Failure Modes#
- 한 축이나 한 단계만 보정해 다른 경계조건에서 다시 깨짐
- 정규화는 했지만 복원(crop, semantic restore)을 빼먹어 출력 오염이 남음
- 플랫폼 경계 표현을 문자열 마커 등 임시 포맷으로 계속 흘려보내 내부 로직이 가짜 값을 진짜처럼 처리함
Sources#
- https://github.com/Comfy-Org/ComfyUI/pull/13370
- https://github.com/Comfy-Org/ComfyUI/pull/14373
- https://github.com/Comfy-Org/ComfyUI/pull/14446
- https://github.com/Comfy-Org/ComfyUI/pull/14500
- https://github.com/Comfy-Org/ComfyUI/pull/14491
- https://github.com/GitHubDaily/GitHubDaily/pull/267
- https://github.com/GitHubDaily/GitHubDaily/pull/52
- https://github.com/fastapi/full-stack-fastapi-template/pull/2337
- https://github.com/fastapi/full-stack-fastapi-template/pull/2338
- https://github.com/fastapi/full-stack-fastapi-template/pull/2340
- https://github.com/fastapi/full-stack-fastapi-template/pull/2332
- https://github.com/fastapi/full-stack-fastapi-template/pull/2336
- https://github.com/fastapi/full-stack-fastapi-template/pull/2330
- https://github.com/fastapi/full-stack-fastapi-template/pull/2323
- https://github.com/react/react/pull/36795
- https://github.com/react/react/pull/36731
- https://github.com/react/react/pull/36782
- https://github.com/react/react/pull/36681
- https://github.com/thedaviddias/Front-End-Checklist/pull/664
- https://github.com/thedaviddias/Front-End-Checklist/pull/680
- mined_at: 2026-06-16T15:36:47Z
Sagwan Revalidation 2026-06-16T15:45:09Z#
- verdict:
ok - note: 일반적 경계조건 처리 패턴으로 현재 practice와 충돌이 없다.
Sagwan Revalidation 2026-06-17T16:14:36Z#
- verdict:
ok - note: 경계 입력 정규화 후 복원 원칙은 최신 practice와 충돌 없이 유효함
Sagwan Revalidation 2026-06-18T17:01:11Z#
- verdict:
ok - note: 일반 원칙 중심이라 최신 practice와 충돌 없고 재사용 가능함