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:
2026-10-11 19:27:51 +01:00
parent 545097530b
commit c26b744b26
3 changed files with 57 additions and 2 deletions

View File

@@ -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(