Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
491 commits
Select commit Hold shift + click to select a range
b1b862f
chore(deps): bump the github-actions group across 1 directory with 6 …
dependabot[bot] Sep 2, 2026
3d6253e
Merge pull request #285 from QinXi-ai/refactor/212-schema-importer
sromoam Sep 2, 2026
6d6c24b
Merge pull request #240 from awslabs/dependabot/github_actions/dev/gi…
sromoam Sep 2, 2026
87d82fd
Merge branch 'dev' into fix/231-hungarian-fd-contract
digalaviz Sep 2, 2026
235d5f1
Merge pull request #308 from mhaye9545/fix/307-empty-confusion-matrix…
sromoam Sep 3, 2026
85d0417
feat!: remove all_fields_matched and define EvalResult.matched directly
sromoam Aug 27, 2026
919a788
docs: purge all_fields_matched from docs and examples
sromoam Aug 27, 2026
7b227da
fix(287): address review on matched, the fd guidance and test hygiene
sromoam Aug 27, 2026
3684007
docs: a complete failure check reads both rollup nodes, not just aggr…
sromoam Aug 27, 2026
1db070b
docs: restore the #226 release note my rebase dropped
sromoam Sep 3, 2026
65ff59a
Merge pull request #290 from awslabs/fix/287-remove-all-fields-matched
sromoam Sep 3, 2026
49ef56e
feat!: score undeclared dict fields with ANLS* instead of whole-objec…
sromoam Aug 28, 2026
50d89e1
refactor: delete the tuple-preserving normalization and the tau knob
sromoam Aug 28, 2026
7a89848
refactor(anls)!: rename tau to leaf_threshold so `threshold` means on…
sromoam Sep 2, 2026
d249ef7
fix: address the five findings from reviewing the dict work
sromoam Sep 2, 2026
479aba8
fix: keep ANLS* leaves canonical, and fix the two structural findings
sromoam Sep 3, 2026
79f7d53
fix: one annotation, one answer, on the two branches that disagreed
sromoam Sep 3, 2026
2882442
fix: refuse values with no JSON form, and rewrite the comparator docs
sromoam Sep 3, 2026
682b7e2
docs: answer why a reader would tune leaf_threshold
sromoam Sep 3, 2026
e55270d
docs: show that numerically equal values can score below 1.0
sromoam Sep 3, 2026
4d40087
docs: restore the BBoxIoUComparator section the ANLS* rewrite overwrote
sromoam Sep 3, 2026
31d7ed4
Merge pull request #300 from awslabs/feat/277-anls-star-dict-comparison
sromoam Sep 3, 2026
381ff52
Merge branch 'dev' into fix/231-hungarian-fd-contract
sromoam Sep 3, 2026
e4bf08e
Merge pull request #289 from digalaviz/fix/231-hungarian-fd-contract
sromoam Sep 3, 2026
9350972
feat: add normalized text comparator
LuizPiccini Sep 3, 2026
2874db6
fix(210): reject unrecognized x-aws-stickler-* keys instead of droppi…
sromoam Sep 3, 2026
9f56ab5
fix(210): make extension-key rejection reach every position
sromoam Sep 3, 2026
1dcfdce
feat(comparators)!: warn when compare() shadows the None policy (#215)
sujimart Sep 3, 2026
382b879
Merge branch 'dev' into feat/215-remove-compare-shim
sujimart Sep 3, 2026
35f982c
Merge pull request #305 from awslabs/feat/215-remove-compare-shim
sromoam Sep 4, 2026
c1f0b1f
Merge pull request #312 from awslabs/fix/210-unknown-extension-keys
sromoam Sep 4, 2026
1c4b28f
Merge pull request #313 from LuizPiccini/feat/223-normalized-comparator
sromoam Sep 4, 2026
83d8981
docs(288): state which rollup node answers which question
sromoam Aug 27, 2026
e9ab483
docs(288): ground the two rollup nodes in the mAP structure
sromoam Aug 28, 2026
c260207
docs(288): correct the published rollup numbers and the clean check
sromoam Sep 3, 2026
60f8165
docs: de-duplicate two release notes that shipped twice
sromoam Sep 4, 2026
f343f6b
fix(246)!: honour a threshold set on a comparator
sromoam Sep 4, 2026
5ffb420
fix(318): score a nested plain BaseModel instead of calling it a mism…
sromoam Sep 4, 2026
5b2f656
fix(318): pass the models to the comparator unconverted, and require …
sromoam Sep 4, 2026
fee37b6
fix(318): settle the subclass case, and declare the rendering limitation
sromoam Sep 4, 2026
778a416
fix!: tell a named comparator threshold from a default one
sromoam Sep 4, 2026
0efc87c
fix!: score a nested plain BaseModel as an object, not as its string
sromoam Sep 4, 2026
bfd6a34
fix: refuse an object the field cannot score, and memoise the lookup
sromoam Sep 8, 2026
f91882a
fix: honour an explicit clip_under_threshold on a plain-model field
sromoam Sep 8, 2026
5c0ba1b
fix(317): read x-aws-stickler-threshold on an object-typed property
sromoam Sep 8, 2026
6c2cfbf
docs(288): scope the threshold-gating claim to list items
sromoam Sep 8, 2026
bc8e561
feat(239): infer comparators for fields a config did not specify
sromoam Sep 8, 2026
addba73
fix(239): merge comparator_config, scope the nested flag, infer list …
sromoam Sep 8, 2026
a6a5063
fix(246): keep legacy schemas importable and out-of-tree comparators …
sromoam Sep 8, 2026
3477a69
docs(288): read the node whose children you mean
sromoam Sep 8, 2026
cd3e891
fix(317): ignore an array-of-objects threshold instead of refusing it
sromoam Sep 8, 2026
182d720
docs(288): retire the unscoped claim everywhere, not only where it wa…
sromoam Sep 8, 2026
6d2c6e4
test(288): fail the build if `overall` is called an object verdict again
sromoam Sep 8, 2026
f699344
docs(288): bring the older sections into line with the new ones
sromoam Sep 8, 2026
3bf2fe3
fix(317): gate the array warning on the value, and unbundle the diff
sromoam Sep 8, 2026
337ff7d
feat(239): honour the config an inferred field was given, and stop gu…
sromoam Sep 8, 2026
49dc382
docs(288): describe the mechanism that actually runs, and scope its s…
sromoam Sep 8, 2026
f8d8c9e
test(288): guard the spelling of the claim that actually recurred
sromoam Sep 8, 2026
ef7ae2a
fix(246): do not warn on the placeholder this change exists to rescue
sromoam Sep 8, 2026
3bf1418
fix(246): report a comparator threshold this shape cannot use
sromoam Sep 8, 2026
22a84e9
docs(288): fix the numbers, the invariant, and the hole in the guard
sromoam Sep 8, 2026
ad16f2f
fix(246): key the new warning per model, and attribute a comparator zero
sromoam Sep 9, 2026
4869dd9
fix: make EvalResult non-matches available, without a 2x eval cost
sromoam Sep 9, 2026
ce3a19e
Merge origin/dev into fix/eval-result-pretty-print
sromoam Sep 9, 2026
420645f
Merge pull request #299 from anisayakmitra-in/fix/eval-result-pretty-…
sromoam Sep 9, 2026
1370193
fix(319): compose the object-pair gate in one place, and stop refusin…
sromoam Sep 9, 2026
7c57f2c
docs(319): write down the different-class rule, and scope the claim t…
sromoam Sep 9, 2026
3ded5ea
docs(319): link the tracked issue for the StructuredModel half (#327)
sromoam Sep 9, 2026
0d020c3
docs(288): take the unit annotation off the matrix, and fix the third…
sromoam Sep 9, 2026
a7cdb6a
Merge pull request #295 from awslabs/docs/288-overall-vs-aggregate
sromoam Sep 9, 2026
5ab530a
fix(246): make clip_under_threshold work on a list, closing the Dict/…
sromoam Sep 9, 2026
35e6de1
docs(246): declare the third score movement, the one that configures …
sromoam Sep 9, 2026
ecc857d
fix(239): silence two bandit false positives that were failing the se…
sromoam Sep 9, 2026
3f994a9
Merge pull request #316 from awslabs/fix/246-honour-comparator-threshold
sromoam Sep 9, 2026
e763380
fix(239): stop losing an authored comparator_config, and make the two…
sromoam Sep 9, 2026
2fca87f
Merge dev into fix/318-nested-plain-basemodel
sromoam Sep 9, 2026
79316cf
Merge dev into feat/239-infer-unspecified
sromoam Sep 9, 2026
1a3103f
Merge dev into fix/317-object-property-threshold
sromoam Sep 9, 2026
6cbcc74
fix(318): correct three claims the merge left unverifiable
sromoam Sep 10, 2026
d81e7c2
fix(318): judge a PAIR in the element gate, not a whole list
sromoam Sep 10, 2026
92ca3cd
docs(318): link the deferred non-match gap to #332
sromoam Sep 10, 2026
57601ff
Merge pull request #319 from awslabs/fix/318-nested-plain-basemodel
sromoam Sep 10, 2026
20e8e7d
Merge remote-tracking branch 'origin/dev' into fix/317-object-propert…
sromoam Sep 10, 2026
4e813a9
Merge remote-tracking branch 'origin/dev' into feat/239-infer-unspeci…
sromoam Sep 10, 2026
c4996f9
fix(317): correct five claims and pin the two gaps this leaves
sromoam Sep 10, 2026
6fbb425
Merge pull request #323 from awslabs/fix/317-object-property-threshold
sromoam Sep 10, 2026
8bdf811
Merge remote-tracking branch 'origin/dev' into feat/239-infer-unspeci…
sromoam Sep 10, 2026
bab977f
fix(239): stop double-unwrapping a nested array, and correct five claims
sromoam Sep 10, 2026
6580ecb
Merge pull request #324 from awslabs/feat/239-infer-unspecified
sromoam Sep 10, 2026
d1983e8
Docs/211 configuration paths (#328)
RachelHanspal Sep 11, 2026
cf896ff
fix: warn when NormalizedComparator is used on mappings (#331)
hugosmoreira Sep 11, 2026
c8cbe86
fix(320): refuse SecretStr/SecretBytes rather than compare the mask (…
sujimart Sep 11, 2026
4235f73
docs: measure against the branch, not the installed stickler (#342) (…
sromoam Sep 11, 2026
631b3c6
chore: bump version to 1.0.0 for release (#344)
sromoam Sep 11, 2026
6b40201
docs: correct `matched` description and note sparse-object behaviour
sromoam Sep 14, 2026
bfe69ff
fix: zero declared weights are not an empty denominator (#345 blocker 3)
sromoam Sep 14, 2026
ffa59f1
chore: restore the absolute `exclude-newer` in uv.lock
sromoam Sep 14, 2026
43a573d
chore: merge main into dev after the v1.0.0 release squash
sromoam Sep 14, 2026
73e9bc6
docs: Strands Evals integration notebooks and guide
sromoam Sep 14, 2026
ea20ed7
docs(notebooks): show what test_pass gates on, after the recall fix
sromoam Sep 14, 2026
2d62a01
docs(strands): correct five claims the draft got wrong, and pin cell 15
digalaviz Sep 15, 2026
4211f3d
examples(strands): add an offline agent walkthrough, and interpret ev…
digalaviz Sep 15, 2026
6c2a707
fix(examples): make record_agent_exchange.py actually run
digalaviz Sep 15, 2026
ce39819
docs(examples): correct twelve claims in the offline agent walkthrough
digalaviz Sep 15, 2026
7ae2047
docs(examples): correct how nested confusion-matrix rows are counted
digalaviz Sep 15, 2026
9747bf2
docs(strands): fix the notebook links, provenance and index entries
digalaviz Sep 15, 2026
ca40bbb
docs(strands): point the notebook links at dev, not the feature branch
digalaviz Sep 16, 2026
476a1a8
fix(350): warn on unrecognized keys in a model config
MohammedAlkindi Sep 18, 2026
81574c0
docs: correct inaccurate Stickler extension and field claims (#329)
SatvikMishra08 Sep 19, 2026
f7c92cf
docs: note #329 claim fixes under Unreleased in CHANGELOG
SatvikMishra08 Sep 19, 2026
26a3baa
fix: check documentation links on pull requests
hugosmoreira Sep 20, 2026
348dc59
fix: report refused list elements with field comparison rules
hugosmoreira Sep 20, 2026
a9b8bd2
fix(350): key the unknown-key warning per model and field path
MohammedAlkindi Sep 21, 2026
9c24e11
fix(350): refuse match_threshold on a primitive field
MohammedAlkindi Sep 21, 2026
f32e6cf
docs(350): document unknown-key reporting, and correct "raise" to "emit"
MohammedAlkindi Sep 21, 2026
864cefb
fix(350): refuse a non-mapping field config, and name the path in bot…
MohammedAlkindi Sep 21, 2026
e638ea2
docs(350): mark the breaking change the way this changelog marks them
MohammedAlkindi Sep 21, 2026
1479c3d
Merge pull request #361 from MohammedAlkindi/fix/warn-on-unknown-conf…
sromoam Sep 24, 2026
bc6c17e
docs(352): correct the README's published defaults and example scores…
sromoam Sep 24, 2026
7fefbbb
fix: reuse scored list pairings in comparison reports
hugosmoreira Sep 24, 2026
b147fb8
Merge dev and retain both Unreleased changelog entries
hugosmoreira Sep 24, 2026
63da7e1
Merge remote-tracking branch 'origin/dev' into bugfix/355-docs-pr-lin…
hugosmoreira Sep 24, 2026
36fb938
fix: enforce documentation plugin diagnostics
hugosmoreira Sep 24, 2026
7664719
fix: reuse nested list results in reports
hugosmoreira Sep 24, 2026
81dafd3
docs: apply sromoam review keep/reverts on #362
SatvikMishra08 Sep 27, 2026
0f28916
docs(352): name the formats that default to a 1.0 threshold
sromoam Oct 6, 2026
0b9602b
docs(strands): migrate the samples to StructuredOutputSimilarity and …
digalaviz Oct 6, 2026
0a7f68b
docs(strands): correct four inaccurate claims in the Strands Evals sa…
digalaviz Oct 7, 2026
6a259d8
fix: treat a float NaN as absent, the same as None (#367)
harrycav Oct 9, 2026
fc063e4
docs: correct #189 round-trip note in model-export.md
SatvikMishra08 Oct 9, 2026
9fa562b
fix: keep list reporting state outside public results
hugosmoreira Oct 10, 2026
ac23eae
fix: reject new documentation reference warnings
hugosmoreira Oct 10, 2026
44f68ce
fix: preserve legacy list reporting helper hooks
hugosmoreira Oct 11, 2026
b32d3ff
Merge pull request #362 from SatvikMishra08/fix/329-docs-claim-fixes
sromoam Oct 12, 2026
115b350
fix(383): let date, Decimal, UUID, Enum, tuple and set fields reach t…
sromoam Oct 13, 2026
70e9afb
Merge pull request #381 from harrycav/fix/367-nan-as-absent
sromoam Oct 13, 2026
20d13e7
fix: integrate dev and align NaN field reports
hugosmoreira Oct 13, 2026
5305811
chore: merge dev into fix/383-scalar-dispatch
sromoam Oct 14, 2026
854fc00
fix(383): share the scalar-pair rule with compare(), and close review…
sromoam Oct 14, 2026
6034791
chore(deps): bump the github-actions group across 1 directory with 3 …
dependabot[bot] Oct 14, 2026
869bc28
fix(366): refuse a RootModel when the evaluator is built
digalaviz Oct 15, 2026
a2db932
chore(ci): validate a pull request commit once, not twice
digalaviz Oct 15, 2026
a2f5d4c
fix: restore stdout when print_confusion_matrix output_file write fails
hippi345 Oct 15, 2026
afc1b0c
fix: narrow scope to stdout restoration only
hippi345 Oct 15, 2026
ad19ac8
refactor(296): remove the dead ConfusionMatrixCalculator methods
Thanatos9404 Oct 15, 2026
b88d81b
fix(383): always call a declared comparator, and drop Tuple/Set
sromoam Oct 15, 2026
9db859d
Merge pull request #390 from Thanatos9404/refactor/296-remove-dead-co…
sromoam Oct 15, 2026
6abbf26
Merge pull request #389 from digalaviz/chore/ci-concurrency-and-triggers
sromoam Oct 15, 2026
693a3de
fix(292): format the budget key as a number in Bulk_Confidence_AUROC
Thanatos9404 Oct 15, 2026
e57a48d
fix: tolerate documentation warning line shifts
hugosmoreira Oct 15, 2026
de3dfd2
chore: merge current dev CI updates
hugosmoreira Oct 15, 2026
ddbd94b
fix: preserve scores in nested comparison reasons
hugosmoreira Oct 15, 2026
d1f0f80
Merge pull request #384 from awslabs/fix/383-scalar-dispatch
digalaviz Oct 15, 2026
9a6f13d
fix!: treat a None list element as absent
sromoam Oct 15, 2026
e1445a4
fix(366): refuse a RootModel in a nested field or list element
digalaviz Oct 15, 2026
95fee3f
Merge remote-tracking branch 'origin/dev' into fix/366-reject-rootmodel
digalaviz Oct 15, 2026
f81a33e
Merge pull request #388 from digalaviz/fix/366-reject-rootmodel
sromoam Oct 15, 2026
baa3ca2
fix(pretty_print): do not report success when non-match records are a…
sromoam Oct 15, 2026
dd0048a
fix(333): export a list of mappings with object items
sromoam Oct 15, 2026
5049709
chore: merge current dev into list reporting revision
hugosmoreira Oct 15, 2026
2ca4fe0
fix(pretty_print): error on non-result input; actionable note for Eva…
sromoam Oct 15, 2026
aad6ebd
fix(333): correct the round-trip claims and pin the documented limits
sromoam Oct 15, 2026
6385efc
chore: add digalaviz as a maintainer
digalaviz Oct 15, 2026
1e743e0
test(365): pin the stickler surface Strands Evals 1.6.0 reads
sromoam Oct 16, 2026
e403b9b
Merge pull request #399 from awslabs/fix/386-none-list-elements-absent
digalaviz Oct 16, 2026
c3dfee3
ci(365): exempt strands-agents-evals from the cooldown up to the 1.6.…
sromoam Oct 16, 2026
14963ad
fix(411): report missing non-match records instead of a clean document
digalaviz Oct 16, 2026
7faefc0
fix(349)!: export plain models and nested lists, refuse model unions
Thanatos9404 Oct 16, 2026
003b5f1
Merge pull request #404 from awslabs/fix/298-pretty-print-raw-dict
sromoam Oct 16, 2026
b53e2f7
Merge pull request #363 from hugosmoreira/bugfix/355-docs-pr-link-check
sromoam Oct 19, 2026
5e17922
fix(333): round-trip an undeclared list of mappings and a Mapping ele…
sromoam Oct 19, 2026
be316a6
docs(352): state the 1.0 default for enum/const on any type and on ar…
sromoam Oct 19, 2026
99cc2fe
Merge pull request #396 from Thanatos9404/bugfix/292-auroc-notebook-b…
sromoam Oct 19, 2026
b5903a9
Merge pull request #394 from hippi345/fix/confusion-matrix-stdout-res…
sromoam Oct 19, 2026
bcc24de
fix(349): unwrap Annotated before exporting nested models
Thanatos9404 Oct 19, 2026
d90c7f6
Merge pull request #414 from Thanatos9404/bugfix/349-roundtrip-union
sromoam Oct 19, 2026
3554406
Merge pull request #401 from digalaviz/chore/add-digalaviz-as-maintainer
sromoam Oct 19, 2026
c346ee8
Merge pull request #387 from awslabs/dependabot/github_actions/dev/gi…
sromoam Oct 19, 2026
c45b00b
Merge remote-tracking branch 'origin/dev' into fix/333-list-dict-export
sromoam Oct 19, 2026
d37730b
Merge origin/dev into fix/411-html-false-success
sromoam Oct 19, 2026
ace4572
Merge pull request #412 from awslabs/fix/411-html-false-success
sromoam Oct 19, 2026
cc2bd10
fix: preserve list report indices and node reasons on current dev
hugosmoreira Oct 19, 2026
f59b247
fix(422): escape field names in the HTML field performance table
harrycav Oct 19, 2026
a1a58ce
Merge pull request #364 from hugosmoreira/bugfix/332-list-reporting
sromoam Oct 20, 2026
84b890b
Merge remote-tracking branch 'origin/dev' into fix/333-list-dict-export
sromoam Oct 20, 2026
0921f4a
Merge pull request #410 from awslabs/test/365-strands-evals-contract
sromoam Oct 20, 2026
776d42d
Merge remote-tracking branch 'origin/dev' into fix/422-escape-field-n…
harrycav Oct 20, 2026
8cda4fd
docs(352): split the README's object rows into with-properties and fr…
sromoam Oct 20, 2026
e6163d7
fix(333): export the resolved comparison for every mapping list, keep…
sromoam Oct 20, 2026
59e39ce
test(365): address review on the Strands Evals contract
sromoam Oct 20, 2026
b8efbdc
fix(333): state each re-imported spelling, document the late-resolved…
sromoam Oct 20, 2026
2db699d
test(365): fail closed on the lock export and finish the review follo…
sromoam Oct 20, 2026
35bf537
Merge pull request #369 from awslabs/docs/352-readme-defaults
sromoam Oct 20, 2026
8f2d66f
Merge pull request #429 from harrycav/fix/422-escape-field-names
digalaviz Oct 21, 2026
86372b5
fix(422): str() the field name, test the chart's escaping, truncate b…
harrycav Oct 20, 2026
19f8618
fix(431): keep document data from ending the report's <script> block
harrycav Oct 21, 2026
f72dc4b
test(431): guard the field-threshold blob with a schema-derived field…
harrycav Oct 21, 2026
efbe6a9
chore(deps): bump astral-sh/setup-uv
dependabot[bot] Oct 21, 2026
ce23e8a
Merge pull request #442 from awslabs/test/365-followups
digalaviz Oct 23, 2026
49fa64b
test(399): snapshot the None-in-a-list shapes
digalaviz Oct 23, 2026
baef6c5
Merge pull request #446 from digalaviz/test/399-snapshot-the-none-shapes
harrycav Oct 23, 2026
b6c4079
test(381): snapshot the NaN shapes
harrycav Oct 23, 2026
9eaf895
docs(381): list the NaN change as Breaking
harrycav Oct 23, 2026
de0d3c9
docs(381): point the snapshot note at the NaN change by issue, not se…
harrycav Oct 23, 2026
215ac16
Merge pull request #444 from harrycav/fix/431-script-breakout
digalaviz Oct 26, 2026
063037f
fix(453): escape :.3f/:1f cells after formatting
mangeshraut712 Oct 28, 2026
319cac6
Merge pull request #445 from awslabs/dependabot/github_actions/dev/gi…
sromoam Oct 28, 2026
ff179d6
Merge pull request #448 from harrycav/docs/381-nan-breaking
sromoam Oct 28, 2026
4f4f4b5
Merge pull request #447 from harrycav/test/381-snapshot-nan-shapes
sromoam Oct 28, 2026
2ce08cf
chore(deps): bump the github-actions group with 2 updates
dependabot[bot] Oct 28, 2026
1f46ece
fix: report-only list fixes: raw_similarity_score, evaluator-format p…
sromoam Oct 28, 2026
13a4523
refactor(395): remove the remaining dead confusion-matrix paths (#398)
Thanatos9404 Oct 28, 2026
251f333
fix(336): warn about the nested-field pairs the matcher kept, not eve…
MohammedAlkindi Oct 28, 2026
1df32da
fix(423): refuse in specs_for whatever structured_model_for refuses (…
harrycav Oct 29, 2026
4a6ef00
fix(417)!: use one threshold tolerance at every classification gate (…
Thanatos9404 Oct 29, 2026
89cb587
Merge origin/dev into fix/333-list-dict-export
sromoam Oct 29, 2026
8187b85
fix(333): export a from_pydantic() mapping element as an object
sromoam Oct 29, 2026
6825739
docs(333): state the from_pydantic() config spelling and the default_…
sromoam Oct 29, 2026
c7a943a
docs(333): state the from_pydantic() export limits, and pin the #435 …
sromoam Oct 29, 2026
0414699
fix(report): accept a non-string document identifier
digalaviz Oct 26, 2026
3ad0c4a
fix(report): escape the confusion counts in the field performance table
digalaviz Oct 26, 2026
be1755d
docs: say what the U+2028/U+2029 entries actually do
digalaviz Oct 26, 2026
38ff23a
chore(deps): bump mkdocs-material to 9.7.7 (GHSA-xvg9-69gf-fjrf)
digalaviz Oct 26, 2026
aaaff13
fix(report): disable pdf.js eval (CVE-2024-4367), and embed a numeric…
sromoam Oct 29, 2026
0d16674
docs(changelog): record the report hardening carried over from #452
sromoam Oct 29, 2026
6af633f
test(report): pin the PDF viewer's only loader call, its reachability…
digalaviz Oct 29, 2026
0b694bd
test(report): cover the doc_id conversion's edge cases
digalaviz Oct 29, 2026
c24055c
test(report): let the truncation test catch escape-then-truncate on t…
digalaviz Oct 29, 2026
9fd99e2
docs(changelog): record the report-generation slowdown tracked in #457
digalaviz Oct 29, 2026
8a1d736
fix(306): accept default_factory on ComparableField (#360)
MohammedAlkindi Oct 29, 2026
e94dc21
docs: correct the mean_score docstring and the [Plain, NoteSM] table …
sromoam Oct 29, 2026
3265ee9
docs(changelog): say what #333 changed on dev, not against an earlier…
sromoam Oct 29, 2026
62323bc
fix(report): escape the executive summary's document count
digalaviz Oct 30, 2026
01f6fff
Merge pull request #465 from digalaviz/test/464-extras
sromoam Oct 30, 2026
dafdaa0
Merge origin/dev into fix/report-hardening-from-452
sromoam Oct 30, 2026
434631c
Merge pull request #456 from mangeshraut712/fix/453-escape-format-cells
sromoam Oct 30, 2026
1878d48
Merge remote-tracking branch 'origin/dev' into fix/report-hardening-f…
sromoam Oct 30, 2026
d7b3214
Merge remote-tracking branch 'origin/dev' into pr359w
sromoam Oct 30, 2026
1619dd2
Merge pull request #466 from digalaviz/fix/document-count-escape
sromoam Oct 30, 2026
4969aba
docs(examples): install strands-agents-evals 1.6.0 from PyPI
sromoam Oct 30, 2026
008432d
docs(strands-evals): correct the nested-row gate and the str date claim
sromoam Oct 30, 2026
05a21b3
docs(examples): track the LineItems explain() label in #210
sromoam Oct 30, 2026
5d60b68
style(examples): wrap the Evaluator notebook import for ruff (I001)
sromoam Oct 30, 2026
46b9336
docs(strands-evals): say when a value from another schema is scored, …
sromoam Oct 30, 2026
a72aee1
Merge pull request #359 from digalaviz/demo/strands-evals-examples
sromoam Oct 30, 2026
52e8ef4
Merge pull request #464 from awslabs/fix/report-hardening-from-452
sromoam Oct 30, 2026
1f1119f
Merge origin/dev into fix/333-list-dict-export
sromoam Oct 30, 2026
a9d4510
docs(333): drop the default_factory limit #360 fixed, and turn its xf…
sromoam Oct 30, 2026
34867f9
Merge pull request #405 from awslabs/fix/333-list-dict-export
sromoam Oct 30, 2026
4e659e7
Merge pull request #459 from awslabs/dependabot/github_actions/dev/gi…
sromoam Oct 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(246): key the new warning per model, and attribute a comparator zero
Both mediums from the re-review, plus the cheap non-blocking items and the two
prose fixes.

MEDIUM 1 -- the warning I added two hours ago keyed on `cls.__qualname__`. Every
dynamically built model is named `DynamicModel`, so two unrelated ones sharing a
field name collided in `warn_once`'s memo and only the first warned. Verified: two
`type("DynamicModel", ...)` classes with the same `rows` field emitted 1 warning,
now 2. The sibling `_warn_if_threshold_is_zero` call thirty lines below already
used `_model_identity` for this exact reason, with a comment spelling out the
hazard. I keyed on the name anyway.

MEDIUM 2 -- the nested-model branch hardcoding `threshold=0.7` is #317's fix and is
already implemented in #323, on this same line with its reasoning. Duplicating it
here would put two of my own branches in conflict on one line, so instead the
contradicting claim is gone: the PR body now scopes "adopted threshold round-trips"
to primitive fields and names #323 for the nested-model shape. Say the word if you
would rather have the line here and #323 rebased on it.

Non-blocking, all fixed:

- `_caller_named_it` half-migration. Reproduced: changing the signature but keeping
  `super().__init__(threshold if threshold is not None else 0.9)` makes a bare
  construction read as caller-named, so the field silently adopts 0.9 with clipping
  on and nothing warns -- worse than not migrating. Undetectable at runtime, since
  the value arrives indistinguishable from a real caller's, so the migration
  warning and the custom-comparator docs now both say to forward the parameter
  unchanged, with the wrong form shown beside the right one.
- The zero-threshold warning said "M.f sets threshold=0.0" for a `0.0` that came
  from the comparator, naming a `ComparableField` argument absent from the call
  site. Now "sets comparator threshold=0.0" when the field did not write it.
- `_comparator_threshold_was_set` -> `_named_comparator_threshold`, since it
  returns `Optional[float]` and a boolean-sounding name invites `if f(c):`, which
  would drop a deliberate `0.0`.
- PR body's `DateComparator(threshold=1.0)` paragraph described the rejected
  design. Rewritten to what ships, including why: it is adopted, and that drops
  year-less partial credit 0.7 -> 0.0.

Notebook: the class definition was migrated last round but the demo models still
passed `LevenshteinComparator(threshold=0.8)`, which now clips the partial credit
the surrounding markdown promises. Measured, then removed from the three model
fields, restoring `'Wireless Mice'` to 0.7857 from 0.0. A comment says why so it is
not re-added, and points at the field-level spelling for a real verdict threshold.
Surgical text edit: 10 insertions, 3 deletions, JSON still valid.

Both mediums reverse-verified: putting the old key and the old attribution back
fails the two new test classes.

  2384 passed, 12 skipped        ruff check clean
  • Loading branch information
sromoam committed Sep 9, 2026
commit ad16f2f4733ed68d642c8b2a1442b01508d51a86
24 changes: 24 additions & 0 deletions docs/docs/Guides/Comparators/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,30 @@ value, so it treats a threshold equal to your default as unset -- the pre-0.8
behaviour -- rather than silently making the field stricter than either of you asked
for.

!!! warning "Pass `threshold` straight through; do not resolve your default first"

Changing the signature but keeping the old resolution is worse than not
migrating at all:

```python
# WRONG -- every bare construction now looks caller-named
def __init__(self, threshold: Optional[float] = None):
super().__init__(threshold if threshold is not None else 0.9)
```

`BaseComparator` decides explicitness from what it receives, so this hands it
`0.9` for a bare `YourComparator()`. The field adopts `0.9` as its verdict
threshold with clipping on, and nothing warns, because from the inside it is
indistinguishable from a caller who asked for `0.9`. Forward the parameter
unchanged and put the default in `DEFAULT_THRESHOLD`:

```python
DEFAULT_THRESHOLD = 0.9

def __init__(self, threshold: Optional[float] = None):
super().__init__(threshold=threshold)
```

```python
from stickler import BaseComparator

Expand Down
13 changes: 10 additions & 3 deletions examples/notebooks/Custom_Comparator_Demo.ipynb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check failure on line 1 in examples/notebooks/Custom_Comparator_Demo.ipynb

View workflow job for this annotation

GitHub Actions / lint (3.12)

ruff (I001)

examples/notebooks/Custom_Comparator_Demo.ipynb:1:1: I001 Import block is un-sorted or un-formatted help: Organize imports

Check failure on line 1 in examples/notebooks/Custom_Comparator_Demo.ipynb

View workflow job for this annotation

GitHub Actions / lint (3.12)

ruff (I001)

examples/notebooks/Custom_Comparator_Demo.ipynb:1:1: I001 Import block is un-sorted or un-formatted help: Organize imports
"cells": [
{
"cell_type": "markdown",
Expand Down Expand Up @@ -271,13 +271,20 @@
],
"source": [
"# First, let's create three different Product models using different price comparators\n",
"#\n",
"# Note: no `threshold=` on the name comparators. A threshold named on a\n",
"# comparator is now the field's verdict threshold, and `clip_under_threshold`\n",
"# defaults to True, so `LevenshteinComparator(threshold=0.8)` would zero the\n",
"# partial credit these cells exist to show ('Wireless Mice' scores 0.7857\n",
"# without it, 0.0 with it). Set a verdict threshold on the FIELD when you\n",
"# want one: ComparableField(comparator=..., threshold=0.8).\n",
"\n",
"\n",
"class ProductWithExactPrice(StructuredModel):\n",
" \"\"\"Product model using ExactComparator for price matching.\"\"\"\n",
"\n",
" name: str = ComparableField(\n",
" comparator=LevenshteinComparator(threshold=0.8), weight=2.0\n",
" comparator=LevenshteinComparator(), weight=2.0\n",
" )\n",
" price: float = ComparableField(\n",
" comparator=ExactComparator(threshold=1.0), weight=3.0\n",
Expand All @@ -288,7 +295,7 @@
" \"\"\"Product model using NumericProximityComparator for price matching.\"\"\"\n",
"\n",
" name: str = ComparableField(\n",
" comparator=LevenshteinComparator(threshold=0.8), weight=2.0\n",
" comparator=LevenshteinComparator(), weight=2.0\n",
" )\n",
" price: float = ComparableField(\n",
" comparator=NumericProximityComparator(\n",
Expand All @@ -302,7 +309,7 @@
" \"\"\"Product model using LevenshteinComparator for price matching.\"\"\"\n",
"\n",
" name: str = ComparableField(\n",
" comparator=LevenshteinComparator(threshold=0.8), weight=2.0\n",
" comparator=LevenshteinComparator(), weight=2.0\n",
" )\n",
" price: float = ComparableField(\n",
" comparator=LevenshteinComparator(threshold=0.7), weight=3.0\n",
Expand Down
8 changes: 7 additions & 1 deletion src/stickler/comparators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ def __init__(self, threshold: float = 1.0):
f"{declared.default!r} is treated as not set, and the field falls back to "
f"its own default. Declare 'threshold: Optional[float] = None' and set "
f"DEFAULT_THRESHOLD = {declared.default!r} on the class to have an "
f"explicit threshold honoured.",
f"explicit threshold honoured. Pass the threshold straight through to "
f"super().__init__ -- do NOT resolve your own default first. Changing the "
f"signature but keeping "
f"'super().__init__(threshold if threshold is not None else "
f"{declared.default!r})' makes every bare construction look caller-named, "
f"so the default silently becomes the field's verdict threshold with "
f"clipping on, which is worse than the behaviour this warning describes.",
category=UserWarning,
)
return threshold != declared.default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
_LEGACY_DEFAULT_THRESHOLD = 0.5


def _comparator_threshold_was_set(comparator: BaseComparator) -> Optional[float]:
def _named_comparator_threshold(comparator: BaseComparator) -> Optional[float]:
"""Return the comparator's threshold if the caller named one, else ``None``.

A field with no threshold of its own adopts one the caller put on the
Expand All @@ -43,6 +43,11 @@ def _comparator_threshold_was_set(comparator: BaseComparator) -> Optional[float]
``getattr`` with a default rather than a bare attribute read: a comparator
that never chains to ``BaseComparator.__init__`` has no such attribute, and
the safe reading of "cannot tell" is "not set".

Named for what it RETURNS -- the threshold, or None -- not as a predicate.
A boolean-sounding name invites `if _named_comparator_threshold(c):`, which
silently drops a deliberate `0.0`; this codebase treats that value as
meaningful enough to carry its own warning. Both callers test `is not None`.
"""
if not getattr(comparator, "threshold_was_set", False):
return None
Expand Down Expand Up @@ -83,7 +88,7 @@ def ComparableField(

ComparableField(comparator=ExactComparator())
# 0.5. A comparator's *default* threshold is not adopted;
# see _comparator_threshold_was_set for why.
# see _named_comparator_threshold for why.
weight: Weight of this field in overall score calculation (default: 1.0)
default: Default value for the field (default: None)
clip_under_threshold: Whether to zero out scores below threshold
Expand Down Expand Up @@ -139,11 +144,11 @@ class MyModel(StructuredModel):
# 0.85 means one thing on edit distance and another on a semantic embedding.
# So a threshold the caller put on the comparator is a statement of intent
# about this field, and it used to be discarded in silence. A comparator's
# *default* threshold is not adopted; see _comparator_threshold_was_set.
# *default* threshold is not adopted; see _named_comparator_threshold.
threshold_was_explicit = threshold is not None
if threshold is None:
from_comparator = (
_comparator_threshold_was_set(actual_comparator)
_named_comparator_threshold(actual_comparator)
if comparator_was_explicit
else None
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from stickler.comparators.base import BaseComparator
from stickler.utils.deprecation import warn_once

from .comparable_field import ComparableField, _comparator_threshold_was_set
from .comparable_field import ComparableField, _named_comparator_threshold
from .comparison_helper import ComparisonHelper, _maybe_absent
from .configuration_helper import ConfigurationHelper
from .evaluator_format_helper import EvaluatorFormatHelper
Expand Down Expand Up @@ -634,7 +634,7 @@ def __init_subclass__(cls, **kwargs):
# strings, so asking it for a `comparator` returns
# None and this branch was dead on arrival.
elif (
_comparator_threshold_was_set(
_named_comparator_threshold(
getattr(
field_default.json_schema_extra,
"_comparator_instance",
Expand All @@ -643,9 +643,17 @@ def __init_subclass__(cls, **kwargs):
)
is not None
):
# `_model_identity`, not `__qualname__`. Every
# dynamically built model is named `DynamicModel`,
# so two unrelated ones sharing a field name key
# to the same string and only the first ever
# warns. The sibling `_warn_if_threshold_is_zero`
# call below uses this helper for exactly that
# reason, and I keyed on the name anyway.
warn_once(
"list-of-models-comparator-threshold",
f"{cls.__qualname__}.{field_name}",
f"{_model_identity(cls.__name__, cls.__annotations__)}"
f".{field_name}",
f"Field '{field_name}' is a List[StructuredModel], so the "
f"threshold set on its comparator is not consulted: "
f"Hungarian matching pairs items using the element class's "
Expand Down Expand Up @@ -674,10 +682,19 @@ def __init_subclass__(cls, **kwargs):
# anonymous configs that share a field name (amount, date,
# id -- these recur constantly across document schemas)
# would otherwise collide and the second would be silent.
# Name the parameter the caller actually wrote. Adopting a
# comparator threshold means a `0.0` can arrive here from
# `Comparator(threshold=0.0)`, and reporting that as
# "sets threshold=0.0" points at a `ComparableField` argument
# absent from the call site -- the same misattribution this
# PR fixes for the `List[StructuredModel]` error one screen up.
field_wrote_it = getattr(
field_default.json_schema_extra, "_threshold_explicit", True
)
_warn_if_threshold_is_zero(
temp_schema["x-comparison"].get("threshold"),
f"{_model_identity(cls.__name__, cls.__annotations__)}.{field_name}",
"threshold",
"threshold" if field_wrote_it else "comparator threshold",
)

# `match_threshold` is a plain class attribute rather than a field, so
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from stickler.structured_object_evaluator.models.comparable_field import (
_LEGACY_DEFAULT_THRESHOLD,
ComparableField,
_comparator_threshold_was_set,
_named_comparator_threshold,
)
from stickler.structured_object_evaluator.models.structured_model import (
StructuredModel,
Expand Down Expand Up @@ -171,20 +171,18 @@ def test_the_strictest_spelling_does_not_become_the_loosest(self):

class TestTheHelperInIsolation:
def test_it_returns_none_for_a_default_construction(self):
assert _comparator_threshold_was_set(LevenshteinComparator()) is None
assert _named_comparator_threshold(LevenshteinComparator()) is None

def test_it_returns_the_value_for_an_explicit_one(self):
assert (
_comparator_threshold_was_set(LevenshteinComparator(threshold=0.9)) == 0.9
)
assert _named_comparator_threshold(LevenshteinComparator(threshold=0.9)) == 0.9

def test_it_returns_none_for_a_comparator_with_no_threshold_parameter(self):
"""Must not assume every comparator takes a threshold."""

class NoThreshold:
pass

assert _comparator_threshold_was_set(NoThreshold()) is None
assert _named_comparator_threshold(NoThreshold()) is None


class TestZeroIsAValueNotAnOmission:
Expand Down Expand Up @@ -717,3 +715,87 @@ def test_the_field_level_spelling_still_raises(self):
"rows": ComparableField(threshold=0.9, default=None),
},
)


class TestTheWarningKeyDoesNotCollideAcrossDynamicModels:
"""Two anonymous models sharing a field name must both be told.

The swallowed-comparator-threshold warning keyed on `cls.__qualname__`. Every
dynamically built model is named `DynamicModel`, so two unrelated ones sharing a
field name -- `lines`, `amount`, `date`, the names that recur across document
schemas -- collided in `warn_once`'s process-global memo and only the first ever
warned. The sibling zero-threshold check thirty lines below already used
`_model_identity` for exactly this reason.
"""

@staticmethod
def _dynamic(extra_field: str):
annotations = {"rows": List[_SwallowLine], extra_field: Optional[str]}
body = {
"rows": ComparableField(
comparator=LevenshteinComparator(threshold=0.9), default=None
),
extra_field: ComparableField(default=None),
}
return type(
"DynamicModel",
(StructuredModel,),
{"__annotations__": annotations, **body},
)

def test_both_models_warn(self):
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
self._dynamic("alpha")
self._dynamic("beta")
assert len(caught) == 2

def test_the_same_model_still_warns_only_once(self):
"""Deduplication must survive the key change, or every field spams."""
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
model = self._dynamic("gamma")
model.to_json_schema()
model.to_json_schema()
assert len(caught) == 1


class TestAZeroThresholdNamesWhereItWasWritten:
"""`0.0` adopted from a comparator must not be reported as a field argument.

The zero-threshold warning said "M.f sets threshold=0.0", naming a
`ComparableField` parameter absent from the call site -- the same
misattribution this work fixes for the `List[StructuredModel]` error.
"""

def test_a_comparator_zero_is_attributed_to_the_comparator(self):
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
type(
"Doc",
(StructuredModel,),
{
"__annotations__": {"f": Optional[str]},
"f": ComparableField(
comparator=LevenshteinComparator(threshold=0.0), default=None
),
},
)
assert len(caught) == 1
assert "sets comparator threshold=0.0" in str(caught[0].message)

def test_a_field_zero_is_still_attributed_to_the_field(self):
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
type(
"Doc",
(StructuredModel,),
{
"__annotations__": {"g": Optional[str]},
"g": ComparableField(threshold=0.0, default=None),
},
)
assert len(caught) == 1
message = str(caught[0].message)
assert "sets threshold=0.0" in message
assert "comparator threshold" not in message
Loading