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>
15 lines
3.5 KiB
JSON
15 lines
3.5 KiB
JSON
{
|
|
"assetKey": "a05-f018-sql",
|
|
"kind": "terminal",
|
|
"command": "H=src/adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/persistence/hibernate\nS=src/adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/persistence/springdata\n\necho '# 검사기가 무엇을 하는지, 그리고 무엇을 위한 것인지'\ngrep -n '' $H/NamedStatementInspector.java | sed -n '7,18p'\ngrep -n '' $H/NamedStatementInspector.java | sed -n '20,43p'\necho '# 이름 형식이 이미 * 와 / 를 막는다'\ngrep -n 'Pattern.compile' src/adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/persistence/api/query/QueryName.java\n\necho\necho '# 하이버네이트가 이 구현을 설치하는 경로 — 저장소 루트, 확장자 무제한'\necho -n '# statement_inspector 설정 키: '\ngrep -rn --binary-files=without-match 'statement_inspector\\|statementInspector\\|STATEMENT_INSPECTOR' --exclude-dir=build --exclude-dir=.git . | wc -l\necho -n '# HibernatePropertiesCustomizer / SessionFactoryBuilder / ServiceRegistry / Integrator: '\ngrep -rln 'HibernatePropertiesCustomizer\\|SessionFactoryBuilder\\|StandardServiceRegistry\\|org.hibernate.integrator' --exclude-dir=build --exclude-dir=.git . | wc -l\necho -n '# persistence.xml: '\nfind . -name persistence.xml -not -path '*/build/*' | wc -l\necho -n '# src 리소스와 자동설정 등록 파일의 FQCN: '\ngrep -rln 'NamedStatementInspector' --exclude-dir=build src/*/src/main/resources src/*/*/*/src/main/resources 2>/dev/null | wc -l\necho -n '# 그 클래스의 단위 테스트: '\nfind src -name 'NamedStatementInspector*Test.java' -o -name 'QueryNameContext*Test.java' | grep -vc build\n\necho\necho '# 이름을 컨텍스트에 넣는 세 곳'\ngrep -rn 'QueryNameContext\\.with(' --include=*.java --exclude-dir=build src | grep '/main/' | sed 's|^src/||'\necho -n '# 그 컨텍스트를 읽는 곳: '\ngrep -rn 'QueryNameContext\\.current()' --include=*.java --exclude-dir=build src | wc -l\n\necho\necho '# 이름을 SQL 로 옮기는 두 번째 경로'\ngrep -rn 'org.hibernate.comment' --include=*.java --exclude-dir=build src | grep '/main/' | sed 's|^src/||'\ngrep -n 'setHint(COMMENT_HINT' $S/JpaRepositoryFragmentSupport.java src/adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/persistence/querydsl/QuerydslJpaSupport.java | sed 's|.*/||'\necho -n '# 그 힌트가 SQL 로 나오게 하는 use_sql_comments 를 켜는 곳: '\ngrep -rn --binary-files=without-match 'use_sql_comments\\|useSqlComments' --exclude-dir=build --exclude-dir=.git . | wc -l\n\necho\necho '# 이름을 넣는 세 클래스를 누가 쓰는가'\nfor C in JpaStreamExecutor JpaKeysetQuerySupport JpaRepositoryFragmentSupport; do\n echo -n \"# $C 그 타입을 쓰는 파일 전부: \"\n grep -rlnw \"$C\" --include=*.java --exclude-dir=build src | sed 's|.*/||' | tr '\\n' ' '; echo\n echo -n \"# 상속(전체): \"\n grep -rn \"extends $C\" --include=*.java --exclude-dir=build src | sed 's|.*/||' | tr '\\n' ' '; echo\ndone",
|
|
"cwd": "/shared/codebase/clean-architecture-backend-template",
|
|
"exitCode": 0,
|
|
"executedAt": "2026-09-02T04:10:31+00:00",
|
|
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
|
|
"raw": "evidence/raw/a05-f018-sql.txt",
|
|
"svg": "evidence/rendered/a05-f018-sql.svg",
|
|
"rawSha256": "74c726f1a709094bee07533d7df83e06e526afb4551aa4daff29827f06fec9b7",
|
|
"lines": 69,
|
|
"redaction": "none — 코드베이스 정적 검색"
|
|
}
|