From 4eab598fa811f70112a449549e6055b1650a72a9 Mon Sep 17 00:00:00 2001 From: abrichr Date: Tue, 1 Dec 2026 16:47:04 -0500 Subject: [PATCH 1/2] release(types): openadapt-types 0.24.3 Publishes the post-save screen bases (post_save_screen, reopened_record), VERIFIED at check levels 1-4, fresh_reload, the strict evidence matcher and the agent_used / verifier_adapter fields that are on main since 0.24.2. openadapt-flow 4.1.0 accepts >=0.24.2,<0.25.0 and needs these to name a screen basis on its receipts. Measured against 0.24.2 over every input it accepts: the only output change is a confirmed level 1-2 check with no basis, SHOWN -> RECORDED (or ATTESTED when attested), both valid in 0.24.2 with the same outcome set. Flow 4.0.0's evidence and receipt tests give identical results with 0.24.2 and with this tree. --- packages/types/CHANGELOG.md | 12 +++++++++++- packages/types/pyproject.toml | 2 +- packages/types/uv.lock | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 2a37985b1a..8124432458 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,7 +1,17 @@ # CHANGELOG -## Unreleased +## v0.24.3 (2026-12-01) + +Compatibility: for every input 0.24.2 accepts, `outcome_word` and +`build_evidence_scope` return the same word except for a confirmed level 1 +or level 2 check with no basis. That check was `SHOWN` and is now `RECORDED`, +or `ATTESTED` when an operator attested it. Both words were already valid at +those levels in 0.24.2, and they are consistent with the same `record/run/v1` +outcomes as `SHOWN`. No word becomes stronger and no call that worked now +raises. `SHOWN` blocks written earlier still validate. openadapt-flow 4.1.0, which accepts +`>=0.24.2,<0.25.0`, needs this release to name the `post_save_screen` and +`reopened_record` bases on its receipts; with 0.24.2 it names none. - `check_level`: the post-save screen check earns `VERIFIED`. New bases `post_save_screen` (level 1) and `reopened_record` (level 2) are handed out diff --git a/packages/types/pyproject.toml b/packages/types/pyproject.toml index 1e6df001f9..518df3de54 100644 --- a/packages/types/pyproject.toml +++ b/packages/types/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "openadapt-types" -version = "0.24.2" +version = "0.24.3" description = "Pydantic models for computer-use agents: screen state (ComputerState, UINode), actions (Action), and results (ActionResult)" readme = "README.md" license = "MIT" diff --git a/packages/types/uv.lock b/packages/types/uv.lock index a66f92d19e..08dcab2ba4 100644 --- a/packages/types/uv.lock +++ b/packages/types/uv.lock @@ -302,7 +302,7 @@ wheels = [ [[package]] name = "openadapt-types" -version = "0.24.2" +version = "0.24.3" source = { editable = "." } dependencies = [ { name = "pydantic" }, From f5408a8675fe69e388fb0d2acffeb3d6248075f1 Mon Sep 17 00:00:00 2001 From: abrichr Date: Tue, 1 Dec 2026 16:55:37 -0500 Subject: [PATCH 2/2] release(types): address review: Desktop overlay pin, CHANGELOG corrections - Desktop's overlay contract sync pins the in-tree types version; move it and the generated header to 0.24.3 (the contract itself is unchanged), as #2558 did for 0.24.1, so desktop-test and the nightly stay green. - CHANGELOG: a new basis fails to validate under 0.24.2 or earlier, not 0.24.x; a reopen without fresh-reload proof is RECORDED, not SHOWN; list agent_used and verifier_adapter (#2650); rewrap stray long lines. - evidence_scope comment: SHOWN is kept for receipts written before 0.24.3. --- .../scripts/sync_control_overlay_contract.py | 2 +- .../desktop/src/overlay/generated/contract.ts | 2 +- packages/types/CHANGELOG.md | 23 +++++++++++-------- .../types/openadapt_types/evidence_scope.py | 2 +- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/packages/desktop/scripts/sync_control_overlay_contract.py b/packages/desktop/scripts/sync_control_overlay_contract.py index e2a257bb62..c25c1c8ac7 100644 --- a/packages/desktop/scripts/sync_control_overlay_contract.py +++ b/packages/desktop/scripts/sync_control_overlay_contract.py @@ -23,7 +23,7 @@ ROOT = Path(__file__).resolve().parents[1] OUTPUT = ROOT / "src" / "overlay" / "generated" / "contract.ts" SCHEMA_DIR = ROOT / "src" / "overlay" / "generated" / "schemas" -PINNED_TYPES_VERSION = "0.24.2" +PINNED_TYPES_VERSION = "0.24.3" SCHEMA_NAMES = ( "control-overlay-frame-v2.json", "control-overlay-timeline-v2.json", diff --git a/packages/desktop/src/overlay/generated/contract.ts b/packages/desktop/src/overlay/generated/contract.ts index f46ad4901f..881f914277 100644 --- a/packages/desktop/src/overlay/generated/contract.ts +++ b/packages/desktop/src/overlay/generated/contract.ts @@ -1,4 +1,4 @@ -// Generated from openadapt-types 0.24.2. Do not edit by hand. +// Generated from openadapt-types 0.24.3. Do not edit by hand. export const CONTROL_OVERLAY_FRAME_VERSION = "openadapt.control-overlay-frame/v2" as const; export const CONTROL_OVERLAY_TIMELINE_VERSION = "openadapt.control-overlay-timeline/v2" as const; diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 8124432458..c783b1f78b 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -37,15 +37,15 @@ raises. `SHOWN` blocks written earlier still validate. openadapt-flow 4.1.0, whi A block that names a screen basis and lists `fields_not_read` does not validate, whatever its word. A `record/run/v1` receipt with a screen basis is refused unless every line is confirmed and none lists `field_values` as - not checked. - A block with a new basis does not validate under openadapt-types 0.24.x. + not checked. A block with a new basis does not validate under + openadapt-types 0.24.2 or earlier. - Test vectors: `valid-evidence-scope-post-save-screen` (a signed `VERIFIED` receipt with basis `post_save_screen`) and `older-evidence-scope-shown` (an older `SHOWN` receipt that still verifies), `evidence-scope-screen-with-unread-fields` and - `evidence-scope-screen-with-unchecked-write` (both refused), plus `vectors/screen-check/cases.json`, shared by the types, - Flow, kernel and launcher tests. - + `evidence-scope-screen-with-unchecked-write` (both refused), plus + `vectors/screen-check/cases.json`, shared by the types, Flow, kernel and + launcher tests. - `evidence`: one strict matcher for deciding whether text on a screen or page proves a value or a commit. `match_field` returns `MATCH`, `MISMATCH` or `AMBIGUOUS`, and only `MATCH` may pass. A value bound to its label is @@ -54,7 +54,8 @@ raises. `SHOWN` blocks written earlier still validate. openadapt-flow 4.1.0, whi is not in `2026-11-29`. A label binds only at the start of a line or after `|`, `;` or a tab, with only punctuation between, so `Previous Patient ID:`, `Error: Claim ID:` and `Name: Jane Doe Previous MRN:` don't bind, - and neither does `DOB` in a single-line `Patient: X DOB: Y`. A bound value may hold only unit words beside the value: + and neither does `DOB` in a single-line `Patient: X DOB: Y`. A bound + value may hold only unit words beside the value: `CLM-1 not found`, `Dose: <5`, `250.00 CR` and `Jane Sample (not this patient)` are `AMBIGUOUS`. Numbers compare as whole numeric tokens by value, so `250` never matches `$1,250.00` and `5` never matches `50 mg`. One @@ -63,15 +64,19 @@ raises. `SHOWN` blocks written earlier still validate. openadapt-flow 4.1.0, whi before, a question, a modal or future form, a negation, or a control label next to it, and a failure word (`Error`, `rolled back`, `draft`, `0 records`) on any line new since the first frame. - `has_negation_or_modal` exposes the word check. The module is standard library only. The launcher and - the kernel carry byte-identical copies, and a test fails when the copies + `has_negation_or_modal` exposes the word check. The module is standard + library only. The launcher and the kernel carry byte-identical copies, and a test fails when the copies drift. `tests/evidence_corpus.json` pins the verdicts on adversarial cases and true positives. `docs/evidence-migration.md` lists which callers use it. - `check_level`: a `fresh_reload` basis at level 3. It is a new navigation in the acting session that is proven to have fetched from the server (cache bypassed, the request kept as evidence). With it a level 3 check is - `VERIFIED`; a reopen without that proof stays level 2, `SHOWN`. + `VERIFIED`; a reopen without that proof stays level 2, `RECORDED`. +- `evidence_scope`: optional `agent_used` and `verifier_adapter` labels name + the agent or compiled plan that produced a run and the verifier stack that + checked it (#2650). Each is a short label and may not contain a URL. A + block that carries either does not validate under openadapt-types 0.24.2. - Test vectors only, no code change: six `record/run/v1` vectors (`evidence-scope-null`, `evidence-scope-null-basis`, `evidence-scope-null-read-back-at`, `evidence-scope-null-recheck-window`, diff --git a/packages/types/openadapt_types/evidence_scope.py b/packages/types/openadapt_types/evidence_scope.py index 22430ecfe6..07688cb825 100644 --- a/packages/types/openadapt_types/evidence_scope.py +++ b/packages/types/openadapt_types/evidence_scope.py @@ -172,7 +172,7 @@ def _consistent(self) -> "EvidenceScopeV1": if self.word == "SHOWN" and not ( CheckLevel.SAME_SCREEN <= level <= CheckLevel.REOPENED ): - # The older word, kept so receipts written before 0.25 verify. + # The older word, kept so receipts written before 0.24.3 verify. raise ValueError("SHOWN is a level 1 or 2 re-read of the acting screen") if self.word == "SHOWN" and self.basis is not None: raise ValueError("an older SHOWN block names no basis")