feat(durable): define dead-letter authority record - #407
Conversation
|
Warning Review limit reached
Next review available in: 48 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough변환 실패 정보를 보존하는 불변 Changes변환 dead-letter 레코드
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/main/java/com/clearfolio/viewer/durable/ConversionDeadLetterRecord.java`:
- Around line 72-74: Restrict reasonCode validation in
ConversionDeadLetterRecord to a fixed enum or registered allowlist instead of
accepting any value matching the regex, while preserving the existing format
checks. Add a test in ConversionDeadLetterRecordTest covering a format-valid but
unregistered code such as TENANT_12345 and assert that it is rejected.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 660b1a9b-1082-4921-b96c-6ca3467ad9fa
📒 Files selected for processing (2)
src/main/java/com/clearfolio/viewer/durable/ConversionDeadLetterRecord.javasrc/test/java/com/clearfolio/viewer/durable/ConversionDeadLetterRecordTest.java
Pull request was converted to draft
Pull request was closed
Objective
Advance issue #312 with a path-disjoint durable dead-letter primitive. Terminal retry exhaustion needs bounded, privacy-safe evidence that binds one dead-letter outcome to the exact job generation and attempt without persisting arbitrary exception text as durable authority.
Test-first state
Protected
mainwas directly resolved at55d7ae8647208e301f282350f076eeddaba61d11. This Draft starts intentionally RED at exact test-only head445f1afbab188f1c8ec0d175c084735063613c84.ConversionDeadLetterRecordTestrequires exact dead-letter/job/generation/attempt authority, a controlled low-cardinality reason code, and fail-closed missing or impossible identities. The production type does not exist at this head, so Maven test compilation is expected to fail at that exact boundary.Scope
New durable-domain dead-letter record plus focused tests only. This does not persist the record, alter the current conversion worker, expose raw exception text, implement retry scheduling, worker leases, cancellation, telemetry export, or HTTP admission behavior. It is deliberately path-disjoint from the active issue-#312 idempotency/admission/outbox/lease/retry/cancellation/attempt/audit/delivery-receipt/capacity and restart-recovery slices.
Acceptance
Observe exact-head RED -> smallest immutable production implementation -> exact-head
mvn -B --no-transfer-progress verifywith zero failures/errors/skips, exact owned-production coverage and strict public Javadocs -> CI/Security Scan/SAST/fuzz -> current reviews/threads/live-base refetch. Keep Draft until the unchanged exact implementation head is GREEN. Independent non-author approval remains a separate protected-merge gate.Summary by CodeRabbit
새 기능
테스트