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>
91 lines
4.0 KiB
Markdown
91 lines
4.0 KiB
Markdown
---
|
|
kind: CASE
|
|
slug: messaging-schema-api-f01
|
|
title: 포맷 독립 진화 규칙이 호출되지 않고, 그것이 막으려던 중복이 실제로 생겼다
|
|
topic: runtime-reachability-and-composition
|
|
project: clean-architecture-backend-template
|
|
status: 게시 전
|
|
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
|
|
rootTreeNode: case:messaging-schema-api-f01
|
|
evidenceCapturedOn: 2026-09-01
|
|
assets:
|
|
- key: messaging-schema-api-f01
|
|
file: ../../../final/evidence/rendered/messaging-schema-api-f01.svg
|
|
- key: messaging-schema-api-f01-diagram
|
|
file: ../../../final/assets/diagrams/messaging-schema-api-f01.svg
|
|
evidence:
|
|
- ../../../final/evidence/raw/messaging-schema-api-f01.txt
|
|
source:
|
|
- 원본 분석 절은 analysis/messaging/messaging-schema-api.md#L494 이다.
|
|
module: messaging-schema-api
|
|
priority: P2
|
|
---
|
|
|
|
# 포맷 독립 진화 규칙이 호출되지 않고, 그것이 막으려던 중복이 실제로 생겼다
|
|
|
|
SchemaCompatibilityValidator의 저장소 전체 참조가 자기 선언과 자기 테스트뿐이다. 동시에 AvroCompatibilityGate가 isTransitive를 글자 그대로 복사했고 방향 판정 둘은 허용목록/거부목록으로 형태가 반대다.
|
|
|
|
## 관계
|
|
|
|
- **port 계약은 동시성 요구를 적는다**
|
|
같은 분석 리프에서 끌어낸 규칙이다.
|
|
- **도달성 판정은 단어가 아니라 import로 확인한다**
|
|
같은 분석 리프에서 끌어낸 규칙이다.
|
|
|
|
## 문제
|
|
|
|
SchemaCompatibilityValidator의 저장소 전체 참조가 자기 선언과 자기 테스트뿐이다.
|
|
|
|
동시에 AvroCompatibilityGate가 isTransitive를 글자 그대로 복사했고 방향 판정 둘은 허용목록/거부목록으로 형태가 반대다.
|
|
|
|
## 결론
|
|
|
|
오늘은 7개 모드 전부에서 두 구현의 결과가 같다(NONE_EXPERIMENTAL은 gate의 early return이 가린다).
|
|
|
|
그러나 enum에 값이 하나 추가되면 허용목록은 "검사 안 함", 거부목록은 "양방향 검사"로 반대 방향 기본값을 갖는다.
|
|
|
|
그리고 requireProductionMode — 검사 없는 스키마가 보존 로그를 뒷받침하는 것을 막는 게이트 — 는 호출되는 곳이 없다.
|
|
|
|
## 검증 환경
|
|
|
|
OpenJDK : 21.0.12 java -version 으로 확인
|
|
Gradle : 9.0.0 src/gradle/wrapper/gradle-wrapper.properties 의 distributionUrl 로 확인
|
|
확인 방식 : SchemaCompatibilityValidator 참조 11건 검색과 Avro 게이트의 중복 구현 대조
|
|
소스 수정 : x
|
|
|
|
## 재현 조건
|
|
|
|
원문은 analysis/messaging/messaging-schema-api.md#L494 에 있다.
|
|
|
|
## 본문
|
|
|
|
<!-- body:start -->
|
|
|
|
`SchemaCompatibilityValidator`의 저장소 전체 참조가 자기 선언과 자기 테스트뿐이다.
|
|
|
|
## 규칙이 막지 못한 것
|
|
|
|
:::evidence key="messaging-schema-api-f01-diagram" alt="자기 테스트만 규칙을 부르는 것 안에 놓이고 production 호출자가 바깥에 빗금으로 놓인다" caption="규칙이 막지 못한 것" zoom="false"
|
|
:::
|
|
|
|
동시에 `AvroCompatibilityGate`가 `isTransitive`를 글자 그대로 복사했고 방향 판정 둘은 허용목록/거부목록으로 형태가 반대다.
|
|
|
|
## SchemaCompatibilityValidator 참조 위치
|
|
|
|
:::evidence key="messaging-schema-api-f01" alt="코드베이스에서 SchemaCompatibilityValidator 를 검색한 출력 11줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="SchemaCompatibilityValidator 코드베이스 검색 — 11줄 · exit 0" zoom="true"
|
|
:::
|
|
|
|
## 오늘은 결과가 같다
|
|
|
|
7개 모드 전부에서 두 구현의 결과가 같다(`NONE_EXPERIMENTAL`은 gate의 early return이 가린다). 그러나 enum에 값이 하나 추가되면 허용목록은 "검사 안 함", 거부목록은 "양방향 검사"로 **반대 방향** 기본값을 갖는다.
|
|
|
|
## 게이트 하나도 호출되지 않는다
|
|
|
|
`requireProductionMode` — 검사 없는 스키마가 보존 로그를 뒷받침하는 것을 막는 게이트 — 를 부르는 곳이 없다.
|
|
|
|
## 확인하지 못한 것
|
|
|
|
port 구현의 스레드 안전성 요구를 관측할 대상이 없다. javadoc 에 없고 이 저장소에 production 구현이 없다.
|
|
|
|
<!-- body:end -->
|