From d927492ef42fecdc99792aad2cc437d1a4395fb9 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:18:38 +0000 Subject: [PATCH 01/10] forge: open work branch for runtime-role-matrix-live-20260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa --- ...260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/runtime-role-matrix-live-20260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa.md diff --git a/.forge/runtime-role-matrix-live-20260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa.md b/.forge/runtime-role-matrix-live-20260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa.md new file mode 100644 index 0000000..595ee5a --- /dev/null +++ b/.forge/runtime-role-matrix-live-20260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa.md @@ -0,0 +1,3 @@ +# runtime-role-matrix-live-20260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa + +Forge 이슈 작업 브랜치 `forge/runtime-role-matrix-live-20260714101723-v7-developer-001-attempt-1-run-e27e8d6f28aa`. From bf7772d6dfc0dd23279e8bb89a3068be47dd1a63 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:18:46 +0000 Subject: [PATCH 02/10] =?UTF-8?q?Developer=20=EC=97=AD=ED=95=A0=20Spring?= =?UTF-8?q?=20=EA=B3=A8=EA=B2=A9=20smoke=20(runtime-role-matrix-live-20260?= =?UTF-8?q?714101723-v7-developer-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8062b34 --- /dev/null +++ b/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.2.5 + + + com.example + developer-role-smoke + 1.0.0 + Developer Role Smoke Test + Spring Boot smoke application for Developer role + + 17 + + + + org.springframework.boot + spring-boot-starter + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + \ No newline at end of file From db7ead282ca34383ad82247d4482ed386b8b0eaf Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:18:47 +0000 Subject: [PATCH 03/10] =?UTF-8?q?Developer=20=EC=97=AD=ED=95=A0=20Spring?= =?UTF-8?q?=20=EA=B3=A8=EA=B2=A9=20smoke=20(runtime-role-matrix-live-20260?= =?UTF-8?q?714101723-v7-developer-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/developer/DeveloperApplication.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/java/com/example/developer/DeveloperApplication.java diff --git a/src/main/java/com/example/developer/DeveloperApplication.java b/src/main/java/com/example/developer/DeveloperApplication.java new file mode 100644 index 0000000..668dc45 --- /dev/null +++ b/src/main/java/com/example/developer/DeveloperApplication.java @@ -0,0 +1,12 @@ +package com.example.developer; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class DeveloperApplication { + + public static void main(String[] args) { + SpringApplication.run(DeveloperApplication.class, args); + } +} From 3ef86bf9bf0cd580136b1c3b758d1913c43dc335 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:18:48 +0000 Subject: [PATCH 04/10] =?UTF-8?q?Developer=20=EC=97=AD=ED=95=A0=20Spring?= =?UTF-8?q?=20=EA=B3=A8=EA=B2=A9=20smoke=20(runtime-role-matrix-live-20260?= =?UTF-8?q?714101723-v7-developer-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/developer/DeveloperService.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/java/com/example/developer/DeveloperService.java diff --git a/src/main/java/com/example/developer/DeveloperService.java b/src/main/java/com/example/developer/DeveloperService.java new file mode 100644 index 0000000..c0cb8f3 --- /dev/null +++ b/src/main/java/com/example/developer/DeveloperService.java @@ -0,0 +1,15 @@ +package com.example.developer; + +import org.springframework.stereotype.Service; + +@Service +public class DeveloperService { + + public String getRole() { + return "Developer"; + } + + public boolean isValidRole(String role) { + return "Developer".equals(role); + } +} From bd8b77feacf0418eae291d6a27f7627987481ffa Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:18:49 +0000 Subject: [PATCH 05/10] =?UTF-8?q?Developer=20=EC=97=AD=ED=95=A0=20Spring?= =?UTF-8?q?=20=EA=B3=A8=EA=B2=A9=20smoke=20(runtime-role-matrix-live-20260?= =?UTF-8?q?714101723-v7-developer-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../developer/DeveloperServiceTest.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/test/java/com/example/developer/DeveloperServiceTest.java diff --git a/src/test/java/com/example/developer/DeveloperServiceTest.java b/src/test/java/com/example/developer/DeveloperServiceTest.java new file mode 100644 index 0000000..e920527 --- /dev/null +++ b/src/test/java/com/example/developer/DeveloperServiceTest.java @@ -0,0 +1,32 @@ +package com.example.developer; + +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +@SpringBootTest +class DeveloperServiceTest { + + @Autowired + private DeveloperService developerService; + + @Test + void getRole_returnsDeveloper() { + String role = developerService.getRole(); + assertTrue("Developer".equals(role), "Role should be Developer"); + } + + @Test + void isValidRole_withDeveloper_returnsTrue() { + boolean valid = developerService.isValidRole("Developer"); + assertTrue(valid, "Developer role should be valid"); + } + + @Test + void isValidRole_withOtherRole_returnsFalse() { + boolean valid = developerService.isValidRole("Admin"); + assertTrue(!valid, "Admin role should not be valid for DeveloperService"); + } +} From 89d0288b3dfdba6d40f9e1187e75e509c3b70a5d Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:22:22 +0000 Subject: [PATCH 06/10] forge: open work branch for runtime-role-matrix-live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e --- ...live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/runtime-role-matrix-live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e.md diff --git a/.forge/runtime-role-matrix-live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e.md b/.forge/runtime-role-matrix-live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e.md new file mode 100644 index 0000000..2da0252 --- /dev/null +++ b/.forge/runtime-role-matrix-live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e.md @@ -0,0 +1,3 @@ +# runtime-role-matrix-live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e + +Forge 이슈 작업 브랜치 `forge/runtime-role-matrix-live-20260714101723-v7-aa-001-attempt-2-run-b63a6a7e452e`. From 506761b978c32ddb776281cbf7f049750514bed5 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:22:34 +0000 Subject: [PATCH 07/10] =?UTF-8?q?AA=20=EC=97=AD=ED=95=A0=20=EB=A0=88?= =?UTF-8?q?=EA=B1=B0=EC=8B=9C=20=EB=B6=84=EC=84=9D=20smoke=20(runtime-role?= =?UTF-8?q?-matrix-live-20260714101723-v7-aa-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- audit/AA_ROLE_LEGACY_ANALYSIS.md | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 audit/AA_ROLE_LEGACY_ANALYSIS.md diff --git a/audit/AA_ROLE_LEGACY_ANALYSIS.md b/audit/AA_ROLE_LEGACY_ANALYSIS.md new file mode 100644 index 0000000..1bf8714 --- /dev/null +++ b/audit/AA_ROLE_LEGACY_ANALYSIS.md @@ -0,0 +1,57 @@ +# AA 역할 레거시 분석 문서 + +## 개요 +- **역할**: AA +- **분석 일자**: 2026-07-14 +- **버전**: v7 +- **분석 목적**: 레거시 전환 분석을 위한 입력 소스, 업무 규칙, 위험 영역, 증적 위치 정리 + +--- + +## 1. 입력 소스 정의 + +| ID | 소스명 | 설명 | 위치 | +|-----|--------|------|------| +| IS-001 | AA_ROLE_SPEC | AA 역할 정의 명세서 | role-aa/specs/aa_role_spec.yaml | +| IS-002 | PERMISSION_MATRIX | 권한 매트릭스 문서 | role-aa/specs/permission_matrix.json | +| IS-003 | WORKFLOW_DEF | 워크플로우 정의 | role-aa/workflows/aa_workflow.yaml | +| IS-004 | API_CONTRACT | API 계약 정의 | role-aa/contracts/aa_api_contract.yaml | + +--- + +## 2. 업무 규칙 + +| 규칙 ID | 규칙 내용 | 입력 소스 | +|---------|----------|----------| +| BR-001 | AA 역할은 관리자 권한을 포함한다 | IS-001, IS-002 | +| BR-002 | AA 역할은 승인 워크플로우를 통과해야 한다 | IS-003 | +| BR-003 | AA 역할의 API 호출은 인증 토큰을 필요로 한다 | IS-004 | + +--- + +## 3. 위험 영역 + +| 위험 ID | 위험 설명 | 영향도 | 입력 소스 | +|---------|----------|--------|----------| +| RI-001 | 권한 상승 위험 | 높음 | IS-001, IS-002 | +| RI-002 | 워크플로우 우회 위험 | 중간 | IS-003 | +| RI-003 | API 인증 우회 위험 | 높음 | IS-004 | + +--- + +## 4. 증적 위치 + +| 증적 ID | 증적 유형 | 위치 | 검증 방법 | +|---------|----------|------|----------| +| EV-001 | 역할 정의 | IS-001 | 스키마 검증 | +| EV-002 | 권한 매트릭스 | IS-002 | 매트릭스 교차 검증 | +| EV-003 | 워크플로우 로그 | IS-003 | 실행 추적 검증 | +| EV-004 | API 호출 로그 | IS-004 | 요청/응답 검증 | + +--- + +## 5. 감사 추적 요구사항 + +- 모든 입력 소스는 버전 관리되어야 함 +- 변경 이력은 추적 가능해야 함 +- 증적은 보존 기간 동안 유지되어야 함 From 0469100bfe0ad905f52e4eff0f1d88a144bd31e6 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:22:35 +0000 Subject: [PATCH 08/10] =?UTF-8?q?AA=20=EC=97=AD=ED=95=A0=20=EB=A0=88?= =?UTF-8?q?=EA=B1=B0=EC=8B=9C=20=EB=B6=84=EC=84=9D=20smoke=20(runtime-role?= =?UTF-8?q?-matrix-live-20260714101723-v7-aa-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- audit/AA_ROLE_EVIDENCE_INVENTORY.json | 71 +++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 audit/AA_ROLE_EVIDENCE_INVENTORY.json diff --git a/audit/AA_ROLE_EVIDENCE_INVENTORY.json b/audit/AA_ROLE_EVIDENCE_INVENTORY.json new file mode 100644 index 0000000..370db4a --- /dev/null +++ b/audit/AA_ROLE_EVIDENCE_INVENTORY.json @@ -0,0 +1,71 @@ +{ + "inventoryId": "AA_ROLE_EVIDENCE_INVENTORY", + "role": "AA", + "version": "v7", + "generatedDate": "2026-07-14", + "inputSources": [ + { + "sourceId": "IS-001", + "sourceName": "AA_ROLE_SPEC", + "description": "AA 역할 정의 명세서", + "location": "role-aa/specs/aa_role_spec.yaml", + "type": "SPECIFICATION", + "version": "1.0.0" + }, + { + "sourceId": "IS-002", + "sourceName": "PERMISSION_MATRIX", + "description": "권한 매트릭스 문서", + "location": "role-aa/specs/permission_matrix.json", + "type": "MATRIX", + "version": "1.0.0" + }, + { + "sourceId": "IS-003", + "sourceName": "WORKFLOW_DEF", + "description": "워크플로우 정의", + "location": "role-aa/workflows/aa_workflow.yaml", + "type": "WORKFLOW", + "version": "1.0.0" + }, + { + "sourceId": "IS-004", + "sourceName": "API_CONTRACT", + "description": "API 계약 정의", + "location": "role-aa/contracts/aa_api_contract.yaml", + "type": "CONTRACT", + "version": "1.0.0" + } + ], + "evidenceLocations": [ + { + "evidenceId": "EV-001", + "sourceId": "IS-001", + "type": "ROLE_DEFINITION", + "verificationMethod": "스키마 검증" + }, + { + "evidenceId": "EV-002", + "sourceId": "IS-002", + "type": "PERMISSION_MATRIX", + "verificationMethod": "매트릭스 교차 검증" + }, + { + "evidenceId": "EV-003", + "sourceId": "IS-003", + "type": "WORKFLOW_LOG", + "verificationMethod": "실행 추적 검증" + }, + { + "evidenceId": "EV-004", + "sourceId": "IS-004", + "type": "API_CALL_LOG", + "verificationMethod": "요청/응답 검증" + } + ], + "auditRequirements": { + "versionControl": true, + "changeTracking": true, + "retentionPeriod": "7years" + } +} From 5a42946820a492df16b523b4c8938ad5328e63b4 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:24:25 +0000 Subject: [PATCH 09/10] forge: open work branch for runtime-role-matrix-live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b --- ...live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/runtime-role-matrix-live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b.md diff --git a/.forge/runtime-role-matrix-live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b.md b/.forge/runtime-role-matrix-live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b.md new file mode 100644 index 0000000..0097467 --- /dev/null +++ b/.forge/runtime-role-matrix-live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b.md @@ -0,0 +1,3 @@ +# runtime-role-matrix-live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b + +Forge 이슈 작업 브랜치 `forge/runtime-role-matrix-live-20260714101723-v7-ta-001-attempt-2-run-8f9fb566223b`. From 376786dd552a6011339cdd8a4ec9d9e58875496a Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 10:24:36 +0000 Subject: [PATCH 10/10] =?UTF-8?q?TA=20=EC=97=AD=ED=95=A0=20Spring=20?= =?UTF-8?q?=EA=B2=BD=EA=B3=84=20smoke=20(runtime-role-matrix-live-20260714?= =?UTF-8?q?101723-v7-ta-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ADR-001-spring-boundary-architecture.md | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 docs/adr/ADR-001-spring-boundary-architecture.md diff --git a/docs/adr/ADR-001-spring-boundary-architecture.md b/docs/adr/ADR-001-spring-boundary-architecture.md new file mode 100644 index 0000000..e2b2be5 --- /dev/null +++ b/docs/adr/ADR-001-spring-boundary-architecture.md @@ -0,0 +1,49 @@ +# ADR-001: Spring Layer Boundary Architecture + +## Context + +TA 역할의 Spring 기반 마이크로서비스는 역할 매트릭스 관리 기능을 제공한다. Controller-Service-Repository 패턴을 적용하되, 각 계층의 책임과 경계를 명확히 정의하여 응집도를 높이고 결합도를 낮추어야 한다. 또한 오류 처리와 트랜잭션 관리의 일관된 전략이 필요하다. + +## Decision + +### 1. Controller-Service-Repository 경계 + +| Layer | Responsibility | Forbidden Dependencies | +|-------|---------------|------------------------| +| Controller | HTTP 요청/응답 변환, 입력 검증, HTTP 상태 코드 관리 | 직접 Repository 접근 금지 | +| Service | 비즈니스 로직, 도메인 규칙, 트랜잭션 경계 | HTTP Servlet API 직접 사용 금지 | +| Repository | 데이터 접근, JPA 쿼리, 엔티티 매핑 | 비즈니스 로직 포함 금지 | + +### 2. 오류 계약 (Error Contract) + +| Scenario | HTTP Status | Response Body | +|----------|-------------|---------------| +| Validation Error | 400 | `{ "code": "VALIDATION_ERROR", "message": "...", "field": "..." }` | +| Resource Not Found | 404 | `{ "code": "NOT_FOUND", "message": "...", "resourceId": "..." }` | +| Business Rule Violation | 409 | `{ "code": "BUSINESS_ERROR", "message": "..." }` | +| Internal Error | 500 | `{ "code": "INTERNAL_ERROR", "message": "..." }` | + +### 3. 트랜잭션 경계 + +- **시작점**: Service Layer (public method 진입점) +- **종료점**: Service Layer (public method 종료점) +- **전파**: `@Transactional(propagation = REQUIRED)` 기본값 사용 +- **읽기 전용**: 조회 전용 Service Method에 `@Transactional(readOnly = true)` 적용 + +## Alternatives + +1. **TransactionTemplate 사용**: 프로그래밍 방식 트랜잭션 관리로 더 세밀한 제어 가능하나, 선언적 방식 대비 복잡성 증가 +2. **Controller에서 트랜잭션 관리**: 테스트 용이성 감소, 단일 책임 원칙 위반 +3. **Repository에서 비즈니스 로직 포함**: 데이터 접근 계층의 재사용성 저하 + +## Consequences + +### Positive +- 계층별 단일 책임 원칙 준수 +- 일관된 오류 처리로 API consumers 보호 +- 트랜잭션 경계 명확화로 데이터 무결성 보장 +- 테스트 용이성 향상 (Mock 주입 용이) + +### Negative +- 간단한 CRUD 연산에도 Service Layer 필요로 인한 코드 증가 +- 트랜잭션 경계 설정 오류 시 롤백 누락 위험