Files
document-haness/docs/clean-architecture-backend-template/final/evidence/meta/a14-f011-maxarrayelements-converter.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
7.0 KiB
JSON

{
"assetKey": "a14-f011-maxarrayelements-converter",
"kind": "terminal",
"command": "set -e\nset -o pipefail\nD=$(mktemp -d); trap 'rm -rf \"$D\"' EXIT\nC=/shared/codebase/clean-architecture-backend-template\nM=$C/src/adapter/inbound/web\nCACHE=/root/.gradle/caches/modules-2/files-2.1\njava -version 2>&1 | grep version\ncp=\"\"\nwhile IFS= read -r line; do\n coord=${line%%=*}; confs=${line#*=}\n case \",$confs,\" in *\",testRuntimeClasspath,\"*) ;; *) continue ;; esac\n g=${coord%%:*}; rest=${coord#*:}; n=${rest%%:*}; v=${rest##*:}\n jar=$(find \"$CACHE/$g/$n/$v\" -name '*.jar' ! -name '*sources*' ! -name '*javadoc*' 2>/dev/null | head -1) || true\n [ -n \"$jar\" ] && cp=\"$cp:$jar\"\ndone < <(grep -E '^[a-zA-Z0-9._-]+:[^=]+=' \"$M/gradle.lockfile\")\nSIB=$(find \"$C/src\" -path '*/build/libs/*+21234e38cdb9*.jar' ! -name '*-testkit.jar' | sort | tr '\\n' ':')\ncat > \"$D/ConverterMapperProbe.java\" <<'JAVA'\nimport java.util.Map;\nimport org.springframework.boot.autoconfigure.AutoConfigurations;\nimport org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest;\nimport org.springframework.http.converter.HttpMessageConverter;\nimport tools.jackson.databind.ObjectMapper;\nimport tools.jackson.databind.json.JsonMapper;\n\n/** 이 저장소의 엄격 매퍼가 실제로 요청 본문을 읽는 컨버터에 도달하는지 본다. */\npublic final class ConverterMapperProbe {\n\n /** 엄격 프로파일이 세운 파서인지 두 값으로 가른다. */\n private static String shape(ObjectMapper mapper) {\n var c = mapper.tokenStreamFactory().streamReadConstraints();\n return \"maxNestingDepth=\" + c.getMaxNestingDepth()\n + \" maxStringLength=\" + c.getMaxStringLength();\n }\n\n public static void main(String[] args) throws Exception {\n var runner = new org.springframework.boot.test.context.runner.WebApplicationContextRunner()\n .withConfiguration(AutoConfigurations.of(\n Class.forName(\"org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration\"),\n Class.forName(\"org.springframework.boot.http.converter.autoconfigure.HttpMessageConvertersAutoConfiguration\"),\n Class.forName(\"org.springframework.boot.webmvc.autoconfigure.WebMvcAutoConfiguration\"),\n Class.forName(\"dev.caskeleton.adapter.inbound.web.mvc.autoconfigure.WebMvcPlatformAutoConfiguration\")));\n\n var withoutRepo = new org.springframework.boot.test.context.runner.WebApplicationContextRunner()\n .withConfiguration(AutoConfigurations.of(\n Class.forName(\"org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration\"),\n Class.forName(\"org.springframework.boot.http.converter.autoconfigure.HttpMessageConvertersAutoConfiguration\"),\n Class.forName(\"org.springframework.boot.webmvc.autoconfigure.WebMvcAutoConfiguration\")));\n\n runner.run(context -> {\n System.out.println();\n System.out.println(\"[컨텍스트에 있는 JsonMapper 빈]\");\n Map<String, JsonMapper> mappers = context.getBeansOfType(JsonMapper.class);\n for (var entry : mappers.entrySet()) {\n boolean primary = context.getBeanFactory()\n .getBeanDefinition(entry.getKey()).isPrimary();\n System.out.printf(\" %-26s %s%s%n\", entry.getKey(), shape(entry.getValue()),\n primary ? \" (primary)\" : \"\");\n }\n System.out.println();\n System.out.println(\"[본문을 읽는 컨버터가 실제로 든 매퍼]\");\n var adapter = context.getBean(\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.class);\n for (HttpMessageConverter<?> converter : adapter.getMessageConverters()) {\n if (!converter.getClass().getSimpleName().contains(\"Jackson\")) {\n continue;\n }\n // 컨버터가 실제로 들고 있는 매퍼를 필드에서 꺼낸다. 접근자 이름이 판마다 다르다.\n for (Class<?> type = converter.getClass(); type != null; type = type.getSuperclass()) {\n for (var field : type.getDeclaredFields()) {\n if (!ObjectMapper.class.isAssignableFrom(field.getType())) {\n continue;\n }\n field.setAccessible(true);\n Object held = field.get(converter);\n if (held != null) {\n System.out.println(\" \" + converter.getClass().getSimpleName()\n + \" \" + shape((ObjectMapper) held));\n }\n }\n }\n }\n System.out.println();\n System.out.println(\"[엄격 프로파일이 세우는 파서]\");\n var strict = dev.caskeleton.adapter.inbound.web.json.BoundedJsonFactory.create(\n dev.caskeleton.adapter.inbound.web.json.WebJsonProfile.strict());\n var sc = strict.streamReadConstraints();\n System.out.println(\" maxNestingDepth=\" + sc.getMaxNestingDepth()\n + \" maxStringLength=\" + sc.getMaxStringLength());\n });\n\n // 대조군. 이 저장소 자동설정만 빼면 무엇이 오는지 본다.\n withoutRepo.run(context -> {\n System.out.println();\n System.out.println(\"[이 저장소 자동설정을 뺀 같은 컨텍스트]\");\n for (var entry : context.getBeansOfType(JsonMapper.class).entrySet()) {\n System.out.printf(\" %-26s %s%n\", entry.getKey(), shape(entry.getValue()));\n }\n var adapter = context.getBean(\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.class);\n for (HttpMessageConverter<?> converter : adapter.getMessageConverters()) {\n if (!converter.getClass().getSimpleName().equals(\"JacksonJsonHttpMessageConverter\")) {\n continue;\n }\n for (Class<?> type = converter.getClass(); type != null; type = type.getSuperclass()) {\n for (var field : type.getDeclaredFields()) {\n if (!ObjectMapper.class.isAssignableFrom(field.getType())) {\n continue;\n }\n field.setAccessible(true);\n Object held = field.get(converter);\n if (held != null) {\n System.out.println(\" \" + converter.getClass().getSimpleName()\n + \" \" + shape((ObjectMapper) held));\n }\n }\n }\n }\n });\n }\n}\nJAVA\njavac -encoding UTF-8 -cp \"$SIB$cp\" -d \"$D/out\" \"$D/ConverterMapperProbe.java\" 2>&1 | head -20\nprintf '%s\\n' '<configuration><root level=\"OFF\"/></configuration>' > \"$D/out/logback.xml\"\njava -Dstdout.encoding=UTF-8 -cp \"$D/out:$SIB$cp\" ConverterMapperProbe\n",
"cwd": "/shared/codebase/clean-architecture-backend-template/src",
"exitCode": 0,
"executedAt": "2026-09-03T01:52:47+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/a14-f011-maxarrayelements-converter.txt",
"svg": "evidence/rendered/a14-f011-maxarrayelements-converter.svg",
"rawSha256": "8710dcdf5b1ade8227ce51793b96a16c74e69f75f103905ab6c55dcbfe1b4dc7",
"lines": 19,
"redaction": "none — 값은 저장소와 이 프로브가 만든 것이다"
}