review-followup Wave 3 라운드 3(P22): Redis runtime·SDK 분리, 좁은 semantic 포트, startup rule, lease fencing 계약
- pub/sub 표면 삭제(G-6b·G-4i — 소비자 0, capability 규칙 3): SDK pub/sub·runtime gateway·PUBSUB lane·env 키 2개 - runtime을 `…cache.redis.runtime`으로(split package 해소), runtime은 소비자가 쓰는 8개 명령(`SemanticRedisCommands`)만, 118개 메서드 gateway는 redis-sdk가 확장. SDK의 blocking·transaction·admin lane은 코드로 조립(env 키 4개 삭제) - EVALSHA+NOSCRIPT 재로드 헬퍼 하나(메시지에만 NOSCRIPT가 온 경우도 재로드 — `LeaseScriptsTest` FAIL→PASS) - startup rule 목록 + runner 하나(환경 검사 8개, exit code·문구 유지), Redis secret 요구는 모듈이 기여, ratelimit 정책을 cache-redis 밖으로, lease fencing 계약 테스트(fake·어댑터·실제 Redis) - 통합: redis-sdk 테스트 2개가 옛 split package 경로를 보던 것 수정(ORCH-new-4) 검증: ./gradlew check architectureCheck verifyDependencyLocks :app-bootstrap:verifyEnvKeys configContractCheck :app-bootstrap:integrationTest :sample-portfolio:integrationTest :sample-portfolio:systemTest --continue 통과(682 task), Redis 7.4 standalone topology lane: runtime 7 · sdk 14 · cache-redis 19, 실패·skip 0 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
486d85a603
commit
4f4bd1fd34
@@ -487,3 +487,13 @@ web 경로의 `W/`는 `src/adapter/inbound/web/src/main/java/dev/caskeleton/adap
|
||||
| untyped `DefaultDeliveryProcessor(Function<MessageEnvelope<EncodedMessage>, HandleResult>, …)` 생성자 | `src/messaging/messaging-runtime-core/src/main/java/dev/caskeleton/messaging/runtime/DefaultDeliveryProcessor.java` | `423a29c4` | typed `MessageHandler` 목록을 받는 형태로 교체(S7-#2) |
|
||||
| `CapabilityTier` (→ `ApiTier`로 개명), `CompatibilityMatrix.Tier` (→ `SupportGrade`) | `src/messaging/messaging-policy/src/main/java/dev/caskeleton/messaging/policy/CapabilityTier.java`, `src/messaging/messaging-testkit/src/main/java/dev/caskeleton/messaging/testkit/CompatibilityMatrix.java` | `423a29c4` | 등급 용어 정리(S7-#14) |
|
||||
| `api 'io.projectreactor:reactor-core'`, `testImplementation 'io.projectreactor:reactor-test'` | `src/messaging/messaging-spring-boot-starter/build.gradle` | `423a29c4` | reactive facade 삭제로 노출 이유 소멸(S7-#9c) |
|
||||
| SDK pub/sub 연산 표면(`RedisPubSubOperations`, `RedisShardedPubSubOperations`, `ReactiveRedisPubSubOperations`, `ReactiveRedisShardedPubSubOperations`, `PubSubChannel`, `PubSubPattern`, `ShardedPubSubChannel`, `Subscription`, `LettuceRedisPubSubOperations`, `LettuceRedisShardedPubSubOperations`, `LettuceReactiveRedisPubSubOperations`, `LettuceReactiveRedisShardedPubSubOperations`, `LiveSubscription`, `PubSubCodecs`, `PubSubOperationRequests`, `SubscriptionFlux`)과 테스트 `InMemoryRedisPubSubGateway`·`RedisPubSubOperationsContractTest` | `src/adapter/outbound/redis-sdk/src/{main,test}/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/{api/operations,api/reactive,lettuce/operations}/` | `423a29c4` | 전송(`RedisPubSubGateway`) main 구현이 없어 동작 불가(G-6b) |
|
||||
| `RedisPubSubGateway`, `RedisConnectionKind.PUBSUB`, `RedisCredentialRole.PUBSUB` | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/lettuce/{operations,connection}/` | `423a29c4` | 위와 같음 |
|
||||
| `RedisSdkSettings.PubSub`·`Authentication.pubsubCredentialReference`, env 키 `APP_REDIS_PUBSUB_BUFFER_CAPACITY`·`APP_REDIS_AUTHENTICATION_PUBSUB_CREDENTIAL_REFERENCE` | `src/adapter/outbound/redis-runtime/.../sdk/config/RedisSdkSettings.java`, `docs/registries/env-keys.yaml`, `src/.env.example` | `423a29c4` | 동작하지 않는 옵션은 키를 두지 않는다(G-4i) |
|
||||
| `RedisCapability.SHARDED_PUBSUB`, `RedisOperationContext.PATTERN_SUBSCRIBE` | `src/adapter/outbound/redis-sdk/.../sdk/api/RedisCapability.java`, `.../sdk/lettuce/operations/RedisOperationContext.java` | `423a29c4` | 사용처(pub/sub 연산) 삭제 |
|
||||
| `RedisCredentialRole`(enum) | `src/adapter/outbound/redis-runtime/.../sdk/lettuce/connection/RedisCredentialRole.java` | `423a29c4` | 열린 `RedisAccount` 값으로 대체 — runtime은 자기 계정 2개만 알고 SDK가 admin 계정을 기여(G-7c) |
|
||||
| `RedisSdkSettings.Blocking`·`Transaction`·`Admin`과 env 키 `APP_REDIS_ADMIN_ENABLED`·`APP_REDIS_ADMIN_CREDENTIAL_REFERENCE`·`APP_REDIS_BLOCKING_MAX_CONNECTIONS`·`APP_REDIS_TRANSACTION_MAX_CONNECTIONS` | `src/adapter/outbound/redis-runtime/.../sdk/config/RedisSdkSettings.java`, `docs/registries/env-keys.yaml`, `src/.env.example` | `423a29c4` | SDK 전용 lane·계정. SDK `RedisSdkComposition` 코드 설정으로 이동(G-7c, S3-#3b) |
|
||||
| `InMemoryGatewayAccess` | `src/adapter/outbound/redis-runtime/src/testFixtures/.../sdk/lettuce/operations/InMemoryGatewayAccess.java` | `423a29c4` | cache-redis 테스트는 runtime testFixtures `InMemorySemanticRedisCommands`를 직접 쓴다. semantic 스크립트 에뮬레이션은 그 fake로 이동(SDK의 `InMemoryRedisCommandGateway`에서는 제거) |
|
||||
| `IdempotencyScriptsConcurrencyContractTest` | `src/adapter/outbound/cache-redis/src/test/java/dev/caskeleton/adapter/outbound/cache/redis/idempotency/` | `423a29c4` | reflection으로 `digests` Map 구조를 고정하던 테스트. 슬롯이 `RegisteredLuaScript` final 필드가 되어 대상이 없음; 동작은 `RegisteredLuaScriptTest`가 검증 |
|
||||
| `SecretSourceValidator.REDIS_ENABLED_PROPERTY`와 Redis 역할 prefix 분기(`isRedisMaterial`, `isRedisRoleSelected`, `isRedisCacheBound`, `isSelected`), `REQUIRED_PROD_SECRETS`의 Redis 8개 | `src/app-bootstrap/src/main/java/dev/caskeleton/bootstrap/runtime/SecretSourceValidator.java` | `423a29c4` | cache-redis `RedisProductionSecrets`가 기여(S6-#2c) |
|
||||
| shared `RateLimitBounds.MAXIMUM_CLEANUP_GRACE`·`MAXIMUM_CLOCK_REGRESSION`, `EdgeRateLimitProviderNeutralContractTest.allPortableAlgorithmsHaveBoundedProviderNeutralPolicies` | `src/shared-contract/src/{main,test}/java/dev/caskeleton/shared/ratelimit/` | `423a29c4` | 정책 타입이 cache-redis로 이동(S1-#15c). 정책 검증 테스트는 이동한 `RateLimitPolicyTest`에 있음 |
|
||||
|
||||
+12
-103
@@ -1207,7 +1207,7 @@ env_keys:
|
||||
# APP_SERVER_FORWARD_HEADERS_STRATEGY=native and server.tomcat.remoteip.internal-proxies.
|
||||
|
||||
- name: APP_RATE_LIMIT_REDIS_ENABLED
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisSdkAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisRuntimeAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# Replaced by: app.redis.enabled (APP_REDIS_ENABLED).
|
||||
deprecated_orphaned: true
|
||||
removal_deadline: 2026-11-30
|
||||
@@ -1295,7 +1295,7 @@ env_keys:
|
||||
required_test: rate-limit-contract:key-version-bounded
|
||||
|
||||
- name: APP_RATE_LIMIT_REDIS_HOST
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisSdkAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisRuntimeAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# Replaced by: app.redis.nodes (APP_REDIS_NODES).
|
||||
deprecated_orphaned: true
|
||||
removal_deadline: 2026-11-30
|
||||
@@ -1311,7 +1311,7 @@ env_keys:
|
||||
required_test: rate-limit-contract:redis-host-required
|
||||
|
||||
- name: APP_RATE_LIMIT_REDIS_PORT
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisSdkAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisRuntimeAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# Replaced by: app.redis.nodes (APP_REDIS_NODES).
|
||||
deprecated_orphaned: true
|
||||
removal_deadline: 2026-11-30
|
||||
@@ -1339,7 +1339,7 @@ env_keys:
|
||||
required_test: rate-limit-contract:redis-password-no-leak
|
||||
|
||||
- name: APP_RATE_LIMIT_REDIS_TRUST_PEM
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisSdkAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisRuntimeAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# Replaced by: app.redis.tls.trust-material-resource.
|
||||
deprecated_orphaned: true
|
||||
removal_deadline: 2026-11-30
|
||||
@@ -1424,7 +1424,7 @@ env_keys:
|
||||
required_test: rate-limit-contract:redis-timeout-bounded
|
||||
|
||||
- name: APP_RATE_LIMIT_REDIS_MAXIMUM_COMMAND_BYTES
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisSdkAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisRuntimeAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# Replaced by: app.redis.limits.max-batch-request-bytes.
|
||||
deprecated_orphaned: true
|
||||
removal_deadline: 2026-11-30
|
||||
@@ -1440,7 +1440,7 @@ env_keys:
|
||||
required_test: rate-limit-contract:redis-command-bytes-bounded
|
||||
|
||||
- name: APP_RATE_LIMIT_REDIS_MAXIMUM_QUEUED_COMMANDS
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisSdkAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisRuntimeAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# Replaced by: app.redis.capacity.maximum-in-flight-commands.
|
||||
deprecated_orphaned: true
|
||||
removal_deadline: 2026-11-30
|
||||
@@ -1456,7 +1456,7 @@ env_keys:
|
||||
required_test: rate-limit-contract:redis-queue-bounded
|
||||
|
||||
- name: APP_RATE_LIMIT_REDIS_MAXIMUM_IN_FLIGHT_BYTES
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisSdkAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# DEPRECATED 2026-08-10: the rate limiter no longer owns a Redis client of its own. One client, built by RedisRuntimeAutoConfiguration, serves every capability, so a second endpoint and a second set of ceilings could only ever disagree with it.
|
||||
# Replaced by: app.redis.capacity.maximum-in-flight-bytes.
|
||||
deprecated_orphaned: true
|
||||
removal_deadline: 2026-11-30
|
||||
@@ -1842,57 +1842,12 @@ env_keys:
|
||||
compatibility_impact: additive
|
||||
required_test: redis-capability:lease-composition
|
||||
|
||||
# --- Redis SDK typed settings (app.redis.*) -------------------------------
|
||||
# Bound only by RedisSdkAutoConfiguration in adapter-outbound-redis-runtime while
|
||||
# --- Redis runtime settings (app.redis.*) ----------------------------------
|
||||
# Bound only by RedisRuntimeAutoConfiguration in adapter-outbound-redis-runtime while
|
||||
# APP_REDIS_ENABLED is true. application.yml does not force these values into Redis-free
|
||||
# deployments; src/.env.example merely documents explicit operator inputs. verifyEnvKeys checks
|
||||
# the registry against the runtime module's configuration metadata.
|
||||
|
||||
- name: APP_REDIS_ADMIN_CREDENTIAL_REFERENCE
|
||||
property: app.redis.admin.credential-reference
|
||||
owner_module: adapter-outbound-redis-runtime
|
||||
type: string
|
||||
default: null
|
||||
allowed_values: null
|
||||
classification: sensitive-config
|
||||
required: false
|
||||
required_when: app.redis.admin.enabled=true
|
||||
reload_policy: restart-only
|
||||
owner_branch: redis-optionality-and-composition
|
||||
validation: nonblank_when_required
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:typed-settings-bound-and-validated
|
||||
|
||||
- name: APP_REDIS_ADMIN_ENABLED
|
||||
property: app.redis.admin.enabled
|
||||
owner_module: adapter-outbound-redis-runtime
|
||||
type: boolean
|
||||
default: false
|
||||
allowed_values: [true, false]
|
||||
classification: public-config
|
||||
required: false
|
||||
required_when: app.redis.enabled=true
|
||||
reload_policy: restart-only
|
||||
owner_branch: redis-optionality-and-composition
|
||||
validation: boolean_strict
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:typed-settings-bound-and-validated
|
||||
|
||||
- name: APP_REDIS_BLOCKING_MAX_CONNECTIONS
|
||||
property: app.redis.blocking.max-connections
|
||||
owner_module: adapter-outbound-redis-runtime
|
||||
type: integer
|
||||
default: 32
|
||||
allowed_values: null
|
||||
classification: public-config
|
||||
required: false
|
||||
required_when: app.redis.enabled=true
|
||||
reload_policy: restart-only
|
||||
owner_branch: redis-optionality-and-composition
|
||||
validation: positive_integer
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:typed-settings-bound-and-validated
|
||||
|
||||
- name: APP_REDIS_DATABASE
|
||||
# Cluster supports database 0 only; a non-zero value fails startup there.
|
||||
property: app.redis.database
|
||||
@@ -2032,24 +1987,8 @@ env_keys:
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:typed-settings-bound-and-validated
|
||||
|
||||
- name: APP_REDIS_TRANSACTION_MAX_CONNECTIONS
|
||||
property: app.redis.transaction.max-connections
|
||||
owner_module: adapter-outbound-redis-runtime
|
||||
type: integer
|
||||
default: 16
|
||||
allowed_values: null
|
||||
classification: public-config
|
||||
required: false
|
||||
required_when: app.redis.enabled=true
|
||||
reload_policy: restart-only
|
||||
owner_branch: redis-optionality-and-composition
|
||||
validation: positive_integer
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:typed-settings-bound-and-validated
|
||||
|
||||
# --- Redis runtime composition settings (app.redis.*) ----------------------
|
||||
# Authentication, Sentinel discovery, TLS, lifecycle, Cluster routing, capacity and
|
||||
# subscription delivery. Same rule as the rest of app.redis.*: bound only while
|
||||
# Authentication, Sentinel discovery, TLS, lifecycle, Cluster routing and capacity. Same rule as the rest of app.redis.*: bound only while
|
||||
# APP_REDIS_ENABLED is true, and deliberately absent from application.yml and .env.
|
||||
|
||||
- name: APP_REDIS_AUTHENTICATION_ADVANCED_CREDENTIAL_REFERENCE
|
||||
@@ -2103,21 +2042,6 @@ env_keys:
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:runtime-composition-binds-and-validates
|
||||
|
||||
- name: APP_REDIS_AUTHENTICATION_PUBSUB_CREDENTIAL_REFERENCE
|
||||
property: app.redis.authentication.pubsub-credential-reference
|
||||
owner_module: adapter-outbound-cache-redis
|
||||
type: string
|
||||
default: null
|
||||
allowed_values: null
|
||||
classification: sensitive-config
|
||||
required: false
|
||||
required_when: app.redis.enabled=true
|
||||
reload_policy: restart-only
|
||||
owner_branch: redis-optionality-and-composition
|
||||
validation: nonblank_when_required
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:runtime-composition-binds-and-validates
|
||||
|
||||
- name: APP_REDIS_CAPACITY_MAXIMUM_IN_FLIGHT_COMMANDS
|
||||
property: app.redis.capacity.maximum-in-flight-commands
|
||||
owner_module: adapter-outbound-cache-redis
|
||||
@@ -2287,21 +2211,6 @@ env_keys:
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:runtime-composition-binds-and-validates
|
||||
|
||||
- name: APP_REDIS_PUBSUB_BUFFER_CAPACITY
|
||||
property: app.redis.pubsub.buffer-capacity
|
||||
owner_module: adapter-outbound-cache-redis
|
||||
type: integer
|
||||
default: 1024
|
||||
allowed_values: null
|
||||
classification: public-config
|
||||
required: false
|
||||
required_when: app.redis.enabled=true
|
||||
reload_policy: restart-only
|
||||
owner_branch: redis-optionality-and-composition
|
||||
validation: positive_integer
|
||||
compatibility_impact: additive
|
||||
required_test: redis-sdk:runtime-composition-binds-and-validates
|
||||
|
||||
- name: APP_REDIS_SENTINEL_CREDENTIAL_REFERENCE
|
||||
property: app.redis.sentinel.credential-reference
|
||||
owner_module: adapter-outbound-cache-redis
|
||||
@@ -2379,8 +2288,8 @@ env_keys:
|
||||
classification: sensitive-config
|
||||
required: false
|
||||
# A relationship between two settings rather than a switch: a client certificate without its
|
||||
# key cannot build a key manager. Enforced in RedisSdkSettings.validate and covered by
|
||||
# RedisSdkSettingsTest, which is where the registry's prose conditions are proven.
|
||||
# key cannot build a key manager. Enforced in RedisRuntimeSettings.validate and covered by
|
||||
# RedisRuntimeSettingsTest, which is where the registry's prose conditions are proven.
|
||||
required_when: app.redis.tls.client-certificate-resource is configured
|
||||
reload_policy: restart-only
|
||||
owner_branch: redis-optionality-and-composition
|
||||
|
||||
@@ -54,6 +54,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.capabilities.cache.bindings.default=redis
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: feature-secrets-config-source-contract
|
||||
masking_rule: full
|
||||
@@ -78,6 +80,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: dual-read-restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.capabilities.cache.bindings.default=redis
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: codex-phase-a-ci-recovery
|
||||
masking_rule: full
|
||||
@@ -90,6 +94,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.capabilities.rate-limit.provider=redis
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: redis-distributed-rate-limit
|
||||
masking_rule: full
|
||||
@@ -114,6 +120,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: dual-read-restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.capabilities.rate-limit.provider=redis
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: redis-distributed-rate-limit
|
||||
masking_rule: full
|
||||
@@ -126,6 +134,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.security.auth-mode=redis-session
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: redis-production-capability
|
||||
masking_rule: full
|
||||
@@ -150,6 +160,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: dual-read-restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.security.auth-mode=redis-session
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: redis-production-capability
|
||||
masking_rule: full
|
||||
@@ -162,6 +174,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: cold-cutover-restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.capabilities.idempotency.provider=redis
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: redis-production-capability-completion
|
||||
masking_rule: full
|
||||
@@ -174,6 +188,8 @@ secrets:
|
||||
source: secret-manager
|
||||
rotation_policy: cold-cutover-restart-only
|
||||
prod_default: null
|
||||
# Required with app.redis.enabled=true and this role selected; checked by adapter-outbound-cache-redis RedisProductionSecrets.
|
||||
required_when: ca-skeleton.capabilities.lease.provider=redis
|
||||
dev_sentinel_prefix: __LOCAL_DEV_
|
||||
owner_branch: redis-production-capability-completion
|
||||
masking_rule: full
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
## 행 결과
|
||||
| ID | 결과 | 근거 |
|
||||
|---|---|---|
|
||||
| G-4i | 해당 없음(코드 삭제) | P22 D `1b3138cb`: `RedisSdkSettings.PubSub`·`Authentication.pubsubCredentialReference`, env 키 `APP_REDIS_PUBSUB_BUFFER_CAPACITY`·`APP_REDIS_AUTHENTICATION_PUBSUB_CREDENTIAL_REFERENCE`(`docs/registries/env-keys.yaml`·`src/.env.example`) 삭제. `:app-bootstrap:verifyEnvKeys` 통과 |
|
||||
| G-6b | 해당 없음(코드 삭제) | P22 D `1b3138cb`. **구현 대신 삭제를 택함**: 구현하려면 Lettuce pub/sub 연결 수명·버퍼 한도·재구독·sharded 라우팅·실제 벤더 lane을 새로 만들어야 하고(capability 규칙 3 "켜면 완전히 동작"), main 소비자가 0이다. 삭제는 SDK 파일 18개와 runtime 인터페이스 1개로 끝난다. 카탈로그 `redis-sdk/src/main/resources/redis-sdk/redis-command-policy.yml:745-780`의 PUBLISH/SUBSCRIBE/PSUBSCRIBE/SPUBLISH… 8개는 `BLOCKED`(카탈로그는 서버의 모든 명령을 판정해야 하므로 행은 남김), `RedisCapability.SHARDED_PUBSUB`·`pattern-subscribe` permit 정책 삭제, `redis-sdk/README.md` 표에서 pub/sub 제거 |
|
||||
| G-7a | 완료 | P22 W1 `bd0e0bc6`. runtime 계약은 `redis-runtime/.../runtime/command/SemanticRedisCommands.java:19`(get·set(Duration)·getAndDelete·incrementBy·ping·loadScript·evaluateRegisteredForList/Long 8개)와 구현 `LettuceSemanticRedisCommands`. 118개 메서드 `RedisCommandGateway`와 `LettuceRedisCommandGateway`는 redis-sdk로 이동해 `redis-sdk/.../sdk/lettuce/operations/RedisCommandGateway.java:48`에서 `SemanticRedisCommands`를 확장하고, 빌린 연결의 `RedisLease.driver()`로 `LettuceRedisCommandGateway.over(...)`를 만든다. `api.command`·`api.error`·`api.operations`·`RedisVersion`·페이지 타입도 SDK로. cache-redis·health는 8개만 사용 |
|
||||
| G-7c | 완료 | P22 W1 `bd0e0bc6`. runtime lane은 `RedisConnectionKind.java:12-16` REGULAR·SCRIPT만. BLOCKING·TRANSACTION·ADMIN은 `redis-sdk/.../sdk/lettuce/connection/RedisSdkLane.java:19`, admin 계정과 lane 한도는 `RedisSdkComposition.java`(서비스가 `RedisLaneContribution`·`RedisAccountContribution` 빈으로 기여, runtime `RedisRuntimeAutoConfiguration`이 모아 풀·자격 증명을 만든다). `app.redis.admin.*`·`app.redis.blocking.max-connections`·`app.redis.transaction.max-connections` 설정과 env 키 4개 삭제 — SDK의 다른 설정처럼 코드 설정(README "configuration that is code")으로. 테스트 `RedisRuntimeAutoConfigurationTest.configuredAccountsAreResolvedPerRole`(기여 계정 해석)·`aLaneAnotherModuleContributesIsPooledByTheOwner`·`aLaneComposedTwiceFailsTheContext` |
|
||||
| G-7d | 완료 | P22 W1 `bd0e0bc6`. redis-runtime 전 파일이 `dev.caskeleton.adapter.outbound.cache.redis.runtime.*`(`RedisDeploymentMode`, `key`, `cluster`, `command`, `connection`, `config`). split package 해소. `RedisRuntimePackageBoundaryTest.noRuntimeSourceReferencesTheTypedSdkPackage`. SDK 쪽 `RedisSdkModuleBoundaryTest`는 SDK root만 스캔 |
|
||||
| G-7e | 완료 | P22 W1 `bd0e0bc6`. selector 표는 `cache-redis/.../capability/RedisCorrectnessRoleSelectors.java:48`(W2에서 역할별 secret까지 한 표로)로 옮기고 cache-redis `META-INF/spring.factories`에 `RedisCorrectnessRequirement`로 등록. runtime `RedisCorrectnessRoles.java:44`는 등록된 요구에 "required 여부"만 묻는다. `RedisRuntimeAutoConfigurationTest.withoutARequirementTheRuntimeCreatesNoRequiredContributor`(runtime은 selector를 모른다)·`aModuleThatNeedsRedisForCorrectnessGetsTheRequiredContributor`, `RedisReadinessGroupPostProcessorTest.eachCorrectnessSelectorAppendsRedisReadiness`, live `LiveRedisCompositionTest` 스크립트 role 2건 통과 |
|
||||
| G-8 | 완료 | P22 W1 `bd0e0bc6`: `cache-redis/.../RegisteredLuaScript.java:29`(digest 캐시·NOSCRIPT 판별 `:114`·재로드 1회·응답 디코딩)을 Cache/RateLimit/Lease/IdempotencyScripts 4곳이 사용. `LeaseScriptsTest.aProgramTheServerForgotIsReloadedEvenWhenOnlyTheMessageSaysNoScript` FAIL(`CompletionException` caused by `RedisCommandExecutionException` — 메시지로만 온 NOSCRIPT를 lease가 재로드하지 않음)→PASS. `RegisteredLuaScriptTest` 4건 |
|
||||
| X1-지도-lock / lease / fencing | 완료 | 소유자 결정 8대로 lock·lease 포트 유지. claim executor·`CacheRefreshCoordinationPort`·`LeaseWatchdog`는 이미 `208077fd`에서 삭제돼 남은 미사용 포트 없음. fencing은 contract kit로(P22 W2 `7f39bfda`): `application-core/src/testFixtures/.../lease/testkit/DistributedLeaseContract.java`(밀려난 holder의 renew·release는 NotOwner이고 후임의 lease를 건드리지 않는다, 같은 attempt 재acquire는 replay, 이중 release는 AlreadyAbsent — 7건)를 fake `InMemoryDistributedLease`(`InMemoryDistributedLeaseContractTest`), Redis 어댑터+in-memory 명령(`RedisDistributedLeaseContractTest`), 실제 Redis(`LiveRedisDistributedLeaseContractTest`, standalone lane)가 모두 통과. lock 포트의 공통 계약(JDBC 어댑터 포함)은 Wave 4 범위로 남김 |
|
||||
| S1-#15c | 완료 | P22 W2 `7f39bfda`: `RateLimitPolicy`·`RateLimitAlgorithm`·`RateLimitEvaluationDedupPolicy`(+ 이들만 쓰는 `RateLimitFailurePolicy`)와 테스트 2개를 `cache-redis/.../ratelimit/`로 이동, 정책 검증 bounds는 `RateLimitPolicyBounds`(package-private). shared에는 `EdgeRateLimitPort`·`RateLimitRequest`·`RateLimitOutcome`·`RateLimitDecision`·`RateParameters`·subject 계열만 남음. `:shared-contract:check`·`:adapter:inbound:web:check` 통과 |
|
||||
| S3-#3a | 완료 | = G-7a·G-7c. runtime 계약 8개, 나머지는 SDK 확장 인터페이스, lane은 REGULAR·SCRIPT, `forCommand(RedisCommandDescriptor)`는 SDK `RedisSdkLane.forCommand`로 |
|
||||
| S3-#3b | 완료 | = G-7d. `RedisSdkSettings`→`RedisRuntimeSettings`, `RedisSdkAutoConfiguration`→`RedisRuntimeAutoConfiguration`, SDK 전용 섹션(blocking·transaction·admin)은 runtime 설정에서 빠지고 SDK 코드 설정으로. `RedisRuntimePackageBoundaryTest.noRuntimeTypeIsNamedAfterTheSdk` |
|
||||
| S3-#4b | 완료 | P22 W1 `bd0e0bc6`: `cache-redis/.../SemanticRedisCall.java:35` — 빌림·bounded wait·not-sent/unknown 판정 한 곳(`effect`: 스크립트, `run`+`markSent`: cache). 네 어댑터의 `catch (InterruptedException` 15곳이 사라지고 cache-redis main에는 `SemanticRedisCall`과 시작 probe만 남음. Lua 응답 디코딩은 `RegisteredLuaScript.number/text/requireShape`. 기존 어댑터 테스트(`RedisIdempotencyStoreAdapterTest`·`RedisDistributedLeaseAdapterTest`·`RedisEdgeRateLimitAdapterTest`·`RedisCacheRegionAdapterTest`)와 live `LiveRedisSemanticPortsTest` 10건 통과 |
|
||||
| S3-#5 | 완료 | P22 W1 `bd0e0bc6`: `IdempotencyScripts.ScriptStatus`(`IdempotencyScripts.java:228`)로 한 번 파싱, switch는 enum, `transition(...)`은 `Transition` record + `Map<ScriptStatus, O>`(`RedisIdempotencyStoreAdapter.java:428`) — 인자 16개→7개 |
|
||||
| S3-#9 | 완료 | P22 W1 `bd0e0bc6`: `RedisTopologyClientFactory` 662→371줄. `StandaloneRuntimeClient`·`ClusterRuntimeClient`·`AccountRoutingRuntimeClient`·`SharedClientResources`·`LaneConnection`·`ShutdownBudget`를 package-private top-level로 |
|
||||
| S6-#2c | 완료 | P22 W2 `7f39bfda`: Redis 역할별 secret 판정은 `cache-redis/.../capability/RedisProductionSecrets.java`가 `RedisCorrectnessRoleSelectors.ROLES`(역할·selector·required·scripted·secret 한 표)에서 파생해 `support.startup.RequiredProductionSecrets` 빈으로 기여(Redis가 켜졌을 때만 존재). `SecretSourceValidator`는 `REQUIRED_PROD_SECRETS`(datasource·pseudonymization salt) + 모듈 기여 목록만 검사하고 `REDIS_ENABLED_PROPERTY`·역할 prefix 분기 삭제. 레지스트리 `secrets-classification.yaml`의 Redis secret 8행에 `required_when`. 테스트 `RedisProductionSecretsTest`(역할별 5 + 비선택 2), `SecretSourceValidatorTest.aSecretAModuleContributedIsRequiredInProd` 외 2건, `SecretsClassificationRegistryTest` 통과 |
|
||||
| S6-#3a | 완료 | P22 W2 `7f39bfda`: `support.startup.StartupRule { phase(); summary(); remedy(); List<String> violations(Environment) }` + 러너 하나 `StartupRuleRunner`(`StartupRuleAutoConfiguration`, support `AutoConfiguration.imports`). 환경만 읽는 검사 8개를 규칙으로: bootstrap `RuntimeNumericBoundsValidator`·`ErrorDetailExposureSafetyValidator`, persistence-jpa `RequiredEnvironmentValidator`·`FlywayProdSafetyValidator`·`OpenInViewSafetyValidator`·`PostgreSqlTransportSecurityValidator`·`PersistenceVendorProdSafetyValidator`·`HikariPoolConstraintValidator`. phase·종료 코드와 위반 문구는 유지(메시지 앞머리에 규칙 summary가 붙는 형태만 통일). bean이 필요한 검사(`SecretSourceValidator`, `StartupSafetyValidator`, `JpaDataSourceProfileValidator`, `JpaDangerousConfigurationGuard`)는 bean으로 유지, 부팅 전 EPP(`RuntimeEnvironmentProfileValidator`, `JpaActivationEnvironmentPostProcessor`, `TracingSamplingEnvironmentPostProcessor`, `RedisReadinessGroupPostProcessor`)는 EPP로 유지. `StartupRuleRunnerTest` 3건, 기존 검증기 테스트 전부 통과 |
|
||||
|
||||
## 제거된 코드
|
||||
| 대상 | 경로 | 마지막으로 존재한 커밋 | 이유 |
|
||||
|---|---|---|---|
|
||||
| SDK pub/sub 연산 표면(`RedisPubSubOperations`, `RedisShardedPubSubOperations`, `ReactiveRedisPubSubOperations`, `ReactiveRedisShardedPubSubOperations`, `PubSubChannel`, `PubSubPattern`, `ShardedPubSubChannel`, `Subscription`, `LettuceRedisPubSubOperations`, `LettuceRedisShardedPubSubOperations`, `LettuceReactiveRedisPubSubOperations`, `LettuceReactiveRedisShardedPubSubOperations`, `LiveSubscription`, `PubSubCodecs`, `PubSubOperationRequests`, `SubscriptionFlux`)과 테스트 `InMemoryRedisPubSubGateway`·`RedisPubSubOperationsContractTest` | `src/adapter/outbound/redis-sdk/src/{main,test}/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/{api/operations,api/reactive,lettuce/operations}/` | `423a29c4` | 전송(`RedisPubSubGateway`) main 구현이 없어 동작 불가(G-6b) |
|
||||
| `RedisPubSubGateway`, `RedisConnectionKind.PUBSUB`, `RedisCredentialRole.PUBSUB` | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/lettuce/{operations,connection}/` | `423a29c4` | 위와 같음 |
|
||||
| `RedisSdkSettings.PubSub`·`Authentication.pubsubCredentialReference`, env 키 `APP_REDIS_PUBSUB_BUFFER_CAPACITY`·`APP_REDIS_AUTHENTICATION_PUBSUB_CREDENTIAL_REFERENCE` | `src/adapter/outbound/redis-runtime/.../sdk/config/RedisSdkSettings.java`, `docs/registries/env-keys.yaml`, `src/.env.example` | `423a29c4` | 동작하지 않는 옵션은 키를 두지 않는다(G-4i) |
|
||||
| `RedisCapability.SHARDED_PUBSUB`, `RedisOperationContext.PATTERN_SUBSCRIBE` | `src/adapter/outbound/redis-sdk/.../sdk/api/RedisCapability.java`, `.../sdk/lettuce/operations/RedisOperationContext.java` | `423a29c4` | 사용처(pub/sub 연산) 삭제 |
|
||||
| `RedisCredentialRole`(enum) | `src/adapter/outbound/redis-runtime/.../sdk/lettuce/connection/RedisCredentialRole.java` | `423a29c4` | 열린 `RedisAccount` 값으로 대체 — runtime은 자기 계정 2개만 알고 SDK가 admin 계정을 기여(G-7c) |
|
||||
| `RedisSdkSettings.Blocking`·`Transaction`·`Admin`과 env 키 `APP_REDIS_ADMIN_ENABLED`·`APP_REDIS_ADMIN_CREDENTIAL_REFERENCE`·`APP_REDIS_BLOCKING_MAX_CONNECTIONS`·`APP_REDIS_TRANSACTION_MAX_CONNECTIONS` | `src/adapter/outbound/redis-runtime/.../sdk/config/RedisSdkSettings.java`, `docs/registries/env-keys.yaml`, `src/.env.example` | `423a29c4` | SDK 전용 lane·계정. SDK `RedisSdkComposition` 코드 설정으로 이동(G-7c, S3-#3b) |
|
||||
| `InMemoryGatewayAccess` | `src/adapter/outbound/redis-runtime/src/testFixtures/.../sdk/lettuce/operations/InMemoryGatewayAccess.java` | `423a29c4` | cache-redis 테스트는 runtime testFixtures `InMemorySemanticRedisCommands`를 직접 쓴다. semantic 스크립트 에뮬레이션은 그 fake로 이동(SDK의 `InMemoryRedisCommandGateway`에서는 제거) |
|
||||
| `IdempotencyScriptsConcurrencyContractTest` | `src/adapter/outbound/cache-redis/src/test/java/dev/caskeleton/adapter/outbound/cache/redis/idempotency/` | `423a29c4` | reflection으로 `digests` Map 구조를 고정하던 테스트. 슬롯이 `RegisteredLuaScript` final 필드가 되어 대상이 없음; 동작은 `RegisteredLuaScriptTest`가 검증 |
|
||||
| `SecretSourceValidator.REDIS_ENABLED_PROPERTY`와 Redis 역할 prefix 분기(`isRedisMaterial`, `isRedisRoleSelected`, `isRedisCacheBound`, `isSelected`), `REQUIRED_PROD_SECRETS`의 Redis 8개 | `src/app-bootstrap/src/main/java/dev/caskeleton/bootstrap/runtime/SecretSourceValidator.java` | `423a29c4` | cache-redis `RedisProductionSecrets`가 기여(S6-#2c) |
|
||||
| shared `RateLimitBounds.MAXIMUM_CLEANUP_GRACE`·`MAXIMUM_CLOCK_REGRESSION`, `EdgeRateLimitProviderNeutralContractTest.allPortableAlgorithmsHaveBoundedProviderNeutralPolicies` | `src/shared-contract/src/{main,test}/java/dev/caskeleton/shared/ratelimit/` | `423a29c4` | 정책 타입이 cache-redis로 이동(S1-#15c). 정책 검증 테스트는 이동한 `RateLimitPolicyTest`에 있음 |
|
||||
|
||||
## 새로 발견한 결함
|
||||
- `P22-new-1` — `src/app-bootstrap/src/main/java/dev/caskeleton/bootstrap/runtime/SecretSourceValidator.java`: `APP_DATASOURCE_PASSWORD`를 요구할지 bootstrap이 persistence-jpa의 모듈 스위치(`ca-skeleton.persistence-jpa.enabled`)를 읽어 판정한다. S6-#2c가 Redis에 대해 없앤 것과 같은 모양(모듈 지식이 composition root에). 같은 `RequiredProductionSecrets` 기여로 옮길 수 있으나 이 묶음 범위(Redis) 밖이라 고치지 않음.
|
||||
- `P22-new-2` — `infra/redis-sdk/acl/application.acl`·`all-accounts.acl`: pub/sub 표면이 사라졌는데 application 계정 ACL fixture가 여전히 `+@pubsub`와 채널 패턴 `&prod:*`를 준다(최소 권한 위반, fixture 한정). infra 파일이라 고치지 않음.
|
||||
- `P22-new-3` — redis-sdk가 공개 API에 runtime 타입(`SemanticRedisCommands` 상위 인터페이스, `WritePresence`, `RedisLaneContribution`, `RedisDriverConnection`)을 노출하면서 runtime을 `implementation`으로만 의존한다. SDK를 쓰는 leaf는 README대로 runtime도 선언해야 컴파일된다(이전에도 `RedisRuntimeOwner` 때문에 같았음). `api`로 바꾸는 것은 build 변경이라 보류.
|
||||
@@ -354,21 +354,21 @@ Wave 3 라운드 1 결과로 받은 4건(2026-09-28, desktop):
|
||||
| G-4f | Required | `lifecycle.tls-handshake-timeout` 미적용 | 해당 없음(코드 삭제) | 같은 표 행 174 | - | - |
|
||||
| G-4g | Required | `pubsub.overflow-policy` 미적용 | 해당 없음(코드 삭제) | 같은 표 행 174 | - | - |
|
||||
| G-4h | Required | `lifecycle.acquire-timeout` 미적용 | 완료 | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/config/RedisSdkAutoConfiguration.java:241` → `RedisRuntimeOwner.java:153` `tryAcquire(acquireTimeout)`. 테스트 `RedisScriptLaneAdmissionTest.aCallerStillWaitingWhenTheAcquireTimeoutRunsOutIsRefusedAsNotSent`. 커밋 `6d27356e` | - | - |
|
||||
| G-4i | Required | 남은 `pubsub.buffer-capacity`(+`authentication.pubsub-credential-reference`)가 버퍼를 제한하지 않음. PUBSUB lane 연결 수(`/64`)로만 쓰이고 pub/sub 전송 구현이 없음 | 남음 | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/config/RedisSdkAutoConfiguration.java:235-236`, `RedisSdkSettings.java:549-566`, `docs/registries/env-keys.yaml:2297`. main에 `implements RedisPubSubGateway` 0건 (= G-6b) | W3 | G-6b에서 pub/sub를 지우면 `RedisSdkSettings.PubSub`·env key `APP_REDIS_PUBSUB_BUFFER_CAPACITY`·`_PUBSUB_CREDENTIAL_REFERENCE`를 함께 삭제(AGENTS.md 완료 기준 3) |
|
||||
| G-4i | Required | 남은 `pubsub.buffer-capacity`(+`authentication.pubsub-credential-reference`)가 버퍼를 제한하지 않음. PUBSUB lane 연결 수(`/64`)로만 쓰이고 pub/sub 전송 구현이 없음 | 해당 없음(코드 삭제) | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 D `1b3138cb`: `RedisSdkSettings.PubSub`·`Authentication.pubsubCredentialReference`, env 키 `APP_REDIS_PUBSUB_BUFFER_CAPACITY`·`APP_REDIS_AUTHENTICATION_PUBSUB_CREDENTIAL_REFERENCE`(`docs/registries/env-keys.yaml`·`src/.env.example`) 삭제. `:app-bootstrap:verifyEnvKeys` 통과 | - | G-6b에서 pub/sub를 지우면 `RedisSdkSettings.PubSub`·env key `APP_REDIS_PUBSUB_BUFFER_CAPACITY`·`_PUBSUB_CREDENTIAL_REFERENCE`를 함께 삭제(AGENTS.md 완료 기준 3) |
|
||||
| G-4j | Nit | deprecated env key의 "Replaced by"가 삭제된 key를 가리킴 | 남음 | `docs/registries/env-keys.yaml:1435`(`app.redis.limits.max-batch-request-bytes`), `:1467`(`app.redis.capacity.maximum-in-flight-bytes`) | W5 | 두 행의 "Replaced by" 주석을 "대체 없음(2026-09-25 삭제)"로 수정 |
|
||||
| G-5a | Required | redis-runtime·redis-sdk 테스트가 cache-redis에 있어 두 leaf focused test가 빈 초록불 | 완료 | redis-sdk `src/test` 51개(`RedisSdkModuleBoundaryTest`, `LiveRedisOperationsFixture` 등), redis-runtime `src/test` 10개(`RedisRuntimeOwnerTest` 등), fake는 `src/adapter/outbound/redis-runtime/build.gradle:4,18-20` testFixtures로 공유, `src/adapter/outbound/cache-redis/build.gradle:8-17`에 redis-sdk edge 없음. 커밋 `6d27356e` | - | - |
|
||||
| G-5b | Required | redis-runtime leaf에 README·CLAUDE.md 없음 | 남음 | `src/adapter/outbound/redis-runtime/`에 `build.gradle`·`src`만 있음. redis-sdk는 `README.md` 추가됨. runtime 규칙은 `src/adapter/outbound/cache-redis/CLAUDE.md` "Redis runtime and optional typed SDK" 절에 섞여 있음 | W5 | `src/adapter/outbound/redis-runtime/README.md`를 만들어 제공하는 것·붙이는 방법·env 키(`app.redis.*` 소유)를 적고 cache-redis CLAUDE.md의 runtime 절을 옮김 |
|
||||
| G-6a | Required | SDK 진입 facade `RedisOperations`·`ReactiveRedisOperations` 구현체 0 | 해당 없음(코드 삭제) | `docs/capability-status.md` 「제거된 코드」 행 170. `implements RedisOperations\|ReactiveRedisOperations` 0건 | - | - |
|
||||
| G-6b | Required | pub/sub 전송(`RedisPubSubGateway`) main 구현이 없어 SDK의 pub/sub·sharded pub/sub 연산을 쓸 수 없음 | 남음 | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/lettuce/operations/RedisPubSubGateway.java`(인터페이스만), 구현은 test `InMemoryRedisPubSubGateway`뿐. `src/adapter/outbound/redis-sdk/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/lettuce/operations/LettuceRedisPubSubOperations.java` 외 3개가 이 gateway에 의존. `src/adapter/outbound/redis-sdk/README.md` 표는 pub/sub를 제공한다고 적음 | W3 | D1 기준으로 redis-sdk의 `*PubSub*Operations`·`LiveSubscription`·`PubSubOperationRequests`·api pub/sub 인터페이스와 runtime `RedisPubSubGateway`·PUBSUB role/lane을 삭제하고 README 표에서 제거 |
|
||||
| G-6b | Required | pub/sub 전송(`RedisPubSubGateway`) main 구현이 없어 SDK의 pub/sub·sharded pub/sub 연산을 쓸 수 없음 | 해당 없음(코드 삭제) | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 D `1b3138cb`. **구현 대신 삭제를 택함**: 구현하려면 Lettuce pub/sub 연결 수명·버퍼 한도·재구독·sharded 라우팅·실제 벤더 lane을 새로 만들어야 하고(capability 규칙 3 "켜면 완전히 동작"), main 소비자가 0이다. 삭제는 SDK 파일 18개와 runtime 인터페이스 1개로 끝난다. 카탈로그 `redis-sdk/src/main/resources/redis-sdk/redis-command-policy.yml:745-780`의 PUBLISH/SUBSCRIBE/PSUBSCRIBE/SPUBLISH… 8개는 `BLOCKED`(카탈로그는 서버의 모든 명령을 판정해야 하므로 행은 남김), `RedisCapability.SHARDED_PUBSUB`·`pattern-subscribe` permit 정책 삭제, `redis-sdk/README.md` 표에서 pub/sub 제거 | - | D1 기준으로 redis-sdk의 `*PubSub*Operations`·`LiveSubscription`·`PubSubOperationRequests`·api pub/sub 인터페이스와 runtime `RedisPubSubGateway`·PUBSUB role/lane을 삭제하고 README 표에서 제거 |
|
||||
| G-6c | Required | redis-sdk `RedisConnectionRegistry`가 호출자 0이고 `RedisRuntimeOwner` lane 한도 로직과 중복 | 해당 없음(코드 삭제) | 「제거된 코드」 행 173 | - | - |
|
||||
| G-6d | Required | cache-redis realtime adapter(`RedisEphemeralFanoutAdapter`, `RedisConnectionRegistryAdapter`) 조립처 없음 | 해당 없음(코드 삭제) | 「제거된 코드」 행 156, 210. cache-redis main에 `realtime/` 패키지 없음 | - | - |
|
||||
| G-6e | Required | SDK를 도입할 조립 코드·경로가 없음 | 완료 | `src/adapter/outbound/redis-sdk/README.md` "Adding it"(서비스 어댑터 leaf에서 `implementation` + `modules.json` edge, AGENTS.md 라이브러리형 예외), per-structure `Lettuce*Operations` 구현 36개, 조립 예시 `LiveRedisOperationsFixture`(test). 커밋 `6d27356e` | - | - |
|
||||
| G-7a | Consider | runtime `RedisCommandGateway`가 SDK 표면 전체(약 118개 메서드)를 들고 있는데 cache-redis·health는 4개만 씀 | 남음 | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/lettuce/operations/RedisCommandGateway.java`(1227줄), `LettuceRedisCommandGateway.java`(1282줄). cache-redis main이 쓰는 것: `loadScript`·`evaluateRegisteredForList`·`evaluateRegisteredForLong`, health는 `ping` | W3 | runtime에는 이 4개만 가진 좁은 gateway를 두고 나머지 메서드와 `api.command`(RAW_ONLY 등)는 redis-sdk 소유 gateway로 이동 |
|
||||
| G-7a | Consider | runtime `RedisCommandGateway`가 SDK 표면 전체(약 118개 메서드)를 들고 있는데 cache-redis·health는 4개만 씀 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`. runtime 계약은 `redis-runtime/.../runtime/command/SemanticRedisCommands.java:19`(get·set(Duration)·getAndDelete·incrementBy·ping·loadScript·evaluateRegisteredForList/Long 8개)와 구현 `LettuceSemanticRedisCommands`. 118개 메서드 `RedisCommandGateway`와 `LettuceRedisCommandGateway`는 redis-sdk로 이동해 `redis-sdk/.../sdk/lettuce/operations/RedisCommandGateway.java:48`에서 `SemanticRedisCommands`를 확장하고, 빌린 연결의 `RedisLease.driver()`로 `LettuceRedisCommandGateway.over(...)`를 만든다. `api.command`·`api.error`·`api.operations`·`RedisVersion`·페이지 타입도 SDK로. cache-redis·health는 8개만 사용 | - | runtime에는 이 4개만 가진 좁은 gateway를 두고 나머지 메서드와 `api.command`(RAW_ONLY 등)는 redis-sdk 소유 gateway로 이동 |
|
||||
| G-7b | Consider | raw 자격 증명·raw allowlist가 runtime에 있음 | 해당 없음(코드 삭제) | 「제거된 코드」 행 174(`raw.*`, `RedisCredentialRole.RAW`). `RedisCredentialRole.java:23-29`에 RAW 없음 | - | - |
|
||||
| G-7c | Consider | SDK 전용 admin 자격 증명·ADMIN lane이 runtime에 있음 | 남음 | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/config/RedisSdkAutoConfiguration.java:143-148,237`. 사용처는 redis-sdk `LettuceRedisAdminOperations`뿐 | W3 | G-7a 분리 때 admin 자격 증명 해석과 ADMIN lane 한도를 redis-sdk 쪽 조립으로 이동 |
|
||||
| G-7d | Consider | runtime과 sdk가 같은 패키지 `…cache.redis.sdk.*`를 공유 | 남음 | redis-runtime main 전 파일이 `dev.caskeleton.adapter.outbound.cache.redis.sdk.*`(예: `.../sdk/lettuce/connection/RedisRuntimeOwner.java:1`) | W3 | redis-runtime 패키지를 `dev.caskeleton.adapter.outbound.cache.redis.runtime.*`로 이동 |
|
||||
| G-7e | Consider | runtime `RedisCorrectnessRoles`가 소비자 selector 값(session·idempotency·rate-limit·lease)을 하드코딩 | 남음 | `src/adapter/outbound/redis-runtime/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/sdk/config/RedisCorrectnessRoles.java:32-37` | W3 | selector 목록을 소비자인 cache-redis(`RedisCapabilitySettings`)로 옮기고 runtime은 "required 여부"만 받도록 변경 |
|
||||
| G-8 | Consider | EVALSHA+NOSCRIPT 재로드 헬퍼가 4벌 복사, `CacheScripts`만 메시지 `startsWith("NOSCRIPT")` 폴백 | 남음 | `src/adapter/outbound/cache-redis/src/main/java/dev/caskeleton/adapter/outbound/cache/redis/cache/CacheScripts.java:41-87`, `ratelimit/RateLimitScripts.java:209-263`, `lease/LeaseScripts.java:106-160`, `idempotency/IdempotencyScripts.java:213-271` | W3 | cache-redis에 `RegisteredLuaScript`(digest 캐시·NOSCRIPT 판별·재로드 1회) 하나를 두고 네 클래스가 사용 |
|
||||
| G-7c | Consider | SDK 전용 admin 자격 증명·ADMIN lane이 runtime에 있음 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`. runtime lane은 `RedisConnectionKind.java:12-16` REGULAR·SCRIPT만. BLOCKING·TRANSACTION·ADMIN은 `redis-sdk/.../sdk/lettuce/connection/RedisSdkLane.java:19`, admin 계정과 lane 한도는 `RedisSdkComposition.java`(서비스가 `RedisLaneContribution`·`RedisAccountContribution` 빈으로 기여, runtime `RedisRuntimeAutoConfiguration`이 모아 풀·자격 증명을 만든다). `app.redis.admin.*`·`app.redis.blocking.max-connections`·`app.redis.transaction.max-connections` 설정과 env 키 4개 삭제 — SDK의 다른 설정처럼 코드 설정(README "configuration that is code")으로. 테스트 `RedisRuntimeAutoConfigurationTest.configuredAccountsAreResolvedPerRole`(기여 계정 해석)·`aLaneAnotherModuleContributesIsPooledByTheOwner`·`aLaneComposedTwiceFailsTheContext` | - | G-7a 분리 때 admin 자격 증명 해석과 ADMIN lane 한도를 redis-sdk 쪽 조립으로 이동 |
|
||||
| G-7d | Consider | runtime과 sdk가 같은 패키지 `…cache.redis.sdk.*`를 공유 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`. redis-runtime 전 파일이 `dev.caskeleton.adapter.outbound.cache.redis.runtime.*`(`RedisDeploymentMode`, `key`, `cluster`, `command`, `connection`, `config`). split package 해소. `RedisRuntimePackageBoundaryTest.noRuntimeSourceReferencesTheTypedSdkPackage`. SDK 쪽 `RedisSdkModuleBoundaryTest`는 SDK root만 스캔 | - | redis-runtime 패키지를 `dev.caskeleton.adapter.outbound.cache.redis.runtime.*`로 이동 |
|
||||
| G-7e | Consider | runtime `RedisCorrectnessRoles`가 소비자 selector 값(session·idempotency·rate-limit·lease)을 하드코딩 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`. selector 표는 `cache-redis/.../capability/RedisCorrectnessRoleSelectors.java:48`(W2에서 역할별 secret까지 한 표로)로 옮기고 cache-redis `META-INF/spring.factories`에 `RedisCorrectnessRequirement`로 등록. runtime `RedisCorrectnessRoles.java:44`는 등록된 요구에 "required 여부"만 묻는다. `RedisRuntimeAutoConfigurationTest.withoutARequirementTheRuntimeCreatesNoRequiredContributor`(runtime은 selector를 모른다)·`aModuleThatNeedsRedisForCorrectnessGetsTheRequiredContributor`, `RedisReadinessGroupPostProcessorTest.eachCorrectnessSelectorAppendsRedisReadiness`, live `LiveRedisCompositionTest` 스크립트 role 2건 통과 | - | selector 목록을 소비자인 cache-redis(`RedisCapabilitySettings`)로 옮기고 runtime은 "required 여부"만 받도록 변경 |
|
||||
| G-8 | Consider | EVALSHA+NOSCRIPT 재로드 헬퍼가 4벌 복사, `CacheScripts`만 메시지 `startsWith("NOSCRIPT")` 폴백 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`: `cache-redis/.../RegisteredLuaScript.java:29`(digest 캐시·NOSCRIPT 판별 `:114`·재로드 1회·응답 디코딩)을 Cache/RateLimit/Lease/IdempotencyScripts 4곳이 사용. `LeaseScriptsTest.aProgramTheServerForgotIsReloadedEvenWhenOnlyTheMessageSaysNoScript` FAIL(`CompletionException` caused by `RedisCommandExecutionException` — 메시지로만 온 NOSCRIPT를 lease가 재로드하지 않음)→PASS. `RegisteredLuaScriptTest` 4건 | - | cache-redis에 `RegisteredLuaScript`(digest 캐시·NOSCRIPT 판별·재로드 1회) 하나를 두고 네 클래스가 사용 |
|
||||
| G-9a | Consider | 장애 WARN이 capability·operation·type 조합마다 JVM 수명 동안 한 번뿐(`WARNED` 비우지 않음) | 완료 | Wave 1–2 P6 (fcddab7e·Wave 2 커밋): `RedisSemanticFailureLogger.java:28,58`: once-per-JVM `Set` → key별 마지막 WARN 시각 맵, `WARN_INTERVAL`(1분)마다 다시 WARN. 테스트용 package-private `report(..., nowNanos)`. `RedisSemanticFailureLoggerTest.aContinuingFailureWarnsAgainOnceTheWindowHasPassed` FAIL(`Expected size: 2 but was: 1`)→PASS | - | `WARNED`를 key별 마지막 WARN 시각 맵으로 바꿔 시간 창(예: 1분)마다 다시 WARN |
|
||||
| G-9b | Consider | `failureType`이 대부분 wrapper(`ExecutionException`) 이름 | 완료 | Wave 1–2 P6 (fcddab7e·Wave 2 커밋): `RedisSemanticFailureLogger.java:39`: `ExecutionException`/`CompletionException` cause를 풀어 기록. `aWrappedFailureIsReportedByItsCause` FAIL(`expected "IllegalStateException" but was "ExecutionException"`)→PASS | - | `report()`에서 `ExecutionException`·`CompletionException` cause를 풀고 기록 |
|
||||
| G-10a | Consider | SCRIPT ACL probe가 `return {1}`이라 스크립트 내부 명령(`TIME`/`HSET`/`PEXPIRE`/`DEL`) 권한 부족을 기동 때 못 잡음 | 완료 | Wave 1–2 P6 (fcddab7e·Wave 2 커밋): `RedisSemanticScriptAclProbe.java:29-38`: probe key에서 `TIME`→`HSET`→`PEXPIRE`→`HGET`→`DEL`을 실행하고 읽은 값이 쓴 값과 같을 때만 `{1}`. `anAccountDeniedACommandTheScriptsCallFailsStartup`[HSET/PEXPIRE/HGET/DEL] FAIL→PASS. 실제 Redis standalone·cluster에서 `LiveRedisSemanticScriptAclProbeTest` 2건 PASS. 테스트 ACL `+time`은 NEW-5a(W1)에서 추가 | - | probe 스크립트를 probeKey에 `TIME`·`HSET`·`PEXPIRE`·`HGET`·`DEL`을 실제 실행하는 것으로 교체하고, 테스트 ACL에 `+time` 추가 |
|
||||
@@ -686,7 +686,7 @@ Wave 3 라운드 1 결과로 받은 4건(2026-09-28, desktop):
|
||||
| X1-지도-요청 멱등성 | 권고 | 계약 2개·store 3개·executor 조립 3곳·inbound ledger 3개 → V2 정본, 조립 1곳 | 완료 | Wave 3 W3-P18 (Wave 3 라운드 2 커밋): 조립이 한 곳이다(`composition:idempotency`). 두 root가 같은 모듈을 쓴다. | - | X1-#2b대로 `composition:idempotency` 신설 후 두 곳을 모듈 하나로 |
|
||||
| X1-지도-자연키 생성-또는-반환 | 권고 | durable operation을 notification 방식(`ON CONFLICT`)으로, upsert executor 삭제 (= E-2) | 완료 | `DurableOperationJpaRepository.java:48` `ON CONFLICT … DO NOTHING`, `DurableOperationStoreAdapter.java:46-58` 삽입 후 재조회, upsert 실행기 7종 삭제(`docs/capability-status.md:158`), 커밋 `6d27356e` | - | - |
|
||||
| X1-지도-Inbox / 소비자 dedup | 권고 | app-core inbox 삭제, 나머지(messaging inbox·notification ledger) 유지 | 완료 | `application/inbox/`·`PostgreSqlSameStoreInboxAdapter` 삭제(`docs/capability-status.md:155`), mongo change stream dedup 삭제(`:151`); application-core 패키지 목록에 `inbox` 없음, 커밋 `6d27356e` | - | - |
|
||||
| X1-지도-lock / lease / fencing | 권고 | 미사용 포트·claim executor 삭제, fencing은 contract kit로 | 남음 | claim executor·`CacheRefreshCoordinationPort`·`LeaseWatchdog` 삭제(`docs/capability-status.md:152-153,157`). 남은 포트 2개 모두 비즈니스 소비자 0: `DistributedLockPort`(참조는 `StartupSafetyValidator.java:51` 존재 검사뿐), `DistributedLeasePort`(참조 0) | W3 | 결정(2026-09-25): lock·lease 유지, 쓰지 않는 claim executor만 삭제, fencing은 계약 테스트로 |
|
||||
| X1-지도-lock / lease / fencing | 권고 | 미사용 포트·claim executor 삭제, fencing은 contract kit로 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): 소유자 결정 8대로 lock·lease 포트 유지. claim executor·`CacheRefreshCoordinationPort`·`LeaseWatchdog`는 이미 `208077fd`에서 삭제돼 남은 미사용 포트 없음. fencing은 contract kit로(P22 W2 `7f39bfda`): `application-core/src/testFixtures/.../lease/testkit/DistributedLeaseContract.java`(밀려난 holder의 renew·release는 NotOwner이고 후임의 lease를 건드리지 않는다, 같은 attempt 재acquire는 replay, 이중 release는 AlreadyAbsent — 7건)를 fake `InMemoryDistributedLease`(`InMemoryDistributedLeaseContractTest`), Redis 어댑터+in-memory 명령(`RedisDistributedLeaseContractTest`), 실제 Redis(`LiveRedisDistributedLeaseContractTest`, standalone lane)가 모두 통과. lock 포트의 공통 계약(JDBC 어댑터 포함)은 Wave 4 범위로 남김 | - | 결정(2026-09-25): lock·lease 유지, 쓰지 않는 claim executor만 삭제, fencing은 계약 테스트로 |
|
||||
| X1-지도-caller 트랜잭션 guard | 권고 | 9벌 복사 → persistence-jpa helper 1개 (= E-3) | 남음 | persistence-jpa 복사본 4벌 + guard 없는 곳 10개(세부 X1-#4) | W3 | X1-#4 |
|
||||
| X1-지도-Backoff 계산식 | 권고 | 10개, "full jitter" 뜻 3가지 → shared-contract `Backoff` | 남음 | 앱 쪽 3개 남음(`OutboxBackoffPolicy.java:63-68`, `ExponentialFullJitterBackoff.java:78`, `RetryBackoff.java:42`), JPA 2개 삭제 | W3 | X1-#9 |
|
||||
| X1-지도-Rate limit | 권고 | web 전용 병렬 타입 세트 삭제 (= I-8 일부) | 완료 | `WebRateLimiter`·web `RateLimitDecision`·`RateLimitFailurePolicy`·`WebMvcThrottleFilter` 삭제(`docs/capability-status.md:99`); 남은 경로 `RateLimitWebConfig.java:22` → `EdgeRateLimitTransportBridge` → shared `EdgeRateLimitPort`, 커밋 `6d27356e` | - | - |
|
||||
@@ -792,7 +792,7 @@ Wave 3 라운드 1 결과로 받은 4건(2026-09-28, desktop):
|
||||
| S1-#14 | Consider | notification platform 미사용 약 920줄(예외 12, security 3, sms/push/email/webpush) (= B-8) | 해당 없음(코드 삭제) | 「제거된 코드」 notification `sms`·`push`·`email`·`webpush` facade, throw 0 예외 12종, redaction 5종 행. 해당 디렉터리 없음 확인 | - | - |
|
||||
| S1-#15a | Consider | shared-contract `activation/*`(bootstrap만 사용) | 해당 없음(코드 삭제) | 「제거된 코드」 `MasterSwitch`·`MasterSwitchParser`(shared-contract `activation` 전체) 행 | - | - |
|
||||
| S1-#15b | Consider | shared-contract `opstore/*` 구현·소비자 0 | 해당 없음(코드 삭제) | Wave 3 W3-P25 (Wave 3 라운드 2 커밋): `d54909c4`(X1-#6f와 같은 삭제) | - | `opstore` 패키지 삭제 |
|
||||
| S1-#15c | Consider | ratelimit 정책 타입이 cache-redis 전용 | 남음 | `shared-contract/.../ratelimit/RateLimitPolicy`·`RateLimitAlgorithm` main 소비자는 cache-redis뿐, `RateLimitEvaluationDedupPolicy`는 테스트만 참조 | W3 | 세 타입을 `adapter:outbound:cache-redis`로 이동(`EdgeRateLimitPort` 계열만 shared에 유지) |
|
||||
| S1-#15c | Consider | ratelimit 정책 타입이 cache-redis 전용 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W2 `7f39bfda`: `RateLimitPolicy`·`RateLimitAlgorithm`·`RateLimitEvaluationDedupPolicy`(+ 이들만 쓰는 `RateLimitFailurePolicy`)와 테스트 2개를 `cache-redis/.../ratelimit/`로 이동, 정책 검증 bounds는 `RateLimitPolicyBounds`(package-private). shared에는 `EdgeRateLimitPort`·`RateLimitRequest`·`RateLimitOutcome`·`RateLimitDecision`·`RateParameters`·subject 계열만 남음. `:shared-contract:check`·`:adapter:inbound:web:check` 통과 | - | 세 타입을 `adapter:outbound:cache-redis`로 이동(`EdgeRateLimitPort` 계열만 shared에 유지) |
|
||||
| S1-#15d | Consider | shared-contract CLAUDE.md 책임 목록이 패키지 일부만 설명 | 남음 | `shared-contract/CLAUDE.md:17-30`은 response·error·request·health·tracing만, 실제 패키지 15개(annotation·concurrency·headers·metrics·operation·registry·runtime·security·ratelimit·opstore 누락) | W5 | 책임 목록을 현재 패키지 기준으로 갱신 |
|
||||
| S1-#16 | Consider | 문서가 말하는 `application-core → domain-core` 의존이 빌드에 없음 | 완료 | Wave 3 W3-P16 (Wave 3 라운드 1 커밋): `src/application-core/build.gradle` `implementation project(':domain-core')` 복원(registry 허용 edge). `architectureCheck` PASS. 같은 행의 `NotificationIdGeneratorPort`·`UploadIdentifierFactory` → `IdFactory` 정리는 application-notification/fileserver·persistence-jpa·composition을 바꾸는 작업이라 하지 않음(P16-new-5) | - | `application-core/build.gradle`에 `implementation project(':domain-core')` 복원, `NotificationIdGeneratorPort`·`UploadIdentifierFactory`를 `IdFactory` 기반으로 정리 |
|
||||
| S1-#17a | Consider | objectstorage 식별자 클래스 6개·가드 2개 복사 | 완료 | Wave 3 W3-P24 (Wave 3 라운드 2 커밋): `7a21c6e7`. `ObjectId`·`ObjectReference`·`ObjectStageHandle`·`ObjectVersionToken`을 compact constructor + `toString`(redacted) record로(`identity/ObjectId.java:4`). `DirectTransferSessionId`·`PartReceiptToken`은 D-7a에서 이미 삭제. 가드는 `ObjectModelSupport.requireBoundedToken`(`model/ObjectModelSupport.java:9`) 하나, `ObjectRequestSupport.boundedToken` 삭제. `:application-objectstorage:check`, control record 골든 digest(`ObjectControlRecordCodecTest`) PASS | - | 식별자를 record + `toString` 재정의로, 가드는 하나로 |
|
||||
@@ -839,16 +839,16 @@ Wave 3 라운드 1 결과로 받은 4건(2026-09-28, desktop):
|
||||
| S3-#1 | Required | httpclient blocking/reactive 병렬 스택이 이미 갈라짐 (= H-5, H-7) | 완료 | Wave 1–2 P11 (fcddab7e·Wave 2 커밋): D 커밋 `06764fcb`에서 reactive 스택(WebClient·Reactor Netty)과 webflux·reactor·reactor-netty·reactor-test·blockhound 의존 삭제. blocking(RestClient) 경로 하나만 남음. `clients[N].api` 설정 키·`ClientApiType`·`TransportType.REACTOR_NETTY` 삭제, env-fields.yaml 행 삭제, lockfile 재생성(httpclient·app-bootstrap). Jetty HTTP/3 실험 transport는 reactive SPI에 묶여 있어 blocking SPI(`JettyClientHttpRequestFactory`)로 옮김(자동 조립 안 됨은 그대로) `HC/http3/JettyHttp3TransportProvider.java:49` | - | 결정(2026-09-25): D4를 outbound에도 적용 — httpclient reactive(WebClient·Reactor Netty) 스택과 webflux·reactor 의존 삭제 |
|
||||
| S3-#2a | Required | reactive streaming 요청이 admission·deadline·credential 없이 나감 | 해당 없음(코드 삭제) | Wave 1–2 P11 (fcddab7e·Wave 2 커밋): D `06764fcb`에서 `webclient/ReactiveStreamingGateway` 삭제. blocking 스트리밍은 deadline·credential·admission 적용 `HC/restclient/BlockingStreamingGateway.java:69,82,106` | - | S3-#1에서 reactive를 지우면 함께 삭제, 유지하면 blocking과 같은 credential·admission·deadline 단계 적용 + 동작 테스트 |
|
||||
| S3-#2b | Required | 진입점 6개가 호출 파이프라인을 각자 조립 | 완료 | Wave 3 W3-P26 (Wave 3 라운드 2 커밋): `CallSetup.prepare(lease, operation)`이 blocking runtime·metadata·target policy·deadline(+guard)을 준비하고 `admit()`·`credentials()`·`credentialRequest()` 제공(`HC/restclient/CallSetup.java:49,79`). generic(`DefaultGenericHttpGateway.java:69`)과 streaming(`BlockingStreamingGateway.java:50`) 진입점이 사용. Dynamic Target은 target 준비(SSRF 핀)가 달라 `CallSetup.guardedDeadline`과 admission permit만 공유(`dynamic/DefaultDynamicTargetGateway.java:104`) — 이 과정에서 P26-new-1 발견·수정. reactive 진입점 3개는 결정 9로 이미 삭제. service(H1)는 generic gateway를 경유 | - | `CallSetup.prepare(lease, operation)`이 metadata/prepared/deadline/admission/credentials 반환, 진입점은 전송만 다르게 |
|
||||
| S3-#3a | Required | 118개 메서드 `RedisCommandGateway`, runtime이 SDK 개념에 역의존 (= G-7) | 남음 | `redis-runtime/.../lettuce/operations/RedisCommandGateway.java`(1,227줄, 메서드 118), `:1107-1134` `sendApprovedRaw/sendAdminDiagnostic/sendExtension`, `lettuce/connection/RedisConnectionKind.java:25-33` BLOCKING·TRANSACTION·PUBSUB lane, `:64` `forCommand(RedisCommandDescriptor)` | W3 | runtime 계약은 semantic adapter가 쓰는 8개(`SemanticRedisCommands`)로, 나머지는 redis-sdk 확장 인터페이스로 이동(redis-sdk 유지 결정 반영), lane은 REGULAR·SCRIPT만 |
|
||||
| S3-#3b | Required | runtime이 `Sdk` 이름·`...redis.sdk` 패키지를 쓰고 redis-sdk와 split package | 남음 | `redis-runtime/.../sdk/config/RedisSdkSettings.java`(670줄), `RedisSdkAutoConfiguration.java`, redis-runtime·redis-sdk 공유 패키지 9개 | W3 | `RedisRuntimeSettings`로 개명, runtime 패키지를 `...redis.runtime.*`로, SDK 전용 설정 섹션은 redis-sdk로 |
|
||||
| S3-#3a | Required | 118개 메서드 `RedisCommandGateway`, runtime이 SDK 개념에 역의존 (= G-7) | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): = G-7a·G-7c. runtime 계약 8개, 나머지는 SDK 확장 인터페이스, lane은 REGULAR·SCRIPT, `forCommand(RedisCommandDescriptor)`는 SDK `RedisSdkLane.forCommand`로 | - | runtime 계약은 semantic adapter가 쓰는 8개(`SemanticRedisCommands`)로, 나머지는 redis-sdk 확장 인터페이스로 이동(redis-sdk 유지 결정 반영), lane은 REGULAR·SCRIPT만 |
|
||||
| S3-#3b | Required | runtime이 `Sdk` 이름·`...redis.sdk` 패키지를 쓰고 redis-sdk와 split package | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): = G-7d. `RedisSdkSettings`→`RedisRuntimeSettings`, `RedisSdkAutoConfiguration`→`RedisRuntimeAutoConfiguration`, SDK 전용 섹션(blocking·transaction·admin)은 runtime 설정에서 빠지고 SDK 코드 설정으로. `RedisRuntimePackageBoundaryTest.noRuntimeTypeIsNamedAfterTheSdk` | - | `RedisRuntimeSettings`로 개명, runtime 패키지를 `...redis.runtime.*`로, SDK 전용 설정 섹션은 redis-sdk로 |
|
||||
| S3-#4a | Required | cache-redis에서 "안 보냄/보냈는지 모름" 구분을 rate-limit만 함 | 완료 | Wave 1–2 P6 (fcddab7e·Wave 2 커밋): 멱등성·lease는 NEW-5c 수정. cache는 현황표 근거("lane 거절도 Indeterminate")가 사실과 다름: cache는 이미 lane 거절을 `DEGRADED_UNAVAILABLE`(=안 보냄)로 돌려준다. 빠진 쪽은 반대 방향이었다 — 보낸 뒤 응답을 잃은 쓰기도 `DEGRADED_UNAVAILABLE`였다. `RedisCacheRegionAdapter.java:241,294,314,328`에 `sent` 플래그를 두어 쓰기 명령을 보낸 뒤의 실패는 `INDETERMINATE`, 그 전(lane 거절·연결·generation 조회)은 `DEGRADED_UNAVAILABLE`. 테스트 `RedisCacheRegionAdapterTest.aWriteWhoseReplyWasLostIsIndeterminate`/`anInvalidationWhoseReplyWasLostIsIndeterminate`/`aRegionInvalidationWhoseReplyWasLostIsIndeterminate` FAIL(`expected: INDETERMINATE but was: DEGRADED_UNAVAILABLE`)→PASS, 가드 `aWriteThatFailedBeforeItsSetWasSentDegrades` PASS | - | 멱등성·lease·cache의 실패 분류에 `metadata().ambiguousExecution()`로 NOT_SENT/AMBIGUOUS 구분 추가 |
|
||||
| S3-#4b | Required | "lease 빌림 → `.get(timeout)` → 예외 처리" 틀 복사, Lua 응답 디코더 3벌 | 남음 | `catch (InterruptedException` 16곳(멱등성 6·lease 4·cache 4·rate-limit 1·probe 1), 디코더 `idempotency/IdempotencyScripts.java:273`, `lease/LeaseScripts.java:162`, `ratelimit/RateLimitScripts.java:280` | W3 | `SemanticRedisCall.run(...)` 공통 틀 + 응답 디코딩을 등록 스크립트 쪽 한 곳으로 |
|
||||
| S3-#5 | Consider | `RedisIdempotencyStoreAdapter.transition` 인자 14~15개, 상태 문자열 switch 반복 | 남음 | `cache-redis/.../idempotency/RedisIdempotencyStoreAdapter.java:164-180`(`transition` 호출 14개 인자), `:137-157` 등 문자열 switch | W3 | `IdempotencyScripts.Reply`에서 `enum ScriptStatus`로 한 번 파싱, 호출부는 `Map<ScriptStatus,O>` |
|
||||
| S3-#4b | Required | "lease 빌림 → `.get(timeout)` → 예외 처리" 틀 복사, Lua 응답 디코더 3벌 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`: `cache-redis/.../SemanticRedisCall.java:35` — 빌림·bounded wait·not-sent/unknown 판정 한 곳(`effect`: 스크립트, `run`+`markSent`: cache). 네 어댑터의 `catch (InterruptedException` 15곳이 사라지고 cache-redis main에는 `SemanticRedisCall`과 시작 probe만 남음. Lua 응답 디코딩은 `RegisteredLuaScript.number/text/requireShape`. 기존 어댑터 테스트(`RedisIdempotencyStoreAdapterTest`·`RedisDistributedLeaseAdapterTest`·`RedisEdgeRateLimitAdapterTest`·`RedisCacheRegionAdapterTest`)와 live `LiveRedisSemanticPortsTest` 10건 통과 | - | `SemanticRedisCall.run(...)` 공통 틀 + 응답 디코딩을 등록 스크립트 쪽 한 곳으로 |
|
||||
| S3-#5 | Consider | `RedisIdempotencyStoreAdapter.transition` 인자 14~15개, 상태 문자열 switch 반복 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`: `IdempotencyScripts.ScriptStatus`(`IdempotencyScripts.java:228`)로 한 번 파싱, switch는 enum, `transition(...)`은 `Transition` record + `Map<ScriptStatus, O>`(`RedisIdempotencyStoreAdapter.java:428`) — 인자 16개→7개 | - | `IdempotencyScripts.Reply`에서 `enum ScriptStatus`로 한 번 파싱, 호출부는 `Map<ScriptStatus,O>` |
|
||||
| S3-#6 | Consider | 대체 불가능한 확장 지점(`HttpClientTagPolicy` bean) | 완료 | Wave 3 W3-P26 (Wave 3 라운드 2 커밋): `HttpClientObservationAutoConfiguration`의 `HttpClientTagPolicy` bean 삭제(소비처 0, private 생성자라 override 불가). `BlockingExecutionSupport` → `ExecutionSupport` 개명(`HC/restclient/ExecutionSupport.java`, bean `httpClientExecutionSupport` `HttpClientObservationAutoConfiguration.java:24`). 커밋 `93251e76` | - | bean 삭제, `BlockingExecutionSupport`는 `ExecutionSupport`로 개명 |
|
||||
| S3-#7 | Consider | 구현 1개짜리 인터페이스 4개 | 완료 | Wave 3 W3-P26 (Wave 3 라운드 2 커밋): 삭제: `RetryCoordinator` 인터페이스(구현 `BlockingRetryCoordinator`를 `RetryCoordinator`로 개명, `HC/resilience/RetryCoordinator.java:20`, 테스트 `RetryCoordinatorTest`), `ExecutionEvidenceClassifier` 인터페이스(`DefaultExecutionEvidenceClassifier`를 그 이름으로, `HC/resilience/ExecutionEvidenceClassifier.java:12`). 유지(근거): `RetryEligibilityEngine` — `DefaultGenericHttpGatewayTest:287,311`이 lambda fake를 넣고 `TestGateways.forProfile(.., RetryEligibilityEngine)`이 교체 지점; `BackoffStrategy` — `RetryCoordinatorTest.ambiguousOutcomeIsRaisedRatherThanRetried`·`exhaustedBudgetStopsRetryingImmediately`가 `(a, r, d) -> Duration.ZERO` fake를 씀(삭제 시도 시 컴파일 실패로 확인) | - | 인터페이스 삭제, 구현체를 인터페이스 이름으로 개명 |
|
||||
| S3-#8a | Consider | `BoundedErrorBody`·`spring7/*`·`migration/*` 도달 불가 | 해당 없음(코드 삭제) | 「제거된 코드」 httpclient `BoundedErrorBody`, Spring 7 service group·`RestTemplate` 이행 패키지 행 | - | - |
|
||||
| S3-#8b | Consider | `MultipartReplayability`·`SafeHttpLogEvent`는 테스트만 참조 | 완료 | Wave 3 W3-P26 (Wave 3 라운드 2 커밋): `SafeHttpLogEvent`와 전용 테스트 메서드 `HttpClientTagPolicyTest.safeLogEventCarriesNoSecretOrExpandedUrl` 삭제. `MultipartReplayability`는 결정 9 reactive 삭제(`6d27356e` 이전 커밋)로 이미 없음. http3 유지 | - | 두 클래스와 전용 테스트 삭제(http3는 유지) |
|
||||
| S3-#9 | Consider | `RedisTopologyClientFactory` 662줄 역할 과다 | 남음 | `redis-runtime/.../lettuce/connection/RedisTopologyClientFactory.java` 662줄(변화 없음) | W3 | `RuntimeClient` 구현 3개·`SharedClientResources`를 package-private top-level 클래스로 이동 |
|
||||
| S3-#9 | Consider | `RedisTopologyClientFactory` 662줄 역할 과다 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W1 `bd0e0bc6`: `RedisTopologyClientFactory` 662→371줄. `StandaloneRuntimeClient`·`ClusterRuntimeClient`·`AccountRoutingRuntimeClient`·`SharedClientResources`·`LaneConnection`·`ShutdownBudget`를 package-private top-level로 | - | `RuntimeClient` 구현 3개·`SharedClientResources`를 package-private top-level 클래스로 이동 |
|
||||
| S3-#10 | Consider | settings → profile 필드 단위 복사, `valueOf(toUpperCase())` 반복 | 완료 | Wave 3 W3-P26 (Wave 3 라운드 2 커밋): `HttpClientPlatformSettings`의 enum 필드 7개(`mode`·`transport`·`protocols`·`authentication.type`·`retry.jitter`·`retry.retryAfter`·`proxy.type`)를 enum 타입으로 선언(`HC/autoconfigure/HttpClientPlatformSettings.java:127,131,134,212,225,226,255`), binder가 대소문자 변환. `HttpClientProfileFactory`의 `valueOf(toUpperCase())` 7곳 삭제, 복사 구조 유지. 동작 보존 리팩터라 새 FAIL 테스트 없음 — 기존 `HttpClientPlatformEnvManifestTest`·`UnsafeStartupConfigurationTest`(`SIMPLE`·`HTTP_3`)·`HttpClientPlatformActivationTest.detailSettingsAreNotBoundWhileTheCapabilityIsOff`(`NOT_A_TRANSPORT`) 통과. prefix·strict 바인딩(3-B, S3-lead-2)은 건드리지 않음 | - | settings 필드를 enum 타입으로 선언(binder가 대소문자 변환), 복사 구조는 유지 |
|
||||
| S3-#11 | Nit | 이력 서술 주석·inline FQN | 남음 | 재측정 "used to/no longer": httpclient 27·redis-runtime 6·redis-sdk 9·cache-redis 7줄, `cache-redis/.../capability/RedisCapabilityConfig.java:30-32` "376 lines … (BOOT-007)", httpclient inline FQN 약 91줄 | W5 | 불변 조건만 남기고 이력은 git/ADR로, FQN은 import로(`HttpMethod`/`HttpStatus` 충돌만 예외) |
|
||||
| S3-#12a | Nit | `CacheKeys`가 가변 generation 상태 보유, `KeyDigest`가 설정 패키지에 | 남음 | `cache-redis/.../cache/RedisCacheRegionAdapter.java:375,430`(`CacheKeys.observeGeneration`), `capability/RedisKeys.java:37` `KeyDigest` | W5 | `RegionGeneration` 분리, `KeyDigest`를 keyspace 패키지로 옮기고 `RedisNamespace.prefix()` 사용 |
|
||||
@@ -964,9 +964,9 @@ Wave 3 라운드 1 결과로 받은 4건(2026-09-28, desktop):
|
||||
| S6-#1c | Required | 조립되지 않는 websocket 플랫폼 라이브러리 약 9.7k줄 | 완료 | main 12,954 → 1,557줄(`stomp/` 491, `servlet`·`outbound`·`budget`·`core`·`protocol` 1,066). 나머지 패키지 삭제(`CS:185,187`). 남긴 라이브러리는 Wave 3 결정대로 README에 라이브러리 API로 명시(`src/adapter/inbound/websocket/README.md:6-13,56`), `6d27356e` | - | - |
|
||||
| S6-#2a | Required | capability 의존 규칙이 6곳(CDV, DSR, `RedisActivationValidator`, ORBRV, `MasterSwitch`, endpoint)에 흩어짐 (= L-6) | 해당 없음(코드 삭제) | `CS:237`(DSR), `CS:241`(ORBRV), `CS:248`(`MasterSwitch`), `CS:249`(CDV·endpoint), `CS:252`(RAV). capability 의존은 build 줄로 표현(`src/app-bootstrap/build.gradle:139-153`) | - | - |
|
||||
| S6-#2b | Required | `ca-skeleton.outbox.relay-enabled` 없을 때 기본값 해석이 여전히 갈림 | 완료 | Wave 1–2 P1 (fcddab7e·Wave 2 커밋): 기본값 불일치만 수정(조립 위치 이동은 X1-#1i, Wave 3 3-C). `OutboxSettingsTest.bindsAllSixDefaultsWhenFieldsAreNull` FAIL("Expecting value to be false but was true") → PASS, `OutboxConfigTest.withoutTheRelayKeyTheRelaySchedulerIsNotAssembled` FAIL(scheduler 조립됨) → PASS. `matchIfMissing` 삭제(`src/app-bootstrap/src/main/java/dev/caskeleton/bootstrap/autoconfigure/outbox/OutboxConfig.java:69`), null 기본값 false(`OutboxSettings.java:37`), `src/app-bootstrap/README.md` 문구 | - | relay 조립을 `composition:*` 모듈로 옮길 때(소유자 결정) 기본값을 `false` 하나로: `matchIfMissing` 삭제, `OutboxSettings` null 기본값을 `false`로 |
|
||||
| S6-#2c | Required | Redis 역할 표 2벌, bootstrap이 Redis 역할별 prod secret 규칙을 앎 | 남음 | `RedisCorrectnessRoles.java:32-37`(redis-runtime) vs `BS/runtime/SecretSourceValidator.java:137-158`(prefix 분기) + 모듈 키 사본 `REDIS_ENABLED_PROPERTY`(`:31`), secret 목록 `:38-48` | W3 | Redis secret 요구 판정을 cache-redis 모듈로 옮기고 `RedisCorrectnessRoles` 표에서 파생; `SecretSourceValidator`는 모듈이 기여한 필요 secret 목록만 검사 |
|
||||
| S6-#2c | Required | Redis 역할 표 2벌, bootstrap이 Redis 역할별 prod secret 규칙을 앎 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W2 `7f39bfda`: Redis 역할별 secret 판정은 `cache-redis/.../capability/RedisProductionSecrets.java`가 `RedisCorrectnessRoleSelectors.ROLES`(역할·selector·required·scripted·secret 한 표)에서 파생해 `support.startup.RequiredProductionSecrets` 빈으로 기여(Redis가 켜졌을 때만 존재). `SecretSourceValidator`는 `REQUIRED_PROD_SECRETS`(datasource·pseudonymization salt) + 모듈 기여 목록만 검사하고 `REDIS_ENABLED_PROPERTY`·역할 prefix 분기 삭제. 레지스트리 `secrets-classification.yaml`의 Redis secret 8행에 `required_when`. 테스트 `RedisProductionSecretsTest`(역할별 5 + 비선택 2), `SecretSourceValidatorTest.aSecretAModuleContributedIsRequiredInProd` 외 2건, `SecretsClassificationRegistryTest` 통과 | - | Redis secret 요구 판정을 cache-redis 모듈로 옮기고 `RedisCorrectnessRoles` 표에서 파생; `SecretSourceValidator`는 모듈이 기여한 필요 secret 목록만 검사 |
|
||||
| S6-#2d | Required | `capabilities.idempotency.provider` 기본값이 `disabled`/`jdbc`로 갈림 | 완료 | 모두 `disabled`: `BS/runtime/SecretSourceValidator.java:151`, `BS/autoconfigure/idempotency/IdempotencyProviderSelectionConfig.java:34`, `SP/bootstrap/idempotency/SampleIdempotencyConfig.java:34`; `jdbc` 값 main 0건, `6d27356e` | - | - |
|
||||
| S6-#3a | Required | startup validator가 3 lifecycle·여러 패키지에 흩어짐, `StartupRule` 목록 없음 | 남음 | 19 → 16개: bootstrap 7(`BS/runtime/*Validator` 5, `OutboxCanonicalTransportRequirementValidator`, `TracingSamplingEnvironmentPostProcessor`), persistence-jpa 8(`JS/*Validator` 7, `JpaActivationEnvironmentPostProcessor`), cache-redis 1(`RedisReadinessGroupPostProcessor`). EPP 4, `InitializingBean` 1, `SmartInitializingSingleton` 11. `StartupRule` 타입 없음 | W3 | 모듈마다 `StartupRule { List<String> violations(Environment) }` 목록 + runner 1개; bean이 필요한 검사만 bean으로 |
|
||||
| S6-#3a | Required | startup validator가 3 lifecycle·여러 패키지에 흩어짐, `StartupRule` 목록 없음 | 완료 | Wave 3 W3-P22 (Wave 3 라운드 3 커밋): P22 W2 `7f39bfda`: `support.startup.StartupRule { phase(); summary(); remedy(); List<String> violations(Environment) }` + 러너 하나 `StartupRuleRunner`(`StartupRuleAutoConfiguration`, support `AutoConfiguration.imports`). 환경만 읽는 검사 8개를 규칙으로: bootstrap `RuntimeNumericBoundsValidator`·`ErrorDetailExposureSafetyValidator`, persistence-jpa `RequiredEnvironmentValidator`·`FlywayProdSafetyValidator`·`OpenInViewSafetyValidator`·`PostgreSqlTransportSecurityValidator`·`PersistenceVendorProdSafetyValidator`·`HikariPoolConstraintValidator`. phase·종료 코드와 위반 문구는 유지(메시지 앞머리에 규칙 summary가 붙는 형태만 통일). bean이 필요한 검사(`SecretSourceValidator`, `StartupSafetyValidator`, `JpaDataSourceProfileValidator`, `JpaDangerousConfigurationGuard`)는 bean으로 유지, 부팅 전 EPP(`RuntimeEnvironmentProfileValidator`, `JpaActivationEnvironmentPostProcessor`, `TracingSamplingEnvironmentPostProcessor`, `RedisReadinessGroupPostProcessor`)는 EPP로 유지. `StartupRuleRunnerTest` 3건, 기존 검증기 테스트 전부 통과 | - | 모듈마다 `StartupRule { List<String> violations(Environment) }` 목록 + runner 1개; bean이 필요한 검사만 bean으로 |
|
||||
| S6-#3b | Required | OSIV 검사 2벌, 뒤 검사의 local 예외는 죽은 코드 | 완료 | Wave 1–2 P9 (fcddab7e·Wave 2 커밋): 행동 보존 정리(FAIL→PASS 대상 아님): `OpenInViewSafetyValidator`(모든 profile 거부)를 정본으로 두고 `JpaDangerousConfigurationGuard`의 OSIV 분기·`OPEN_IN_VIEW_KEY` 삭제(`.../startup/JpaDangerousConfigurationGuard.java`), `JpaPlatformReport`는 validator 상수 사용. `OpenInViewSafetyValidatorTest.openInViewTrueFailsStartupUnderALocalConvenienceProfileToo` 추가(수정 전후 모두 PASS = guard의 local 예외가 죽은 코드였다는 증거). guard 테스트는 ddl-auto만 검사하도록 재작성. 학습 문서 `docs/study/postgresql-jpa-walkthrough.ko.md` 표 갱신 | - | 하나로: local 예외를 정책으로 쓸지 정해 `OpenInViewSafetyValidator`를 삭제하거나 guard의 OSIV 분기를 삭제 |
|
||||
| S6-#3c | Required | ddl-auto 검사 2벌 | 완료 | Wave 3 W3-P26 (Wave 3 라운드 2 커밋): `JpaSchemaSafetyValidator`(+테스트) 삭제, `JpaDangerousConfigurationGuard`가 유일한 ddl-auto 검사. 기존 validator 테스트의 성질(prod 거부·blank 거부·대소문자·local 허용·`APP_DATASOURCE_DDL_AUTO` 명시·`PROFILE_MISMATCH`)을 guard 테스트로 옮김. `JpaDangerousConfigurationGuardTest.productionRefusesASchemaMutatingDdlAutoAsAProfileMismatchNamingTheEnvironmentKey` 등 10건 FAIL(guard가 `IllegalStateException`을 던짐)→PASS. `persistence-jpa/.../startup/JpaDangerousConfigurationGuard.java:46-66`. README 3곳 갱신 | - | guard 한 곳으로 합치고 `JpaSchemaSafetyValidator` 삭제 |
|
||||
| S6-#3d | Required | `isProdActive()` 5곳 복사 | 완료 | Wave 3 W3-P26 (Wave 3 라운드 2 커밋): 1줄 wrapper 삭제, 호출부에서 `RuntimeProfileSnapshot.from(environment).isProduction()` 직접 호출: `FlywayProdSafetyValidator`, `PersistenceVendorProdSafetyValidator`, `PostgreSqlTransportSecurityValidator`, `bootstrap/runtime/SecretSourceValidator`. `JpaSchemaSafetyValidator` 몫은 S6-#3c 삭제로 해소. `shared-contract` `RuntimeEnvironment.isProductionActive` 문서의 "isProdActive() copies" 언급은 역사 설명이라 유지. 동작 동일, 기존 테스트 통과 | - | 1줄 wrapper 삭제하고 호출부에서 직접 호출(S6-#3a와 함께) |
|
||||
@@ -1212,3 +1212,7 @@ Wave 1–2 구현 묶음(`P1`–`P13`)이 작업 중 찾은 결함과 통합 검
|
||||
| P21-new-1 | 발견 | handler가 `Retry`를 답하면 Kafka consumer가 시도 횟수를 세지 않아 partition이 영구히 멈췄다. | 완료 | Wave 3 P21: 예외와 같은 시도 예산·격리 사용 | - | - |
|
||||
| P21-new-2 | 발견 | 다시 읽은 delivery가 항상 `deliveryAttempt=1`을 보고했다. | 완료 | Wave 3 P21 | - | - |
|
||||
| P21-new-3 | 발견 | `src/messaging/CLAUDE.md`가 `MessagingPublicSurfaceContractTest`를 인용 — 테스트는 app-bootstrap에 있다(P21은 없다고 보고). 통합 때 이 테스트가 P21 변경(reactive facade 삭제, leaf 병합, starter-kafka 공개 consumer seam)을 반영하지 못해 실패 → 기대값 수정, starter-kafka에 `api kafka-clients` 선언. | 남음 | Wave 3 라운드 3 통합 | W5 | messaging CLAUDE.md의 테스트 위치 문구를 app-bootstrap 경로로 |
|
||||
| P22-new-1 | 발견 | bootstrap `SecretSourceValidator`가 persistence-jpa의 모듈 스위치를 읽어 `APP_DATASOURCE_PASSWORD` 필요 여부를 판정(모듈 지식이 bootstrap에). | 남음 | Wave 3 P22 결과 파일 | W3 | Redis처럼 persistence-jpa가 secret 요구를 기여. P20 |
|
||||
| P22-new-2 | 발견 | `infra/redis-sdk/acl/application.acl`·`all-accounts.acl`이 pub/sub 삭제 뒤에도 `+@pubsub`·`&prod:*`를 준다(최소 권한 위반, fixture). | 남음 | Wave 3 P22 결과 파일 | W3 | ACL fixture에서 제거 후 topology lane 재실행. P20 |
|
||||
| P22-new-3 | 발견 | redis-sdk 공개 API가 runtime 타입을 노출하면서 runtime을 `implementation`으로만 의존. `ca.spring-library`에 `api` 구성이 없어 한 줄로 못 고침. | 남음 | Wave 3 P22 결과 파일, 통합 때 시도 | W3 | 컨벤션에 `java-library` 적용 또는 공개 표면에서 runtime 타입 제거. P29 |
|
||||
| ORCH-new-4 | 발견 | redis-sdk `RedisSdkModuleBoundaryTest`·`RedisSupportMatrixTest`가 옛 split package(`redis-runtime/.../redis/sdk`)를 훑음 — P22 worktree에서 통과, main 통합에서 `NoSuchFileException`(ORCH-new-2와 같은 유형: 저장소 파일을 읽지만 test inputs 미선언). | 남음 | 경로는 통합 때 수정(`redis-sdk` 하나) | W4 | 읽는 파일을 test `inputs`로 선언 |
|
||||
|
||||
@@ -229,8 +229,8 @@ W1·W2 잔여 21행(Wave 2.5)은 P14로 1라운드에서 함께 처리한다. W1
|
||||
| P23 | 3 | notification: SES → sesv2(결정 17), `persistence-notification` 추출, SRP | `S1-#4` `S1-#9` `S1-#10b` `S2-#1b` `S2-#6c` `S2-#8a` `S2-#13b` `S4-#3c` `S4-#4b` `S4-#9` `S4-#14b` `S4-#15` `S4-lead-3` `S4-lead-5` |
|
||||
| P27 | 3 | 빌드 잔여(결정 28·29·31): O3-5 나머지(`ca.release-provenance`·auxiliary → `jvm-test-suite`), messaging 카드 검증 leaf 테스트로, cosign 서명, `INTERNAL_ERROR` retryable=false, persistence-fileserver `ca.api-surface` | `BUILD-결론-1` `BUILD-O3-5` `X1-#7a` `X1-지도-readiness…` `BUILD-계획-C` `P15-new-3` `P16-new-6` |
|
||||
| P28 | 3 | 로컬 보안 파일시스템 primitive 공용화(보안 민감 재작성, P24에서 분리) + fileserver 잔여 | `S4-lead-2` `P24-new-2` `P25-new-2` `P24-new-3` `S6-#10a` `S1-#6b` `S1-#18b`(결정 32) `S2-#8a` `S2-#13b` `P23-new-1` `P23-new-2` |
|
||||
| P29 | 4 | 빌드 잔여 2: auxiliary 레인 → Gradle `jvm-test-suite`(P27 중단분, WIP 패치 보관), build-logic 줄 수 판정 | `BUILD-O3-5` `BUILD-결론-1` |
|
||||
| P20 | 4 | 3-B 설정 prefix `app.*`(결정 16), strict 바인딩 | `X2-P1-3c` `S3-lead-2` `S3-lead-4` `S6-#14` `P11-new-1` |
|
||||
| P29 | 4 | 빌드 잔여 2: auxiliary 레인 → Gradle `jvm-test-suite`(P27 중단분, WIP 패치 보관), build-logic 줄 수 판정 | `BUILD-O3-5` `BUILD-결론-1` `P22-new-3` |
|
||||
| P20 | 4 | 3-B 설정 prefix `app.*`(결정 16), strict 바인딩 | `X2-P1-3c` `S3-lead-2` `S3-lead-4` `S6-#14` `P11-new-1` `P22-new-1` `P22-new-2` |
|
||||
|
||||
- [x] 라운드 1: P14 · P15 · P16 · P17 → 통합·검증·커밋 (2026-09-28, `9fdb0af4`·`c4a066df`·라운드 1 마무리 커밋)
|
||||
- [x] 라운드 2: P18 · P24 · P25 · P26 → 통합·검증·커밋 (2026-09-28~29, `4fb7943b`·`64a83918`·`25de288a`·`423a29c4`)
|
||||
|
||||
Reference in New Issue
Block a user