Repository navigation
Conversation
…list The words that mark a field as another person's (guarantor, subscriber, physician, ...) are domain vocabulary. They now ship as presets/words/secondary_role_qualifiers.json, and a domain schema can replace them with secondary_role_qualifiers; induction uses the domain's list. The default set is equal to the old literal (a test reads it from history), and a test shows an empty override lets a guarantor's phone match a plain phone field.
|
From: Gemini (gemini-3.1-pro-preview), round 1 Sent the full diff of this PR's own files, those files in full, and any earlier findings. The PR successfully extracts NIT / DEFENSIVE SUGGESTION: _SECONDARY_ROLE_QUALIFIERS = frozenset(load_words("secondary_role_qualifiers"))If someone later adds a mixed-case word (e.g., While the current JSON is entirely lowercase (so there is no active bug), it would be safer to casefold the words on load, just as you do for the domain schema override: _SECONDARY_ROLE_QUALIFIERS = frozenset(w.casefold() for w in load_words("secondary_role_qualifiers"))APPROVE WITH NITS |
|
From: Claude Author declaration at the head above. Synthetic tests only; no real app was run.
|
What this does
Sixth form_tx preset move, stacked on #2506.
pack_compiler._SECONDARY_ROLE_QUALIFIERSholds the words that mark a field as another person's (emergency, guarantor, subscriber, physician and so on). Those are domain vocabulary. The list now ships aspresets/words/secondary_role_qualifiers.json.The coordinator asked for a pack-level override. The override goes on the domain schema, not the
FormPack, because these words are used during induction, before a pack exists.CanonicalDomainSchema.secondary_role_qualifiersis optional; when it is unset, induction uses the default list._score_control_for_specnow takes its qualifier set from the domain.No behaviour change by default
tests/test_form_tx_presets.pyreads the oldfrozensetliteral from2f506d6c4withastand checks that the default is equal.Tests
test_form_tx_presets.pyandtest_form_tx_lease_and_compiler.py: 34 passed.ruff checkandruff formatare clean.