review-followup Wave 3 라운드 2(P18): outbox canonical 통일, composition 모듈, legacy Kafka seam 삭제
- 결정 7: `LegacyOutboxAppendPort`·legacy 저장 모델·relay·Kafka R0 seam 삭제, 템플릿 JSON encoder(`JsonIntegrationEventEncoder`),
durable operation·sample 이벤트가 `OutboxAppendPort` + encoder로, persistence-jpa V19(pre-canonical 미발행 row 거부)
- 결정 3: outbox relay·멱등성 executor 조립을 `composition:outbox-relay`·`composition:idempotency`로,
sample이 복사한 bootstrap 인프라를 `composition:service-runtime`으로(sample `SampleIdempotencyConfig` 복사본 삭제)
- persistence-jpa outbox·멱등성 패키지 feature 기준 이동, messaging outbox·inbox leaf를 reliability / reliability-jdbc-postgresql로
- messaging outbox header를 jsonb로(P18-new-1 — `\`로 끝나는 값이 다음 header를 삼키던 결함)
- 통합(충돌 22건): P25 A-10c(전략 선택 설정 삭제)를 service-runtime `DomainContextConfig`에 적용, P25 startup 예외 통합을
composition 설정 테스트에, P25 `CommandUseCase.handle` 이름을 PG 통합 테스트에, P15 `EventJson`은 호출자 0이 되어 삭제
- root CLAUDE.md의 legacy seam 문장 수정(P18-new-2)
검증: ./gradlew check architectureCheck verifyDependencyLocks verifyPublicPathSnapshot :app-bootstrap:verifyEnvKeys
configContractCheck :app-bootstrap:integrationTest :sample-portfolio:integrationTest :sample-portfolio:systemTest
persistence-jpa jpaPlatformContractTest·postgresql{Idempotency,OutboxAppendTransactional,OutboxConcurrentRelay,OutboxRowLifecycle}IntegrationTest
:messaging:messaging-reliability-jdbc-postgresql:integrationTest --continue 통과(700 task)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
25de288ab4
commit
423a29c46f
@@ -459,7 +459,7 @@ virtual-thread 와 `StructuredTaskScope.fork()` 경계 너머로 전파하는
|
||||
virtual-thread 안전, `InheritableThreadLocal` 미사용).
|
||||
- **`DomainContextKey`** — 도메인이 공급하는 per-value 확장점(키), `RateLimitKeyResolver` 와 유사.
|
||||
|
||||
Spring 배선(`DomainContextConfig`)은 `app-bootstrap` 에 있고 `ThreadLocalDomainContextPropagator` 를
|
||||
Spring 배선(`DomainContextConfig`)은 `composition:service-runtime` 에 있고 `ThreadLocalDomainContextPropagator` 를
|
||||
직접 만든다. 구현이 하나뿐이라 strategy enum·factory·선택 설정은 두지 않는다.
|
||||
|
||||
### 무엇을 일부러 ship 하지 않았나 (그리고 왜)
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* <p>The package ships one implementation ({@link
|
||||
* dev.caskeleton.shared.concurrency.ThreadLocalDomainContextPropagator}) behind the {@link
|
||||
* dev.caskeleton.shared.concurrency.DomainContextPropagator} port; {@code app-bootstrap}'s {@code
|
||||
* DomainContextConfig} constructs it directly.
|
||||
* dev.caskeleton.shared.concurrency.DomainContextPropagator} port; {@code
|
||||
* composition:service-runtime}'s {@code DomainContextConfig} constructs it directly.
|
||||
*
|
||||
* <p>See the module README for the full design: what stays unshipped (domain keys, the {@code
|
||||
* ScopedValue} strategy) and why, and the boundary → mechanism delegation map.
|
||||
|
||||
Reference in New Issue
Block a user