191 lines
7.8 KiB
Markdown
191 lines
7.8 KiB
Markdown
---
|
|
title: branch / feature-read-consistency-query-contract
|
|
source_type: branch-note
|
|
status: raw
|
|
branch: feature-read-consistency-query-contract
|
|
parent_branch:
|
|
related_projects: [ca-skeleton]
|
|
governing_docs: [raw/project-notes/ca-skeleton-operational-contract]
|
|
tags: [branch, ca-skeleton, query, read-consistency, replica, cursor]
|
|
created: 2026-07-28
|
|
target_merge:
|
|
status_label: in-progress
|
|
id: BR-CA-SKELETON-OPERATIONAL-CONTRACT-076
|
|
kind: project-work-item
|
|
project: ca-skeleton-operational-contract
|
|
work_item: WI-CA-SKELETON-OPERATIONAL-CONTRACT-076
|
|
inherits: [DEC-CA-SKELETON-OPERATIONAL-CONTRACT-READ-CONSISTENCY-001@1, DEC-CA-SKELETON-OPERATIONAL-CONTRACT-TRANSACTION-001@1]
|
|
refines: []
|
|
overrides: []
|
|
depends_on: [WI-CA-SKELETON-OPERATIONAL-CONTRACT-060]
|
|
imports: []
|
|
delegates: []
|
|
accepts_delegations: []
|
|
contract_packet: 1
|
|
---
|
|
|
|
# branch: feature-read-consistency-query-contract
|
|
|
|
> Layer: `raw/branch-notes/` — 단일 브랜치의 **TODO·결정·진행 기록**. 머지/종료 후 verified 결과는 `/ingest`로 `wiki/projects/`에 추출. 원본은 raw에 영구 보관.
|
|
> `status_label`: `in-progress` | `review` | `merged` | `abandoned`
|
|
> **스캐폴딩 상태** — 결정(D-row)·구현 가이드는 비어 있다. `/branch-spec feature-read-consistency-query-contract` 로 채운다.
|
|
|
|
<!-- section-id: branch-parent -->
|
|
## 부모 (필수)
|
|
|
|
- **Parent project (canonical SSOT)**: [[raw/project-notes/ca-skeleton-operational-contract]]
|
|
|
|
> 분해 근거: `docs/superpowers/specs/2026-07-28-ca-skeleton-production-capability-feature-decomposition-design.md` §4.2 — 전송·조회 (Tier X). 본 branch 는 project §8.0 `WI-CA-SKELETON-OPERATIONAL-CONTRACT-076` 의 실행 단위다.
|
|
|
|
형제 branch (같은 부모의 다른 자식 — 인접 영역):
|
|
|
|
- [[raw/branch-notes/feature-application-query-bypass-contract]]
|
|
- [[raw/branch-notes/feature-database-connection-pool-contract]]
|
|
- [[raw/branch-notes/feature-mongo-runtime-baseline-contract]]
|
|
|
|
<!-- section-id: branch-contract-packet -->
|
|
## 브랜치 계약 패킷
|
|
|
|
> project Work Item 에서 내려온 실행 계약의 snapshot. 여기에는 **pinned pointer + 1줄 요약 + branch 적용점**만 쓰고 상세를 복제하지 않는다.
|
|
|
|
- **생성 시 프로젝트 개정**: `1`
|
|
- **패킷 스키마**: `contract_packet: 1`
|
|
- **완료 조건**: ReadConsistency·cursor·replica 라우팅·projection lag 계약 test 가 통과한다
|
|
|
|
<!-- section-id: inherited-project-decisions -->
|
|
### 상속한 프로젝트 결정
|
|
|
|
| Decision Ref | Project Summary | Branch Application | Source |
|
|
|---|---|---|---|
|
|
| `DEC-CA-SKELETON-OPERATIONAL-CONTRACT-READ-CONSISTENCY-001@1` | 조회는 ReadConsistency를 명시하고 replica 라우팅은 그 정책과 요청 문맥으로 결정하며 TransactionPort.inRead는 replica 사용을 뜻하지 않는다 | `/branch-spec` 에서 적용 경계 작성 | [[raw/project-notes/ca-skeleton-operational-contract]] |
|
|
| `DEC-CA-SKELETON-OPERATIONAL-CONTRACT-TRANSACTION-001@1` | application은 Spring transaction annotation 대신 TransactionPort 또는 TransactionalUseCaseRunner를 사용한다 | `/branch-spec` 에서 적용 경계 작성 | [[raw/project-notes/ca-skeleton-operational-contract]] |
|
|
|
|
<!-- section-id: branch-local-decisions -->
|
|
### 브랜치 지역 결정
|
|
|
|
> `/branch-spec` 단계에서 작성한다. 근거 없이 추측해 채우지 않는다.
|
|
|
|
| Decision ID | Decision | Relation | Supporting Claims | Status |
|
|
|---|---|---|---|---|
|
|
|
|
<!-- section-id: declared-overrides -->
|
|
### 선언한 예외
|
|
|
|
| Override ID | Overrides | Reason | Approval | Status |
|
|
|---|---|---|---|---|
|
|
|
|
<!-- GENERATED: project-contract-imports:start -->
|
|
## 가져온 프로젝트 계약
|
|
|
|
| Ref | Owner | 요약 | Branch 적용 |
|
|
|---|---|---|---|
|
|
<!-- GENERATED: project-contract-imports:end -->
|
|
|
|
<!-- section-id: branch-goal -->
|
|
## 목표
|
|
|
|
- `WI-CA-SKELETON-OPERATIONAL-CONTRACT-076` 의 완료 조건을 구현한다: ReadConsistency·cursor·replica 라우팅·projection lag 계약 test 가 통과한다
|
|
|
|
- 이슈:
|
|
- PR:
|
|
|
|
<!-- section-id: branch-scope -->
|
|
## 범위
|
|
|
|
### 포함 범위
|
|
|
|
- `ReadConsistency` — `STRONG` / `READ_YOUR_WRITES` / `BOUNDED_STALENESS` / `EVENTUAL`
|
|
- opaque·서명·버전 cursor 와 페이지 상한, sort/filter allowlist
|
|
- primary/replica 라우팅 판정 근거 (일관성 정책 + 요청 문맥)
|
|
- `TransactionPort.inRead()` 가 replica 사용을 뜻하지 않음의 명문화
|
|
- projection checkpoint 와 lag 노출
|
|
- 조회 진행 단계 — same-store 집계 → projection → replica → 별도 read model → 전용 store
|
|
|
|
### 제외 범위
|
|
|
|
> 의도적으로 제외한 것. 면접 등에서 "이건 범위에 없었습니다"라고 답할 근거.
|
|
|
|
- 범용 `QueryPort<Q,R>` 또는 범용 repository 도입
|
|
- feature 별 query 형태 — 각 feature application 패키지 소유
|
|
- 심층 명세 — 본 노트는 스캐폴딩. D-row 와 §구현 가이드는 `/branch-spec` 이 채운다.
|
|
- project decision registry 변경 — owner 는 project-note
|
|
|
|
## 근거 (필수, 최소 1개+)
|
|
|
|
> 외부 근거 미등록. `/branch-spec feature-read-consistency-query-contract` 단계에서 verbatim 인용과 함께 `raw/official-docs/` 로 수집한 뒤 여기서 링크한다.
|
|
|
|
| Source | 정당화하는 결정 |
|
|
|---|---|
|
|
| (미등록) | 1차 수집 대상: (기존 `feature-application-query-bypass-contract` Sources 상속) · ca-tmpl platform 설계 §12.1 |
|
|
|
|
**프로젝트 내부 설계 참조 (등급 `internal-design-doc` — 공식 문서 아님, best practice 로 격상 금지):**
|
|
|
|
- ca-tmpl `docs/superpowers/specs/2026-07-26-production-capability-platform-design.md`
|
|
- llm-wiki `docs/superpowers/specs/2026-07-28-ca-skeleton-production-capability-feature-decomposition-design.md`
|
|
|
|
## TODO
|
|
|
|
각 항목 옆에 증거 등급 표기: `actually-implemented` | `locally-verified` | `prod-verified` | `documented-only` | `planned` | `needs-confirmation`
|
|
|
|
- [ ] `/branch-spec feature-read-consistency-query-contract` 로 D-row·§구현 가이드 작성 — 등급: `planned`
|
|
- [ ] ReadConsistency·cursor·replica 라우팅·projection lag 계약 test 가 통과한다 — 등급: `planned`
|
|
|
|
## 진행 중 메모
|
|
|
|
아직 없음.
|
|
|
|
## 결정 사항
|
|
|
|
project 결정 외 branch-local 결정은 아직 없음. `/branch-spec` 단계에서 기록한다.
|
|
|
|
<!-- section-id: decision-evidence -->
|
|
## 결정-근거 매핑
|
|
|
|
> `/branch-spec` 단계에서 작성한다.
|
|
|
|
| Decision ID | Decision | 선택 조건 (언제 이 결정 / 언제 대안) | Supporting Claims | Evidence Strength | Open Risk |
|
|
|---|---|---|---|---|---|
|
|
|
|
<!-- section-id: implementation -->
|
|
## 구현 가이드
|
|
|
|
`/branch-spec` 단계에서 source claim 기반으로 작성한다. 3-rule meta principle(R1 Reference 필수 / R2 UNSUPPORTED_IMPL_DECISION 명시 / R3 OUT_OF_BRANCH_SCOPE 정제) 적용.
|
|
|
|
<!-- section-id: edge-failure-dependency -->
|
|
## 엣지·실패·의존
|
|
|
|
- **실패·엣지 경로**: `/branch-spec` 단계에서 구체화한다.
|
|
- **다른 계약 의존**: `WI-CA-SKELETON-OPERATIONAL-CONTRACT-060`([[raw/branch-notes/feature-capability-provider-selection-contract]]) 의 계약에 의존
|
|
|
|
<!-- section-id: claims-to-verify -->
|
|
## 검증해야 할 주장
|
|
|
|
| Claim | Why uncertain | How to verify | Status |
|
|
|---|---|---|---|
|
|
| 본 branch 가 소유할 관심사가 sibling branch 결정과 겹치지 않는다 | 스캐폴딩 시점에는 D-row 가 없어 경계가 문장으로만 존재 | `/branch-spec` 후 `/sync` 실행 — owner 중복 검출 | `needs-confirmation` |
|
|
|
|
## 관심사 커버리지 (coverage-auditor 자동 생성 — 있을 때)
|
|
|
|
`/coverage` 실행 전.
|
|
|
|
## 마주친 문제
|
|
|
|
아직 없음.
|
|
|
|
## 묶음 (이 branch에서 파생된 자료)
|
|
|
|
<!-- GENERATED: branches:start -->
|
|
<!-- GENERATED: branches:end -->
|
|
|
|
## 관련 일일 노트
|
|
|
|
해당 없음.
|
|
|
|
## 완료 후 정리
|
|
|
|
- PR 링크:
|
|
- 리뷰 메모:
|
|
- 머지 결과 / 배포 환경:
|
|
- **wiki 추출 대상** (verified만, `wiki/projects/`로만 추출):
|
|
- **추출하지 않을 항목** (planned / documented-only / abandoned):
|