Files
document-haness/docs/clean-architecture-backend-template/final/evidence/rendered/a05-f007-transactionprofileregistry.svg
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

104 lines
16 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1712" viewBox="0 0 1200 1712" role="img">
<title>terminal evidence</title>
<desc>Terminal-style rendering generated from retained command output. Sensitive-looking values are redacted in the visual asset.</desc>
<rect x="1" y="1" width="1198" height="1710" rx="14" fill="#0d1117" stroke="#30363d"/>
<rect x="1" y="1" width="1198" height="44" rx="14" fill="#161b22"/>
<rect x="1" y="30" width="1198" height="14" fill="#161b22"/>
<circle cx="24" cy="22" r="6" fill="#ff5f57"/>
<circle cx="44" cy="22" r="6" fill="#febc2e"/>
<circle cx="64" cy="22" r="6" fill="#28c840"/>
<text x="92" y="27" fill="#8b949e" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace">terminal evidence</text>
<text x="24" y="68" fill="#c9d1d9" font-size="15" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">$ SELF=adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/persistence/transaction/Transactio</tspan><tspan x="24" dy="22">nProfileRegistry.java
echo &#x27;# 자리 — 이 리프의 공개 API 패키지인가, 구현 패키지인가&#x27;
grep -n &#x27;^package&#x27; &quot;$SELF&quot;
echo -</tspan><tspan x="24" dy="22">n &#x27;# 리프의 api/** 아래 main 파일: &#x27;
find adapter/outbound/persistence-jpa/src/main/java -path &#x27;*/api/*&#x27; -name &#x27;*.java</tspan><tspan x="24" dy="22">&#x27; | wc -l
echo -n &#x27;# 그중 이 파일: &#x27;
find adapter/outbound/persistence-jpa/src/main/java -path &#x27;*/api/*&#x27; -name &#x27;Transa</tspan><tspan x="24" dy="22">ctionProfileRegistry.java&#x27; | wc -l
echo
echo &#x27;# 제거 조건 하나 — 외부 프로덕션 참조&#x27;
echo -n &#x27;# 자기 파일을 뺀 main </tspan><tspan x="24" dy="22">참조: &#x27;
grep -rnw &#x27;TransactionProfileRegistry&#x27; --include=*.java . | grep &#x27;/main/&#x27; | grep -vc &quot;$SELF&quot;
echo -n &#x27;# 자동설</tspan><tspan x="24" dy="22">정 등록 리소스와 spring.factories: &#x27;
grep -rl &#x27;TransactionProfileRegistry&#x27; --include=*.imports --include=spring.factorie</tspan><tspan x="24" dy="22">s . 2&gt;/dev/null | wc -l
echo &#x27;# 패키지는 스캔 대상이지만 이 클래스에 스테레오타입이 없다&#x27;
grep -rn &#x27;persistence.transa</tspan><tspan x="24" dy="22">ction&#x27; --include=JpaAdapterComponentsConfig.java . | sed &#x27;s|.*/||&#x27;
echo -n &#x27;# 이 파일의 스테레오타입 애너테이션: &#x27;
gre</tspan><tspan x="24" dy="22">p -c &#x27;^@\|^ @Component\|^ @Service&#x27; &quot;$SELF&quot;
echo -n &#x27;# 전용 단위 테스트 한 파일 안의 참조: &#x27;
grep -rcw &#x27;TransactionP</tspan><tspan x="24" dy="22">rofileRegistry&#x27; adapter/outbound/persistence-jpa/src/test/java/dev/caskeleton/adapter/outbound/persistence/transaction/T</tspan><tspan x="24" dy="22">ransactionProfileRegistryTest.java
echo
echo &#x27;# 제거 조건 둘 — 설정 경로&#x27;
echo -n &#x27;# 출하 yml 전부에서 프로파일을 이</tspan><tspan x="24" dy="22">름으로 등록하는 키: &#x27;
grep -rl &#x27;transaction-profile\|transactionProfile&#x27; app-bootstrap/src/main/resources sample-portfol</tspan><tspan x="24" dy="22">io/src/main/resources 2&gt;/dev/null | wc -l
echo -n &#x27;# @ConfigurationProperties 클래스 전부에서의 참조: &#x27;
grep -rln &#x27;@Co</tspan><tspan x="24" dy="22">nfigurationProperties&#x27; --include=*.java . | grep &#x27;/main/&#x27; | xargs grep -lw &#x27;TransactionProfileRegistry&#x27; 2&gt;/dev/null | wc</tspan><tspan x="24" dy="22"> -l
echo
echo &#x27;# 제거 조건 셋 — 대체 경로가 같은 동작을 증명하는가&#x27;
echo -n &#x27;# 레지스트리가 담는 타입 TransactionPro</tspan><tspan x="24" dy="22">file 이 나타나는 main 줄: &#x27;
grep -rnw &#x27;TransactionProfile&#x27; --include=*.java . | grep &#x27;/main/&#x27; | grep -v &#x27;api/transaction</tspan><tspan x="24" dy="22">/TransactionProfile.java&#x27; | grep -vc &quot;$SELF&quot;
echo -n &#x27;# 그중 import 와 javadoc 을 뺀 타입 사용: &#x27;
grep -rnw &#x27;Transac</tspan><tspan x="24" dy="22">tionProfile&#x27; --include=*.java . | grep &#x27;/main/&#x27; | grep -v &#x27;api/transaction/TransactionProfile.java&#x27; | grep -v &quot;$SELF&quot; | </tspan><tspan x="24" dy="22">grep -vc &#x27;import \|{@link&#x27;
echo &#x27;# 그 줄이 있는 파일&#x27;
grep -rlw &#x27;TransactionProfile&#x27; --include=*.java . | grep &#x27;/main/</tspan><tspan x="24" dy="22">&#x27; | grep -v &#x27;api/transaction/TransactionProfile.java&#x27; | grep -v &quot;$SELF&quot; | sed &#x27;s|.*/||&#x27; | sed &#x27;s/^/# /&#x27;
echo &#x27;# 포</tspan><tspan x="24" dy="22">트 시그니처 — 프로파일은 이름이 아니라 두 번째 인자의 객체다&#x27;
grep -n &#x27;T execute(&#x27; adapter/outbound/persistence-jpa/src</tspan><tspan x="24" dy="22">/main/java/dev/caskeleton/adapter/outbound/persistence/api/transaction/JpaTransactionExecutor.java
echo -n &#x27;# 자기 파</tspan><tspan x="24" dy="22">일 밖 main 에서 TransactionProfile 을 만드는 곳: &#x27;
grep -rn &#x27;TransactionProfile\.write(\|TransactionProfile\.read(\|new </tspan><tspan x="24" dy="22">TransactionProfile(&#x27; --include=*.java . | grep &#x27;/main/&#x27; | grep -vc &#x27;api/transaction/TransactionProfile.java&#x27;
echo &#x27;# </tspan><tspan x="24" dy="22">포트 자체를 참조하는 main 파일 (단어 경계, 구현체와 구분)&#x27;
grep -rlnw &#x27;JpaTransactionExecutor&#x27; --include=*.java . | grep</tspan><tspan x="24" dy="22"> &#x27;/main/&#x27; | sed &#x27;s|.*/||&#x27; | sed &#x27;s/^/# /&#x27;
echo
echo &#x27;# 프로덕션 트랜잭션이 실제로 지나는 곳은 다른 타입이다&#x27;
grep -</tspan><tspan x="24" dy="22">n &#x27;implements PolicyTransactionPort&#x27; adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/pers</tspan><tspan x="24" dy="22">istence/transaction/SpringTransactionPort.java
grep -n &#x27;inTransaction(TransactionRequest&#x27; adapter/outbound/persistence-j</tspan><tspan x="24" dy="22">pa/src/main/java/dev/caskeleton/adapter/outbound/persistence/transaction/SpringTransactionPort.java
echo -n &#x27;# 그 파일</tspan><tspan x="24" dy="22"> 안의 TransactionProfile 참조: &#x27;
grep -cw &#x27;TransactionProfile&#x27; adapter/outbound/persistence-jpa/src/main/java/dev/caskel</tspan><tspan x="24" dy="22">eton/adapter/outbound/persistence/transaction/SpringTransactionPort.java
echo -n &#x27;# PolicyTransactionPort 를 쓰는 main</tspan><tspan x="24" dy="22"> 파일: &#x27;
grep -rlw &#x27;PolicyTransactionPort&#x27; --include=*.java . | grep -c &#x27;/main/&#x27; </tspan></text>
<text x="24" y="794" fill="#8b949e" font-size="13" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">cwd: /shared/codebase/clean-architecture-backend-template/src</tspan></text>
<text x="24" y="816" fill="#8b949e" font-size="13" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">time: 2026-09-02T03:32:47+00:00 · exit 0</tspan></text>
<line x1="24" y1="830" x2="1176" y2="830" stroke="#30363d"/>
<text x="24" y="870" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 자리 — 이 리프의 공개 API 패키지인가, 구현 패키지인가</tspan></text>
<text x="24" y="892" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">1:package dev.caskeleton.adapter.outbound.persistence.transaction;</tspan></text>
<text x="24" y="914" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 리프의 api/** 아래 main 파일: 49</tspan></text>
<text x="24" y="936" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 그중 이 파일: 0</tspan></text>
<text x="24" y="958" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="980" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 제거 조건 하나 — 외부 프로덕션 참조</tspan></text>
<text x="24" y="1002" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 자기 파일을 뺀 main 참조: 0</tspan></text>
<text x="24" y="1024" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 자동설정 등록 리소스와 spring.factories: 0</tspan></text>
<text x="24" y="1046" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 패키지는 스캔 대상이지만 이 클래스에 스테레오타입이 없다</tspan></text>
<text x="24" y="1068" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">JpaAdapterComponentsConfig.java:66: &quot;dev.caskeleton.adapter.outbound.persistence.transaction&quot;</tspan></text>
<text x="24" y="1090" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 이 파일의 스테레오타입 애너테이션: 0</tspan></text>
<text x="24" y="1112" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 전용 단위 테스트 한 파일 안의 참조: 3</tspan></text>
<text x="24" y="1134" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="1156" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 제거 조건 둘 — 설정 경로</tspan></text>
<text x="24" y="1178" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 출하 yml 전부에서 프로파일을 이름으로 등록하는 키: 0</tspan></text>
<text x="24" y="1200" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># @ConfigurationProperties 클래스 전부에서의 참조: 0</tspan></text>
<text x="24" y="1222" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="1244" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 제거 조건 셋 — 대체 경로가 같은 동작을 증명하는가</tspan></text>
<text x="24" y="1266" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 레지스트리가 담는 타입 TransactionProfile 이 나타나는 main 줄: 11</tspan></text>
<text x="24" y="1288" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 그중 import 와 javadoc 을 뺀 타입 사용: 7</tspan></text>
<text x="24" y="1310" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 그 줄이 있는 파일</tspan></text>
<text x="24" y="1332" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># FullTransactionRetryCoordinator.java</tspan></text>
<text x="24" y="1354" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># TransactionDefinitionMapper.java</tspan></text>
<text x="24" y="1376" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># SpringJpaTransactionExecutor.java</tspan></text>
<text x="24" y="1398" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># JpaTransactionExecutor.java</tspan></text>
<text x="24" y="1420" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 포트 시그니처 — 프로파일은 이름이 아니라 두 번째 인자의 객체다</tspan></text>
<text x="24" y="1442" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">23: &lt;T&gt; T execute(PersistenceOperationName operation, TransactionProfile profile, Supplier&lt;T&gt; work);</tspan></text>
<text x="24" y="1464" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 자기 파일 밖 main 에서 TransactionProfile 을 만드는 곳: 0</tspan></text>
<text x="24" y="1486" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 포트 자체를 참조하는 main 파일 (단어 경계, 구현체와 구분)</tspan></text>
<text x="24" y="1508" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># SpringJpaTransactionExecutor.java</tspan></text>
<text x="24" y="1530" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># JpaTransactionExecutor.java</tspan></text>
<text x="24" y="1552" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="1574" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 프로덕션 트랜잭션이 실제로 지나는 곳은 다른 타입이다</tspan></text>
<text x="24" y="1596" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">31:public class SpringTransactionPort implements PolicyTransactionPort {</tspan></text>
<text x="24" y="1618" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">165: public &lt;T&gt; TransactionResult&lt;T&gt; inTransaction(TransactionRequest request, Supplier&lt;T&gt; action) {</tspan></text>
<text x="24" y="1640" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 그 파일 안의 TransactionProfile 참조: 0</tspan></text>
<text x="24" y="1662" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># PolicyTransactionPort 를 쓰는 main 파일: 3</tspan></text>
</svg>