Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e2de968
docs: state the list contract in one place, and correct the claims th…
sromoam Oct 16, 2026
ecaaecd
docs: link the None-list row gap to #418
sromoam Oct 16, 2026
91928e7
docs: link the first-pair mean_score exception to #428
sromoam Oct 19, 2026
9193892
Merge remote-tracking branch 'origin/dev' into docs/lists-contract
sromoam Oct 20, 2026
94f8401
Merge remote-tracking branch 'origin/dev' into m419
sromoam Oct 28, 2026
260fc04
docs: narrow the raw_similarity_score gap to List[StructuredModel] af…
sromoam Oct 28, 2026
1dd9089
Merge origin/dev into docs/lists-contract
sromoam Nov 17, 2026
a17dc85
docs(lists): correct the list contract against dev
sromoam Nov 17, 2026
0597663
docs(results): drop the fixed match gap and correct weighted_score fo…
sromoam Nov 17, 2026
789509f
docs(thresholds): correct what the runtime match_threshold gates
sromoam Nov 17, 2026
71fc040
docs(threshold-gated): qualify equal-length pairing for None, link th…
sromoam Nov 17, 2026
63af654
docs(hungarian): make the Result Structure checkable and nest leaf co…
sromoam Nov 17, 2026
ec0a2f9
docs: point list clipping at the Score rule, and limit the unordered …
sromoam Nov 17, 2026
5528a7e
docs(auto): state every effect of the runtime match_threshold in the …
sromoam Nov 17, 2026
d7dd08b
docs(changelog): re-add the list contract entry under Unreleased
sromoam Nov 17, 2026
4782d50
docs(auto): describe the List[BaseModel] clip gap without an issue link
sromoam Nov 17, 2026
e1d4e47
docs(lists): word the known gaps as defects, not as places the table …
sromoam Nov 17, 2026
174ed08
docs(thresholds): the runtime match_threshold also gates zero-config …
sromoam Nov 17, 2026
8150c77
docs: clip_under_threshold is off by default on dict and plain-model …
sromoam Nov 17, 2026
310a741
docs: qualify the equal-length pairing claims for None elements
sromoam Nov 17, 2026
90db276
docs(lists): scope the order claim to a list field's elements
sromoam Nov 17, 2026
9de4212
docs(lists): mark the List[StructuredModel] clip behaviour as a known…
sromoam Nov 17, 2026
e649f73
docs(lists): fix the review nits on reports, null lists and examples
sromoam Nov 17, 2026
0a314cf
docs(lists): scope the Reports row to field_comparisons, and say non_…
sromoam Nov 17, 2026
3218bc4
docs(lists): scope the clip defaults to a StructuredModel declared in…
sromoam Nov 17, 2026
23bc208
docs(json-schema): x-aws-stickler-infer-unspecified also infers the c…
sromoam Nov 17, 2026
6330692
docs(json-schema): keep the clip Default cell at true, and put the in…
sromoam Nov 17, 2026
69e178c
Merge origin/dev into docs/lists-contract
sromoam Nov 17, 2026
1d7ae07
docs(thresholds): fix the list rows the dev merge left inconsistent
sromoam Nov 17, 2026
aea762b
docs(thresholds): keep the List[StructuredModel] exception in Key Rul…
sromoam Nov 17, 2026
9a375d3
Merge branch 'dev' into docs/lists-contract
sromoam Nov 18, 2026
b918a52
Merge origin/dev into docs/lists-contract
sromoam Nov 18, 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
Merge remote-tracking branch 'origin/dev' into m419
# Conflicts:
#	CHANGELOG.md
#	docs/docs/Getting-Started/Contributing/architecture.md
#	docs/docs/Guides/Evaluation/understanding-results.md
  • Loading branch information
sromoam committed Oct 28, 2026
commit 94f8401d9c87a3be896c6f50ce649f38819ea1d9
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,43 @@ Each release links to full notes on the
([#425](https://github.com/awslabs/stickler/issues/425))
([#411](https://github.com/awslabs/stickler/issues/411))

- **`raw_similarity_score` on a primitive list node is now the unclipped
score.** It carried the clipped, coverage-scaled mean, the same number as
`threshold_applied_score`, so it contradicted its name and `compare()`, and
the unclipped number could not be read from `compare_with()` output. It is now
the same mean with no element clipped, `sum(pair scores) / max(len(gt),
len(pred))`: `["apple", "banana"]` vs `["apple", "banxxx"]` at threshold 0.9
reported `0.5` and now reports `0.75`, which is what `compare()` returns. On a
`List[StructuredModel]` each pair's score is the item's own `overall_score`,
whose fields are already clipped, so its raw score is still clipped inside
each item and moves only where a pair's own score is below the list's 0.01
floor: one pair scoring `0.005` reported `0.0` and now reports `0.005`.
Report-only: `similarity_score`, `threshold_applied_score`, `field_scores`,
`overall_score` and every confusion count are unchanged.
`EvalResult.explain()` reads it, so a list field's `raw_similarity` moves the
same way, and a primitive list whose paired elements were all clipped now gets
a `verdict`, worded for a coverage-scaled mean
([#330](https://github.com/awslabs/stickler/issues/330))

- **`evaluator_format=True` precision and recall no longer swap when a value is
missed.** Without `include_confusion_matrix=True`, `overall` was a conversion
of the score that charged every lost point to precision once the score reached
0.5, and each list field's `overall` always was. One TP and one FN, such as
`[A, B]` vs `[A]`, reported precision `0.5` and recall `1.0`; they now report
`1.0` and `0.5`, as `TP / (TP + FP)` and `TP / (TP + FN)` define them and as
the same call already reported with the confusion matrix included. Both now
read the node's confusion counts, honour `recall_with_fd`, and equal that
node's `derived` block. Each `items[i]` of a `List[StructuredModel]` field is
that pair's own evaluator-format result, so its `overall` moves the same way.
A node with no TP, FP or FN (both sides empty) has no precision or recall to
read and keeps its previous value. For a TN-only document that value still
depends on the flag: the document's `overall` precision, recall and F1 are
`1.0` without the confusion matrix and `0.0` with it
([#434](https://github.com/awslabs/stickler/issues/434)). A TN-only list
field's `overall` is `1.0` either way. `anls_score`, and
the metrics of a field that is not a list, are unchanged.
Only evaluator-format output moves: scores and counts are unchanged

### Documentation

- The list contract is now stated in one place, the table in
Expand All @@ -274,6 +311,20 @@ Each release links to full notes on the
on a list node and bulk `mean_score` inside list items are described as
they are today ([#330](https://github.com/awslabs/stickler/issues/330)).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Medium: the entry attributes the raw_similarity_score and bulk mean_score gaps to #330, but the docs link #437 and #428. After #420, the raw_similarity_score gap only applies to List[StructuredModel], because primitive lists already report the raw value (primitive_list_comparator.py:161).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrote the entry under Unreleased (d7dd08b). The raw_similarity_score and mean_score lines are gone: this PR doesn't change that text, and dev's 1.0.1 entries already describe both (the mean_score one links #428). The defects left in the entry each link their own issue: #416, #415 and #418.


### Security

- **A document value can no longer run as script in the HTML report.** With
`individual_results_jsonl_path`, the report embeds each document's values as
JSON inside a `<script>` block, and `json.dumps` left `<` as is. A browser
ends the block at the first `</script`, so a ground-truth or predicted value
carrying `</script><script>...</script>` ran as its own script when the
report was opened. Values are model output or third-party documents, so this
needed no access to stickler or the host. A JSON Schema property name reached
the same block through the field thresholds. `<`, `>`, `&`, U+2028 and U+2029
are now written as `\uXXXX`, which the page's JavaScript reads as the same
characters. Present since 0.1.3
([#431](https://github.com/awslabs/stickler/issues/431))

## [1.0.0] - 2026-09-11

### Added
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/Getting-Started/Contributing/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ Every field comparison produces three score variants:

| Score | Description |
|-------|-------------|
| `raw_similarity_score` | Direct comparator output (0.0–1.0). On a list node it is currently the list's score, which already has per-element clipping applied ([#330](https://github.com/awslabs/stickler/issues/330); see [Score](../../Advanced/classification-logic.md#list-contract)) |
| `similarity_score` | Same as raw — maintained for API compatibility |
| `threshold_applied_score` | Raw score with `clip_under_threshold` applied (0.0 if below threshold and clipping is enabled) |
| `raw_similarity_score` | Unclipped score (0.0–1.0). On a list node it is the coverage-scaled mean of the matched pairs' unclipped scores, `sum(pair scores) / max(len(gt), len(pred))`, which is what `compare()` returns for the field. On a `List[StructuredModel]` each pair's score is the item's own `overall_score`, so it is still clipped inside each item. No score or count reads it. `EvalResult.explain()` shows it (`raw_similarity`, `verdict`) for each top-level field. On a scalar field it also decides `match` in `field_comparisons`, the label confidence metrics score against, and gives an FD non-match record its similarity and reason (see [Score](../../Advanced/classification-logic.md#list-contract)) |
| `similarity_score` | Maintained for API compatibility. Equal to `raw_similarity_score` on a scalar or nested model, and to `threshold_applied_score` on a list node |
| `threshold_applied_score` | Raw score with `clip_under_threshold` applied (0.0 if below threshold and clipping is enabled). The score: `field_scores` and `overall_score` read it |

### Weight-Based Formula

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/Guides/Evaluation/understanding-results.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The `confusion_matrix` object has four keys:

- **`overall`** -- Metrics for this node's direct children. Where the field is a list, those children are item pairings rather than leaves.
- **`fields`** -- Field-by-field breakdown, with nested structure for objects and lists.
- **`non_matches`** -- Populated when `document_non_matches=True` (empty otherwise).
- **`non_matches`** -- Always `[]`, a placeholder, also in evaluator-format output. With `document_non_matches=True` the records are in the result's top-level `non_matches`.
- **`aggregate`** -- Primitive field metrics summed recursively below this node, excluding list items rejected at their element class's `match_threshold`, and unmatched (FN/FA) items when a sibling was accepted ([Recursion](../../Advanced/classification-logic.md#list-contract)). A single nested `StructuredModel` field is not excluded; its leaves are always counted. Where a list's items were *all* rejected the counts become object rows rather than primitive-field metrics, so check that before computing a leaf rate ([why](../../Advanced/aggregate-metrics.md#aggregate-counts-objects-for-an-all-rejected-list)). See [`overall` vs `aggregate`](#overall-vs-aggregate).

### `overall` vs `aggregate`
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.