Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/runtime-reachability-and-composition/reference/reference-messaging-kafka-share-experimental-f02.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

49 lines
2.4 KiB
Markdown

---
kind: REFERENCE
slug: messaging-kafka-share-experimental-f02
title: 허용 의존 목록은 상한이므로 미사용을 잡지 않는다 — 그것을 잡으려면 별도 검사가 필요하다
topic: runtime-reachability-and-composition
project: clean-architecture-backend-template
status: 게시 전
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
rootTreeNode: reference:messaging-kafka-share-experimental-f02
verifiedOn: # 이 기록은 이번 회차에 실행 확인을 하지 않았다
source:
- analysis/messaging/messaging-kafka-share-experimental.md#L476
---
# 허용 의존 목록은 상한이므로 미사용을 잡지 않는다 — 그것을 잡으려면 별도 검사가 필요하다
## 관계
- **"등록"이 아무것도 등록하지 않고 성공을 반환한다**
이 규칙의 근거는 같은 분석 리프의 판정이 소유한다.
## 목적
verifyCleanArchitectureDependencies 는 allowed_dependencies 를 상한으로만 검사한다. 그래서 쓰지 않는 의존이 남아 있어도 초록불이고, build closure 는 실제 필요보다 넓어진다. 여기서는 messaging-kafka 34파일과 그 전이 의존이 함께 딸려 온다.
## 규칙
1. 선언된 의존과 실제 import 를 각각 센다
build.gradle 이 org.apache.kafka:kafka-clients 를 선언하는데 import org.apache.kafka 가 0건이다. registry 가 messaging-policy 와 messaging-kafka 의존을 허용하는데 두 패키지의 import 도 0건이다.
2. 상한 검사만으로는 이 차이가 드러나지 않는다는 것을 안다
허용 목록을 통과했다는 사실은 "선언이 과하지 않다" 를 뜻하지 않는다.
3. 미사용을 잡으려면 import 를 세는 검사를 따로 둔다
그때까지는 선언 옆에 미완 상태임을 적어 둔다.
## 적용 조건
registry 나 build 파일이 의존을 선언하고, 그 선언이 아키텍처 검사의 입력이 되는 모든 leaf.
## 예외
곧 쓰일 예정이라 미리 선언해 둔 경우는 예외가 될 수 있다. 다만 그 의도가 주석에 없으면 읽는 쪽에서는 "이 leaf 가 Kafka 를 쓴다" 는 인상만 남는다.
## 예시
evidence/raw/290 §D 의 import 전수와 build.gradle 의 선언. 확인 방법은 grep -rn 'import org.apache.kafka\|import dev.caskeleton.messaging.policy\|import dev.caskeleton.messaging.kafka\.' src/messaging/messaging-kafka-share-experimental/src 다.