Skip to content

feat(decedent_estate): add opt-in forced-heirship follow-up - #179

Merged
rjqhd123 merged 2 commits into
developfrom
feat/decedent-heir-share-cta
Sep 25, 2026
Merged

rjqhd123 merged 2 commits into
developfrom
feat/decedent-heir-share-cta

Conversation

@rjqhd123

Copy link
Copy Markdown
Collaborator

Summary

  • completed will review 후 유류분 CTA 추가 ("유언 내용이 상속인의 유류분에 영향을 줄 수 있는지 참고용으로 확인해 볼까요?" + [유류분 영향 확인하기])
  • user click 전에는 handoff 없음 — handoffs==[]·next_action에 handoff 값 없음·pending_handoff/pending_reply_agent 생성 안 함
  • click 후 기존 router로 heir_share_analyzer 진입 (라우팅 로직 미변경)
  • AgentOutput.suggested_actions (SuggestedAction: prompt/label/message)는 특정 에이전트 조합에 종속되지 않는 일반 계약이라, 향후 asset_organizer → tax_calculator 같은 다른 opt-in 제안에도 재사용 가능

Test plan

  • apps/api 전체 pytest (1231 passed)
  • apps/web 전체 vitest (149 passed), tsc --noEmit, vite build 모두 통과
  • 신규 backend 테스트: 완료된 handwritten/recording review에 CTA 부착, PENDING/RED/prepare/no-will/guidance-only(notarial/secret)엔 CTA 없음, 클릭 메시지가 router를 통해 heir_share_analyzer로 라우팅됨, ChatResponse.contributions까지 손실 없이 전달
  • 신규 frontend 테스트: interactive 최신 턴에서만 CTA 렌더, 과거 턴엔 숨김, suggested_actions 없으면 기존 UI 회귀 없음, 버튼 클릭 시 action.message가 send됨, loading 중 버튼 disabled
  • 로컬 UI QA (실제 API 연결, ANTHROPIC_API_KEY 사용): 완료된 유언 요건 리뷰 → CTA 노출 → 버튼 클릭 전 자동 이동 없음 → 클릭 → 새 user 발화 생성 → heir_share_analyzer 응답으로 연결 → 이전 CTA는 과거 턴이 되며 숨김, 전부 확인

decedent_estate가 유언 요건 review를 완전히 끝낸 뒤, "유류분 영향
확인하기" opt-in 제안(SuggestedAction)을 붙인다. 사용자가 버튼을
눌러야만 새 user_message가 기존 router를 통해 heir_share_analyzer로
라우팅되며, 자동 handoff/pending_handoff는 만들지 않는다.

AgentOutput.suggested_actions는 특정 에이전트 조합에 종속되지 않는
일반 계약이라 향후 다른 opt-in 제안(예: asset_organizer → tax_calculator)
에도 재사용할 수 있다.
@vercel

vercel Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nlp-1 Ready Ready Preview Sep 25, 2026 5:17am UTC

@rjqhd123
rjqhd123 merged commit ea19aed into develop Sep 25, 2026
4 checks passed
@rjqhd123
rjqhd123 deleted the feat/decedent-heir-share-cta branch September 25, 2026 05:21

This branch was successfully deployed

1 active deployment
Preview — f6ce3e8d Deployed Sep 25, 2026 by vercel[bot]
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