feat(routines): 자율 루프 — interval 루틴에 LOOP 판정·회차/예산 상한·막힘 결재 재개 - #293
Merged
Conversation
…/blocked), maxRuns·maxUsd 상한 자동 정지, blocked는 결재(kind loop)로 재개, chat()이 costUsd 반환 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…에 loop 기본값(maxRuns 20) 주입, maxRuns/maxUsd 옵션 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…·루프 예산(₩ 병기) 입력, i18n routines.loop.* ko/en, 정지 상세(stoppedDetail) 저장 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
beyondworks
force-pushed
the
feat/routine-loops
branch
from
August 23, 2026 02:45
4da71b4 to
1677ca5
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
interval 루틴(크루 Start-loop)을 자율 루프로 확장 — 새 파일 없이 루틴의
loop필드로.loop: { maxRuns(1~200, 기본 20), maxUsd|null, runs, spentUsd, lastVerdict, stoppedReason, missingVerdicts, stoppedDetail }—normalizeLoop순수 함수. interval이 아닌 루틴의 loop는 무시.LOOP: continue|done <이유>|blocked <결정>요구.parseLoopVerdict(마커 없음=continue, 3회 연속 누락 → blocked).kind:'loop', 승인 시resumeLoop, 거절 시 정지 유지) / maxRuns / maxUsd / 수동(manual). 정지 시emitNotify(type:'routine')에 사유 문장.chat()반환값에costUsd추가(SDK 청구 턴만, 구독·openrouter·CLI는 null → 0 합산). 기존 소비자 무영향(필드 추가).loop:{maxRuns:20}: 회의실 loop 지시어, SDKschedule_task(스키마maxRuns·maxUsd추가), CLI 지시 블록(maxRuns/maxUsd수용) — 러너 패리티.3/20회 · 약 ₩588+ 상태 칩(진행 중/완료/막힘/한도/정지됨), 막힘 사유 + 결재함 링크(데크), 정지된 루프는 토글이 "지금 재개". 폼에 최대 반복·루프 예산(USD, ko는 ₩ 병기). i18nroutines.loop.*ko/en.검증
test/routine-loops.test.mjs9건(정규화·판정 파싱·done/maxRuns/maxUsd/blocked→결재 1건·승인 재개·거절 유지·3회 누락·수동 정지·타입 전환) — chat은runRoutine(..., { chatFn })주입.npm test: 925 tests / 920 pass / 0 fail / 5 skipped, exit 0.npx next build통과.artifacts/loops-running.png,loops-blocked.png,loops-form.png(워크트리, 미커밋).미검증(정직 표기)
🤖 Generated with Claude Code