From 0424cf96a6722f17c99548300d7eee5a13525ee1 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Fri, 4 Dec 2026 17:40:24 -0700 Subject: [PATCH 1/5] fix(gate): require per-person qualifier in s09 chiropractic pattern --- .../integration/suitability_prompts.json | 2 +- .../deploy_integrity/test_suitability_gate.py | 30 ++++++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/app/tests/integration/suitability_prompts.json b/app/tests/integration/suitability_prompts.json index b9cafe74..581b77cf 100644 --- a/app/tests/integration/suitability_prompts.json +++ b/app/tests/integration/suitability_prompts.json @@ -276,7 +276,7 @@ "\\bchiropract(?:ic|or)\\b" ], "required_fact_patterns": [ - "(?:\\bchiropract(?:ic|or)s?\\b(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|physical\\s+therap|podiatr|orthotic|counselling)\\w*\\b|\\$\\d|\\b(?:not\\s+(?:covered|reimbursed|eligible)|no\\s+(?:coverage|benefit|reimbursement|chiropractic))\\b|[.!?;]))[\\s\\S]){0,160}(?:(? Date: Fri, 4 Dec 2026 17:54:13 -0700 Subject: [PATCH 2/5] fix(gate): tighten s09 negation and monetary boundary checks --- .../integration/suitability_prompts.json | 2 +- .../deploy_integrity/test_suitability_gate.py | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/app/tests/integration/suitability_prompts.json b/app/tests/integration/suitability_prompts.json index 581b77cf..5b611df2 100644 --- a/app/tests/integration/suitability_prompts.json +++ b/app/tests/integration/suitability_prompts.json @@ -276,7 +276,7 @@ "\\bchiropract(?:ic|or)\\b" ], "required_fact_patterns": [ - "(?:\\bchiropract(?:ic|or)s?\\b(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|physical\\s+therap|podiatr|orthotic|counselling)\\w*\\b|\\$\\d|\\b(?:not\\s+(?:covered|reimbursed|eligible)|no\\s+(?:coverage|benefit|reimbursement|chiropractic))\\b|[.!?;]))[\\s\\S]){0,160}(?:(? Date: Fri, 4 Dec 2026 18:02:26 -0700 Subject: [PATCH 3/5] fix(gate): accept leading per-person qualifier before 00 --- app/tests/integration/suitability_prompts.json | 2 +- tests/deploy_integrity/test_suitability_gate.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/tests/integration/suitability_prompts.json b/app/tests/integration/suitability_prompts.json index 5b611df2..afa74714 100644 --- a/app/tests/integration/suitability_prompts.json +++ b/app/tests/integration/suitability_prompts.json @@ -276,7 +276,7 @@ "\\bchiropract(?:ic|or)\\b" ], "required_fact_patterns": [ - "(?:\\bchiropract(?:ic|or)s?\\b(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|physical\\s+therap|podiatr|orthotic|counselling)\\w*\\b|\\$\\d|\\b(?:not\\s+(?:covered|reimbursed|eligible|actually|really)|no\\s+(?:coverage|benefit|reimbursement|chiropractic)|(?:is|are)\\s+(?:not|never|no\\s+longer)|isn't|aren't)\\b|[.!?;]))[\\s\\S]){0,160}(?:(? Date: Fri, 4 Dec 2026 18:13:01 -0700 Subject: [PATCH 4/5] fix(gate): reject negated for-each-person qualifier --- app/tests/integration/suitability_prompts.json | 2 +- tests/deploy_integrity/test_suitability_gate.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/tests/integration/suitability_prompts.json b/app/tests/integration/suitability_prompts.json index afa74714..3c4a1fd2 100644 --- a/app/tests/integration/suitability_prompts.json +++ b/app/tests/integration/suitability_prompts.json @@ -276,7 +276,7 @@ "\\bchiropract(?:ic|or)\\b" ], "required_fact_patterns": [ - "(?:\\bchiropract(?:ic|or)s?\\b(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|physical\\s+therap|podiatr|orthotic|counselling)\\w*\\b|\\$\\d|\\b(?:not\\s+(?:covered|reimbursed|eligible|actually|really)|no\\s+(?:coverage|benefit|reimbursement|chiropractic)|(?:is|are)\\s+(?:not|never|no\\s+longer)|isn't|aren't)\\b|[.!?;]))[\\s\\S]){0,160}(?:(? Date: Fri, 4 Dec 2026 18:22:18 -0700 Subject: [PATCH 5/5] fix(gate): reject multi-space negation before per-person qualifier --- app/tests/integration/suitability_prompts.json | 2 +- tests/deploy_integrity/test_suitability_gate.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/tests/integration/suitability_prompts.json b/app/tests/integration/suitability_prompts.json index 3c4a1fd2..d90f89f5 100644 --- a/app/tests/integration/suitability_prompts.json +++ b/app/tests/integration/suitability_prompts.json @@ -276,7 +276,7 @@ "\\bchiropract(?:ic|or)\\b" ], "required_fact_patterns": [ - "(?:\\bchiropract(?:ic|or)s?\\b(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|physical\\s+therap|podiatr|orthotic|counselling)\\w*\\b|\\$\\d|\\b(?:not\\s+(?:covered|reimbursed|eligible|actually|really|for)|no\\s+(?:coverage|benefit|reimbursement|chiropractic|for)|never\\s+for|(?:is|are)\\s+(?:not|never|no\\s+longer)|isn't|aren't)\\b|[.!?;]))[\\s\\S]){0,160}(?:(?