fix(tests): the stale-premise guard keys on the retired conclusion, not the quoted premise (#4134)
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 10s
CI & Build / integration (push) Successful in 46s
CI & Build / TypeScript typecheck (push) Successful in 52s
CI & Build / Python tests (push) Successful in 1m44s
CI & Build / Build & push image (push) Successful in 28s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 10s
CI & Build / integration (push) Successful in 46s
CI & Build / TypeScript typecheck (push) Successful in 52s
CI & Build / Python tests (push) Successful in 1m44s
CI & Build / Build & push image (push) Successful in 28s
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01821k5B3Ysecp9fNYs92Kuy
This commit is contained in:
@@ -268,6 +268,9 @@ def test_every_rule_create_door_asks():
|
|||||||
def test_the_stale_premise_is_gone():
|
def test_the_stale_premise_is_gone():
|
||||||
"""find_duplicate_rule claimed rules were not a semantic-retrieval surface
|
"""find_duplicate_rule claimed rules were not a semantic-retrieval surface
|
||||||
— false since rules were embedded, and the reason this gap survived."""
|
— false since rules were embedded, and the reason this gap survived."""
|
||||||
doc = inspect.getdoc(dedup.find_duplicate_rule) or ""
|
# Flattened: the docstring is hard-wrapped, and the claim straddled a
|
||||||
assert "aren't a semantic-retrieval" not in doc
|
# line. Keyed on the CONCLUSION it drew, not the premise — the corrected
|
||||||
|
# docstring quotes the premise in order to retire it.
|
||||||
|
doc = " ".join((inspect.getdoc(dedup.find_duplicate_rule) or "").split())
|
||||||
|
assert "the right (and only) signal" not in doc
|
||||||
assert "find_overlapping_rules" in doc
|
assert "find_overlapping_rules" in doc
|
||||||
|
|||||||
Reference in New Issue
Block a user