You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: evals-reference/04-primary-address-review/criteria.json
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
{
2
-
"context": "Reference review coverage for findAny/findFirst and collect-then-first cleanup.",
2
+
"context": "Reference review coverage for findFirst behavior preservation and collect-then-first cleanup.",
3
3
"type": "weighted_checklist",
4
4
"checklist": [
5
5
{
@@ -15,16 +15,16 @@
15
15
"description": "Says collecting all primary addresses just to inspect emptiness/read the first result is unnecessary."
16
16
},
17
17
{
18
-
"name": "Chooses findAny when matches are equivalent",
18
+
"name": "Chooses findFirst to preserve first-match behavior",
19
19
"category": "stream_quality",
20
20
"max_score": 20,
21
-
"description": "Recommends filter(Address::primary).findAny().orElse(null) if any primary address is acceptable."
21
+
"description": "Recommends filter(Address::primary).findFirst().orElse(null) to preserve the current get(0) encounter-order behavior."
22
22
},
23
23
{
24
-
"name": "Names the findFirst exception",
24
+
"name": "Names the findAny exception",
25
25
"category": "stream_quality",
26
26
"max_score": 20,
27
-
"description": "Says findFirst is appropriate only if encounter order defines which primary address should win."
27
+
"description": "Says findAny is appropriate only if the domain explicitly says all matching primary addresses are equivalent and encounter order does not define which one should win."
0 commit comments