Files
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
3.5 KiB
JSON

{
"assetKey": "analysis-finding-a06-f019",
"kind": "terminal",
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\n. /tmp/lib.sh\nR=src/adapter/outbound/persistence-mongo/src/main/java/dev/caskeleton/adapter/outbound/mongo/changestream\nP=$R/recovery/MongoChangeStreamRecoveryPolicy.java\nI=$R/recovery/MongoInvalidateRecovery.java\nX=$R/recovery/MongoChangeHistoryLostException.java\nS=$R/MongoChangeStreamState.java\nC=$(git ls-files -- '**/ReactiveMongoChangeStreamConsumer.java')\nL=$(git ls-files -- '**/ChangeStreamConsumerLifecycleTest.java')\nfor f in \"$P\" \"$I\" \"$X\" \"$S\" \"$C\" \"$L\"; do test -f \"$f\"; done\n\necho \"# 복구 패키지가 선언한 것\"\ngit ls-files -- \"$R/recovery/*.java\" | sed 's#.*/# #'\nat \"$P\" 7 66 MongoChangeStreamRecoveryPolicy.java\n\necho\necho \"# 각 진입점의 프로덕션 호출 계수\"\nfor n in 'onFailure' 'onHistoryLost' 'onResumableFailure' 'onInvalidate' 'requireCorrectResumeOption' 'checkpointFor' 'autoResumable'; do\n printf ' %-28s main %s · test %s\\n' \"$n\" \\\n \"$(lines \"\\\\.$n\\\\(\" 'src/**/src/main/**/*.java')\" \\\n \"$(lines \"\\\\.$n\\\\(\" 'src/**/src/*[Tt]est*/**/*.java')\"\ndone\nprintf ' %-28s main %s · test %s\\n' 'new MongoChangeHistoryLost..' \\\n \"$(lines 'new MongoChangeHistoryLostException' 'src/**/src/main/**/*.java')\" \\\n \"$(lines 'new MongoChangeHistoryLostException' 'src/**/src/*[Tt]est*/**/*.java')\"\nprintf ' [대조] onInvalidate 라는 이름이 나오는 줄 전부 : %s 개\\n' \"$(lines 'onInvalidate' 'src/**/*.java')\"\nprintf ' 그 예외 이름이 자바 소스에 나오는 줄 : %s 개\\n' \"$(lines 'MongoChangeHistoryLostException' 'src/**/*.java')\"\nhits 'MongoChangeHistoryLostException' 'src/**/*.java' \\\n | sed -E 's#^src/(.*)/src/([a-zA-Z]+)/java/.*/([A-Za-z0-9_$]+\\.java):([0-9]+): *# \\2 · \\3:\\4 #'\necho \" 같은 이름을 문서가 쓰는 자리 :\"\n{ git grep -n 'MongoChangeHistoryLostException' -- 'docs/mongodb' 'docs/architecture' || true; } \\\n | sed -E 's#^(docs/[^:]+):([0-9]+): *# \\1:\\2 #'\n\necho\necho \"# 쓰이지 않는 예외가 자기 존재 이유로 적은 것\"\nat \"$X\" 8 29 MongoChangeHistoryLostException.java\n\necho\necho \"# 실제로 history lost 를 다루는 자리\"\nat \"$P\" 50 61 MongoChangeStreamRecoveryPolicy.java\necho \" 소비자가 그 결정을 받는 자리 :\"\nhits 'recovery\\.on[A-Za-z]+\\(|invalidates\\.' \"$C\" \\\n | sed -E 's#^.*/([A-Za-z0-9_]+\\.java):([0-9]+): *# \\1:\\2 #'\n\necho \" history lost 일 때 호출자가 실제로 받는 것 :\"\nat \"$L\" 108 124 ChangeStreamConsumerLifecycleTest.java\n\necho\necho \"# 자기 자신과 견주는 검사\"\nat \"$I\" 24 45 MongoInvalidateRecovery.java\necho \" 그 메서드를 부르는 자리 전부 :\"\nhits 'requireCorrectResumeOption' 'src/**/*.java' \\\n | sed -E 's#^src/(.*)/src/([a-zA-Z]+)/java/.*/([A-Za-z0-9_$]+\\.java):([0-9]+): *# \\2 · \\3:\\4 #'\n\necho\necho \"# 상태 열거형이 그 구분을 어떻게 적는가\"\nat \"$S\" 1 35 MongoChangeStreamState.java\n",
"cwd": "/shared/codebase/clean-architecture-backend-template",
"exitCode": 0,
"executedAt": "2026-09-04T08:26:11+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/analysis-finding-a06-f019.txt",
"svg": "evidence/rendered/analysis-finding-a06-f019.svg",
"rawSha256": "b6ded5c905054fd4464b6afa5b06dfc5b945a504bbff6d77a71e4e60949171f9",
"lines": 208,
"redaction": "없음"
}