Files
document-haness/docs/clean-architecture-backend-template/final/evidence/raw/a-flag-that-validates-an-unwired-subsystem.txt
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

71 lines
3.4 KiB
Plaintext

# 트랜잭션 패키지의 타입 수: 20
MongoTransactionExecutor.java
MongoTransactionProfile.java
MongoTransactionScope.java
MongoTransactionSession.java
MongoTransactionSessionFactory.java
ReactiveMongoTransactionExecutor.java
ReactiveMongoTransactionSession.java
ReactiveMongoTransactionSessionFactory.java
SpringMongoTransactionExecutor.java
SpringMongoTransactionSessionFactory.java
SpringReactiveMongoTransactionExecutor.java
SpringReactiveMongoTransactionSessionFactory.java
MongoCommitReconciler.java
MongoRetryBudget.java
MongoRetryDecision.java
MongoTransactionRetryCoordinator.java
MongoCausalSessionContext.java
MongoCausalSessionExecutor.java
ReactiveMongoCausalSessionExecutor.java
SpringMongoCausalSessionExecutor.java
# 자동설정이 그 타입들을 참조하는 매치 (Transaction / CausalSession): 0 / 0
# transaction 패키지 밖 main 참조: 0
# 플래그는 선언되고 검증기까지 가서 판정에 쓰인다
29: boolean transactions,
362: properties.transactions(),
97: if (transactionsEnabled && !capabilities.isStable(MongoCapability.TRANSACTION)) {
98- throw MongoOperationRejectedException.of(
99- "startup.capability",
100- "transactions are enabled but unavailable here: "
# 다만 그 검사는 프로브가 있어야 돌고, 이 저장소는 프로브를 출하하지 않는다
@Bean
@ConditionalOnBean(MongoTopologyProbe.class)
public InitializingBean mongoPlatformStartupCheck(
* as a state that must start. This repository ships no probe: it is built from the live
* data-plane client by the composition root that owns the connection, which is a fork's decision.
# MongoTopologyProbe 를 빈으로 만드는 main 코드: 0
# 같은 생성자가 입력마다 다르게 처리한다
profiles = profiles == null ? Map.of() : Map.copyOf(profiles);
changeStreams = false;
if (requiredSecondaries < 0) {
throw MongoOperationRejectedException.of(
"config.secondaries",
"the required secondary count must not be negative; " + requiredSecondaries + " is");
# 반대쪽 실행체는 플래그와 무관하게 조립된다
@ConditionalOnClass(org.springframework.data.mongodb.core.ReactiveMongoTemplate.class)
@ConditionalOnBean(org.springframework.data.mongodb.core.ReactiveMongoTemplate.class)
public static class ReactiveExecution {
@Bean
@ConditionalOnMissingBean
public dev.caskeleton.adapter.outbound.mongo.changestream.consumer.MongoChangeStreamSource
# 이 경로에서 두 플래그를 보는 조건: 0
# 그 주석이 없다고 적은 드라이버 호출
46: .changeStream(org.bson.Document.class)
47: .watchCollection(collections.require(subscription.collectionProfile()))
64: options.startAfter(from.token());
66: options.resumeAfter(from.token());
# 그 위 소비자가 요구하는 다섯 포트
dev.caskeleton.adapter.outbound.mongo.changestream.MongoChangeStreamSubscription.class,
dev.caskeleton.adapter.outbound.mongo.changestream.MongoResumeCheckpointStore.class,
dev.caskeleton.adapter.outbound.mongo.changestream.MongoResumeTokenCodec.class,
dev.caskeleton.adapter.outbound.mongo.changestream.projector.MongoChangeProjector.class,
dev.caskeleton.adapter.outbound.mongo.changestream.projector.MongoChangeDeduplicationStore
.class