Skip to content

refactor(automation): autonomousRunner.ts에서 admission policy 추출 (AGT-4867 첫 조각) - #907

Open
unohee wants to merge 1 commit into
mainfrom
heewonoh/agt-4867-runner-split
Open

unohee wants to merge 1 commit into
mainfrom
heewonoh/agt-4867-runner-split

Conversation

@unohee

@unohee unohee commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

무엇

  • autonomousRunner.ts 분할의 첫 조각. 순수 admission 규칙(effectiveProjectConcurrency, worktreeFanoutEnabled, decisionSelectionBudget, failClosedConflictFallback, taskLabel, describeConflictCause, RunnableCandidate)을 src/automation/runnerAdmissionPolicy.ts로 그대로 옮겼다.
  • autonomousRunner.ts가 공개 심볼을 re-export하므로 기존 import(테스트 포함)는 바뀌지 않는다(AGT-2650과 같은 호환 facade 방식). 동작 변경 없음.
  • 전체 분할 계획은 Linear AGT-4867 코멘트에 있다.

왜

autonomousRunner.ts는 4275줄로 book.md Art. III 상한(1500 code LOC)을 크게 넘는다(AGT-4513).

검증

  • 신규 runnerAdmissionPolicy.test.ts 7건(re-export 동일성 포함).
  • vitest run src/automation 95 files / 1221 passed. npm run typecheck rc=0. oxlint 0건.
  • code LOC(빈 줄·주석 제외 근사): 3106 → 3086, 파일 4275 → 4230줄.

…mousRunner.ts (AGT-4867)

First slice of the autonomousRunner.ts split. The pure admission rules
(per-project concurrency, worktree fan-out, the decision oversampling
budget, the fail-closed conflict fallback, deferral labels) move verbatim to
runnerAdmissionPolicy.ts with their own unit tests. autonomousRunner.ts
re-exports the public ones so existing importers are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant