실험: gpt-oss-120b zod object extend stale-test repair#1
Open
agent-eli wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
목적
이 PR은 upstream 기여가 아니라 LLM 기반 test maintenance 실험을 공유하기 위한 artifact입니다.
base branch인
experiment/zod-object-extend-fixture에는0fe884의 production behavior change만 synthetic commit으로 반영했습니다. 이 PR branch는 그 stale-test 상태에서gpt-oss-120b가 제안한 test-only repair를 반영한 결과입니다.변경 내용
packages/zod/src/v4/classic/tests/object.test.ts의 stale expectation을 수정했습니다.schema.extend({ b: z.string() })가 throw해야 한다는 assertion을, 새 key 추가는 throw하지 않는다는 assertion으로 바꿨습니다.packages/zod/src/v4/core/util.ts는 이 PR diff에 포함하지 않았습니다.검증
pnpm test packages/zod/src/v4/classic/tests/object.test.tspnpm test도 통과했습니다.실험 평가 메모
모델은 실패하던 assertion을 통과시키는 데는 성공했지만, upstream oracle이 유지한 핵심 test signal을 일부 잃었습니다. 이 repair는 non-overlapping key 추가가 허용된다는 happy path만 확인하고, 기존 key overwrite가 여전히 금지되어야 한다는 negative coverage와 extend 이후 refinement가 유지되어야 한다는 검증은 포함하지 않습니다.