--- kind: CONCEPT slug: grpc-advanced-bootstrap-c02 title: 세 조건을 하나의 boolean으로 접지 않는다 topic: composition-and-lifecycle-models project: clean-architecture-backend-template status: 게시 전 sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 rootTreeNode: concept:grpc-advanced-bootstrap-c02 evidenceCapturedOn: 2026-09-01 assets: - key: grpc-advanced-bootstrap-c02 file: ../../../final/evidence/rendered/grpc-advanced-bootstrap-c02.svg - key: grpc-advanced-bootstrap-c02-diagram file: ../../../final/assets/diagrams/grpc-advanced-bootstrap-c02.svg evidence: - ../../../final/evidence/raw/grpc-advanced-bootstrap-c02.txt source: - 원본 분석 절은 final/document.md#a20-grpc-advanced-bootstrap#L76 이다. module: grpc-advanced-bootstrap --- # 세 조건을 하나의 boolean으로 접지 않는다 게이트가 깃발 설정 여부, 등급의 시작 가능 여부, 운영 별도 승인을 순서대로 따로 본다. 접으면 처방이 서로 다른 세 상황이 같은 메시지를 받는다. ## 본문 게이트가 세 조건을 순서대로 본다. ```java if (!flags.flagSet(capability)) → "its feature flag is not set" if (!grade.startable()) → "it is graded WATCH, which cannot start" if (production && requiresApproval && !approved) → "production needs a separate approval" ``` > "Collapsing them into one boolean produces a 'not enabled' message for three situations with three different remedies." ## 게이트가 보는 세 조건 :::evidence key="grpc-advanced-bootstrap-c02-diagram" alt="깃발 설정 여부와 등급의 시작 가능 여부와 운영 별도 승인이 왼쪽에서 오른쪽으로 이어지는 구조" caption="게이트가 보는 세 조건" zoom="false" ::: ## 이 기록이 다루는 파일 범위 :::evidence key="grpc-advanced-bootstrap-c02" alt="코드베이스에서 파일 목록을 만든 출력 9줄. 이 기록이 다루는 범위가 그 목록이다." caption="코드베이스 파일 목록 — 9줄 · exit 0" zoom="true" ::: ## 같은 불변식의 런타임 확인은 실행되지 않는다 `requireStableStarterIsClean` 이 같은 불변식을 런타임에서도 확인한다 — 팻 자, 셰이드 산출물, 테스트 하네스처럼 다른 방식으로 조립된 런타임을 위해서다. **다만 그 메서드를 부르는 런타임이 없다**(§12.1). 지금 그 검사를 실행하는 것은 이 리프의 자기 테스트뿐이다.