Repository navigation
fix(sync): v0.3.1 리뷰 후속·fp 바인딩 레코드 정리, v0.3.2 - #13
Merged
Merged
Conversation
- legacy 수락이 충돌·용량 부족으로 끝나면 '보류했습니다' 대신 실제 결과 안내 - 축출 때 바인딩 정리를 Proposal 후보로 한정(Held·Conflict 는 불변 vid 검사용으로 유지) - review 도중 더 새 변경으로 퇴역했거나 충돌로 바뀐 후보를 말없이 건너뛰지 않고 안내 - RELEASING: npm 설치 확인은 ./node_modules/.bin/kc 로(npx kc 는 설치 실패 시 남의 kc 패키지 실행) Refs DCO-43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AcJNLuNvFR9uo8NsqLVCj6
- known 을 자르는 모든 지점을 trim_known 하나로 모으고, 밀려난 vid 가 head·lineage·versions·후보 어디서도 참조되지 않으면 fp 레코드를 gc - Transition::Applied 분기에 빠져 있던 known 상한 처리 추가 - 후보 제거 경로(축출·퇴역·clear_candidates·거절)에서 known 밖 vid 의 레코드 수거 Refs DCO-43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AcJNLuNvFR9uo8NsqLVCj6
- cleanup 이 gc 큐의 fp 레코드를 지우기 직전 head·lineage·known·versions·후보 참조를 다시 확인 - 참조 때문에 남긴 known 밖 vid 는 unbind_watch 에 두고 cleanup 마다 재확인해 고아가 되면 수거 - 같은 review 에서 거절한 vid 가 수락한 lineage 에 들어가도 레코드 보존 Refs DCO-43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AcJNLuNvFR9uo8NsqLVCj6
- 같은 review 에서 다른 항목 수락이 먼저 정리를 돌려도, 아직 수락 전인 후보의 조상 vid 레코드를 지우지 않음 Refs DCO-43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AcJNLuNvFR9uo8NsqLVCj6
Refs DCO-43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs DCO-43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
요약
v0.3.1 최종 리뷰의 후속 권고 3건과 릴리스 문서의
npx kc함정을 고친다. 그 과정에서 codex 리뷰가 찾은 fp 바인딩 레코드 누수를 구조로 정리했다.후속 권고 (71182b7)
docs/RELEASING.md: npm 설치 확인을./node_modules/.bin/kc로 한다.npx kc는 설치가 실패하면 npm 의 다른kc패키지를 받아 실행한다.fp 레코드 정리 (aa967ef·c161fa3·a4e9b81)
known을 자르는 모든 지점을trim_known하나로 모았다. 원격 변경 반영 분기에 빠져 있던 상한 처리도 넣었다.binding_referenced하나로 판정한다: head, lineage, versions, known, 같은 이름 후보의 vid·parents·lineage.cleanup이 fp 레코드를 지우기 직전에 이 판정을 다시 한다.unbind_watch에 두고, 정리할 때마다 다시 확인해 참조가 사라지면 수거한다.검증
cargo test --workspace: 503 통과, 실패 0 / clippy-D warnings·fmt 깨끗알려진 한계
unbind_watch가 사라져, 그 목록이 추적하던 레코드가 남을 수 있다(형식은 호환).kc sync rm은 known 안의 fp 레코드를 남긴다(항목당 최대 256개). 지우면 같은 이름을 다시 add 했을 때 페어링 기기가 예전 vid 를 다른 값으로 재사용해도 격리되지 않아(codex 지적) 의도적으로 남긴다.Refs DCO-43
🤖 Generated with Claude Code
https://claude.ai/code/session_01AcJNLuNvFR9uo8NsqLVCj6