Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/state-machines-and-ownership/concept/concept-messaging-inbox-jdbc-postgresql-c04.md
T
DongHyeonkaandClaude Fable 5.1 b25357c48a docs(clean-architecture-backend-template): fold analysis into final and re-select one topic
- analysis/·source-index·state.json 을 final/document.md 제2부·제3부로 접었다. SSOT 는 하나다
- 파일럿 — commit-ambiguity-as-a-result 를 새 기준으로 재선별. 후보 14 → 글감 5
  (PROMOTE 5 · MERGE_INTO 3 · KEEP_IN_SSOT 4 · 보류 2). 기록 5건을 다시 썼고 그림 1개를
  techviz 로 만들었다
- 재선별이 잡은 것: 제1부 §6.2·§11.1 이 자기 §13.2 와 어긋나 있었다(레인을 안 돌렸다 vs
  돌렸다) — 정정. 이미 답이 나와 있던 Question 을 HEAD 재실행 질문으로 다시 세웠다.
  Concept 이 인용한 코드가 SSOT 에 없어 뺐다
- candidateScope·sourceRepository 기록. 나머지 43개 주제는 재선별 대기(PENDING 905)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 12:39:20 +09:00

2.1 KiB

kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, assets, evidence, source, module
kind slug title topic project status sourceRevision rootTreeNode evidenceCapturedOn assets evidence source module
CONCEPT messaging-inbox-jdbc-postgresql-c04 action 예외가 예약까지 함께 롤백시킨다 state-machines-and-ownership clean-architecture-backend-template 게시 전 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 concept:messaging-inbox-jdbc-postgresql-c04 2026-09-01
key file
messaging-inbox-jdbc-postgresql-c04 ../../../final/evidence/rendered/messaging-inbox-jdbc-postgresql-c04.svg
../../../final/evidence/raw/messaging-inbox-jdbc-postgresql-c04.txt
원본 분석 절은 final/document.md#a19-messaging-inbox-jdbc-postgresql#L319 이다.
messaging-inbox-jdbc-postgresql

action 예외가 예약까지 함께 롤백시킨다

수신 처리와 실패와 보존 세 경로가 있고, 실패 경로에서 롤백이 예약도 함께 되돌린다.

관계

  • 컬럼 폭은 애플리케이션 검증과 짝을 이룬다 같은 분석 리프에서 끌어낸 규칙이다.
  • 같은 안전 규칙은 한 공식과 한 강제 시점을 갖는다 같은 분석 리프에서 끌어낸 규칙이다.

본문

수신 처리handleOnce(name, delivery, action)consumer.runOnce(messageId, name, now, () -> { action.apply(delivery); return APPLIED; }) → runner가 트랜잭션 열기 → repository.reserve(...) → 세 검사 → INSERT … ON CONFLICT DO NOTHING → 1행이면 부작용 실행, 0행이면 duplicate() → 커밋 → HandleResult.success().

실패 — action 예외 → ActionFailedException → runner가 롤백(예약도 함께) → HandleResult.Retry("INBOX_ACTION_FAILED").

보존cleanupJob.runOnce(now)policy.cutoff(now) → 무제한 DELETE 1회 → 두 번째 호출 0 → 종료.

ActionFailedException 참조 위치

:::evidence key="messaging-inbox-jdbc-postgresql-c04" alt="코드베이스에서 ActionFailedException 를 검색한 출력 4줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="ActionFailedException 코드베이스 검색 — 4줄 · exit 0" zoom="true" :::