# Complete - m-model-group-long-context-admission/02+01_long_capacity

## 완료 일시

2026-07-05

## 요약

Model Group Long-Context Admission의 provider long capacity/config admission 작업을 1회 루프로 완료했다. 최종 판정: PASS.

## 루프 이력

| Plan | Review | Verdict | 메모 |
|------|--------|---------|------|
| `plan_local_G08_0.log` | `code_review_local_G08_0.log` | PASS | provider long capacity schema/validation, refresh classification, long slot reserve/release, provider exclusion 검증 완료 |

## 구현/정리 내용

- `NodeProviderConf`에 `total_context_tokens`, `long_context_capacity`를 추가하고 provider/model catalog 기준 budget validation을 추가했다.
- config refresh classifier가 provider long capacity 관련 field를 live-apply 변경으로 분류하게 했다.
- provider-pool long 요청이 일반 `inflight`와 `longInflight`를 함께 예약/해제하고, long slot이 full인 provider를 long 후보에서 제외하되 normal 후보에는 유지하게 했다.
- 관련 config/service/configrefresh regression tests와 `configs/edge.yaml` 예시를 갱신했다.

## 최종 검증

- `go test -count=1 ./packages/go/config ./apps/edge/internal/configrefresh ./apps/edge/internal/edgevalidate ./apps/edge/internal/service` - PASS; `packages/go/config`, `configrefresh`, `edgevalidate`, `service` 모두 `ok`
- `go run ./apps/edge/cmd/edge config check --config configs/edge.yaml` - PASS; `OK configs/edge.yaml`
- `gofmt -l packages/go/config/config.go packages/go/config/config_test.go apps/edge/internal/configrefresh/classify.go apps/edge/internal/configrefresh/classify_test.go apps/edge/internal/service/run_dispatch.go apps/edge/internal/service/model_queue.go apps/edge/internal/service/model_queue_test.go apps/edge/internal/service/service_internal_test.go` - PASS; output 없음
- `git diff --check` - PASS; output 없음
- `go build ./...` - PASS; output 없음

## Roadmap Completion

- Milestone: `agent-roadmap/phase/operational-observability-provider-management/milestones/model-group-long-context-admission.md`
- Completed task ids:
  - `provider-long-capacity`: PASS; evidence=`agent-task/archive/2026/07/m-model-group-long-context-admission/02+01_long_capacity/plan_local_G08_0.log`, `agent-task/archive/2026/07/m-model-group-long-context-admission/02+01_long_capacity/code_review_local_G08_0.log`; verification=`go test -count=1 ./packages/go/config ./apps/edge/internal/configrefresh ./apps/edge/internal/edgevalidate ./apps/edge/internal/service`, `go run ./apps/edge/cmd/edge config check --config configs/edge.yaml`
  - `provider-exclusion`: PASS; evidence=`agent-task/archive/2026/07/m-model-group-long-context-admission/02+01_long_capacity/plan_local_G08_0.log`, `agent-task/archive/2026/07/m-model-group-long-context-admission/02+01_long_capacity/code_review_local_G08_0.log`; verification=`go test -count=1 ./apps/edge/internal/service`
- Not completed task ids: 없음

## 잔여 Nit

- 없음

## 후속 작업

- 없음
