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>
58 lines
2.5 KiB
Markdown
58 lines
2.5 KiB
Markdown
---
|
|
kind: REFERENCE
|
|
slug: the-weight-of-a-flag-is-set-by-the-code-that-reads-it
|
|
title: 능력 플래그의 무게는 그것을 읽는 코드가 정한다
|
|
topic: capability-declaration-vs-proof
|
|
project: clean-architecture-backend-template
|
|
status: 게시 전
|
|
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
|
|
rootTreeNode: reference:the-weight-of-a-flag-is-set-by-the-code-that-reads-it
|
|
verifiedOn: # 이 기록은 이번 회차에 실행 확인을 하지 않았다
|
|
---
|
|
|
|
# 능력 플래그의 무게는 그것을 읽는 코드가 정한다
|
|
|
|
## 목적
|
|
|
|
같은 record 의 성분이라고 무게가 같지 않다. 과대 선언의 심각도를 매기기 전에 그 플래그의 소비자를 먼저 센다.
|
|
|
|
## 규칙
|
|
|
|
1. 성분 접근자 이름으로 저장소를 훑는다
|
|
호출자를 전부 모은다.
|
|
|
|
2. 호출자를 셋으로 나눈다
|
|
아무도 읽지 않음, 분기에만 쓰임, 부재가 예외를 만듦.
|
|
|
|
3. 심각도는 그 분류에서 나온다
|
|
읽히지 않는 플래그의 과대 선언은 문서 결함이고, 예외를 만드는 플래그의 과대 선언은 가드 우회다.
|
|
|
|
4. 배선되지 않은 블록에서는 미래의 소비자를 센다
|
|
지금 무게가 0 이어도 배선되면 무엇이 그것을 읽게 되는지가 답이고, 그 답은 같은 가족의 배선된 리프에 있다.
|
|
|
|
## 적용 조건
|
|
|
|
능력·기능 플래그를 담은 모든 record 와 그것을 읽는 정책 코드.
|
|
|
|
## 예외
|
|
|
|
플래그가 외부에 공개되는 계약의 일부이면 소비자 수와 무관하게 정확해야 한다. 지원 매트릭스에 실리는 값이 그렇다.
|
|
|
|
## 예시
|
|
|
|
이 플랫폼의 능력 열두 성분 중 부재가 예외를 만드는 것은 중복 제거 발행 하나다. 발행자가 그 플래그를 확인하고 없으면 던진다.
|
|
|
|
순서 있는 스트림은 재시도 결정 엔진이 읽어 순서 보존 재시도를 고를지 정한다. 분기에만 쓰이는 쪽이다.
|
|
|
|
나머지 열은 production 코드가 읽지 않는다. 같은 정도로 틀렸더라도 결과가 다르다.
|
|
|
|
## 관계
|
|
|
|
- **능력 선언의 세 출처와 그것이 파생되지 않을 때**
|
|
이 규칙이 나온 구조다.
|
|
- **같은 어댑터의 능력을 전송과 검증기가 다르게 답하고, 런타임이 쓰는 쪽이 문서화된 의미와 어긋난다**
|
|
어느 쪽이 틀렸는지보다 어느 쪽이 읽히는지가 중요했던 사례다.
|
|
- **`runtime_memberships`를 먼저 읽고 심각도를 정한다**
|
|
같은 계열의 판정 순서 규칙이다.
|
|
|