refactor(repo)!: 들여온 플랫폼을 src/platforms 아래로 묶는다
문제: src/ 최상위에 계층 폴더와 들여온 제품 폴더(messaging, grpc,
grpc-advanced)와 optional 빌드 폴더(optional-platforms)가 같은 높이로
놓여, 무엇이 이 애플리케이션의 계층인지 폴더만으로 안 보인다.
src/config/에는 빌드 전체 설정과 기능 하나가 주인인 데이터(jpa,
messaging, mongodb)가 섞여 있다.
고른 방법(소유자 결정 2026-11-07, 설계 가-1):
- git mv로 src/platforms/{messaging,grpc,grpc-advanced,optional-build}.
registry source_path 28행만 바꾸고 Gradle 경로(:messaging:*, :grpc:*)는
그대로다. optional 빌드의 이름(optional-platforms)도 그대로다.
- optional 빌드가 한 단계 깊어져, build-logic이 "optional 빌드의 부모 =
주 빌드"로 가정한 네 곳(registry settings, ArchitecturePlugin, 테스트
이미지 catalog, checkstyle·spotbugs 설정)을 MainBuild(위로 올라가며
registry·설정 파일을 찾음)로 바꾼다.
- settings.gradle·build.gradle의 상대 경로, workflow의 -p 값과 경로,
buf 작업 폴더를 고친다. buf breaking은 이동 전 baseline에서도 옛
경로로 비교해 이동 PR에서 건너뛰지 않는다.
- config/jpa, config/messaging, config/mongodb의 데이터를 주인 leaf의
release/로 옮기고 읽는 빌드 줄·테스트·스크립트·문서를 고친다.
- 루트 CLAUDE.md 5절에 최상위 폴더 지도를 한 줄로 적는다.
버린 대안: Gradle 루트를 저장소 루트로(가-3, CI 재편 때 다시 봄),
application-* 묶기(가-2, 파생 서비스 충돌이 큼).
위험·한계: Gradle 문서의 "이름 = 위치" 권고와 한 단계 어긋난다
(:messaging:x가 platforms/messaging/x). 옮긴 폴더를 고쳐 쓰던 파생
서비스는 이름 바뀜 충돌이 날 수 있다(B-52). docs/capability-status.md
「제거된 코드」 표와 docs/work/evidence.md의 옛 경로는 이력이라 두었다.
검증(desktop, 트리 2b3354a4, ~/t1-layout-logs/):
- ./gradlew :ci :verifyDependencyLocks --warning-mode=fail --continue
첫 실행 rc=1: MessagingAuthorityContractTest가 src/messaging을 찾아 실패
→ 경로를 고침. 두 번째 rc=1: messaging-policy
MessagingAdmissionControllerTest.aWaitingCallerIsAdmittedOnceAPermitIsReturned
(2초 대기 경쟁, 부하 7.3에서 한 번 실패, 코드 변경 없는 leaf) → --rerun
3회 모두 통과. 세 번째 rc=0
- -p platforms/optional-build ci rc=0, 두 빌드의 verifyStrictLaneStages
--dry-run rc=0, -p build-logic check rc=0
- :app-bootstrap:documentContractTest
:adapter:outbound:persistence-mongo:mongoDocumentContractTest rc=0
- ./gradlew projects(주 빌드)와 optional 빌드 projects의 프로젝트 목록이
이동 전 트리와 같다(Gradle 경로 불변)
- check-work-docs.py, 상대 링크 검사 rc=0
Refs: design-docs repo-structure/README.md 3.1, repo-structure/01-backend-layout.md 6.1
BREAKING CHANGE: src/messaging·src/grpc·src/grpc-advanced·src/optional-platforms가 src/platforms/ 아래로, src/config/{jpa,messaging,mongodb}가 주인 leaf의 release/로 옮겨졌다. optional 빌드는 -p platforms/optional-build로 부른다. docs/upgrade/2026-11-maturity-review.md B-52.
This commit is contained in:
@@ -473,12 +473,12 @@ app-bootstrap 은 합성 루트라 "왜 이 의존성이, 왜 이 scope 로" 결
|
||||
- **`spring-security-test`** — `@WithMockUser`로 actuator 보안 인가(permit-all 프로브 / 인증 필요한
|
||||
링크 / 노출 안 한 loggers)를 검증한다.
|
||||
- **`snakeyaml`** — `docs/registries/*.yaml` 같은 checked-in YAML 레지스트리를 contract 테스트가
|
||||
읽는다. `config/messaging/*.yaml` 카드 검증(`MessagingCapabilityRegistryContractTest`)은 소유자
|
||||
읽는다. `adapter/outbound/messaging/release/*.yaml` 카드 검증(`MessagingCapabilityRegistryContractTest`)은 소유자
|
||||
결정 29로 `adapter:outbound:messaging` 테스트로 옮겼다.
|
||||
|
||||
### Messaging qualification scaffold
|
||||
|
||||
`config/messaging/`은 first polling-producer tuple의 machine-readable 계획 truth만 보관한다.
|
||||
`adapter/outbound/messaging/release/`는 first polling-producer tuple의 machine-readable 계획 truth만 보관한다.
|
||||
현재 card 11개는 모두 `maturity: not-implemented`, `evidenceFingerprint: ""`이고 consumer,
|
||||
CDC, EOS, schema-registry 확장 row는 없다. `verifyMessagingContracts`는 application-core·
|
||||
shared-contract의 exact qualification test를 실행하고 `contracts-schema/manifest.json`을 쓴 뒤 그
|
||||
|
||||
@@ -183,7 +183,7 @@ dependencies {
|
||||
capabilityProjects.each { architectureTestRuntimeOnly project(it) }
|
||||
// What this import does NOT see: the optional-platforms build (`grpc:*`, `grpc-advanced:*`).
|
||||
// It is a separate Gradle build, so its classes cannot be on this classpath; its registered
|
||||
// leaves are held by the Gradle direction gate (`-p optional-platforms ci` runs
|
||||
// leaves are held by the Gradle direction gate (`-p platforms/optional-build ci` runs
|
||||
// verifyCleanArchitectureDependencies), which is the whole of what the owner decided it needs.
|
||||
|
||||
// The capability integration lane selects Fileserver and object storage together, as a service
|
||||
@@ -349,6 +349,8 @@ def repositoryContractInputs = files(
|
||||
include 'config/**', '**/*.gradle', 'gradle/*.toml', 'Dockerfile*', '.env*', '**/src/main/**'
|
||||
// The compose lane fixtures this leaf owns (the lane contract, overlays, smoke clients).
|
||||
include 'app-bootstrap/compose-lanes/**'
|
||||
// The release data a capability leaf owns (readiness cards, release registries).
|
||||
include 'adapter/outbound/*/release/**'
|
||||
exclude '**/*.md'
|
||||
exclude repositoryContractExcludes
|
||||
})
|
||||
|
||||
+3
-3
@@ -371,19 +371,19 @@ class DeveloperExperienceContractTest {
|
||||
// and the dependency verifier, and none of those runs a lane whose category is INTEGRATION.
|
||||
// A lane nobody runs is not coverage, so both halves are pinned here — the aggregate that
|
||||
// covers the category, and the workflow that executes the aggregate.
|
||||
assertThat(read("src/optional-platforms/build.gradle"))
|
||||
assertThat(read("src/platforms/optional-build/build.gradle"))
|
||||
.as("the optional platform build must aggregate its integration-category lanes")
|
||||
.contains("tasks.register('integrationCheck')")
|
||||
.contains(":integrationTestLaneCheck");
|
||||
|
||||
assertThat(read("src/grpc/grpc-operation-ledger-jpa/build.gradle"))
|
||||
assertThat(read("src/platforms/grpc/grpc-operation-ledger-jpa/build.gradle"))
|
||||
.as("the operation ledger lane this contract protects must still be declared")
|
||||
.contains("lane('integrationTest')")
|
||||
.contains("integration()");
|
||||
|
||||
assertThat(read(".github/workflows/integration-main.yml"))
|
||||
.as("a workflow must actually execute the optional platform integration aggregate")
|
||||
.contains("./gradlew -p optional-platforms integrationCheck");
|
||||
.contains("./gradlew -p platforms/optional-build integrationCheck");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ class MessagingAuthorityContractTest {
|
||||
Pattern.compile("String PREFIX\\s*=\\s*\"app\\.messaging\"");
|
||||
|
||||
private static final List<ProductionSource> MESSAGING_SOURCES =
|
||||
loadSources("adapter/outbound/messaging", "messaging", "app-bootstrap");
|
||||
loadSources("adapter/outbound/messaging", "platforms/messaging", "app-bootstrap");
|
||||
private static final List<ProductionSource> CORE_SOURCES =
|
||||
loadSources("application-core", "domain-core");
|
||||
|
||||
|
||||
+3
-3
@@ -34,8 +34,8 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* <p>So the rule is one-directional and mechanical: a vendor library named in a public or protected
|
||||
* signature is declared {@code api}; one used only behind private members stays {@code
|
||||
* implementation}. {@code src/messaging/CLAUDE.md} states it as policy — this holds it to the
|
||||
* source so the two cannot drift.
|
||||
* implementation}. {@code src/platforms/messaging/CLAUDE.md} states it as policy — this holds it to
|
||||
* the source so the two cannot drift.
|
||||
*
|
||||
* <p>The libraries checked are the ones an adopter would otherwise have to reverse-engineer into
|
||||
* their own build: broker clients, codec libraries, the metrics registry, the reactive facade.
|
||||
@@ -345,7 +345,7 @@ class MessagingPublicSurfaceContractTest {
|
||||
}
|
||||
|
||||
private static List<Path> messagingLeaves() {
|
||||
Path family = repositoryRoot().resolve("src/messaging");
|
||||
Path family = repositoryRoot().resolve("src/platforms/messaging");
|
||||
try (Stream<Path> children = Files.list(family)) {
|
||||
return children
|
||||
.filter(Files::isDirectory)
|
||||
|
||||
+2
-1
@@ -66,7 +66,8 @@ class ReleaseManifestTaskExistenceTest {
|
||||
// Only the blocking set. experimental_contracts is explicitly not promoted and is never
|
||||
// aggregated into a release manifest, so a task it names is allowed not to exist yet.
|
||||
List<String> named =
|
||||
blockingTaskNamesIn(root.resolve("src/config/mongodb/release-contracts.json"));
|
||||
blockingTaskNamesIn(
|
||||
root.resolve("src/adapter/outbound/persistence-mongo/release/release-contracts.json"));
|
||||
List<String> registered =
|
||||
registeredTaskNamesIn(root.resolve("src/adapter/outbound/persistence-mongo/build.gradle"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user