Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/delivery-and-settlement-models/concept/concept-messaging-admin-api-c01.md
T
DongHyeonkaandClaude Fable 5.1 b25357c48a docs(clean-architecture-backend-template): fold analysis into final and re-select one topic
- analysis/·source-index·state.json 을 final/document.md 제2부·제3부로 접었다. SSOT 는 하나다
- 파일럿 — commit-ambiguity-as-a-result 를 새 기준으로 재선별. 후보 14 → 글감 5
  (PROMOTE 5 · MERGE_INTO 3 · KEEP_IN_SSOT 4 · 보류 2). 기록 5건을 다시 썼고 그림 1개를
  techviz 로 만들었다
- 재선별이 잡은 것: 제1부 §6.2·§11.1 이 자기 §13.2 와 어긋나 있었다(레인을 안 돌렸다 vs
  돌렸다) — 정정. 이미 답이 나와 있던 Question 을 HEAD 재실행 질문으로 다시 세웠다.
  Concept 이 인용한 코드가 SSOT 에 없어 뺐다
- candidateScope·sourceRepository 기록. 나머지 43개 주제는 재선별 대기(PENDING 905)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 12:39:20 +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:
- 원본 분석 절은 final/document.md#a19-messaging-admin-api#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 -->