Files
document-haness/docs/clean-architecture-backend-template/final/evidence/meta/analysis-finding-a04-f002.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
5.2 KiB
JSON

{
"assetKey": "analysis-finding-a04-f002",
"kind": "terminal",
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\n\nhits() { # rc 0=매치 1=무매치 그 밖=오류. 오류면 죽는다.\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; exit 2; }\n [ \"$rc\" -eq 0 ] && printf '%s\\n' \"$out\" || true\n}\nmod() { sed -E 's#^src/(.*)/src/(main|test)/java/.*/([A-Za-z]+\\.java):([0-9]+): *# \\1 · \\2 · \\3:\\4 #'; }\nls_or_die() { # pathspec 이 헛돌면 0 을 제조하지 않고 죽는다\n local n; n=$(git ls-files -- \"$1\" | grep -c . || true)\n [ \"$n\" -gt 0 ] || { echo \"EMPTY PATHSPEC $1\" >&2; exit 2; }\n}\n\nP=src/adapter/outbound/messaging/src/main/java/dev/caskeleton/adapter/outbound/messaging/core/OutboundMessagePublisher.java\nN=src/adapter/outbound/notification/src/main/java/dev/caskeleton/adapter/outbound/notification/core/FailOpenNotificationProvider.java\nT=src/adapter/outbound/messaging/src/test/java/dev/caskeleton/adapter/outbound/messaging/core/OutboundMessagePublisherTest.java\nR=src/adapter/outbound/notification/src/main/java/dev/caskeleton/adapter/outbound/notification/core/RoutingNotifier.java\nfor f in \"$P\" \"$N\" \"$T\" \"$R\"; do test -f \"$f\"; done\nls_or_die 'src/**/*.java'\n\necho \"# 두 소비자가 같은 FailOpenDependencyLogger 를 쓴다\"\nhits 'FailOpenDependencyLogger [a-zA-Z]+;|FailOpenDependencyLogger\\(' 'src/**/*.java' | mod\n\necho\necho \"# 두 파일의 이력\"\nfor f in \"$N\" \"$P\"; do\n printf ' %s\\n' \"$(basename \"$f\")\"\n git log --format=' %h %ad %s' --date=short -- \"$f\"\ndone\n\necho\necho \"# 처음 출하된 메시징 publish (821fe00c) — 지금 알림 쪽과 같은 모양\"\ngit show 821fe00c:\"$P\" | awk 'NR>=26 && NR<=37 {printf \" OutboundMessagePublisher.java@821fe00c:%d %s\\n\", NR, $0}'\n\necho\necho \"# 지금의 메시징 publish (:26~:60)\"\nawk 'NR>=26 && NR<=60 {printf \" OutboundMessagePublisher.java:%d %s\\n\", NR, $0}' \"$P\"\n\necho\necho \"# 지금의 알림 send 와 그 클래스가 스스로 적은 계약\"\nawk 'NR>=7 && NR<=11 {printf \" FailOpenNotificationProvider.java:%d %s\\n\", NR, $0}' \"$N\"\nawk 'NR>=35 && NR<=45 {printf \" FailOpenNotificationProvider.java:%d %s\\n\", NR, $0}' \"$N\"\n\necho\necho \"# 그 send 를 부르는 자리\"\nawk 'NR>=115 && NR<=123 {printf \" RoutingNotifier.java:%d %s\\n\", NR, $0}' \"$R\"\necho \" NotificationPort 를 참조하는 main 파일 :\"\nhits 'NotificationPort' 'src/**/*.java' | grep '/src/main/' | cut -d: -f1 \\\n | xargs -n1 basename | sort -u | sed 's#^# #'\n\necho\necho \"# 메시징 쪽 회귀 시험 전문 (:111~:145)\"\nawk 'NR>=111 && NR<=145 {printf \" OutboundMessagePublisherTest.java:%d %s\\n\", NR, $0}' \"$T\"\n\necho\necho \"# 알림 쪽에서 그 클래스를 실제로 조립하는 시험\"\nhits 'new FailOpenNotificationProvider' 'src/**/*.java' | grep '/src/test/' | mod\necho \" 그 시험들 안에서 던지도록 만든 것 :\"\nfor tf in $(git grep -l 'new FailOpenNotificationProvider' -- 'src/**/*.java' | grep '/src/test/'); do\n echo \" $(basename \"$tf\")\"\n { grep -nE 'throw new|doThrow|thenThrow' \"$tf\" || true; } \\\n | sed -E 's#^([0-9]+): *# :\\1 #'\ndone\necho \" 로거 자체를 던지게 만드는 자리 (메시징 회귀 시험이 쓰는 방식) :\"\nfor m in notification messaging; do\n printf ' src/adapter/outbound/%-13s Proxy.newProxyInstance : %s 개\\n' \"$m\" \\\n \"$({ git grep -n 'Proxy.newProxyInstance' -- \"src/adapter/outbound/$m/**/*.java\" || true; } | grep -c . || true)\"\ndone\necho \" 그 클래스 이름을 파일명에 가진 시험 : $(\n { git ls-files -- 'src/**/*Test*.java' | grep -c 'FailOpenNotificationProvider' || true; }) 개\"\n\necho\necho \"# 프로브 : 같은 로거 프록시를 세 구조에 똑같이 물린다\"\ngrep -nE 'n.equals\\(\"debug\"\\)|n.equals\\(\"warn\"\\)|throw new IllegalStateException|getReturnType|sends.incrementAndGet|reset\\(\\)|catch \\(RuntimeException|new FailOpenNotificationProvider|new dev.caskeleton.*OutboundMessagePublisher|new PublisherAsShippedAtInit|new FailOpenDependencyLogger' \\\n /tmp/probe-notif/DiagnosticProbe.java | sed -E 's#^([0-9]+): *# probe:\\1 #'\nCP=\"$(cat /tmp/cp-notif.txt):$(cat /tmp/cp-msgadapter.txt)\"\nrm -rf /tmp/probe-notif/out && mkdir -p /tmp/probe-notif/out\njavac -nowarn -cp \"$CP\" -d /tmp/probe-notif/out \\\n /tmp/probe-notif/DiagnosticProbe.java /tmp/probe-notif/old/PublisherAsShippedAtInit.java\njava -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 \\\n -cp \"$CP:/tmp/probe-notif/out\" dev.caskeleton.adapter.outbound.notification.core.DiagnosticProbe\n",
"cwd": "/shared/codebase/clean-architecture-backend-template",
"exitCode": 0,
"executedAt": "2026-09-04T05:00:01+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/analysis-finding-a04-f002.txt",
"svg": "evidence/rendered/analysis-finding-a04-f002.svg",
"rawSha256": "6ff2d80e89a816883b5bd5cc85ec3636b2ccbd70d7fc08d5caa5e7c65f58ae63",
"lines": 209,
"redaction": "비밀값 없음"
}