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
feat(239): infer comparators for fields a config did not specify
Docs first, then implementation, and the docs caught two things before any
code was written.

A large extraction schema has a few fields whose comparison rules matter
and a long tail where anything sensible will do. The config-driven paths
gave three answers to "no comparator named", none of them what
stickler.evaluate() chooses:

  model_from_json()      raises
  from_json_schema()     number -> NumericComparator @ 0.50
  stickler.evaluate()    number -> NumericComparator @ 0.95

`infer_unspecified_fields` on a Stickler config, or
`x-aws-stickler-infer-unspecified` on a JSON Schema object, routes the
unspecified parameters through the same inference auto uses, so the paths
converge. Asserted against auto's own output rather than literals, so the
two cannot drift if inference is retuned.

Inference supplies comparator AND threshold. Half-inferring would leave
from_json_schema at 0.5 against auto's 0.95 and the divergence unresolved.

A field opts in alone with `"comparator": "auto"`, and precedence runs both
ways: "auto" infers one field in an explicit config, and naming a
comparator pins one field in an inferred one.

Partial config is filled per parameter, so {"type": "float",
"threshold": 0.99} gets NumericComparator with the author's 0.99. Treating
any config as fully configured is what left that field on the type-blind
default -- a threshold tuned against edit distance over "1000.00".

Off by default. model_from_json still refuses an unspecified primitive
unless asked, from_json_schema keeps its defaults, and 2322 existing tests
pass unchanged. The refusal now names both ways to opt in.

explain() no longer reports an inferred field as "explicit". It carries the
inference trail with the same source values auto uses (type, name-token),
which is the reporting half of #210.

`stickler.auto` needed no refactor: infer_field_config reads only the
annotation and the field name, so a synthesised FieldInfo around the
resolved type is enough, and the name-token heuristics work too.

Two things found while writing the docs rather than after:

- The published defaults table was wrong. It gave `boolean` as
  ExactComparator @ 1.0; it is 0.5. It also omitted format:date,
  format:date-time, format:uuid and enum, and implied format:email was
  handled when it is not. Corrected, since building a feature on a wrong
  table is how the wrong table survives.

- My own worked example used {"type": "date"}, which model_from_json
  rejects -- its types are str|int|float|bool|list|dict. Worse, a str-typed
  field named like a date does NOT get DateComparator: inference refuses a
  comparator the declared type cannot support and records the refusal in
  `why`. "A date needs date semantics" is one of the cases this feature was
  requested for, so that limit is documented rather than left to be
  discovered.

Two gaps found by the tests, both real: the "auto" sentinel was rejected as
an unknown comparator by a second eager validator, and a model-level flag
stopped at the first nesting level because the nested model is built by
re-entering model_from_json with a synthesised config that dropped it.

2357 pass, ruff clean, mkdocs at the 9-warning dev baseline.

Refs #239, #210
  • Loading branch information
sromoam committed Sep 8, 2026
commit bc8e56123ac416cf79654f194019e42182d5c1ac
67 changes: 67 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,67 @@ Each release links to full notes on the

### Added

- Config-driven models can have their unspecified fields inferred, with
`infer_unspecified_fields` on a Stickler config or
`x-aws-stickler-infer-unspecified` on a JSON Schema object. A large extraction
schema usually has a handful of fields whose comparison rules matter and a long
tail where anything sensible will do; this covers the tail.

Before, the paths gave three different answers to "no comparator named", none of
them what `stickler.evaluate()` chooses for the same field:

```
model_from_json() raises
from_json_schema() number -> NumericComparator @ 0.50
stickler.evaluate() number -> NumericComparator @ 0.95
```

Inference supplies **both** the comparator and the threshold, so an unspecified
field now matches `stickler.evaluate()` exactly -- asserted against `auto`'s own
output rather than against literals, so the two cannot drift:

| field | without the flag | with it |
|---|---|---|
| `total: float` | NumericComparator @ 0.5 | NumericComparator @ 0.95 |
| `paid: bool` | ExactComparator @ 0.5 | ExactComparator @ 1.0 |
| `issued` (`format: date`) | DateComparator @ 1.0 | DateComparator @ 0.95 |
| `vendor: str` | LevenshteinComparator @ 0.5 | LevenshteinComparator @ 0.85 |

A field opts in on its own with `"comparator": "auto"`
(`x-aws-stickler-comparator: "auto"` in a schema), and **precedence runs both
ways**: `"auto"` infers one field in an otherwise explicit config, and naming a
comparator pins one field in an otherwise inferred one.

**Partial configuration is filled in per parameter.** A field that names some
parameters keeps them and infers only the rest, so
`{"type": "float", "threshold": 0.99}` gets `NumericComparator` with the author's
`0.99`. Treating any config as "fully configured" was what left that field on the
type-blind Levenshtein default -- a threshold tuned against edit distance over
`"1000.00"` and `"1000.0"`.

**Off by default, and nothing existing moves.** `model_from_json()` still refuses
a primitive field with no comparator unless asked, and `from_json_schema()` keeps
its current defaults. Enabling it changes reported metrics for any field left
unspecified, so it is never implied. The refusal now names both ways to opt in
rather than only saying a comparator is required.

`explain()` no longer reports an inferred field as `explicit`. It carries the
inference trail instead, with the same `source` values `stickler.evaluate()` uses
(`type`, `name-token`), which is the reporting half of
[#210](https://github.com/awslabs/stickler/issues/210):

```
invoice_id ExactComparator 1.0 explicit
total NumericComparator 0.95 name-token
paid ExactComparator 1.0 type
```

One limit worth knowing: `model_from_json()` has no `date` type, and inference
will not apply a comparator the declared type cannot support. A field named
`issued_date` declared as `str` keeps `LevenshteinComparator` and records why in
`why`. Use `{"type": "string", "format": "date"}` on the schema path, or name
`DateComparator` explicitly ([#239](https://github.com/awslabs/stickler/issues/239)).

- **`NormalizedComparator`** for explicit formatting-insensitive equality.
Its independent case, whitespace, and punctuation options round-trip through
JSON Schema. Punctuation follows Unicode `P*` categories, whitespace follows
Expand Down Expand Up @@ -164,6 +225,12 @@ Each release links to full notes on the

### Fixed

- The JSON Schema defaults table in the dynamic-models guide is corrected. It
published `boolean` as `ExactComparator @ 1.0`; the measured value is `0.5`. It
also omitted four rows that exist (`format: date`, `format: date-time`,
`format: uuid`, and `enum`, all at `1.0`) and implied `format: email` was
special-cased, which it is not -- it falls to the `string` row.

- **Breaking:** `HungarianMatcher.calculate_metrics` no longer reports a paired
item as missing. It derived `fn` and `fp` as `len(list) - tp`, so a pair the
algorithm produced, and that the method returns inside `matched_pairs`, was
Expand Down
180 changes: 177 additions & 3 deletions docs/docs/Advanced/dynamic-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,26 @@ The `x-aws-stickler-*` extensions control comparison behavior on each property:

Default comparators are assigned by JSON Schema type when no extension is specified:

| JSON Schema Type | Default Comparator | Default Threshold |
| Property | Default Comparator | Default Threshold |
|------------------|-------------------|-------------------|
| `string` | LevenshteinComparator | 0.5 |
| `number` / `integer` | NumericComparator | 0.5 |
| `boolean` | ExactComparator | 1.0 |
| `boolean` | ExactComparator | 0.5 |
| `string` + `format: date` | DateComparator | 1.0 |
| `string` + `format: date-time` | DateComparator | 1.0 |
| `string` + `format: uuid` | ExactComparator | 1.0 |
| `string` + `enum: [...]` | ExactComparator | 1.0 |
| `array` (objects) | Hungarian matching | 0.7 |
| `object` | Recursive comparison | 0.7 |

Other `format` values, `email` among them, are not special-cased and fall to the
`string` row.

These defaults are **not** the same as the ones `stickler.evaluate()` infers, which
are tuned per type: a `number` gets `0.95` there rather than `0.5`. See
[Inferring unspecified fields](#inferring-unspecified-fields) to opt a
schema-driven model into the tuned set.

For the complete reference, see the [Evaluation](../Guides/Evaluation/README.md) page.

### Optional fields and `null`
Expand Down Expand Up @@ -190,10 +202,15 @@ Person = StructuredModel.model_from_json(person_config)
{
"model_name": "string",
"match_threshold": 0.7,
"infer_unspecified_fields": false,
"fields": { ... }
}
```

`comparator` is **required** on every primitive field unless
`infer_unspecified_fields` is true or the field sets `"comparator": "auto"`. See
[Inferring unspecified fields](#inferring-unspecified-fields).

**Primitive fields:**

```json
Expand Down Expand Up @@ -246,6 +263,163 @@ company_config = {
Company = StructuredModel.model_from_json(company_config)
```

## Inferring unspecified fields

A large extraction schema usually has a handful of fields whose comparison rules
matter to you -- the invoice ID must match exactly, the total needs numeric
tolerance -- and a long tail where you just want something sensible. Set
`infer_unspecified_fields` and Stickler chooses for the rest, using the same
inference `stickler.evaluate()` uses.

### Turning it on

Configure the fields you care about, and leave the others bare:

```json
{
"model_name": "Invoice",
"infer_unspecified_fields": true,
"fields": {
"invoice_id": {"type": "str", "comparator": "ExactComparator", "threshold": 1.0},
"total": {"type": "float"},
"paid": {"type": "bool"},
"vendor": {"type": "str"}
}
}
```

To infer only certain fields, set `"comparator": "auto"` on those instead:

```json
{
"fields": {
"invoice_id": {"type": "str", "comparator": "ExactComparator"},
"total": {"type": "float", "comparator": "auto"}
}
}
```

The JSON Schema path uses `x-aws-stickler-infer-unspecified` at the object level,
and `x-aws-stickler-comparator: "auto"` on a property:

```json
{
"type": "object",
"x-aws-stickler-model-name": "Invoice",
"x-aws-stickler-infer-unspecified": true,
"properties": {
"invoice_id": {"type": "string", "x-aws-stickler-comparator": "ExactComparator"},
"total": {"type": "number"},
"issued": {"type": "string", "format": "date"}
}
}
```

A field-level setting always wins over the model-level flag, both ways: `"auto"`
infers one field in an otherwise explicit config, and naming a comparator pins one
field in an otherwise inferred config.

### Loading a config and checking what you got

Load the config, then ask the model what it decided. `explain()` returns one row per
field with the comparator, threshold and where each came from:

```python
import json
import stickler
from stickler import StructuredModel

with open("invoice_eval.json") as handle:
config = json.load(handle)

Invoice = StructuredModel.model_from_json(config)

for name, row in stickler.eval_for(Invoice).explain().items():
print(f"{name:12} {row['comparator']:22} {row['threshold']:<6} {row['source']}")
```

```
invoice_id ExactComparator 1.0 explicit
total NumericComparator 0.95 name-token
paid ExactComparator 1.0 type
vendor LevenshteinComparator 0.85 name-token
```

`source` is `explicit` for a field you configured. Anything else is a field Stickler
chose, and names what drove the choice: `type` from the declared type alone,
`name-token` when the field's name refined it. These are the same values
`stickler.evaluate()` reports, so the two paths read alike.

`row['why']` gives the full reasoning:

```python
stickler.eval_for(Invoice).explain()["total"]["why"]
# ['type:float -> NumericComparator(rel_tol=0.001)@0.95',
# 'name-token:total -> NumericComparator@0.95']
```

Check this before a first evaluation run. It is the fastest way to catch a field you
meant to configure and misspelled, since a misspelled key means the field gets
inferred rather than what you intended.

Use `Invoice.to_stickler_config()` if you want the resolved configuration back as
JSON, for example to commit the fully-expanded version once you are happy with it.

### What inference chooses

Both the comparator and the threshold, matching `stickler.evaluate()`:

| field | without the flag | with it |
|---|---|---|
| `total: float` | NumericComparator @ 0.5 | NumericComparator @ 0.95 |
| `paid: bool` | ExactComparator @ 0.5 | ExactComparator @ 1.0 |
| `issued` (`format: date`) | DateComparator @ 1.0 | DateComparator @ 0.95 |
| `vendor: str` | LevenshteinComparator @ 0.5 | LevenshteinComparator @ 0.85 |

The "without the flag" column applies to `from_json_schema()`. With
`model_from_json()`, a primitive field that names no comparator is an error unless
you opt in.

### Partly-configured fields

Name some parameters and leave others out, and only the missing ones are inferred:

```json
{"total": {"type": "float", "threshold": 0.99}}
```

```
comparator NumericComparator inferred
threshold 0.99 yours
```

So you can keep a threshold you tuned while still getting a comparator that suits
the type.

### It is off by default

Enabling it changes scores for any field you left unspecified: a `float` compared as
text starts being compared as a number, which is usually what you want but is still
a change to your reported metrics. Turn it on deliberately, check `explain()`, and
re-baseline.

!!! note "Date fields and `model_from_json()`"

`model_from_json()` accepts `str`, `int`, `float`, `bool`, `list` and `dict`;
there is no `date` type. A date field declared as `str` there does **not** get
`DateComparator` -- inference will not apply a comparator its declared type
cannot support, and says so in `why`:

```
['type:str -> LevenshteinComparator@0.7',
'name-token:issued_date matched DateComparator but type str is
incompatible; keeping type default']
```

Name the comparator explicitly (`"comparator": "DateComparator"`), or use the
JSON Schema path with `{"type": "string", "format": "date"}`, which carries the
date semantics in the type.

## Loading from Files

```python
Expand All @@ -268,7 +442,7 @@ Model = StructuredModel.model_from_json(config)
| Error | Cause | Fix |
|-------|-------|-----|
| `"Unknown type"` | Unsupported type string | Use one of: `str`, `int`, `float`, `bool`, `list`, `dict`, `structured_model`, `list_structured_model` |
| `"Missing comparator"` | Primitive field without comparator | Add a `"comparator"` key |
| `"Missing comparator"` | Primitive field without comparator | Add a `"comparator"` key, or set `"infer_unspecified_fields": true` (see [Inferring unspecified fields](#inferring-unspecified-fields)) |
| `"Invalid threshold"` | Threshold outside 0.0--1.0 | Use a value between 0.0 and 1.0 |
| Nested model errors | Invalid nested `fields` config | Validate nested config independently |

Expand Down
22 changes: 21 additions & 1 deletion src/stickler/auto/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ def specs_for(
return result


def _inferred_provenance(cls: Type[BaseModel], name: str) -> tuple:
"""The inference trail for a field, or empty if the author configured it.

``field_converter`` and ``json_schema_importer`` record this on the
``json_schema_extra`` callable when they fill in a parameter the config did
not name, so a field that was inferred can say so instead of being reported
as explicitly configured.
"""
extra = cls.model_fields[name].json_schema_extra
return tuple(getattr(extra, "_inferred_provenance", ()))


def _collect_specs(
cls: Type[BaseModel],
prefix: str,
Expand Down Expand Up @@ -188,12 +200,20 @@ def _collect_specs(
comp_name = (
type(comparator).__name__ if comparator else "default"
)
# A config-driven field whose parameters were inferred carries the
# reasoning that produced them. Reporting every such field as
# "explicit" claimed the author chose values they never wrote,
# which is the surface half of #210: a model that looks configured
# and is not.
inferred_trail = _inferred_provenance(cls, name)
result[path] = InferredSpec(
comparator_name=comp_name,
threshold=info.threshold,
weight=info.weight,
clip_under_threshold=info.clip_under_threshold,
provenance=["explicit: configured on the StructuredModel class"],
provenance=list(inferred_trail)
if inferred_trail
else ["explicit: configured on the StructuredModel class"],
)
if kind == "model":
_collect_specs(
Expand Down
Loading
Loading