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>
72 lines
11 KiB
XML
72 lines
11 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1140" viewBox="0 0 1200 1140" 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="1138" 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">$ set -e
|
|
set -o pipefail
|
|
P=adapter/outbound/notification/src/main/java/dev/caskeleton/adapter/outbound/notification
|
|
S=ap</tspan><tspan x="24" dy="22">plication-core/src/main/java/dev/caskeleton/application/notification/platform
|
|
echo "# 저장소 전체에서 템플릿 엔진을 부르</tspan><tspan x="24" dy="22">는 자리 — src/main 은 둘뿐이고 둘 다 모드를 넘긴다"
|
|
grep -rn 'engine\.render(' --include=*.java . --exclude-dir=build |</tspan><tspan x="24" dy="22"> grep '/src/main/' | sed 's#.*/##'
|
|
echo -n "# 같은 검색이 src/test 에서 잡은 건수 : "
|
|
{ grep -rn 'engine\.render(' --inc</tspan><tspan x="24" dy="22">lude=*.java . --exclude-dir=build | grep '/src/test/' || true; } | wc -l
|
|
echo
|
|
echo "# 두 오버로드와 그 안의 검사 — Thym</tspan><tspan x="24" dy="22">eleafStringTemplateEngine.java"
|
|
grep -n 'public String render\|catch (RuntimeException\|requireEveryReferencedVariable('</tspan><tspan x="24" dy="22"> \
|
|
$P/platform/template/ThymeleafStringTemplateEngine.java
|
|
echo
|
|
echo "# 렌더를 부르는 자리 1 — NotificationProviderAt</tspan><tspan x="24" dy="22">temptAdapter.java (그 자리에서 잡는다)"
|
|
grep -n 'renderer.render(plan)\|catch (RuntimeException renderingFailure)' \
|
|
$</tspan><tspan x="24" dy="22">P/provider/NotificationProviderAttemptAdapter.java
|
|
echo
|
|
echo "# 렌더를 부르는 자리 2 — NotificationDispatchService.java</tspan><tspan x="24" dy="22"> (감싸지 않는다)"
|
|
grep -n 'content = render(work, route)\|private RenderedNotificationContent render(' \
|
|
$S/dispatch/N</tspan><tspan x="24" dy="22">otificationDispatchService.java
|
|
echo
|
|
echo "# 그것이 닿는 곳 — NotificationSchedulerWorker.java (타입만 적는다)"
|
|
grep -n</tspan><tspan x="24" dy="22"> 'dispatcher.dispatch(lease)\|reason={} causes={}\|failure.getClass().getSimpleName()\|chain.append(current.getClass' \
|
|
</tspan><tspan x="24" dy="22"> $P/platform/dispatch/NotificationSchedulerWorker.java
|
|
echo
|
|
echo -n "# org.thymeleaf 로거를 따로 설정한 줄 수 (0 이면 </tspan><tspan x="24" dy="22">루트 준위가 그대로 적용된다) : "
|
|
{ grep -rn 'org\.thymeleaf' --include=*.yml --include=*.xml --include=*.properties app-</tspan><tspan x="24" dy="22">bootstrap/src || true; } | wc -l
|
|
</tspan></text>
|
|
<text x="24" y="398" 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="420" 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-02T15:42:32+00:00 · exit 0</tspan></text>
|
|
<line x1="24" y1="434" x2="1176" y2="434" stroke="#30363d"/>
|
|
<text x="24" y="474" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 저장소 전체에서 템플릿 엔진을 부르는 자리 — src/main 은 둘뿐이고 둘 다 모드를 넘긴다</tspan></text>
|
|
<text x="24" y="496" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">CanonicalNotificationRenderer.java:125: return engine.render(modeOf(slot), template.content().requireSlot(slot), variables);</tspan></text>
|
|
<text x="24" y="518" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">CanonicalNotificationRenderer.java:133: .map(source -> engine.render(modeOf(slot), source, variables));</tspan></text>
|
|
<text x="24" y="540" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 같은 검색이 src/test 에서 잡은 건수 : 15</tspan></text>
|
|
<text x="24" y="562" 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="584" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 두 오버로드와 그 안의 검사 — ThymeleafStringTemplateEngine.java</tspan></text>
|
|
<text x="24" y="606" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">68: public String render(TemplateSlotMode mode, String source, Map<String, Object> variables) {</tspan></text>
|
|
<text x="24" y="628" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">85: public String render(String source, Map<String, Object> variables) {</tspan></text>
|
|
<text x="24" y="650" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">88: requireEveryReferencedVariable(source, variables);</tspan></text>
|
|
<text x="24" y="672" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">92: } catch (RuntimeException failure) {</tspan></text>
|
|
<text x="24" y="694" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">114: private static void requireEveryReferencedVariable(String source, Map<String, Object> variables) {</tspan></text>
|
|
<text x="24" y="716" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">157: requireEveryReferencedVariable(source, variables);</tspan></text>
|
|
<text x="24" y="738" 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="760" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 렌더를 부르는 자리 1 — NotificationProviderAttemptAdapter.java (그 자리에서 잡는다)</tspan></text>
|
|
<text x="24" y="782" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">163: Objects.requireNonNull(renderer.render(plan), "rendered notification must be non-null");</tspan></text>
|
|
<text x="24" y="804" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">164: } catch (RuntimeException renderingFailure) {</tspan></text>
|
|
<text x="24" y="826" 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="848" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 렌더를 부르는 자리 2 — NotificationDispatchService.java (감싸지 않는다)</tspan></text>
|
|
<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">146: RenderedNotificationContent content = render(work, route);</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">280: private RenderedNotificationContent render(Work work, RouteCandidate route) {</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"></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"># 그것이 닿는 곳 — NotificationSchedulerWorker.java (타입만 적는다)</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">94: dispatcher.dispatch(lease);</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">103: "notification dispatch failed worker={} reason={} causes={}",</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">105: failure.getClass().getSimpleName(),</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">128: chain.append(current.getClass().getSimpleName());</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">156: failure.getClass().getSimpleName());</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"></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"># org.thymeleaf 로거를 따로 설정한 줄 수 (0 이면 루트 준위가 그대로 적용된다) : 0</tspan></text>
|
|
</svg>
|