Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/composition-and-lifecycle-models/concept/concept-adapter-inbound-web-c02.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

2.8 KiB

kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, assets, evidence, source, module
kind slug title topic project status sourceRevision rootTreeNode evidenceCapturedOn assets evidence source module
CONCEPT adapter-inbound-web-c02 실패를 보여 준 적 없는 경계 테스트는 잘못된 디렉터리를 스캔한 것과 구별되지 않는다 composition-and-lifecycle-models clean-architecture-backend-template 게시 전 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 concept:adapter-inbound-web-c02 2026-09-01
key file
adapter-inbound-web-c02 ../../../final/evidence/rendered/adapter-inbound-web-c02.svg
../../../final/evidence/raw/adapter-inbound-web-c02.txt
원본 분석 절은 analysis/14-adapter-inbound-web.md#L140 이다.
adapter-inbound-web

실패를 보여 준 적 없는 경계 테스트는 잘못된 디렉터리를 스캔한 것과 구별되지 않는다

WebModuleBoundaryTest가 다섯 개의 긍정 규칙마다 부정 픽스처를 붙이고, 스캔이 아무것도 못 찾으면 통과가 아니라 실패하도록 만들었다.

본문

WebModuleBoundaryTest가 다섯 개의 긍정 규칙과 네 개의 부정 픽스처를 갖는다.

규칙 부정 픽스처
모든 프로덕션 패키지가 선언된 모듈 정체성을 가진다 ROOT.undeclared 패키지를 만들어 거부되는지 확인
선언된 모든 모듈이 트리에 존재한다
모든 교차 모듈 import가 선언된 edge다 conditional → ratelimit 위반을 만들어 확인
CORE 모듈은 프레임워크 자유다 cursor@Component를 import하게 만들어 확인
스캔이 아무것도 못 찾으면 통과가 아니라 실패다 빈 디렉터리로 IllegalStateException 확인

부정 픽스처가 있는 이유

"A boundary test that has never been shown to fail is indistinguishable from one that scans the wrong directory." 그리고 프로덕션 스캔에 fileCount() > 100 하한과 packages()에 특정 패키지 두 개가 있어야 한다는 확인이 함께 붙는다.

WebModuleBoundaryTest 참조 위치

:::evidence key="adapter-inbound-web-c02" alt="코드베이스에서 WebModuleBoundaryTest 를 검색한 출력 2줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="WebModuleBoundaryTest 코드베이스 검색 — 2줄 · exit 0" zoom="true" :::

탐지 정규식에 Jackson 두 버전이 함께 있는 이유

"this repository runs on Spring 7, whose message converters take Jackson 3 — so a CORE module could have imported a mapper without this detector noticing, which is a hole in exactly the check that is supposed to have none."

이것은 이 저장소에서 확인한 경계 강제 중 가장 강하다. notification의 EndpointGuardCallSiteTest(호출처 목록이 가드 javadoc과 달랐던)와 달리, 여기서는 목록 자체가 스캔으로 생성된다.