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
4.2 KiB
JSON
15 lines
4.2 KiB
JSON
{
|
|
"assetKey": "analysis-finding-a05-f001",
|
|
"kind": "terminal",
|
|
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\nhits() {\n local out rc\n out=$(git grep -nE \"$1\" -- \"$2\") && rc=0 || rc=$?\n [ \"$rc\" -le 1 ] || { echo \"SEARCH FAILED rc=$rc : $1\" >&2; return 2; }\n [ \"$rc\" -eq 0 ] && printf '%s\\n' \"$out\" || true\n}\nat() { awk -v s=\"$2\" -v e=\"$3\" -v n=\"$4\" 'NR>=s && NR<=e {printf \" %s:%d %s\\n\", n, NR, $0}' \"$1\"; }\nC=src/adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/persistence/api/query/SignedJsonCursorCodec.java\ntest -f \"$C\"\n\necho \"# 인코더는 패딩을 뗀다\"\nat \"$C\" 37 38 SignedJsonCursorCodec.java\necho \"# 두 상한\"\nat \"$C\" 53 58 SignedJsonCursorCodec.java\necho\necho \"# 인코드가 크기를 재는 자리\"\nat \"$C\" 63 72 SignedJsonCursorCodec.java\necho\necho \"# 디코드가 크기를 추정하는 자리와 그 식\"\nat \"$C\" 103 108 SignedJsonCursorCodec.java\nat \"$C\" 125 128 SignedJsonCursorCodec.java\necho\necho \"# 그 식을 부르는 자리 전부\"\nhits 'decodedLengthOf' 'src/**/*.java' \\\n | sed -E 's#^src/(.*)/src/(main|test)/java/.*/([A-Za-z]+\\.java):([0-9]+): *# \\1 · \\2 · \\3:\\4 #'\necho\necho \"# 이 코덱이 프로덕션에 배선되는가\"\necho \" new SignedJsonCursorCodec 이 나오는 자리 :\"\nhits 'new SignedJsonCursorCodec' 'src/**/*.java' \\\n | sed -E 's#^src/(.*)/src/([a-zA-Z]+)/java/.*/([A-Za-z]+\\.java):([0-9]+): *# \\1 · \\2 · \\3:\\4 #'\necho \" CursorPayloadCodec 을 구현한다고 선언한 파일 :\"\nprintf ' %s 개\\n' \"$({ git grep -lE 'implements[[:space:]]+([A-Za-z0-9_.]+,[[:space:]]*)*CursorPayloadCodec' -- 'src/**/*.java' || true; } | { grep -c '/src/main/' || true; })\"\necho \" 실제로 배선된 커서 코덱 :\"\ngit ls-files -- 'src/**/Hmac*CursorCodec.java' 'src/**/*KeysetCursorCodec.java' | sed 's#.*/# #'\necho \" 그 셋이 decodedLengthOf 같은 추정식을 쓰는가 : $(\n { git grep -lE 'decodedLengthOf|/ 4 \\* 3' -- 'src/**/Hmac*CursorCodec.java' 'src/**/*KeysetCursorCodec.java' || true; } | grep -c . || true) 개\"\n\necho\necho \"# 두 주석이 서로 다르게 적는다\"\nat \"$C\" 125 125 SignedJsonCursorCodec.java\nat \"$C\" 103 104 SignedJsonCursorCodec.java\n\necho\necho \"# 경계를 시험하는 코드가 있는가\"\nfor n in 2044 2045 2046 2047 2048 2049; do\n printf ' 시험에서 %s 를 쓰는 줄 : %s 개\\n' \"$n\" \\\n \"$({ git grep -nE \"\\\\b$n\\\\b\" -- 'src/**/*Test*.java' 'src/**/*IT.java' || true; } | grep -c . || true)\"\ndone\necho \" 추정식에 실제로 도달하는 시험 :\"\nT=src/adapter/outbound/persistence-jpa/src/test/java/dev/caskeleton/adapter/outbound/persistence/api/query/SignedJsonCursorCodecTest.java\nat \"$T\" 166 176 SignedJsonCursorCodecTest.java\necho \" 왕복을 상한 근처에서 단언하는 시험 : $(\n { grep -cE 'decode\\(codec.encode|encode.*decode' \"$T\" || true; }) 개\"\necho \" 이 코덱을 만드는 자리가 있는 소스 세트 :\"\nhits 'new SignedJsonCursorCodec' 'src/**/*.java' | sed -E 's#^src/[^/]*/[^/]*/[^/]*/src/([a-zA-Z]+)/.*# \\1#' | sort -u\n\necho\necho \"# 같은 페이로드를 인코드하고 곧바로 디코드해 본 결과\"\ngrep -nE 'a\".repeat|codec.encode|codec.decode|new int\\[\\]|payloadSeg|추정식' /tmp/probe-cursor/CursorRoundTrip.java \\\n | sed -E 's#^([0-9]+): *# probe:\\1 #'\nCP=$(cat /tmp/cp-jpa.txt)\nrm -rf /tmp/probe-cursor/out && mkdir -p /tmp/probe-cursor/out\njavac -nowarn -cp \"$CP\" -d /tmp/probe-cursor/out /tmp/probe-cursor/CursorRoundTrip.java\njava -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 \\\n -cp \"$CP:/tmp/probe-cursor/out\" dev.caskeleton.adapter.outbound.persistence.api.query.CursorRoundTrip\n",
|
|
"cwd": "/shared/codebase/clean-architecture-backend-template",
|
|
"exitCode": 0,
|
|
"executedAt": "2026-09-04T06:13:27+00:00",
|
|
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
|
|
"raw": "evidence/raw/analysis-finding-a05-f001.txt",
|
|
"svg": "evidence/rendered/analysis-finding-a05-f001.svg",
|
|
"rawSha256": "5aa63620a6635883124e193cdf07662d72980cf58daae393a909db832d416ab4",
|
|
"lines": 115,
|
|
"redaction": "비밀값 없음"
|
|
}
|