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 2a37985b1a..c783b1f78b 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 @@ -27,15 +37,15 @@ 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 @@ -44,7 +54,8 @@ 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 @@ -53,15 +64,19 @@ 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") 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" },