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>
45 lines
2.1 KiB
Markdown
45 lines
2.1 KiB
Markdown
---
|
|
kind: CONCEPT
|
|
slug: shared-contract-c03
|
|
title: 추정하지 않는 두 경계 — 스위치 해석과 상태 투영
|
|
topic: result-and-failure-algebra
|
|
project: clean-architecture-backend-template
|
|
status: 게시 전
|
|
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
|
|
rootTreeNode: concept:shared-contract-c03
|
|
evidenceCapturedOn: 2026-09-01
|
|
assets:
|
|
- key: shared-contract-c03
|
|
file: ../../../final/evidence/rendered/shared-contract-c03.svg
|
|
evidence:
|
|
- ../../../final/evidence/raw/shared-contract-c03.txt
|
|
source:
|
|
- 원본 분석 절은 analysis/02-shared-contract.md#L108 이다.
|
|
module: shared-contract
|
|
---
|
|
|
|
# 추정하지 않는 두 경계 — 스위치 해석과 상태 투영
|
|
|
|
`MasterSwitchParser`는 operator configuration을 permissive coercion하지 않는 fail-closed contract다. `RedisHealthSnapshotProvider`는 공유 경계로 내보낼 필드를 좁히고, 조회하지 않은 값을 관측인 것처럼 적지 않는다.
|
|
|
|
## 본문
|
|
|
|
<!-- body:start -->
|
|
|
|
`MasterSwitchParser`는 unset=false, true/false case-insensitive만 허용하며 `yes`, `1`, `on`, whitespace-padded value를 invalid로 처리한다. canonical+legacy가 동시에 있으면 값이 같아도 ambiguous로 실패하고 legacy-only는 replacement property를 반환한다. 이는 operator configuration을 permissive coercion하지 않는 fail-closed contract다.
|
|
|
|
## MasterSwitchParser 참조 위치
|
|
|
|
:::evidence key="shared-contract-c03" alt="코드베이스에서 MasterSwitchParser 를 검색한 출력 11줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="MasterSwitchParser 코드베이스 검색 — 11줄 · exit 0" zoom="true"
|
|
:::
|
|
|
|
## 상태 스냅샷이 공유 경계로 내보내는 필드
|
|
|
|
`RedisHealthSnapshotProvider`는 Redis client/connection/credential을 shared boundary로 새지 않게 role/capability/state/reason/semantic freshness만 projection한다.
|
|
|
|
## eviction policy가 관측이 아니라 기대인 이유
|
|
|
|
eviction policy는 runtime CONFIG 조회 증명이 아니라 configured expectation임을 enum 이름과 javadoc으로 명시한다.
|
|
|
|
<!-- body:end -->
|