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

{
"assetKey": "analysis-finding-a06-f004",
"kind": "terminal",
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\n. /tmp/lib.sh\nM=src/adapter/outbound/persistence-mongo/src/main/java/dev/caskeleton/adapter/outbound/mongo\nC=$M/api/error/MongoFailureCategory.java\nX=$M/api/error/MongoDataSchemaUnsupportedException.java\nP=$M/api/schema/MongoSchemaVersionPolicy.java\nF=$M/api/error/MongoFailureContext.java\nT=$M/failure/DefaultMongoFailureTranslator.java\nK=$M/failure/DefaultMongoFailureClassifier.java\nL=$M/api/error/MongoDocumentTooLargeException.java\nS=src/adapter/outbound/persistence-mongo/src/test/java/dev/caskeleton/adapter/outbound/mongo/api/schema/MongoSchemaVersionPolicyTest.java\nfor f in \"$C\" \"$X\" \"$P\" \"$F\" \"$T\" \"$K\" \"$L\" \"$S\"; do test -f \"$f\"; done\n\necho \"# 이 실패를 위한 어휘\"\nat \"$C\" 3 10 MongoFailureCategory.java\nat \"$C\" 63 72 MongoFailureCategory.java\necho\nat \"$X\" 5 54 MongoDataSchemaUnsupportedException.java\n\necho\necho \"# 프로덕션 생성 지점 전수\"\nhits 'new MongoDataSchemaUnsupportedException' 'src/**/src/main/**/*.java' \\\n | sed -E 's#^.*/([A-Za-z0-9_]+\\.java):([0-9]+): *# \\1:\\2 #'\n\necho\necho \"# 버전을 아는 쪽\"\nat \"$P\" 82 87 MongoSchemaVersionPolicy.java\necho \" 그 context 가 무엇을 담는가 :\"\nat \"$F\" 135 149 MongoFailureContext.java\n\necho\necho \"# 전용 category 를 붙이는 쪽\"\nat \"$T\" 88 118 DefaultMongoFailureTranslator.java\n\necho\necho \"# 그 case 에 도달할 수 있는가\"\nprintf ' SCHEMA_VERSION_UNSUPPORTED 가 저장소 전체에 나오는 줄 : %s 개\\n' \\\n \"$({ git grep -n 'SCHEMA_VERSION_UNSUPPORTED' -- . || true; } | grep -c . || true)\"\n{ git grep -n 'SCHEMA_VERSION_UNSUPPORTED' -- . || true; } \\\n | sed -E 's#^.*/([A-Za-z0-9_]+\\.java):([0-9]+): *# \\1:\\2 #'\nprintf ' [대조] OPERATION_REJECTED 는 : %s 개\\n' \\\n \"$({ git grep -n 'OPERATION_REJECTED' -- . || true; } | grep -c . || true)\"\necho \" 분류기가 category 를 정하는 자리 전부 :\"\nat \"$K\" 24 52 DefaultMongoFailureClassifier.java\necho\nat \"$K\" 86 120 DefaultMongoFailureClassifier.java\necho\nat \"$K\" 150 157 DefaultMongoFailureClassifier.java\nprintf ' [대조] 같은 정규식을 MongoFailureContextTest 에 걸면 : %s 개\\n' \\\n \"$({ grep -cE 'category\\(\\)|documentVersion\\(\\)|minimumSupported\\(\\)|currentVersion\\(\\)' \\\n src/adapter/outbound/persistence-mongo/src/test/java/dev/caskeleton/adapter/outbound/mongo/api/error/MongoFailureContextTest.java || true; })\"\n\necho\necho \"# 이 모듈에서 살아 있는 다른 스키마 실패 경로\"\nat \"$F\" 151 172 MongoFailureContext.java\necho \" 그 팩터리를 부르는 자리 :\"\nhits 'schemaMismatch\\(' 'src/**/src/main/**/*.java' \\\n | sed -E 's#^.*/([A-Za-z0-9_]+\\.java):([0-9]+): *# \\1:\\2 #' \n\necho\necho \"# 두 생성 지점이 조립되는가\"\nprintf ' new MongoSchemaVersionPolicy 를 부르는 main 줄 : %s 개\\n' \\\n \"$(lines 'new MongoSchemaVersionPolicy' 'src/**/src/main/**/*.java')\"\necho \" 그 타입이 main 에 나오는 자리 전부 :\"\nhits 'MongoSchemaVersionPolicy' 'src/**/src/main/**/*.java' \\\n | sed -E 's#^.*/([A-Za-z0-9_]+\\.java):([0-9]+): *# \\1:\\2 #'\nprintf ' [대조] new MongoSchemaVersionPolicy 를 부르는 시험 줄 : %s 개\\n' \\\n \"$(lines 'new MongoSchemaVersionPolicy' 'src/**/src/test/**/*.java')\"\nprintf ' DefaultMongoFailureTranslator 를 빈으로 만드는 main 줄 : %s 개\\n' \\\n \"$(lines 'new DefaultMongoFailureTranslator' 'src/**/src/main/**/*.java')\"\nhits 'new DefaultMongoFailureTranslator' 'src/**/src/main/**/*.java' \\\n | sed -E 's#^.*/([A-Za-z0-9_]+\\.java):([0-9]+): *# \\1:\\2 #'\n\necho\necho \"# 같은 모양이 하나 더\"\nat \"$L\" 26 36 MongoDocumentTooLargeException.java\n\necho\necho \"# 그 정책을 검사하는 시험이 무엇을 단언하는가\"\n{ grep -nE ' void [a-zA-Z]+\\(|assertThatThrownBy|isInstanceOf|assertThat\\(' \"$S\" || true; } \\\n | sed -E 's#^([0-9]+): *# MongoSchemaVersionPolicyTest.java:\\1 #'\nprintf ' 그 시험이 category 나 세 버전 값을 단언하는 줄 : %s 개\\n' \\\n \"$({ grep -cE 'category\\(\\)|documentVersion\\(\\)|minimumSupported\\(\\)|currentVersion\\(\\)' \"$S\" || true; })\"\n",
"cwd": "/shared/codebase/clean-architecture-backend-template",
"exitCode": 0,
"executedAt": "2026-09-04T07:45:16+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/analysis-finding-a06-f004.txt",
"svg": "evidence/rendered/analysis-finding-a06-f004.svg",
"rawSha256": "589cf58fd9d1de584d9b9e019f6539dad0d826108bd5d67b99dc0562822dd6f3",
"lines": 288,
"redaction": "없음"
}