Cleanup: infer a missing sex from a known-sex spouse (preview → approve) #52

Merged
justin merged 1 commits from cleanup-sex-from-spouse into main 2026-06-09 10:59:10 -04:00
Owner

Unset sex renders blue (male-colored) next to a confirmed-male partner, which is misleading. Adds a Cleanup action that proposes the opposite sex for an unset partner of someone whose sex is set (a confirmed-male husband ⇒ a female wife). Partners of differing known sex are skipped as ambiguous.

Review-and-approve in the Cleanup tool (reuses the existing gender apply path + audit) — not an autonomous write. Backend guess_gender_by_spouse + GET /cleanup/gender/from-spouse; frontend "Infer from spouse" button feeding the existing proposal list. Test covers propose-opposite / skip-no-partner / skip-already-set / apply / re-preview. Full suite 73 passed.

🤖 Generated with Claude Code

Unset sex renders blue (male-colored) next to a confirmed-male partner, which is misleading. Adds a Cleanup action that proposes the **opposite sex for an unset partner of someone whose sex is set** (a confirmed-male husband ⇒ a female wife). Partners of differing known sex are skipped as ambiguous. Review-and-approve in the Cleanup tool (reuses the existing gender apply path + audit) — not an autonomous write. Backend `guess_gender_by_spouse` + `GET /cleanup/gender/from-spouse`; frontend "Infer from spouse" button feeding the existing proposal list. Test covers propose-opposite / skip-no-partner / skip-already-set / apply / re-preview. Full suite **73 passed**. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
justin added 1 commit 2026-06-09 10:59:09 -04:00
Unset sex renders blue (male-colored), which is misleading next to a confirmed
male partner. Add a Cleanup action that proposes the opposite sex for an unset
partner of someone whose sex is set (couples are opposite-sex in practice — a
confirmed-male husband ⇒ a female wife). People whose known partners disagree
are skipped as ambiguous.

It's a preview the user reviews and approves in the Cleanup tool (reusing the
existing gender apply path + audit) — not an autonomous write. Backend:
guess_gender_by_spouse + GET /cleanup/gender/from-spouse. Frontend: an "Infer
from spouse" button feeding the existing proposal list. Test covers
propose-opposite, skip-no-partner, skip-already-set, apply, and re-preview.

Full suite 73 passed; frontend build clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Justin Paul <justin@jpaul.me>
justin merged commit 5485dd2077 into main 2026-06-09 10:59:10 -04:00
justin deleted branch cleanup-sex-from-spouse 2026-06-09 10:59:10 -04:00
Sign in to join this conversation.