Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/delivery-and-settlement-models/concept/concept-messaging-admin-api-c01.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

54 lines
2.6 KiB
Markdown

---
kind: CONCEPT
slug: messaging-admin-api-c01
title: 권한을 불리언이 아니라 타입으로 만든다
topic: delivery-and-settlement-models
project: clean-architecture-backend-template
status: 게시 전
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
rootTreeNode: concept:messaging-admin-api-c01
evidenceCapturedOn: 2026-09-01
assets:
- key: messaging-admin-api-c01
file: ../../../final/evidence/rendered/messaging-admin-api-c01.svg
- key: messaging-admin-api-c01-diagram
file: ../../../final/assets/diagrams/messaging-admin-api-c01.svg
evidence:
- ../../../final/evidence/raw/messaging-admin-api-c01.txt
source:
- 원본 분석 절은 analysis/messaging/messaging-admin-api.md#L57 이다.
module: messaging-admin-api
---
# 권한을 불리언이 아니라 타입으로 만든다
되돌릴 수 없는 작업을 사람의 승인에 묶는 타입 집합이다. 실행 코드는 하나도 없다 — 브로커를 만지는 것도, 메시지를 옮기는 것도 전부 messaging-admin-runtime 과 어댑터가 한다.
## 본문
<!-- body:start -->
**되돌릴 수 없는 작업을 사람의 승인에 묶는 타입 집합**이다. 실행 코드는 하나도 없다 — 브로커를 만지는 것도, 메시지를 옮기는 것도 전부 `messaging-admin-runtime` 과 어댑터가 한다.
## 이 리프가 소유한 어휘
:::evidence key="messaging-admin-api-c01-diagram" alt="계획 타입과 승인 타입과 검증 타입이 messaging-admin-api 안에 놓이고 브로커 접촉과 저장소 스프링이 바깥에 빗금으로 놓인다" caption="이 리프가 소유한 어휘" zoom="false"
:::
이 리프가 정의하는 것은 "무엇이 승인이고, 승인이 무엇을 인가하며, 인가되지 않은 것이 왜 컴파일되지 않는가" 다. 설계의 축은 하나다 — **권한을 불리언이 아니라 타입으로 만든다.**
## ReplayPlan 참조 위치
:::evidence key="messaging-admin-api-c01" alt="코드베이스에서 ReplayPlan 를 검색한 출력 5줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="ReplayPlan 코드베이스 검색 — 5줄 · exit 0" zoom="true"
:::
## 같은 기법이 한 층 더 쌓인다
`ReplayPlan``ApprovedReplayPlan` → 실행. 각 화살표가 타입 경계이고, 각 경계에서 검사가 **생성자 안에** 있어 우회 경로가 없다.
## 이 리프가 모르는 것
브로커를 모른다 — `DestinationTopology` 는 브로커가 보고한 값을 담는 record 일 뿐 조회하지 않는다. 저장소를 모른다 — `AdminOperationJournal` 은 인터페이스다. 스프링도 모른다.
<!-- body:end -->