fix: a product the customer's scope spec names is not a leak; record the first scoping runs
Case 08 failed requirements_name_no_products for "Shared VPC", which the spec's stated topology names. Records cases 03 and 08 on the scoping branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -285,11 +285,13 @@ async def score_execution(
|
||||
)
|
||||
|
||||
requirements = content(DeliverableKind.REQUIREMENTS)
|
||||
# What the customer named themselves, in the request or in their scope spec. A
|
||||
# choice they stated is a constraint to record, not a product leaking in.
|
||||
stated = case.workflow_request + "\n" + case.scope.replace("_", " ")
|
||||
leaked = [
|
||||
product
|
||||
for product in case.required_products
|
||||
if _mentions(requirements, product)
|
||||
and not _mentions(case.workflow_request, product)
|
||||
if _mentions(requirements, product) and not _mentions(stated, product)
|
||||
]
|
||||
checks.append(
|
||||
Check(
|
||||
|
||||
Reference in New Issue
Block a user