Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/web-inbound-and-http-surface/case/case-analysis-finding-a14-f008.md
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

4.5 KiB

kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, body, assets, evidence, source
kind slug title topic project status sourceRevision rootTreeNode evidenceCapturedOn body assets evidence source
CASE analysis-finding-a14-f008 멱등 실행 계층과 durable-operation 표면이 픽스처에서만 조립된다 web-inbound-and-http-surface clean-architecture-backend-template 게시 전 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 case:analysis-finding-a14-f008 2026-09-01 case-analysis-finding-a14-f008.body.md
key file
analysis-finding-a14-f008 ../../../final/evidence/rendered/analysis-finding-a14-f008.svg
../../../final/evidence/raw/analysis-finding-a14-f008.txt
원본 분석 절은 analysis/14-adapter-inbound-web.md#L793 이다.

멱등 실행 계층과 durable-operation 표면이 픽스처에서만 조립된다

이 하위 범위에서 프로덕션 컨텍스트에 들어가는 것은 둘뿐이다. 나머지 서른여덟 파일은 테스트와 테스트킷에서만 생성된다. 멱등 키를 붙인 재시도가 두 번 실행된다.

관계

  • 용량 보호 계층 전체가 자기 테스트 픽스처 안에서만 실행된다 같은 형태의 반복이다.
  • 플랫폼 요청 컨텍스트가 서블릿에는 생산자가 없고 리액티브에는 익명 액터로 고정되어 있다 같은 형태의 세 번째다.
  • 헤더를 받아들이는 것처럼 보이는 API가 그것을 지키지 않는다 이 사례가 그 규칙의 형태다.

문제

이 하위 범위는 멱등 실행 계층과 내구 연산 표면을 담는다.

무엇이 프로덕션 컨텍스트에 들어가는지 확인했다.

결론

둘뿐이다.

두 요청 필터가 만드는 실행 증거 추적기와 빈 연산 목록이다.

나머지 서른여덟 파일은 테스트와 테스트킷에서만 생성된다.

게이트와 두 호출기와 응답 기록기와 지문 공장과 헤더 정책과 명령 부호기와 승인 판정과 응답 계획과 코덱, 그리고 비동기 연산 아홉 종 전부다.

실패 시나리오는 이렇다.

클라이언트가 멱등 키를 붙여 결제 생성을 보낸다.

연결이 끊겨 같은 키로 재시도한다.

멱등 게이트가 필터 사슬에도 인터셉터에도 컨트롤러 조언에도 없으므로 헤더는 읽히지 않는다.

두 번째 요청은 첫 번째와 무관하게 그대로 실행된다. 결제가 두 번 생성된다.

멱등 키를 받아들이는 것처럼 보이는 API 가 그것을 지키지 않으며, 헤더가 거부되지도 않으므로 클라이언트는 지켜졌다고 믿는다.

같은 형태의 반복이다.

요청 컨텍스트 생산자 부재와 용량 계층 미등록과 이것이다. 세 하위 범위에서 미조립된 주 파일이 아흔 개다.

왜 드러나지 않는가도 같다.

멱등 게이트는 테스트 다섯 곳과 테스트킷 두 곳에서 생성되고, 테스트킷의 픽스처 애플리케이션이 그것을 손수 배선해 계약 레인에서 돌린다.

레인은 게이트가 올바른가를 증명하고 플랫폼이 게이트를 설치하는가는 묻지 않는다.

판정은 P1 이다.

검증 환경

Spring Boot : 4.0.8 확인 방식 : 타입별 생성 지점 확인 소스 수정 : x

재현 조건

원문은 final/evidence/raw/176 계열에 있다.

  1. 하위 범위의 주 파일 목록을 만든다.
  2. 각 타입이 프로덕션 컨텍스트에 들어가는지 확인한다.
  3. 멱등 게이트를 등록하는 지점을 검색한다.
  4. 그 게이트를 생성하는 테스트와 테스트킷 지점을 센다.
  5. 픽스처 애플리케이션이 무엇을 손수 배선하는지 확인한다.

본문

이 sub-scope에서 프로덕션 컨텍스트에 들어가는 것은 WebExecutionEvidenceTracker(두 요청 필터가 만든다)와 빈 InMemoryWebOperationCatalog 둘뿐이다(§19.1·§19.2).

WebExecutionEvidenceTracker 참조 위치

:::evidence key="analysis-finding-a14-f008" alt="코드베이스에서 WebExecutionEvidenceTracker 를 검색한 출력 7줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="WebExecutionEvidenceTracker 코드베이스 검색 — 7줄 · exit 0" zoom="true" :::

나머지 38개는 테스트와 testkit에서만 생성된다

게이트, 두 invoker, 응답 writer, 지문 공장, 헤더 정책, 명령 인코더, 승인 판정, 응답 계획, 코덱, 그리고 operationasync 9종 전부다.

확인하지 못한 것

같은 멱등 키로 두 번 보내 두 번 실행되는 것을 재현하지 않았다. 등록 부재상 그 결과가 나온다.