[상류 4단계] P5 ordered tiers·round robin·usage modes — P2 위 원 기능 이식 준비 #236

Open
opened 2026-11-03 04:44:24 +09:00 by dreampiler · 1 comment
Owner

원 요구·승인

소유자 직접 지시(운영 대화 2026-10-29, 원문): 「제안한 대로 중복 PR을 정리하고 … 추천한 아래 순서대로 진행되도록 지속적으로 작업 관리해서 모두 상류 PR 까지 되도록 처리해줘. … 기존 기능과 이력은 보존하고 중복 PR은 만들지 마.」 승인 문서 sent/codex_upstream_execute_approved_sequence_1029.md 4단계: 「usage base #4721 → P5 ordered tiers/round robin/usage cost modes」. 이 task가 P5의 단일 source writer다. 등록 전 8e 확인(2026-11-03): p320에 P5 queue 없음, 3cb 응답 writer·예약 0, native store D:/260720_Ai_Workspace_Tools/kandev-upstream-native-20261015/.git의 refs/heads/codex/round-robin-tiers(head 5241b6f3cb14, 2026-10-16)를 쓰는 worktree 0.

입력(읽기 전용)

  • 원 P5 source(feature-pr-map 57행): commits c1e5cd163·5edd73fe9·18de30a97·5efe8b6da·4e73d2b76, original f020e3a91..448b8e8d2, final round-robin f9b42d937..5241b6f3c, pace fix 141cba15e. 범위: dynamic/ordered_tiers, tier_ranking/round_robin/usage/log, settings stored policies, web ordered-dynamic-tiers/editor/preview. 보존 pointer 32a17119(feature-pr-map 734행)도 읽기만. native store·원 branch 쓰기·이동·삭제 0.
  • 실제 선행: P2 usage base #4721. 검증된 로컬 head 85942d927e40d00cd9fd897674bd26fb0511af0b(branch kd/upstream-4721-main-merge-20261030, base main 0392429c, 8e 수용, 미공개). usage 기반 ranking/cost 모드는 P2의 provider usage API·account binding·turn allowance를 쓴다 — 어떤 API/스키마를 쓰는지 Plan에 명시. 단순 파일 공유를 선행으로 만들지 않음. P2 diff를 P5 PR에 복제하지 않음.
  • 현재 upstream main: 첫 Git에서 ls-remote로 최신 값(등록 시점 f648e79f) 확인. main P3 dynamicAgentRouting 단일 flag·default backoff·circuit admission과 등록 tier 순서·limit/budget 정책·disabled-setting settlement 원 계약 유지.

할 일(원자 단위 1개: P5 이식 준비)

  1. 계획 칸(읽기/계획만): 원 P5 commit 범위를 현재 main·P2 8594와 대조해 (a) 이미 main/P2에 있는 것, (b) P5 고유 delta, (c) usage 모드가 P2에 실제 의존하는 몫과 (d) 의존 없는 standalone 순서 몫을 분류해 Plan에 기록. standalone 분리는 실제 쓸모가 있고 diff 중복이 없을 때만 제안. 첫 Git(toplevel/branch/HEAD/필터 없는 status/base)을 직접 읽어 기록.
  2. 구현 칸: 자기 정상 Native 사본에서 P2 8594를 시작점으로 하는 새 branch(stack) 위에 P5 고유 delta만 cherry-pick/이식(원 저자·이력 보존, 충돌은 최소 정합). P2 branch 자체·native store·다른 source 쓰기 0.
  3. 검증: 바뀐 package·web 소비자에 필요한 기존 시험만(PS5.1 단일 명령, pipeline 0, Go child exit 직접 확인, web은 frozen install 후 해당 typecheck/vitest) + 필요 시 수집 밖 임시 확인(정리) → normal hooks(SKIP/--no-verify 0) → P2 8594..최종 head delta만 gate workflow rv-run(risk tier mid 이상, artifact_path 상대 POSIX, 등록된 --surface). 필수 지적만 수정·재검토. 새 상시 test·기준 완화 0.
  4. 결과(base/선행 head/최종 head·diffstat·원 commit 대응·분류 결과·의존 API·검증 exit·RV·한계·공개 순서 제안)를 8e(8e3eb6b7-f0fb-4d79-a954-69aeab00993a)에 최종 head 기준 1회. 공개는 P2 #4721 반영 이후 93 수용 → sole5d 새 PR 또는 stacked 경로를 8e/93이 판단(중복 PR 0).

경계

push/PR/상류 댓글 0, 비용 정책·모델 순서·운영 flag·설정·프로필·한도 변경 0, 운영 설치/DB 0, force/reset/amend/미반영 history 삭제 0. P6(provider budgets)·G2·closure 34·#4721 source와 같은 파일/ref 동시 쓰기 0 — 겹치면 쓰기 전 8e에 알림. 완료된 다른 PR task 재사용 0.

## 원 요구·승인 소유자 직접 지시(운영 대화 2026-10-29, 원문): 「제안한 대로 중복 PR을 정리하고 … 추천한 아래 순서대로 진행되도록 지속적으로 작업 관리해서 모두 상류 PR 까지 되도록 처리해줘. … 기존 기능과 이력은 보존하고 중복 PR은 만들지 마.」 승인 문서 sent/codex_upstream_execute_approved_sequence_1029.md 4단계: 「usage base #4721 → P5 ordered tiers/round robin/usage cost modes」. 이 task가 P5의 단일 source writer다. 등록 전 8e 확인(2026-11-03): p320에 P5 queue 없음, 3cb 응답 writer·예약 0, native store D:/260720_Ai_Workspace_Tools/kandev-upstream-native-20261015/.git의 refs/heads/codex/round-robin-tiers(head 5241b6f3cb14, 2026-10-16)를 쓰는 worktree 0. ## 입력(읽기 전용) - 원 P5 source(feature-pr-map 57행): commits c1e5cd163·5edd73fe9·18de30a97·5efe8b6da·4e73d2b76, original f020e3a91..448b8e8d2, final round-robin f9b42d937..5241b6f3c, pace fix 141cba15e. 범위: dynamic/ordered_tiers, tier_ranking/round_robin/usage/log, settings stored policies, web ordered-dynamic-tiers/editor/preview. 보존 pointer 32a17119(feature-pr-map 734행)도 읽기만. native store·원 branch 쓰기·이동·삭제 0. - 실제 선행: P2 usage base #4721. 검증된 로컬 head 85942d927e40d00cd9fd897674bd26fb0511af0b(branch kd/upstream-4721-main-merge-20261030, base main 0392429c, 8e 수용, 미공개). usage 기반 ranking/cost 모드는 P2의 provider usage API·account binding·turn allowance를 쓴다 — 어떤 API/스키마를 쓰는지 Plan에 명시. 단순 파일 공유를 선행으로 만들지 않음. P2 diff를 P5 PR에 복제하지 않음. - 현재 upstream main: 첫 Git에서 ls-remote로 최신 값(등록 시점 f648e79f) 확인. main P3 dynamicAgentRouting 단일 flag·default backoff·circuit admission과 등록 tier 순서·limit/budget 정책·disabled-setting settlement 원 계약 유지. ## 할 일(원자 단위 1개: P5 이식 준비) 1. 계획 칸(읽기/계획만): 원 P5 commit 범위를 현재 main·P2 8594와 대조해 (a) 이미 main/P2에 있는 것, (b) P5 고유 delta, (c) usage 모드가 P2에 실제 의존하는 몫과 (d) 의존 없는 standalone 순서 몫을 분류해 Plan에 기록. standalone 분리는 실제 쓸모가 있고 diff 중복이 없을 때만 제안. 첫 Git(toplevel/branch/HEAD/필터 없는 status/base)을 직접 읽어 기록. 2. 구현 칸: 자기 정상 Native 사본에서 P2 8594를 시작점으로 하는 새 branch(stack) 위에 P5 고유 delta만 cherry-pick/이식(원 저자·이력 보존, 충돌은 최소 정합). P2 branch 자체·native store·다른 source 쓰기 0. 3. 검증: 바뀐 package·web 소비자에 필요한 기존 시험만(PS5.1 단일 명령, pipeline 0, Go child exit 직접 확인, web은 frozen install 후 해당 typecheck/vitest) + 필요 시 수집 밖 임시 확인(정리) → normal hooks(SKIP/--no-verify 0) → P2 8594..최종 head delta만 gate workflow rv-run(risk tier mid 이상, artifact_path 상대 POSIX, 등록된 --surface). 필수 지적만 수정·재검토. 새 상시 test·기준 완화 0. 4. 결과(base/선행 head/최종 head·diffstat·원 commit 대응·분류 결과·의존 API·검증 exit·RV·한계·공개 순서 제안)를 8e(8e3eb6b7-f0fb-4d79-a954-69aeab00993a)에 최종 head 기준 1회. 공개는 P2 #4721 반영 이후 93 수용 → sole5d 새 PR 또는 stacked 경로를 8e/93이 판단(중복 PR 0). ## 경계 push/PR/상류 댓글 0, 비용 정책·모델 순서·운영 flag·설정·프로필·한도 변경 0, 운영 설치/DB 0, force/reset/amend/미반영 history 삭제 0. P6(provider budgets)·G2·closure 34·#4721 source와 같은 파일/ref 동시 쓰기 0 — 겹치면 쓰기 전 8e에 알림. 완료된 다른 PR task 재사용 0.
Author
Owner

P5 prepared on the P2 usage base and approved.

Base: 85942d927e40d00cd9fd897674bd26fb0511af0b (P2 #4721 local head, unpublished)
Branch: kd/upstream-p5-ordered-tiers-20261103
Head: 9866d8479459b7f33569aeb24a0b12fae7a9854b
Delta: 66 files, +3912/-136

Commits: f020e3a91->ffc40f7 (ordered tiers), 448b8e8d2->38ea0ab (cost/random+preview), f9b42d937->d3a42e6 (round robin), 5241b6f3c->37e2929 (native owner bridge), plus P5 usage delta (18de/5efe/141c pure logic) on the P2 provider-usage DTO adapter, and three review fixes.

Verification: go build ./... 0; dynamic/backendapp/sqlite/utility targeted tests 0; tsc --noEmit 0; related vitest 42 pass; i18n:check 0; docs validate/lint 0; normal hooks (no SKIP). PostgreSQL not run (no DSN).

RV: r4 CALL-20261103-a800407eeaaa APPROVE, verdict FORMAL-KANDEV-P5-20261103-r4.diff-1793670569549712400-231806-mid-1, 0 findings, reviewer codex-cli-exec-luna6 (mid, different lineage). Reviewed head equals current head.

Limitations: no push/PR/merge; branch preserved for publication. PostgreSQL evidence unverified. Publication waits for P2 #4721 to land, then 93 acceptance and 5d's new PR or stacked path (no duplicate PR). Next owner: 8e.

P5 prepared on the P2 usage base and approved. Base: 85942d927e40d00cd9fd897674bd26fb0511af0b (P2 #4721 local head, unpublished) Branch: kd/upstream-p5-ordered-tiers-20261103 Head: 9866d8479459b7f33569aeb24a0b12fae7a9854b Delta: 66 files, +3912/-136 Commits: f020e3a91->ffc40f7 (ordered tiers), 448b8e8d2->38ea0ab (cost/random+preview), f9b42d937->d3a42e6 (round robin), 5241b6f3c->37e2929 (native owner bridge), plus P5 usage delta (18de/5efe/141c pure logic) on the P2 provider-usage DTO adapter, and three review fixes. Verification: go build ./... 0; dynamic/backendapp/sqlite/utility targeted tests 0; tsc --noEmit 0; related vitest 42 pass; i18n:check 0; docs validate/lint 0; normal hooks (no SKIP). PostgreSQL not run (no DSN). RV: r4 CALL-20261103-a800407eeaaa APPROVE, verdict FORMAL-KANDEV-P5-20261103-r4.diff-1793670569549712400-231806-mid-1, 0 findings, reviewer codex-cli-exec-luna6 (mid, different lineage). Reviewed head equals current head. Limitations: no push/PR/merge; branch preserved for publication. PostgreSQL evidence unverified. Publication waits for P2 #4721 to land, then 93 acceptance and 5d's new PR or stacked path (no duplicate PR). Next owner: 8e.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dreampiler/kandev#236