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.6 KiB
JSON
15 lines
3.6 KiB
JSON
{
|
|
"assetKey": "a20-f007-grpcstreamadmission",
|
|
"kind": "terminal",
|
|
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\nA=src/grpc/grpc-policy/src/main/java/dev/caskeleton/grpc/streaming/GrpcStreamAdmission.java\ntest -f \"$A\"\n\necho \"# 승인과 해제의 본문\"\nawk 'NR>=38 && NR<=64 {printf \" GrpcStreamAdmission.java:%d %s\\n\", NR, $0}' $A\necho \" 필드 넷 :\"\nawk 'NR>=14 && NR<=18 {printf \" GrpcStreamAdmission.java:%d %s\\n\", NR, $0}' $A\n\necho\necho \"# 자바독이 서술하는 실패 시나리오\"\nawk 'NR>=5 && NR<=12 {printf \" GrpcStreamAdmission.java:%d %s\\n\", NR, $0}' $A\n\necho\necho \"# perCaller 가 나오는 줄 전부와 그 소속\"\ngrep -n 'perCaller' $A | sed -E 's#^([0-9]+): *# GrpcStreamAdmission.java:\\1 #'\necho \" :43 은 tryAdmit · :57 은 release · :73 은 openStreamsFor 안이다\"\necho \" 제거 계열 호출 (remove·clear·removeIf·compute·merge·keySet·entrySet) :\"\ngrep -nE 'perCaller\\.(remove|clear|compute|merge|keySet|entrySet)' $A || echo \" 0 건\"\n\necho\necho \"# 이 타입을 참조하는 자리 — 경로 제한 없이 저장소 전체\"\necho \" \\$ git grep -l GrpcStreamAdmission (pathspec 없음)\"\ngit grep -l 'GrpcStreamAdmission' | sed 's#^# #'\necho \" \\$ git grep -l GrpcAdmissionController (대조군)\"\ngit grep -l 'GrpcAdmissionController' | sed 's#^# #'\necho \" 두 타입이 실린 배포 아티팩트가 있는가 :\"\npython3 - <<'PY'\nimport json\nd = json.load(open('src/config/architecture/modules.json'))\nn = e = 0\ndef w(o):\n global n, e\n if isinstance(o, dict):\n if str(o.get('id','')).startswith('grpc'):\n n += 1\n if not o.get('runtime_memberships'): e += 1\n for v in o.values(): w(v)\n elif isinstance(o, list):\n for v in o: w(v)\nw(d)\nprint(f\" modules.json 의 grpc leaf {n} 개 중 runtime_memberships 가 빈 것 : {e} 개\")\nPY\necho \" 자원 파일·자동설정·리플렉션 경로 :\"\ngit grep -ln 'caskeleton.grpc.streaming' -- '*.yml' '*.yaml' '*.properties' '*.xml' '*.imports' '*.factories' || echo \" 0 건\"\ngit grep -ln 'Class.forName' -- 'src/grpc/**' || echo \" Class.forName 0 건\"\n\necho\necho \"# 같은 가족이 무제한 증가를 막는 다른 자리\"\nM=$(git grep -l 'class GrpcMetricCardinalityPolicy' -- 'src/**/*.java' | grep '/main/')\ntest \"$(printf '%s' \"$M\" | wc -l)\" -eq 0\necho \" $M\"\nawk 'NR>=12 && NR<=15 {printf \" GrpcMetricCardinalityPolicy.java:%d %s\\n\", NR, $0}' \"$M\"\necho \" ALLOWED_TAGS 선언 범위와 원소 :\"\nawk '/ALLOWED_TAGS =/,/[)];/ {printf \" GrpcMetricCardinalityPolicy.java:%d %s\\n\", NR, $0}' \"$M\"\n\necho\necho \"# 프로브 — 아래 소스를 그 자리에서 컴파일해 돌린다\"\ngrep -E 'new GrpcStreamAdmission|for [(]|tryAdmit|release|mapSize\\(a\\)|run\\(' \\\n /tmp/probe5/MapGrowthProbe.java | sed 's/^ */ /'\ncd /tmp/probe5\njavac -nowarn -encoding UTF-8 -cp \"$(cat /tmp/cp-grpc-policy.txt)\" -d . MapGrowthProbe.java\njava -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 \\\n -cp \".:$(cat /tmp/cp-grpc-policy.txt)\" MapGrowthProbe\n",
|
|
"cwd": "/shared/codebase/clean-architecture-backend-template",
|
|
"exitCode": 0,
|
|
"executedAt": "2026-09-04T02:49:19+00:00",
|
|
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
|
|
"raw": "evidence/raw/a20-f007-grpcstreamadmission.txt",
|
|
"svg": "evidence/rendered/a20-f007-grpcstreamadmission.svg",
|
|
"rawSha256": "e9297aa53c88f9e4142b858fca077c691870db964f13d7088faf74041c5078d9",
|
|
"lines": 112,
|
|
"redaction": "비밀값 없음"
|
|
}
|