Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
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
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,29 @@ Each release links to full notes on the

### Fixed

- **A `RootModel` is now refused when the evaluator is built, instead of failing
once per document or scoring a wrong value `1.0`.** `eval_for()` accepted one
and returned a spec. What happened next depended on the root type:
`RootModel[list[...]]` raised `AttributeError: 'list' object has no attribute
'keys'`, `RootModel[int]` raised `'int' object has no attribute 'copy'`,
`RootModel[dict[...]]` raised a `ValidationError` for a missing `root`, and
**`RootModel[Model]` scored `1.0` for two values that differed in every
field.** The two `AttributeError`s named neither the shape nor a field; the
mapping case named `root`, the shadow's own field rather than the model field
that held the value. None of the three said the shape was unsupported, and all
three arrived once per document rather than once at configuration time; the
fourth reported a perfect match for a wrong prediction. `eval_for()`,
`evaluate()` and `StructuredModel.from_pydantic()` now raise `TypeError`
naming the class and pointing at declaring the root value as a named field on
a `BaseModel`. The refusal covers every model the zero-config builder mirrors,
so a `RootModel` in a field (`Holder.pt`) or as a list element
(`Holder.items[]`) is refused too, with the path in the message; both scored
`1.0` for values differing in every field before this. A root value is still
not compared, and an explicitly configured `StructuredModel` is unchanged: it
is used as configured and never mirrored, so its fields keep the comparators
the caller declared
([#366](https://github.com/awslabs/stickler/issues/366))

- **A float `NaN` is now absent, the same as `None`.** Two identical `NaN`s
scored `0.0` and counted as a false discovery, because `NaN` equals nothing
under IEEE 754. `NaN` vs `NaN` or `None` is now a true negative scoring `1.0`,
Expand Down
9 changes: 9 additions & 0 deletions src/stickler/auto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ These raise `TypeError` with an actionable message at `eval_for` time:
class would need itself as a field type before it exists.
- **Empty models** (no fields to score).
- **A field named `extra_fields`** (reserved by the comparison engine).
- **A `RootModel`**, as the class passed in, a field, or a list element: its one
value has no field name to score it under. The message names the path
(`Holder.pt`, `Holder.items[]`). An explicitly configured `StructuredModel` is
never mirrored, so this does not reach inside one.

A model that trips two of these reports whichever one its fields reach first, so
the order above is not a precedence guarantee: a recursive model that also holds
a `RootModel` reports recursion or the root, depending on which field is declared
first. Both name a blocker the caller has to fix.

## Known limitations

Expand Down
41 changes: 39 additions & 2 deletions src/stickler/auto/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
get_origin,
)

from pydantic import BaseModel, BeforeValidator
from pydantic import BaseModel, BeforeValidator, RootModel
from pydantic.fields import FieldInfo

from ..comparators.structured import StructuredModelComparator
Expand Down Expand Up @@ -92,6 +92,9 @@ def structured_model_for(

Args:
cls: A pydantic ``BaseModel`` subclass (e.g. a Strands ``response_model``).
A ``RootModel`` is refused: here, and at any nested model or
``List[BaseModel]`` element this builder mirrors. Its value has no
field name to score it under.
weight_hints: Enable name-token weight heuristics (default off).
match_threshold: Overall match threshold for the generated model.

Expand Down Expand Up @@ -298,14 +301,32 @@ def _build(
weight_hints: bool,
match_threshold: float,
_building: set,
_path: str = "",
) -> Type[StructuredModel]:
"""Recursively assemble the shadow class for ``cls``.

Recursive model graphs (self-referential or mutually recursive) cannot be
mirrored as shadow classes: the shadow for ``cls`` would need itself as a
field type before it exists. Rather than overflow the stack, raise a clear
error naming the cycle.

``_path`` is where ``cls`` sits: empty when it is the class the caller
passed, otherwise the dotted field path that reached it (``Holder.pt``,
``Holder.items[]``). It names the offending field in a refusal.
"""
# A RootModel holds one unnamed value, so there are no fields to mirror and
# no keys for the shadow to read: the worst case scored 1.0 for two values
# differing in every field. Refused here rather than at the public entry
# point, so one check covers the class passed in and every model reached
# from it (#366).
if issubclass(cls, RootModel):
where = f" at {_path}" if _path else ""
raise TypeError(
f"evaluate() cannot mirror {cls.__name__}{where}: a RootModel holds "
"one unnamed value, so there is no field name to score it under. "
"Declare the root value as a named field on a BaseModel instead."
)

if cls in _building:
raise TypeError(
f"evaluate() does not support recursive models: {cls.__name__} "
Expand Down Expand Up @@ -333,6 +354,11 @@ def _build(
match_threshold=match_threshold,
registry=registry,
_building=_building,
# The class name anchors the path, so a refusal one level down
# reads `Holder.pt` rather than a bare `pt`. It goes deeper than
# the refusals above, which name only the class they are raised
# for: a nested reserved name reads `Inner.extra_fields`.
_path=f"{_path}.{name}" if _path else f"{cls.__name__}.{name}",
)

if not field_definitions:
Expand Down Expand Up @@ -361,9 +387,13 @@ def _field_definition(
match_threshold: float,
registry,
_building: set,
_path: str = "",
) -> Tuple[Any, Any]:
"""Produce a ``(type, Field)`` tuple for one field.

``_path`` is this field's own dotted path, forwarded to any model reached
through it so a refusal can name the field rather than only the class.

Nullability of the shadow field comes from the SOURCE annotation
(``Optional[X]`` / ``X | None``), not from required-ness: a required
``Optional[str]`` must still accept None, and a non-required plain ``str``
Expand All @@ -383,6 +413,7 @@ def _field_definition(
weight_hints=weight_hints,
match_threshold=match_threshold,
_building=_building,
_path=_path,
)
# A single nested model may carry an explicit StructuredModelComparator
# (unlike List[StructuredModel], which __init_subclass__ forbids).
Expand All @@ -407,6 +438,9 @@ def _field_definition(
weight_hints=weight_hints,
match_threshold=match_threshold,
_building=_building,
# `[]` marks the element rather than the field: the two reach the
# builder through different branches, so a refusal should say which.
_path=f"{_path}[]",
)
element_type = Optional[child] if element_optional else child
list_type = List[element_type]
Expand Down Expand Up @@ -452,12 +486,14 @@ def _shadow_for(
weight_hints: bool,
match_threshold: float,
_building: set,
_path: str = "",
) -> Type[StructuredModel]:
"""Shadow class for a nested model annotation.

A field typed as a ``StructuredModel`` subclass already carries its own
comparators; use it directly instead of re-inferring (which would discard
the user's explicit configuration).
the user's explicit configuration). Such a class returns before ``_build``
runs, so the refusals in ``_build`` do not reach inside one.
"""
if isinstance(annotation, type) and issubclass(annotation, StructuredModel):
return annotation
Expand All @@ -466,6 +502,7 @@ def _shadow_for(
weight_hints=weight_hints,
match_threshold=match_threshold,
_building=_building,
_path=_path,
)


Expand Down
4 changes: 3 additions & 1 deletion src/stickler/auto/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def eval_for(
Args:
cls: The pydantic ``BaseModel`` subclass to evaluate instances of. A
``StructuredModel`` subclass is used AS CONFIGURED: its explicit
comparators/thresholds are respected and nothing is inferred.
comparators/thresholds are respected and nothing is inferred. A
``RootModel`` raises ``TypeError``, as this class, a field, or a
list element: its value has no field name to score it under.
weight_hints: Apply name-token weight heuristics (default off, so
weights stay uniform and precision/recall are not skewed by guessed
business-criticality). Ignored for ``StructuredModel`` classes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,10 @@ def from_pydantic(
Args:
model_cls: A ``pydantic.BaseModel`` subclass (e.g. a Strands
agent ``response_model``). A StructuredModel subclass is
returned unchanged (explicit configuration always wins).
returned unchanged (explicit configuration always wins). A
``RootModel`` raises ``TypeError``, as this class and at any
nested model or ``List[BaseModel]`` element the builder
mirrors: its value has no field name to score it under.
weight_hints: Apply name-token weight heuristics (default off, so
weights stay uniform).
match_threshold: Overall match threshold for the generated model.
Expand Down
192 changes: 192 additions & 0 deletions tests/auto/test_rootmodel_rejected.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
"""A RootModel is refused when the evaluator is built, not when it is used.

``eval_for`` used to accept a ``RootModel`` and return a spec. What happened next
depended on the root type, and one of the four outcomes was silent:

====================================== ==========================================
``RootModel[list[Point]]`` ``AttributeError: 'list' object has no
attribute 'keys'``
``RootModel[int]`` ``AttributeError: 'int' object has no
attribute 'copy'``
``RootModel[dict[str, int]]`` ``ValidationError``, missing ``root``
``RootModel[Point]`` **scored 1.0** for two values differing
in every field
====================================== ==========================================

The three errors arrived once per document rather than once at configuration
time. The two ``AttributeError``s named neither the shape nor a field; the
mapping case named ``root``, the shadow's own field rather than the model field
that held the value. None of them said the shape was unsupported. The fourth
reported a perfect match for a wrong prediction.

The refusal lives in ``_build``, the function that assembles a shadow class for
every model the zero-config builder mirrors, so it covers the class passed in
and every model reached from it: a ``RootModel`` field, and a ``RootModel`` list
element. ``RootModel[Point]`` nested in either position scored 1.0 before that.

These tests pin the refusal and its message across the five root shapes and both
nesting positions, and pin the shapes that must keep working, so the check
cannot widen into them.

See https://github.com/awslabs/stickler/issues/366
"""

from typing import List, Optional

import pytest
from pydantic import BaseModel, RootModel

import stickler
from stickler import ComparableField, eval_for
from stickler.auto.builder import structured_model_for
from stickler.structured_object_evaluator.models.structured_model import StructuredModel


class Point(BaseModel):
x: float
y: float


class NamedPoints(RootModel[list[Point]]):
"""A named subclass, since that is how a caller usually declares one."""


# Each root shape failed differently before the guard, so each is pinned. The
# values differ in every field, which is what made the `RootModel[Point]` row
# score 1.0.
ROOTS = [
(RootModel[list[Point]], [Point(x=1.0, y=2.0)], [Point(x=9.0, y=9.0)]),
(NamedPoints, [Point(x=1.0, y=2.0)], [Point(x=9.0, y=9.0)]),
(RootModel[int], 1, 99),
(RootModel[dict[str, int]], {"a": 1}, {"a": 99}),
(RootModel[Point], Point(x=1.0, y=2.0), Point(x=9.0, y=9.0)),
]
ROOT_IDS = ["list", "named-subclass", "int", "dict", "model"]


@pytest.mark.parametrize("root_cls", [row[0] for row in ROOTS], ids=ROOT_IDS)
def test_eval_for_refuses_every_root_shape(root_cls):
with pytest.raises(TypeError, match="RootModel") as exc:
eval_for(root_cls)
assert root_cls.__name__ in str(exc.value)


@pytest.mark.parametrize("root_cls, gt_value, pred_value", ROOTS, ids=ROOT_IDS)
def test_evaluate_refuses_every_root_shape(root_cls, gt_value, pred_value):
"""The facade refuses too, so neither the old errors nor the false 1.0 remain."""
with pytest.raises(TypeError, match="RootModel"):
stickler.evaluate(root_cls(gt_value), root_cls(pred_value))


def test_the_message_says_what_to_do_instead():
with pytest.raises(TypeError) as exc:
structured_model_for(RootModel[int])
message = str(exc.value)
assert "RootModel" in message
assert "BaseModel" in message


def test_a_plain_model_still_compiles_and_scores():
"""The guard must not widen: a BaseModel is unaffected."""

class Pair(BaseModel):
label: str
value: float

result = stickler.evaluate(
Pair(label="same", value=1.0), Pair(label="same", value=1.0)
)
assert result.overall_score == pytest.approx(1.0)


def test_a_structured_model_still_takes_the_configured_path():
"""A StructuredModel never reaches the guard, because eval_for returns early."""

class Configured(StructuredModel):
label: str = ComparableField(default="")

spec = eval_for(Configured)
assert spec.eval_model is Configured


def test_a_root_model_field_is_refused_and_the_message_names_it():
"""A nested RootModel is refused when the evaluator is built.

``RootModel[Point]`` here is the silent case: the shadow carried one ``root``
field that no dumped value ever filled, so both sides read None and two
points differing in every field scored 1.0. The message names the field,
since the class alone does not say which of several fields to fix.
"""

class Holder(BaseModel):
name: str
pt: RootModel[Point]

with pytest.raises(TypeError, match="RootModel") as exc:
eval_for(Holder)
assert "Holder.pt" in str(exc.value)


def test_a_root_model_list_element_is_refused_and_marked_as_an_element():
"""A list element reaches the builder through its own branch.

It scored 1.0 the same way a single nested field did. ``[]`` in the path
distinguishes the element from the field that holds the list.
"""

class ListHolder(BaseModel):
items: List[RootModel[Point]]

with pytest.raises(TypeError, match="RootModel") as exc:
eval_for(ListHolder)
assert "ListHolder.items[]" in str(exc.value)


def test_a_list_rooted_field_is_refused_at_build_time_too():
"""This shape used to fail per document, with a pydantic ``ValidationError``.

Refusing it when the evaluator is built reports it once, at configuration
time, instead of once per document in a corpus run.
"""

class Holder(BaseModel):
name: str
points: RootModel[list[Point]]

with pytest.raises(TypeError, match="RootModel") as exc:
eval_for(Holder)
assert "Holder.points" in str(exc.value)


def test_from_pydantic_refuses_a_root_model():
"""``from_pydantic`` delegates to the same builder, so it refuses too."""
with pytest.raises(TypeError, match="RootModel"):
StructuredModel.from_pydantic(RootModel[int])


def test_a_structured_model_holding_a_root_model_field_is_untouched():
"""The guard must not widen past the models the builder mirrors.

An explicitly configured ``StructuredModel`` is returned as configured and
is never mirrored, so its fields are scored by the comparators the caller
declared. That boundary is deliberate: re-inspecting an explicit
configuration would discard the caller's decision.
"""

class Configured(StructuredModel):
name: str = ComparableField(default="")
pt: Optional[RootModel[Point]] = ComparableField(default=None)

spec = eval_for(Configured)
assert spec.eval_model is Configured

result = spec.evaluate(
Configured(name="a", pt=RootModel[Point](Point(x=1.0, y=2.0))),
Configured(name="a", pt=RootModel[Point](Point(x=9.0, y=9.0))),
)
assert result.field_scores["name"] == pytest.approx(1.0)
# The boundary is what `pt` does, not what `name` does: the field is still
# compared by the declared comparator, and two differing roots do not score
# a perfect match. Asserting only `name` would pass even if `pt` returned
# the false 1.0 this work removes everywhere else.
assert result.field_scores["pt"] < 1.0
Loading