Files
document-haness/docs/clean-architecture-backend-template/final/evidence/meta/a20-f006-grpcadmissioncontroller-tryadmit.json
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

15 lines
4.5 KiB
JSON

{
"assetKey": "a20-f006-grpcadmissioncontroller-tryadmit",
"kind": "terminal",
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\nC=src/grpc/grpc-server/src/main/java/dev/caskeleton/grpc/server/GrpcAdmissionController.java\n\necho \"# 승인 메서드 셋의 본문\"\nawk 'NR>=50 && NR<=87 {printf \" GrpcAdmissionController.java:%d %s\\n\", NR, $0}' $C\necho \" 계수기 필드 :\"\nawk 'NR>=17 && NR<=19 {printf \" GrpcAdmissionController.java:%d %s\\n\", NR, $0}' $C\n\necho\necho \"# 클래스가 자기 존재 이유를 무엇이라고 적는가\"\nawk 'NR>=5 && NR<=13 {printf \" GrpcAdmissionController.java:%d %s\\n\", NR, $0}' $C\n\necho\necho \"# 이 타입이 조립되는가, 그리고 승인 API 를 부르는 자리는 어디인가\"\ngit grep -n 'GrpcAdmissionController' -- 'src/grpc/**/*.java' \\\n | sed -E 's#^src/[^:]*/src/(main|test)/java/dev/caskeleton/[^:]*/([^:/]+):([0-9]+):# \\1 · \\2:\\3 #'\necho \" tryAdmit · promoteFromQueue · release 를 부르는 자리 :\"\ngit grep -nE '[.](tryAdmit|promoteFromQueue|release)[(][)]' -- 'src/grpc/**/*.java' \\\n | sed -E 's#^src/[^:]*/src/(main|test)/java/dev/caskeleton/[^:]*/([^:/]+):([0-9]+):# \\1 · \\2:\\3 #'\nm=$(git grep -lE '[.](tryAdmit|promoteFromQueue|release)[(][)]' -- 'src/grpc/**/*.java' | grep -c '/main/' || true)\necho \" 그중 main 소스 세트 : ${m:-0} 개 파일\"\necho \" main 에서 이 타입을 들고 있는 GrpcDrainCoordinator 가 하는 일 :\"\ngrep -nE 'admission[.]' src/grpc/grpc-admin/src/main/java/dev/caskeleton/grpc/admin/GrpcDrainCoordinator.java \\\n | sed -E 's#^([0-9]+): *# GrpcDrainCoordinator.java:\\1 #'\n\necho \" 그 빈을 만드는 자동설정이 언제 켜지는가 :\"\nA=src/grpc/grpc-spring-boot-starter/src/main/java/dev/caskeleton/grpc/boot/GrpcPlatformAutoConfiguration.java\nawk 'NR>=29 && NR<=36 {printf \" GrpcPlatformAutoConfiguration.java:%d %s\\n\", NR, $0}' $A\nn=$({ grep -rl 'ca-skeleton.grpc.platform' --include=*.yml --include=*.yaml --include=*.properties src/ 2>/dev/null || true; } | wc -l)\necho \" 그 프로퍼티를 켜는 설정 파일 : $n 개\"\nm=$({ grep -rl 'grpc-spring-boot-starter' --include=build.gradle src/ 2>/dev/null || true; } | { grep -v '^src/grpc/' || true; } | wc -l)\necho \" src/grpc 밖에서 이 starter 에 의존하는 모듈 : $m 개\"\necho \" main 소비자 GrpcDrainCoordinator 가 생성되는 자리 :\"\ngit grep -n 'new GrpcDrainCoordinator' -- 'src/**/*.java' \\\n | sed -E 's#^src/[^:]*/src/(main|test)/java/dev/caskeleton/[^:]*/([^:/]+):([0-9]+):# \\1 · \\2:\\3 #'\nk=$({ grep -rl 'ApplicationContextRunner' src/grpc/ 2>/dev/null || true; } | wc -l)\necho \" src/grpc 안의 ApplicationContextRunner : $k 개 파일\"\n\necho\necho \"# 저장소가 쓰는 승격 순서\"\nawk 'NR>=119 && NR<=131 {printf \" GrpcServerProfileTest.java:%d %s\\n\", NR, $0}' \\\n src/grpc/grpc-server/src/test/java/dev/caskeleton/grpc/server/GrpcServerProfileTest.java\n\necho\necho \"# 같은 가족의 올바른 형태 — 재시도 예산\"\nB=$(git grep -l 'class GrpcRetryBudget' -- 'src/grpc/**/*.java' | grep '/main/' | head -1)\necho \" $B\"\nawk 'NR>=50 && NR<=61 {printf \" GrpcRetryBudget.java:%d %s\\n\", NR, $0}' \"$B\"\necho \" compareAndSet 을 쓰는 grpc main 파일 :\"\ngit grep -ln 'compareAndSet' -- 'src/grpc/**/*.java' | grep '/main/' | sed 's#.*/# #'\nfor f in \"$C\" src/grpc/grpc-policy/src/main/java/dev/caskeleton/grpc/streaming/GrpcStreamAdmission.java; do\n printf \" %-28s compareAndSet %s 건\\n\" \"$(basename $f)\" \"$(grep -c 'compareAndSet' $f || true)\"\ndone\n\necho\necho \"# 프로브 — 아래 소스를 그 자리에서 컴파일해 돌린다\"\ngrep -E 'new GrpcAdmissionController|for [(]' /tmp/probe5/DeterministicProbe.java | sed 's/^ */ /'\ncd /tmp/probe5\njavac -nowarn -encoding UTF-8 -cp \"$(cat /tmp/cp-grpc-server.txt)\" -d . DeterministicProbe.java\njava -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 \\\n -cp \".:$(cat /tmp/cp-grpc-server.txt)\" DeterministicProbe\n",
"cwd": "/shared/codebase/clean-architecture-backend-template",
"exitCode": 0,
"executedAt": "2026-09-04T02:57:28+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/a20-f006-grpcadmissioncontroller-tryadmit.txt",
"svg": "evidence/rendered/a20-f006-grpcadmissioncontroller-tryadmit.svg",
"rawSha256": "1e0eb387f72509b5930ec27eb7bde81a43022a156fa0099f2b550bb152b00727",
"lines": 151,
"redaction": "비밀값 없음"
}