fix(resources): rebuild owned lifecycle guarantees on current main - #150
Merged
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthrough설정 저장소와 토큰 카운터의 초기화 실패 및 종료 처리를 강화했습니다. 제한값 검증을 엄격하게 적용했습니다. Changes리소스 수명주기 및 검증
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
seonghobae
marked this pull request as ready for review
August 12, 2026 08:39
This was referenced Aug 12, 2026
This was referenced Aug 28, 2026
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.
Controlled current-main replacement for #87
The original #87 is deeply diverged from protected
mainand overlaps behavior already integrated through later protected work. This branch was rebuilt from protectedmaine0888d3befdec51f97cb710fd529a9d5055c0d05and preserves only the still-missing package-owned PostgreSQL/resource lifecycle guarantees.Test-first implementation
ce72e8635ee38a46ee68478785623e7157473ce9established owned-resource lifecycle failures before changing production source.PostgresConfigStoreandSecretStorenow close connections acquired before constructor/setup failure.PostgresBatchOrchestrator.prepare_batches()closes its ownedTokenCounterandPostgresConfigStoreon success and failure.TokenCounter.close()is idempotent, clears cached PostgreSQL state, and invalid token/resource ceilings fail closed before extension/database acquisition.The current semantic delta is confined to
pg_llm_batch/config.py,pg_llm_batch/orchestrator.py,pg_llm_batch/token_counter.py,tests/test_batch_assembly.py, andtests/test_connection_lifecycle.py. It introduces no schema, migration, provider protocol, model, scheduler, or release authority.Exact-head evidence
Current head
f5a88e392b951119fd884b24765dbed77507ea81has terminal-success direct CI, Security Scan, SAST Semgrep, CodeQL/OSV/Trivy and the current central exact-head evidence set; no failed or queued current-head check was returned in the latest inspection. Formal reviews and unresolved review threads are absent, while live organization policy requires zero approving reviews and resolved review threads.Protected
mainhas since advanced toddf8d0320cdadf188799a868b9c2ff2e527eaf46through a disjoint provider-file deletion change. Fresh compare shows this branch one protected-main commit behind, five commits ahead, and no overlap with that later main delta; GitHub reports the PR mergeable.Replacement and merge boundary
Promote this unchanged source to Ready so current required workflows can evaluate the live PR/base relation. Merge only if the exact head remains unchanged and mergeable against then-live protected
main, every required current-head CI/security/coverage/package/provenance gate is terminal-success, all valid findings are resolved, and live rules are satisfied. No #87 predecessor evidence transfers.After protected integration, re-evaluate #87 and dependent issues (#90, #108, #111, #117, #121, #122, #123, #126, #129, #131, #134) against the actual merged behavior rather than assuming this bounded replacement closes them.
Summary by CodeRabbit
버그 수정
테스트