Repository navigation
Conversation
A phrase obligation verified on a page field only when every word of the
field's label was a free-text kind word, so 'Customer Details: <phrase>'
or 'Clinical Notes: <phrase>' rejected correct saves. A compound label now
names a phrase when its head noun (last word) is a free-text word and no
word before it points at another record or an unsaved state ('Previous
Notes', 'Draft Comment'). Amounts, dates, codes and IDs keep the full rule.
Adds adversarial tests, including 5 against 'Dose: 50 mg'.
Independent adversarial review: REQUEST CHANGESFrom: Grok The matcher change is the right shape, but this head is not mergeable: smoke fails the fail-closed fold ratchet, and that failure is what turns What I checked
Against this worktree on Python 3.12 I ran Blocker
The new Limitations, not the merge blocker:
CI at this head: smoke failed on the fold check above; |
…fier slice (#2851 review, no behaviour change)
Problem
The strict obligation matcher (#2784) verifies a quoted phrase on a page field only when every word of the field's label is a free-text kind word (
note,details,comment...). A correct save shown asCustomer Details: <phrase>orClinical Notes: <phrase>is rejected, becausecustomerandclinicalaren't kind words.Change
In
_label_names_obligation, a phrase or narrative obligation is also named by a compound label of up to four words when:previous,prior,draft,pending,expected,templateand similar).Everything else in the strict path is unchanged: the phrase must still be the whole bound value, the line must carry no negation, failure or modal word, and one label can't carry two values. Amounts, dates, codes and IDs keep the full rule.
Tests
Customer Details,Clinical Notes,Appeal Reasonwith the exact phrase.Previous Notes,Draft Comment,Expected Summary,Customer Name(head isn't a free-text word), extra text in the value, an error on the line, part of the phrase, and one label with two values.5still doesn't verify againstDose: 50 mg, a phrase"5"doesn't verify againstClinical Notes: 50 mg, and$250.00doesn't verify againstCharge Details: $1,250.00.pytest tests/test_transducer_obligations.py tests/test_evidence_vendored.py tests/test_transducer_v3_runtime.py: 251 passed.