Files
document-haness/docs/clean-architecture-backend-template/final/evidence/meta/a07-f001-uuidcodec-elsewhere.json
T
DongHyeonkaandClaude Opus 5 b2963105a8 docs(keycloak-session-store): import the session-storage lab as a new project
The keycloak project ended with four open questions that design could not
settle. A two-VM lab was built to answer them by measurement, and this is
that material: 26 experiments, 125 raw command outputs, 22 browser captures.

Follows the import procedure in README.md.

  source/     the originating repository verbatim — 78 documents, 28 SVGs,
              8 manifests, plus .source-revision recording the commit
  final/      the SSOT
    document.md   729 lines written from the 29 experiment documents, not
                  concatenated: what was predicted, what was measured, and
                  where the measurement itself was wrong
    evidence/raw    125 outputs, flattened to <experiment>__<file> because
                    the originals collided (01-baseline.txt appeared three
                    times) and the audit only globs the top level
    evidence/meta   one per raw file; command and exitCode are null and the
                    README says why rather than inventing them
    evidence/browser  22 captures
    assets/       three diagrams through techviz
    .techviz/     their VizSpecs

A separate project rather than an addition to keycloak: the B-layer answers
that project's four questions, but the A, C and D layers are about cluster
failure, SSO and operations, and one document.md should hold one subject.
The four question records there can point here through 관계.

Recorded rather than papered over: only three of the 28 diagrams were
remade. The repository forbids hand-drawn SVG and forbids titles inside the
canvas; all 28 originals carry both, so converting them is redrawing, not
reformatting. They stay in source/ and the gap is written into the document.

verify-pipeline.py passes. audit-records.py reports no issues.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 22:51:59 +09:00

15 lines
3.2 KiB
JSON

{
"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 — 코드베이스 정적 검색"
}