{ "assetKey": "a07-f001-uuidcodec-elsewhere", "kind": "terminal", "command": "echo '# 문자열에서 UUID 를 만드는 리프 밖 프로덕션'\necho -n '# 파일 : '\ngrep -rl 'UUID.fromString' --include=*.java src --exclude-dir=build | grep '/main/' \\\n | grep -v '^src/adapter/outbound/identifier/' | wc -l\necho -n '# 호출 줄 : '\ngrep -rn 'UUID.fromString' --include=*.java src --exclude-dir=build | grep '/main/' \\\n | grep -v '^src/adapter/outbound/identifier/' | wc -l\ngrep -rl 'UUID.fromString' --include=*.java src --exclude-dir=build | grep '/main/' \\\n | grep -v '^src/adapter/outbound/identifier/' | sed 's#^src/# #'\n\necho\necho '# 그중 하나는 표준 파서의 관대함을 알고 먼저 거른다'\nsed -n '19,21p;32,34p' src/adapter/inbound/graphql/src/main/java/dev/caskeleton/adapter/inbound/graphql/scalar/UuidScalar.java\n\necho\necho '# 문서가 toUuid 의 목적으로 든 컬럼 변환이 실제로 잇는 구간'\necho -n '# @JdbcTypeCode(SqlTypes.UUID) 를 단 프로덕션 파일 : '\ngrep -rl '@JdbcTypeCode(SqlTypes.UUID)' --include=*.java src --exclude-dir=build | grep -c '/main/'\necho -n '# 그 애너테이션 개수 : '\ngrep -rn '@JdbcTypeCode(SqlTypes.UUID)' --include=*.java src --exclude-dir=build | grep -c '/main/'\necho -n '# 그 애너테이션이 붙은 필드의 타입 : '\npython3 - <<'PY'\nimport collections, pathlib, re\nkinds = collections.Counter()\nfor path in pathlib.Path('src').rglob('*.java'):\n if 'build' in path.parts or '/main/' not in str(path):\n continue\n lines = path.read_text(encoding='utf-8').splitlines()\n for index, line in enumerate(lines):\n if '@JdbcTypeCode(SqlTypes.UUID)' not in line:\n continue\n for following in lines[index + 1:index + 6]:\n found = re.search(r'(?:private|protected|public)\\s+([A-Za-z_][\\w.<>]*)\\s+\\w+\\s*;', following)\n if found:\n kinds[found.group(1)] += 1\n break\nprint(dict(kinds))\nPY\n\necho\necho '# 그래서 문자열 구간은 매퍼가 따로 한다'\ngrep -n -B2 'UUID.fromString' \\\n src/sample-portfolio/src/main/java/dev/caskeleton/sample/portfolio/adapter/outbound/persistence/mapper/WorkLogPersistenceMapper.java | head -6\n\necho\necho '# 리프에 의존해도 되는 모듈'\npython3 - <<'PY'\nimport json\nd = json.load(open('src/config/architecture/modules.json'))\nmodules = d['modules']\nallowed = [m['id'] for m in modules\n if 'adapter-outbound-identifier' in m.get('allowed_dependencies', [])]\nprint('# 전체', len(modules), '중', len(allowed), ':', ', '.join(allowed))\nPY\n\necho '# 예제 애플리케이션이 코덱을 쓰지 않는 이유를 적어 둔 자리'\nsed -n '333,335p' src/sample-portfolio/README.md", "cwd": "/shared/codebase/clean-architecture-backend-template", "exitCode": 0, "executedAt": "2026-09-02T09:02:43+00:00", "sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916", "raw": "evidence/raw/a07-f001-uuidcodec-elsewhere.txt", "svg": "evidence/rendered/a07-f001-uuidcodec-elsewhere.svg", "rawSha256": "70506315cde67fae759ca30de705345317982fc04bf8d2829b42cca053c98b83", "lines": 43, "redaction": "none — 코드베이스 정적 검색" }