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>
65 lines
11 KiB
XML
65 lines
11 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1228" viewBox="0 0 1200 1228" 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="1226" 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">$ F=src/adapter/outbound/fileserver/src
|
|
P=$F/main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/Transfe</tspan><tspan x="24" dy="22">rBufferPool.java
|
|
T=$F/test/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/LocalAppendMemoryTest.java
|
|
E=/</tspan><tspan x="24" dy="22">shared/document-detail/clean-architecture-backend-template/evidence/raw/145-fileserver-local-io-probes.txt
|
|
|
|
echo '# 자바</tspan><tspan x="24" dy="22">독이 적은 결합'
|
|
sed -n '55,58p' "$P"
|
|
|
|
echo
|
|
echo '# 그 이름이 src 아래 자바 파일에 나오는 곳 전수'
|
|
grep -rn 'maxBorrowedB</tspan><tspan x="24" dy="22">ytes' --include=*.java src | grep -v '/build/' \
|
|
| sed 's#src/adapter/outbound/fileserver/src/# #'
|
|
|
|
echo
|
|
echo '# 원</tspan><tspan x="24" dy="22">본 절이 근거로 댄 증거 파일이 무엇을 출력했나'
|
|
sed -n '/=== 8.4 doc.behaviour/,/^exit=/p' "$E" | sed 's/adapter.outbound</tspan><tspan x="24" dy="22">.fileserver.src./ …\//'
|
|
|
|
echo
|
|
echo '# 그 시험이 실제로 도는가'
|
|
grep -n '@Test\|@Tag\|@Disabled' "$T" | sed 's/^/ </tspan><tspan x="24" dy="22">/'
|
|
grep -n 'LocalAppendMemoryTest' .github/workflows/*.yml | sed 's/^/ /'
|
|
grep -n 'LargeFileBoundedMemoryTest' .githu</tspan><tspan x="24" dy="22">b/workflows/*.yml | sed 's/^/ /' </tspan></text>
|
|
<text x="24" y="266" 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</tspan></text>
|
|
<text x="24" y="288" 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-02T10:10:59+00:00 · exit 0</tspan></text>
|
|
<line x1="24" y1="302" x2="1176" y2="302" stroke="#30363d"/>
|
|
<text x="24" y="342" 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="364" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> /** Peak simultaneously-borrowed bytes; the bounded-memory regression asserts on this. */</tspan></text>
|
|
<text x="24" y="386" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> long maxBorrowedBytes() {</tspan></text>
|
|
<text x="24" y="408" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> return maxBorrowedBytes.get();</tspan></text>
|
|
<text x="24" y="430" 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="452" 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="474" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"># 그 이름이 src 아래 자바 파일에 나오는 곳 전수</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"> test/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/LocalAppendMemoryTest.java:54: assertThat(bufferPool.</tspan><tspan x="24" dy="22">maxBorrowedBytes()).isLessThanOrEqualTo(BUFFER_BYTES);</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"> main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:20: private final AtomicLong ma</tspan><tspan x="24" dy="22">xBorrowedBytes = new AtomicLong();</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"> main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:38: maxBorrowedBytes.accumula</tspan><tspan x="24" dy="22">teAndGet(outstanding, Math::max);</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"> main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:56: long maxBorrowedBytes() {</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"> main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:57: return maxBorrowedBytes.g</tspan><tspan x="24" dy="22">et();</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"></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"># 원본 절이 근거로 댄 증거 파일이 무엇을 출력했나</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">=== 8.4 doc/behaviour: bounded memory claim and its regression test ===</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">$ grep -n 'maxBorrowedBytes' …/main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java </tspan><tspan x="24" dy="22">adapter/outbound/fileserver/src/test/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/LocalAppendMemoryTest.java</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"> …/main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:20: private final AtomicLong</tspan><tspan x="24" dy="22"> maxBorrowedBytes = new AtomicLong();</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"> …/main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:38: maxBorrowedBytes.accum</tspan><tspan x="24" dy="22">ulateAndGet(outstanding, Math::max);</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"> …/main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:56: long maxBorrowedBytes() </tspan><tspan x="24" dy="22">{</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"> …/main/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/TransferBufferPool.java:57: return maxBorrowedByte</tspan><tspan x="24" dy="22">s.get();</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"> …/test/java/dev/caskeleton/adapter/outbound/fileserver/platform/local/LocalAppendMemoryTest.java:54: assertThat(bufferPo</tspan><tspan x="24" dy="22">ol.maxBorrowedBytes()).isLessThanOrEqualTo(BUFFER_BYTES);</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">exit=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"># 그 시험이 실제로 도는가</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"> 31: @Test</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"> .github/workflows/fileserver-nightly.yml:103: :adapter:outbound:fileserver:test --tests '*LocalAppendMemoryTest'</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"> .github/workflows/fileserver-nightly.yml:102: :adapter:outbound:fileserver:test --tests '*LargeFileBoundedMemoryTes</tspan><tspan x="24" dy="22">t'</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"> .github/workflows/fileserver-pr.yml:161: :adapter:outbound:fileserver:test --tests '*LargeFileBoundedMemoryTest'</tspan></text>
|
|
</svg>
|