fix(platform): kernel import 예외를 한 파일로 좁히고 시험 명령을 고친다 #86
Merged
donghyeon.kang
merged 2 commits from 2026-11-21 04:59:45 +00:00
donghyeon.kang/fix/platform-routing-exception AGit into main
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
573cdc7214 |
docs(platform): platform 시험 위치와 작업 중 명령을 tests/platform으로 고친다
frontend-quality-gates / merge / static checks (pull_request) Successful in 1m22s
frontend-quality-gates / merge / tests (pull_request) Successful in 12m38s
frontend-quality-gates / merge / browser tests (pull_request) Successful in 5m16s
frontend-quality-gates / FE-GATE-017 / diagram-review (pull_request) Skipped
frontend-quality-gates / FE-GATE-014 / config-compatibility (pull_request) Skipped
frontend-quality-gates / FE-GATE-028 / manual-accessibility-review (pull_request) Skipped
frontend-quality-gates / FE-GATE-026 / lab-performance (pull_request) Skipped
frontend-quality-gates / FE-GATE-015 / immutable-release-candidate (pull_request) Skipped
frontend-quality-gates / external-vulnerability-provider (pull_request) Skipped
frontend-quality-gates / external-provenance-provider (pull_request) Skipped
frontend-quality-gates / promote-verified-immutable-candidate (pull_request) Skipped
frontend-quality-gates / deploy-promoted-release (pull_request) Skipped
frontend-quality-gates / FE-GATE-019 / hosting-header (pull_request) Skipped
frontend-quality-gates / FE-GATE-021 / runbook-boot-config (pull_request) Skipped
frontend-quality-gates / FE-GATE-022 / runbook-chunk-mismatch (pull_request) Skipped
frontend-quality-gates / FE-GATE-023 / runbook-api-degradation (pull_request) Skipped
frontend-quality-gates / FE-GATE-024 / runbook-telemetry (pull_request) Skipped
frontend-quality-gates / FE-GATE-025 / runbook-release-rollback (pull_request) Skipped
frontend-quality-gates / FE-GATE-018 / field-web-vitals (pull_request) Skipped
frontend-quality-gates / main / self-tests and removal drills (pull_request) In progress
문제: src/platform/AGENTS.md가 시험을 tests/unit에 두고 작업 중에는 test:unit을 돌린다고 적는다. platform 시험은 모두 tests/platform 아래에 있고 test:unit은 그 폴더를 돌지 않는다. 이 폴더를 고치는 사람이 platform 시험을 하나도 돌지 않는 확인 명령을 받는다. docs/work/experts.md 3절 경로표에도 src/platform/** 줄이 없어 이 폴더의 .ts 파일은 어느 렌즈 후보에도 걸리지 않는다. 고친 것: AGENTS.md 검사 절을 test:platform(작업 중)과 check:traffic· check:observability·check:topology·check:release-coherence(하위 폴더 몇 개, release는 tests/release까지)로 고치고, 시험 위치를 tests/platform/<하위 폴더>/로 적는다. jsdom 시험도 이 폴더에 두며, .claude/rules/tests.md 1번의 실행 환경별 폴더와 다른 점은 taxonomy.md test:all 문단의 test:platform을 근거로 적는다. experts.md 경로표에 src/platform/** 줄(1차 fe-structure, 예산·telemetry 값 fe-performance, 거짓 통과 fe-testing)을 더한다. 버린 안: 시험을 tests/unit으로 옮긴다. 29파일 이동과 check:* 스크립트 네 개 수정이 필요하고 얻는 것이 없다. 위험: 문서만 바뀐다. fe-structure 스킬의 paths에는 src/platform/**가 없어 그 폴더를 만질 때 스킬이 목록에 저절로 뜨지 않는다. 범위 밖이라 두었다. 검증: grep -n "tests/unit" src/platform/AGENTS.md 결과 없음. AGENTS.md에 적은 하위 폴더 이름은 ls tests/platform과 ls src/platform이 같다. 노트북 scripts/verify.sh docs rc=0, desktop verify:documentation은 PR 묶음에서 돈다(PR 본문). Refs: REV-FE-0036 |
||
|
|
ce5fb3f6e3 |
fix(architecture): platform kernel 예외를 route module 한 파일과 목적지 둘로 좁힌다
문제: platform-kernel-is-product-neutral의 from.pathNot이
^src/platform/routing/ 폴더 전체라, routing 아래 어느 파일이든
features·contexts·apps·adapters·bootstrap·presentation·application
일곱 곳을 모두 import할 수 있다. 실제 쓰임은 context-route-module.ts가
apps/deployable-app-module.ts와 contexts/bounded-context-module.ts를
타입으로 읽는 둘뿐이다. presentation(app-router.tsx)이 routing을
import하므로, routing 파일 하나가 adapter 배럴을 재수출하면
presentation이 adapter에 닿는데 check:architecture가 통과한다.
고른 방법: 기존 규칙의 예외를 context-route-module.ts 한 파일로 좁히고,
그 파일이 읽을 수 있는 곳을 descriptor 파일 둘로 묶는 규칙
platform-route-module-reads-only-descriptors를 더한다. cross-boundary
fixture에 routing 재수출 파일과, adapter 배럴과 descriptor가 아닌 app
모듈을 재수출하는 route module을 두고 check-architecture.ts의 fixture
회귀 목록에 거절 셋·허용 하나를 더한다. 판정 로직(규칙 해석)은 바꾸지 않았다. layers.md 규칙 표와 예외
목록, src/platform/AGENTS.md의 예외 문장을 같은 내용으로 고치고,
CHANGELOG 먼저 할 일에 옮기는 법을 적는다. 규칙은 import가 타입
전용인지 보지 않으므로 문서와 comment에 「타입만」이라고 쓰지 않는다.
버린 안: check-architecture에 type-only 판정을 더하는 것. 다른 규칙
전체의 의미가 바뀐다.
위험: 좁히는 쪽이라 지금 트리에서 새로 걸리는 import는 없다(아래 a).
routing에 두 번째 파일을 둔 다운스트림은 동기화 뒤 FE-GATE-010에서
실패한다(CHANGELOG에 옮기는 법).
routing에 다른 descriptor가 필요해지면 그 파일 이름을 새 규칙의
to.pathNot에 적어야 한다(규칙 comment에 적었다).
tests/architecture/observability-boundaries.test.ts는 아직 routing 폴더
전체를 건너뛴다. 이 항목 범위 밖이라 두었다.
검증(desktop, red4.sh):
- a 최종 트리 check:architecture rc=0, graph fixture 35개 PASS.
- b main 규칙(.dependency-cruiser.json만 8d115d02로) + 새 fixture:
rc=1, 새 거절 assertion 셋만 실패(routing 재수출, route module의
adapter import, descriptor가 아닌 app import). 허용 assertion은 통과.
- c 정확히 main(
|