Repository navigation
feat(detect): 뜻이 같은 이전 값도 되돌림으로 표시 (SIL-104) - #59
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
바뀐 결정 사항 찾기 · PR #59
@k0nghaa 같은 PR을 두 번 판단했는데 결과가 달라서 저장하지 않았어요.
+ -- 공백·끝 마침표·전각 글자만 다르면 같은 값으로 봐요. 저장하는 값은 넣은 글자 그대로예요
+ if public.normalize_standard_value(v_latest.value) <> public.normalize_standard_value(v_value) then
+ and public.normalize_standard_value(value) = public.normalize_standard_value(v_value);
+export function normalizeStandardValue(text: string): string {
+| detect.change.revert-mark | ✔ DB가 다듬은 글자로 되돌림을 표시해요. 뜻만 같으면 AI가 물어요 |결정 사항은 그대로 두었어요. 바뀐 게 맞으면 Claude Code에서 "결정 사항을 바꿔 줘"라고 말해 주세요. 바뀐 게 아니면 이 댓글은 넘어가셔도 돼요. |
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.
관련 이슈
SIL-104 [개발] 뜻이 같은 이전 값도 되돌림으로 표시하기 (detect.change.revert-mark) — https://linear.app/pj-3/issue/SIL-104 (SIL-66 하위)
무엇을 바꿨나요
1. 글자 다듬기 규칙 (core + DB)
.。) 지우기.normalizeStandardValue와 DBnormalize_standard_value는 같은 규칙이에요. 공백 글자 목록도 두 쪽에 똑같이 직접 적었어요.20261015100000_revert_normalize.sql은save_standard의 되돌림 비교 부분만 바꿔요. 나머지는 직전 정의와 같아요.supabase/tests/revert_normalize.test.sql을 더했어요. 예: "4개" → "5개" → "4 개."이면 v1 되돌림으로 표시.2. T1 (작업 중 바뀐 결정 사항 확인)
save_standard로 저장해요. DB는 글자를 비교해서 되돌림으로 표시해요.T1_COPY.revert).save_standard→ ④save_standard에만 붙어 있어서revert도구는 쓰지 않아요.revertSame). 그 뒤에는 정해진 한 줄만 써요.3. PR 경로
findSameMeaning), 저장하지 않고 작성자에게 댓글로 물어요(maybe-revert). 댓글에는 할 일을 적어요: "Claude Code에서 '결정 사항 {id}를 v{N}으로 되돌려 줘'라고 말해 주세요".unsure로 물어요.4. 문서
apps/detect/README.md와docs/설계-지침서.md를 바뀐 동작에 맞췄어요.왜 바꿨나요
전에는 앞뒤 공백만 지운 뒤 글자가 똑같을 때만 되돌림으로 표시해서, "4개"↔"4 개"나 "4개"↔"네 개"는 잡히지 않았어요.
is_revert는 알림과 지표에 바로 쓰이기 때문이에요.save_standard직접 호출)를 위한 안전망이에요.어떻게 확인했나요
pnpm check통과 (vitest 239개 통과, 원래 건너뛰던 1개, notify node:test 83개 통과).revertSame안내와 마지막 한 줄직접 확인하지 못한 부분
revert_normalize.test.sql을 실제 DB에서 돌려 보지 못했어요. SIL-97 시험 때 Supabase SQL Editor에서 마이그레이션을 올린 뒤 검사 파일을 실행해요(특히 정규식 대괄호 안의\uXXXX). T1 되돌림은 예전 글자를 그대로 저장하므로 마이그레이션 없이도 표시돼요.prompt.ts)을 바꿨지만, PR 10개 정확도 시험과findSameMeaning실제 Claude 호출은 돌리지 않았어요(SIL-97에서 확인).T1_COPY.revert,notices.revertSame)와 PR 댓글 문구는 초안이라 부건님 확인이 필요해요.save_standard방식). 예: v1=v3=v5 값일 때 v5는 v3 되돌림으로 남아요. 실제로 취소된 변경(v4)과 맞아서 이렇게 두기로 했어요. 다만 "v1으로 되돌려 줘"라고 해도 v3으로 기록돼요.packages/detect/src/judge/**, 지금 없는 경로)는 나중에 T1로 정리하기로 했어요.🤖 Generated with Claude Code