file	line	category	comment	evidence	baselineLine
src/react/features/active-workout/mobileWorkoutFlow.ts	24	policy:business	// 사진 장수·용량·형식 제한은 서버와 저장소의 판정에 따른다.	PHOTO_ANSWER_COPY와 photoServices.durable.submit 응답 분기(동일 파일 26,135행)	24
src/react/features/active-workout/mobileWorkoutFlow.ts	118	policy:data-retention	// 업로드가 거부된 사진도 사용자가 제거하기 전까지 입력으로 보존한다.	workout.rejectPhoto 호출(동일 파일 139행), domain/workout-record/photos.ts의 rejected 상태	138
src/react/features/active-workout/useDesktopEditorModel.ts	30	tool	// [저장경로:모양]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	40
src/react/features/active-workout/workoutPauseBinding.ts	28	policy:data-retention	// 잠시 나갈 때 미저장 편집이 있는 초안은 보존한다. 이미 저장한 내용만 남은 초안은 이어하기 대상으로 보관하지 않는다.	동일 파일 40~48행 hasWorkoutDraftEdits·clearEmptyWorkoutDraft·pauseWorkout; contracts/workout/draftSnapshot.ts hasWorkoutDraftEdits	31
src/react/features/active-workout/WorkoutViewProvider.tsx	22	tool	// eslint-disable-next-line react-hooks/exhaustive-deps -- sessionRecordRevision is the detail-cache invalidation tick; the memo reads that cache through getPlannedSessionDetail.	scripts/gates/eslint.mjs 17,37,43행 및 scripts/gates/ledger/eslint.json: 사유 포함 지시문 원문을 키로 소비	31
src/react/features/auth/accountAggregate.ts	27	policy:security	// 명시적 로그아웃·계정 삭제 때 서버 자료의 기기 사본을 지운다. 사용자 초안은 이 정리 대상이 아니다.	동일 파일 33행 purge.deviceCopies; services/deviceCopyStores.ts 20~33행 DEVICE_COPY_STORES(ownDataReplica·exerciseCatalog)	32
src/react/features/calendar/queries/calendarRangeModules.ts	22	tool	// [저장경로:모양]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	29
src/react/features/calendar/queries/calendarRangeModules.ts	26	tool	// [저장경로:모양]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	29
src/react/features/calendar/queries/calendarRangeModules.ts	38	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	46
src/react/features/catalog/queries/exerciseCatalogSync.ts	148	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	164
src/react/features/challenge/challengeDraftMedium.ts	1	policy:data-retention	// 챌린지 초안은 계정별로 보관하며 로그아웃 때 삭제하지 않는다.	동일 파일 createChallengeDraftMedium·keyOf; services/deviceCopyStores.ts DEVICE_COPY_STORES에 초안 저장소 없음	1
src/react/features/completed-workout/pendingWorkoutSavesStore.ts	276	policy:security	// 작성 계정이 현재 로그인 계정과 다르면 저장 요청을 적재하지 않는다.	동일 파일 308~309,320~321,333~334행 ownerFence 후 적재	301
src/react/features/completed-workout/pendingWorkoutSavesStore.ts	361	policy:data-retention	// 계정 삭제 때는 해당 계정의 기기 대기 저장을 지운다. 로그아웃 때는 재로그인 후 전송할 수 있도록 남긴다.	동일 파일 404~405행 transition.reason === deleted 조건의 purgePendingWorkoutSavesForUser	397
src/react/features/group/groupBoardDraftMedium.ts	1	policy:data-retention	// 화이트보드 초안은 계정별로 보관하며 로그아웃 때 삭제하지 않는다.	동일 파일 createGroupBoardDraftMedium·keyOf; services/deviceCopyStores.ts DEVICE_COPY_STORES에 초안 저장소 없음	1
src/react/features/group/groupDraftMedium.ts	1	policy:data-retention	// 그룹 초안은 계정별로 보관하며 로그아웃 때 삭제하지 않는다.	동일 파일 createGroupDraftMedium·keyOf; services/deviceCopyStores.ts DEVICE_COPY_STORES에 초안 저장소 없음	1
src/react/features/group/groupStore.ts	295	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	343
src/react/features/legal/legalDocumentOverlayBinding.ts	24	policy:consent	// 운영·공개 안내 열람은 동의로 기록하지 않는다.	동일 파일 openServiceInformationPage는 open(SUPPORT_COPY.serviceInformationPath)만 실행	33
src/react/features/onboarding/onboardingBinding.ts	93	policy:consent	// 가입이 끝난 회원도 서버가 요구하는 필수 동의가 충족되지 않았으면 재동의를 받는다.	동일 파일 107~111행 requiredConsentsAccepted === false 및 consentRequirements 조건	104
src/react/features/onboarding/onboardingBinding.ts	99	policy:consent	// 체중·체성분·컨디션 공개 동의는 가입 단계에서 받지 않고 설정에서 받는다.	동일 파일 safeConsentPlan(requirements, signup/settings); contracts/legal/legalDocuments.ts resolveConsentPlan의 수집 위치 구분	112
src/react/features/onboarding/onboardingBinding.ts	114	policy:consent	// 기존 회원의 필수 동의는 적용일 전까지 미룰 수 있다.	동일 파일 128행 !isExistingMemberConsentDeadlinePassed() 조건	127
src/react/features/onboarding/onboardingBinding.ts	149	policy:consent	// 공개 설정에서 선택 동의를 켜면 동의로 처리한다. 필수 동의는 이 설정에서 변경하지 않는다.	동일 파일 170~179행 settings 동의 계획과 user.setConsent	167
src/react/features/pr/manualRecordCommands.ts	76	tool	// [저장경로:모양]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	93
src/react/features/pr/queries/prExerciseDetailResource.ts	324	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	373
src/react/features/pr/queries/prExerciseDetailResource.ts	329	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	378
src/react/features/pr/queries/prExerciseDetailResource.ts	363	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	373
src/react/features/pr/queries/prExerciseDetailResource.ts	372	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	378
src/react/features/pr/queries/prExerciseDetailResource.ts	393	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	373
src/react/features/pr/queries/prExerciseDetailResource.ts	397	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	373
src/react/features/pr/queries/prExerciseQueryBinding.ts	73	tool	// [저장경로:모양]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	78
src/react/features/pr/queries/prExerciseQueryBinding.ts	77	tool	// [저장경로:모양]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	78
src/react/features/profile/profileFeatureBinding.ts	103	policy:security	// 계정은 기본 비공개이며 팔로우에 수락이 필요하다. 공개 전환 때 대기 중인 팔로우 요청은 수락된다.	supabase/definitions/profile/tables/profiles.sql account_public DEFAULT false; social/functions/follow_user_core_v1.sql, profile/functions/update_profile_settings_core_v1.sql	
src/react/features/profile/profileResource.ts	19	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	22
src/react/features/profile/userAggregate.ts	16	policy:data-retention	/* 온보딩 초안은 계정별로 보관하며 로그아웃하거나 가입 화면을 떠나도 삭제하지 않는다. */	동일 파일 onboardingEnvelopeKeyOf 및 defaultWorkoutDraftStore; features/onboarding/onboardingBinding.ts leaveOnboarding; services/deviceCopyStores.ts DEVICE_COPY_STORES	21
src/react/features/recovery/recoveryCopy.ts	3	policy:data-retention	// 임시 저장 사본의 보존 기간은 30일이다(user_fact_history_retention_v1).	supabase/migrations/20260916040100_user_fact_history_and_protection_v1.sql 41~47행; 20260926220000_no_periodic_retention_2278.sql 645행	5
src/react/features/search/queries/sessionSearchQuery.ts	66	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	74
src/react/features/search/queries/sessionSearchQuery.ts	69	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	74
src/react/features/search/queries/sessionSearchQuery.ts	71	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	79
src/react/features/search/queries/sessionSearchQuery.ts	85	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	74
src/react/features/search/queries/sessionSearchQuery.ts	99	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	74
src/react/features/search/queries/sessionSearchQuery.ts	101	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	79
src/react/features/social/friendScopeStore.ts	123	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	148
src/react/features/social/friendScopeStore.ts	261	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	148
src/react/features/social/moderationSheets.ts	84	policy:security	// 차단하면 양방향 팔로우가 해제되고 차단을 풀어도 복구되지 않으므로 확인을 받는다.	동일 파일 openBlockConfirm·unblockUser 안내; supabase/migrations/20260902235900_group_ugc_safety_v1.sql block_user_v1	96
src/react/features/workout-plan/planEntryBinding.ts	85	policy:security	// 계획 수정 권한은 서버가 반환한 canEdit 판정에 따른다.	동일 파일 101행 !record.session.canEdit 거부	100
src/react/features/workout/activeWorkoutEntryBinding.ts	128	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	148
src/react/features/workout/activeWorkoutEntryBinding.ts	169	policy:data-retention	// 초안 버리기는 기기의 초안만 보관함으로 옮기며 서버 기록·계획은 삭제하지 않는다.	동일 파일 discardDraftOf와 stores.workoutWriteCommands.discardDraft; app/workout/workoutWriteController.ts discardDraft의 clearPersistedWorkoutDraft(archiveReason: discarded)	193
src/react/features/workout/commands/activeWorkoutCommands.ts	22	tool	// [저장경로:계약]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	27
src/react/features/workout/commands/activeWorkoutCommands.ts	25	tool	// [저장경로:계약]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	27
src/react/features/workout/commands/activeWorkoutCommands.ts	28	tool	// [저장경로:계약]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	27
src/react/features/workout/history/exerciseHistoryContract.ts	12	policy:business	// 종목별 기록 조회 범위는 기준일의 연도를 포함한 최근 10년이다.	동일 파일 EXERCISE_HISTORY_WINDOW_YEARS=10 및 exerciseHistoryWindowFloor	23
src/react/features/workout/history/exerciseHistoryContract.ts	31	tool	// [저장경로:기록외범위]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	45
src/react/features/workout/history/exerciseHistoryMerge.ts	49	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	64
src/react/features/workout/history/exerciseHistoryQuery.ts	51	tool	// [저장경로:인프라]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	58
src/react/features/workout/history/exerciseHistoryQuery.ts	56	tool	// [저장경로:응답]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	63
src/react/features/workout/queries/receiptInvalidation.ts	67	policy:compatibility	// changed 목록이 없는 이전 서버 영수증도 저장 성공으로 인정한다.	동일 파일 fallbackChangedOf 및 accepted.receipt.changed ?? fallbackChangedOf 사용	102
src/react/features/workout/queries/sessionDetailView.ts	1	policy:security	// 다른 사용자가 소유한 완료 기록은 읽기 전용으로 표시한다.	동일 파일 isCompletedSessionReadOnlyFor·completedSessionDetailViewOf	1
src/react/ui/desktop/screens/DesktopOnboarding.tsx	120	policy:business	// 신규 가입은 만 14세 이상 확인이 필요하며, 기존 회원 재동의에는 다시 요구하지 않는다.	동일 파일 ageRequired=mode!==consentRefresh 및 ageConfirmed 조건	139
src/react/ui/desktop/screens/DesktopOnboarding.tsx	164	tool	// eslint-disable-line react-hooks/exhaustive-deps -- Auto-entry uses the render that entered welcome; prop and callback changes do not restart that timer.	scripts/gates/eslint.mjs 17,37,43행 및 scripts/gates/ledger/eslint.json: 사유 포함 지시문 원문을 키로 소비	188
src/react/ui/mobile/lib/WorkoutResumePrompt.tsx	44	policy:data-retention	/* 서버 기록이 갱신된 뒤에도 수정 초안을 자동 폐기하지 않고 사용자가 재개·삭제를 선택한다. */	동일 파일 stale 안내 및 onResume·확인 후 onDiscard 버튼	48
src/react/ui/mobile/screens/GroupSettings.tsx	21	policy:data-retention	// 저장이 거부되면 초안을 유지하고 편집 창을 닫지 않는다.	동일 파일 ok !== false일 때만 onClose 호출; draft는 외부 입력	22
src/react/ui/mobile/screens/OnboardingScreen.tsx	102	policy:business	// 신규 가입은 만 14세 이상 확인이 필요하며, 기존 회원 재동의에는 다시 요구하지 않는다.	동일 파일 ageRequired=mode!==consentRefresh 및 ageConfirmed 조건	135
src/react/ui/mobile/screens/useWorkoutMeasurements.ts	32	policy:business	// 명시적으로 고른 기준 종목의 1RM이 없으면 다른 종목의 1RM으로 대체하지 않는다.	동일 파일 activePctBase 분기는 canonicalOneRmKg의 null을 그대로 사용하며 fallback은 명시 기준이 없을 때만 적용	33
src/react/ui/mobile/screens/WorkoutPicker.tsx	79	tool	// [저장경로:계약]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	93
src/react/ui/mobile/screens/WorkoutRecordParts.tsx	139	policy:data-retention	// 기록 항목의 입력칸을 숨겨도 입력값은 보존한다.	동일 파일 toggleMeasurePick은 measurePicks만 변경하며 set 값은 변경하지 않음	161
src/react/ui/mobile/shell/tabStack.tsx	55	tool	// [저장경로:계약]	scripts/gates/save-path.mjs 122행 TAG_RE 및 같은 줄/직전 줄 표식 소비; 응답 표식은 scripts/gates/server-transport.mjs 169행도 소비	72
src/react/ui/shared/setSemantics.ts	54	policy:compatibility	// 이전 형식의 초안·체크포인트·대기 저장에 있는 5단계 RPE 입력을 계속 읽는다.	동일 파일 migrateLegacySetRpe -> contracts/workout/rpe.ts rpeFromSetRecord의 effortLevel 1~5 변환	61
src/react/ui/shared/setSemantics.ts	82	policy:business	// 세트 점수는 서버가 준 값만 사용하며 RPE로 역산하지 않는다. 복합세트는 동작별 점수의 평균을 소수 첫째 자리로 반올림한다.	동일 파일 scalarSetScore 및 setScore의 movementSetScores 평균	95
