Files
document-haness/docs/clean-architecture-backend-template/final/evidence/meta/a20-f008-grpcserializedstreamwriter-drop-oldest.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
3.0 KiB
JSON

{
"assetKey": "a20-f008-grpcserializedstreamwriter-drop-oldest",
"kind": "terminal",
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\nW=src/grpc/grpc-policy/src/main/java/dev/caskeleton/grpc/streaming/GrpcSerializedStreamWriter.java\n\necho \"# 넘침 분기 전체\"\nawk 'NR>=70 && NR<=97 {printf \" GrpcSerializedStreamWriter.java:%d %s\\n\", NR, $0}' $W\necho \" 크기를 어디서 얻는가 :\"\ngrep -n 'payloadSizer' $W | sed -E 's#^([0-9]+): *# GrpcSerializedStreamWriter.java:\\1 #'\n\necho\necho \"# 봉투가 담는 것\"\nE=src/grpc/grpc-policy/src/main/java/dev/caskeleton/grpc/streaming/GrpcStreamEnvelope.java\nawk 'NR>=16 && NR<=25 {printf \" GrpcStreamEnvelope.java:%d %s\\n\", NR, $0}' $E\n\necho\necho \"# 누적 바이트가 무엇에 쓰이는가 — decide 의 분기 전부\"\nF=src/grpc/grpc-policy/src/main/java/dev/caskeleton/grpc/streaming/GrpcFlowControlPolicy.java\nawk 'NR>=56 && NR<=87 {printf \" GrpcFlowControlPolicy.java:%d %s\\n\", NR, $0}' $F\necho \" 바이트 경계를 두는 이유 :\"\nawk 'NR>=6 && NR<=8 {printf \" GrpcFlowControlPolicy.java:%d %s\\n\", NR, $0}' $F\n\necho\necho \"# 이 타입을 참조하는 자리 — 경로 제한 없이 저장소 전체\"\necho \" \\$ git grep -n GrpcSerializedStreamWriter (pathspec 없음)\"\ngit grep -n 'GrpcSerializedStreamWriter' \\\n | sed -E 's#^src/[^:]*/src/(main|test)/java/dev/caskeleton/[^:]*/([^:/]+):([0-9]+):# \\1 · \\2:\\3 #' \\\n | cut -c1-120\nm=$(git grep -l 'GrpcSerializedStreamWriter' -- 'src/**/*.java' | grep '/main/' | grep -vc '/GrpcSerializedStreamWriter.java' || true)\necho \" 자기 파일 밖 main 참조 : ${m:-0} 개 파일\"\n\necho\necho \"# 대응 시험이 크기 공급자에 주는 값\"\nT=$(git grep -l 'class GrpcSerializedStreamWriterTest' -- 'src/**/*.java')\nawk 'NR>=22 && NR<=26 {printf \" GrpcSerializedStreamWriterTest.java:%d %s\\n\", NR, $0}' $T\ngrep -nE 'writer[(]' -A 1 $T | grep -E '[0-9]+L' | cut -c1-125 \\\n | sed -E 's#^([0-9]+)[:-] *# GrpcSerializedStreamWriterTest.java:\\1 #'\necho \" DROP_OLDEST 를 쓰는 시험이 단언하는 것 :\"\nawk 'NR>=101 && NR<=112 {printf \" GrpcSerializedStreamWriterTest.java:%d %s\\n\", NR, $0}' $T\n\necho\necho \"# 프로브 — 두 방향과 TERMINATE 가능성\"\ncd /tmp/probe5\njavac -nowarn -encoding UTF-8 -cp \"$(cat /tmp/cp-grpc-policy.txt)\" -d . DropOldestProbe.java\njava -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 \\\n -cp \".:$(cat /tmp/cp-grpc-policy.txt)\" DropOldestProbe\n",
"cwd": "/shared/codebase/clean-architecture-backend-template",
"exitCode": 0,
"executedAt": "2026-09-04T02:40:46+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/a20-f008-grpcserializedstreamwriter-drop-oldest.txt",
"svg": "evidence/rendered/a20-f008-grpcserializedstreamwriter-drop-oldest.svg",
"rawSha256": "3b3f91a14b58f0dc2271b958509bfd8e1e3cbfed5211df445ae75827d69579b4",
"lines": 174,
"redaction": "비밀값 없음"
}