Repository navigation
[F10-3] 서버 부팅 실패 고치기와 실제 DB 게시가 병합된 선언 인정하기 - #60
Merged
Merged
Conversation
bigint 열을 SQL Server 드라이버가 문자열로 돌려줘서, 로그인 뒤 모든 요청이 401 INVALID_CONTEXT 로 막히던 문제. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
bigint 열이 문자열로 와서 엔진 API 가 ENGINE_API_NO_ACTOR(403)로 막히던 문제. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
bigint 열이 문자열로 와서 엔진 API 가 ENGINE_API_NO_ACTOR(403)로 막히던 문제. 변환은 identity-ids.ts 로 빼서 legacy-boundary.ts 는 작아졌다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
필드 설정에 format(email, phone, url, bizno, zip, user)과 min·max 를 더하고, 저장할 때 엔진이 검사한다(BAD_FORMAT, OUT_OF_RANGE). 화면은 같은 검사로 미리 알리고, 필드 편집기에서 형식과 범위를 고를 수 있다(check 바꾸기). 형식과 범위는 새 저장만 검사하므로 저장된 값은 그대로 유효하다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
화면 빌드는 엔진-UI 를 소스로 묶어 엔진의 CommonJS 결과물을 읽지 못한다(빌드 실패). 같은 검사를 엔진-UI 안에 두고, 두 쪽이 같은 답을 내는지 견주는 테스트를 더한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
코드 묶음에 parentGroup, 코드 값에 parent, 필드에 dependsOn 을 더한다(어기면 C10_PARENT). 엔진은 저장할 때 위 값에 맞지 않는 아래 값을 PARENT_MISMATCH 로 거절하고(둘 중 하나가 바뀔 때만), 화면은 위 값의 자식만 보이고 위 값이 바뀌면 아래 값을 비운다. 큰 코드 묶음은 codes/<묶음>/01.json … 으로 나눠 담는다. 행정구역: 시도 17, 시군구 260 을 법정동코드 자료에서 만드는 스크립트와 그 결과. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
필드 편집기에 type 바꾸기(글자 → 선택형만)를 더한다. 새 선택값이나 있는 코드 묶음을 고르고, 서버가 그 회사의 저장된 값을 모두 코드인지 확인한 뒤에만 올려 둔다(아니면 TYPE_CHANGE_DATA 와 맞지 않는 값·건수 20개까지). 계약은 text → enum 을 안전한 넓힘으로 본다. format: user 필드는 사람 찾기(GET /api/engine/users?q=, 같은 회사 활성 사용자 20명까지)로 고르고, 저장할 때 같은 회사의 활성 사용자인지 확인한다(USER_NOT_FOUND). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
큰 화면은 screens/<화면>/01.json … 으로 나눠 담고 읽을 때 합친다. 화면 편집기와 필드 편집기는 화면을 들어가는 대로 한 파일이나 조각으로 다시 쓴다(필드 파일도 넘치면 조각). 목록에서 고른 기록의 담당자를 한 번에 바꾼다(POST …/records/owner, lead.owner.change, 200건까지, 전부 아니면 전무, 행 권한을 넓히지 않음). 개체의 duplicateKeys 로 저장 뒤 같은 값의 다른 기록 수를 알린다(저장은 막지 않음). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
결정 3(dio 승인)의 권한 넓힘(lead.owner.change)을 guard-raises.json 에 선언하고, 화면 모델 access 에 ownerChange 가 더해진 것을 기존 테스트에 반영한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
업무 흐름 설정에 stateDetails(상태마다 핵심 항목 최대 8개, 안내 문구 키)를 더하고 W10_STATE_DETAIL 검사를 넣었다. 상세 화면 맨 위에 단계 막대와 지금 단계의 핵심 항목을 두고 같은 저장 API 로 그 자리에서 고친다. 흐름 편집기에 단계별 핵심 항목을 고르는 칸을 더했다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
600px 아래에서 목록은 카드(아이콘, 제목, 상태 배지, 세 줄, 상세 보기·전화), 상세는 위 막대(뒤로·더보기), 머리 카드(배지·담당자·전화), 바로가기(전화하기·정보 수정), 구역 단추(요약·상세 정보·관련 정보)로 보인다. 진행 단계 막대를 기존 진행 단계 모양(번호 원과 선)으로 맞췄다. 모든 개체에 같은 규칙이고 색은 토큰만 쓴다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
- 새 필드 24개, 글자→선택형 6개(키맨 유형, 메인·서브 시스템, 컨택제외 사유, 시도·시군구), 형식 검사(전화, 이메일, 사업자번호, 사용자) - 유입경로 8개, inflow_source 감춤, 중복 안내 키, 시군구는 시도에 연결 - 키맨 성명은 키맨미팅부터 필수(동작으로 넘어갈 때도 검사) - 컨택제외 동작: 사유는 선택형 필수, 상세 사유 입력 추가(동작 입력 enum 형) - 단계별 키 필드·안내, 상세 화면 탭 넷 - 기존 리드 이관: 글자 선택값을 코드로 맞추고, 맞지 않는 값은 메모 필드에 남김 - 필드·상세 화면은 조각 파일로 나눔(G03), 가드 테스트 4개는 읽는 경로만 바꿈(dio 승인) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
- 편집 권한(config.edit)이 있는 사람에게만 머리띠에 "관리자 화면" 단추 - 관리자 모드: 메뉴는 편집기 넷만, 머리띠는 주의 색, 모드는 브라우저에 기억 - 엔진 화면에서 "이 화면 편집", 편집기에서 "업무 화면으로 돌아가기" - 화면 편집기 미리 보기를 .engine-ui 안에 그려 모바일 부품이 넓은 화면에 나오지 않게 함 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
- scripts/meta-db/run-f10-check.mjs: 회사 -1 에서 리드 형식·선택·연결 선택·중복 안내·담당자 일괄 변경·키맨 규칙·컨택제외 사유 - engine-f10-flow.spec.ts: 같은 흐름을 SQLite 가짜로(합성) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
상세 화면은 F10 모바일 모양에 삭제 단추·확인을 더하고, 화면 모델 access 는 edit·delete·ownerChange 를 함께 둔다. guard-raises.json 은 이미 병합된 REQ-4 선언을 빼고 F10-5 선언만 남긴다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
guard-raises.json 은 F10-5 선언 셋만 남긴다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
engine-writes 가 engine-users.ts(컨트롤러가 EngineApiService 를 가져옴)를 가져와 import 고리가 생겼고, 서버가 뜰 때 EngineUsersController 가 서비스를 받지 못했다. searchUsers·confirmUsers 를 engine-user-check.ts 로 옮기고, 앱 배선 시험(app-wiring.spec.ts)으로 모든 컨트롤러·제공자의 생성자 인자가 정의되어 있는지 본다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC # Conflicts: # backend/src/modules/engine-api/engine-f10-flow.spec.ts # backend/src/modules/engine-api/engine-users.spec.ts # backend/src/modules/engine-api/engine-users.ts # backend/src/modules/engine-api/engine-writes.ts # scripts/meta-db/run-f10-check.mjs
guard-raises.json 의 선언은 병합 뒤 지워지므로, 그 전에 게시된 버전을 가진 실제 DB 에서는 새 게시가 "선언되지 않은 넓힘"으로 거부됐다(#56 의 영업 사원 삭제 권한). dio 결정(2026-12-02 22:58Z)대로 declaredWidenings 가 HEAD 기록 안의 guard-raises.json 모든 커밋 버전의 P6 선언도 읽는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
This was referenced Dec 2, 2026
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.
Requested by dio · project thread
보호 파일 변경
guard-raises.json: 병합된 [F10] 리드를 현행 업무 수준으로: 형식 검사, 연결 선택, 단계 막대, 모바일, 리드 설정, 관리자 전환 #57 의 예외 선언 3건(F10-5,lead.owner.change)을 지운다. 선언은 병합 뒤 지우는 규칙(ci-gates.md)에 따른 것이고, 남겨 두면 보호 검사가 "쓰이지 않는 선언"으로 실패한다. [REQ-5][REQ-6] 거래처·활동 화면 배치, 계산 필드 #59 도 같은 줄을 같은 모양으로 지운다.예외 선언
없음.
요약
F10(#57) 병합 뒤 dio 의 PC 에서 서버가 뜨자마자 죽었다(
Nest can't resolve dependencies of the EngineUsersController (?)).searchUsers·confirmUsers를engine-user-check.ts로 옮기고 engine-writes 는 그것만 가져온다. 컨트롤러는 engine-users.ts 에 남는다.run-f10-check.mjs도 새 파일을 읽는다.backend/src/app-wiring.spec.ts가 main.ts 처럼 AppModule 을 읽고, 모든 컨트롤러·제공자의 생성자 인자가 정의되어 있는지 본다. 고치기 전 코드에서는EngineUsersController argument 0으로 실패하고, 지금은 통과한다.scripts/meta-db/db.mjsdeclaredWidenings): 병합 뒤 지워진 예외 선언 때문에, 그 전에 게시된 버전을 가진 실제 DB 에서 새 게시가 "선언되지 않은 넓힘"([REQ-4] 엔진 레코드 삭제: API, 참조 막기, 상세 화면 삭제 버튼 #56 의 영업 사원 삭제 권한)으로 거부됐다. dio 결정(2026-12-02 22:58Z, "Accept merged declarations")대로 HEAD 기록 안의 guard-raises.json 모든 커밋 버전의 P6 선언도 인정한다. 시험:meta-db-scripts.spec.ts에 임시 git 저장소로 지운 선언도 읽는지 본다.증거
pnpm crm verifyPASS, 커밋 b99921d,dirty: false.바뀌는 동작
https://claude.ai/code/session_014BKmN71FrPWnvAjo6i1YcC
Generated by Claude Code