Repository navigation
chore(types): release openadapt-types 0.24.1 - #2543
Conversation
Independent adversarial review: REQUEST CHANGESFrom: Grok Review only. I am not merging, tagging, publishing, or dispatching Merging this PR auto-publishes What this bump would correctly shipThe unique diff is the three-file 0.24.0 → 0.25.0 stamp (
Blocker: this stamp conflicts with every in-tree consumer pin, and CI is already redThis PR raises the types package to 0.25.0 but leaves the monorepo upper bound at
CI already fails when it builds types from this checkout and then installs Flow. Repeated across jobs, including Check without saving (GTK) and windows replay:
This bump alone does not unblock
|
Independent adversarial review: APPROVEFrom: Grok Review only. I am not merging, tagging, publishing, or dispatching Merging this PR auto-publishes Prior blocker is fixedThe previous head stamped 0.25.0, which is outside published and in-tree Flow 3.4.0's What 0.24.1 would ship (and what
|
Independent adversarial review: APPROVEFrom: Grok Review only. I am not merging, tagging, publishing, or dispatching The only new commit is a merge of current Merging this PR auto-publishes The merge-order collision with OpenAdapt#2540 remains: both stamp types 0.24.1, but #2540 still carries additional I approve this head. I am not merging it. |
|
Coordinator hold, do not merge. This competes with the reviewed release plan in #2540, which publishes openadapt-types 0.24.1 and openadapt-verify 0.2.1.
The launcher release follows as its own PR after Flow 4.0.0 and agent 2.3.0 are on PyPI. Please don't merge this one or #2542. Send questions to the coordinator. |
0.24.1 was stamped on main by #2543 without this PR's reviewed types code and was never published; that tree breaks 0.24.0 contracts. The reviewed content ships as 0.24.2. Only the version (pyproject, uv.lock) and the changelog change; every other types and verify file is byte-identical to the reviewed 45f0cd5.
…-types 0.24.1 (#2558) The exact-version check in sync_control_overlay_contract.py still required 0.24.0, so desktop engine tests failed after #2543 left 0.24.1 in the tree. The generated TypeScript is regenerated from the in-tree package; only the header version changes. The install range stays >=0.24.0,<0.25.0 and uv.lock is left on the published 0.24.0 until 0.24.1 is on PyPI. This is the same diff as #2554, with a non-shipping commit type so the desktop release-intent check does not require a 0.31.4 bump. 0.31.3 is still unpublished; this change does not bump any package version.
…accepts Flow 4 (#2540) * release: openadapt-types 0.24.1 and openadapt-verify 0.2.1; accept Flow 4 openadapt-flow 3.4.0 imports openadapt_types.receipt, which openadapt-types 0.24.0 does not have, so a clean install of 3.4.0 fails on every receipt path. openadapt-types 0.24.1 adds the receipt, receipt callback, run ledger and exception card modules. It stays inside the <0.25.0 range every released Flow 3 accepts, so it also repairs Flow 3.4.0 installs. 0.24.1 keeps every 0.24.0 digest. escalated_after_effect_reward enters RewardContractV1.digest only when it differs from its default, and the pinned contract digest is back to its 0.24.0 value. A fixture of contracts and certificates issued by openadapt-types 0.24.0 from PyPI checks that they hash and verify unchanged. A 0.24.0 contract with verified_reward of 0.5 or less still loads; asking then earns no credit. This is the first of two release PRs. Flow 4.0.0 needs openadapt-types 0.24.1 on PyPI first: its on-prem wheelhouse is built from Flow's lock, which can only pin a types version PyPI serves. So this PR also lifts the caps that would break CI once the in-tree Flow is 4.0.0: - the launcher accepts openadapt-flow >=3.3.0,<5.0.0, in its requirements and in `openadapt doctor`'s supported range; the platform manifest is regenerated with the same component selection so its compatibility block matches. The launcher releases only on dispatch, so nothing ships here. - openadapt-verify 0.2.1 accepts openadapt-flow <5 (#2535). * release: address review of types 0.24.1 and verify 0.2.1 - verify's distribution check asserted the old <4 Flow cap; it now expects <5, so the verify job and its release build pass. - RewardScoringPolicyV1 leaves escalated_after_effect_reward out of its serialization at the default, so a contract file 0.24.1 writes stays readable by 0.24.0 and hashes the same; the digest needs no special case. A test checks the serialized form against the 0.24.0 fixture. - The types notes move the validator change into Features and add a Compatibility section. The verify note names the extras it widens. Verify's suite passes against the Flow 4.0.0 source (91 passed; the 3 installed-CLI tests need an installed openadapt-verify and fail the same way without this change). * fix(types): an undeclared escalation earns nothing escalated_after_effect_reward now defaults to 0, not 0.5. A contract written or certified before the escalated_after_effect outcome existed never declared it, so the outcome must not start paying under it. - The field is still left out of serialization at its default, so 0.24.0 contracts and certificates hash, verify and load as before, and 0.24.1 writes files 0.24.0 can read. - The validator no longer needs a default exception: any value at or above verified_reward is refused, and 0 is always below it. - The 0.24.0 fixture now also records how 0.24.0 scored every outcome it knew (tier 2, policy update 120). The test checks 0.24.1 scores them the same and gives the new outcome 0. A declared value is paid as declared. - Flow's synthetic reward bundle declares escalated_after_effect_reward 0.5, so its demo and Harness² tests keep their partial credit. That contract declares it, so it is paid. * docs: the escalated_after_effect default is 0 everywhere it is described REWARD.md, the reward worker docstring, HARNESS2.md and REWARD_WORKER.md still said the default was 0.5. The types notes and docstring restore the below-1 bound beside the below-verified_reward one. The exported contract schema carries the new docstring. * release(types): keep 0.24.0 enum member names; note #2487 in the 0.24.1 notes #2487 declared the domain-neutral alias before the v1 member in StepClass, ApproverPolicyRefusal and OutcomeSourceV1, so .name, str() and repr() of the v1 member changed (StepClass.CLINICAL_WRITE.name became HIGH_RISK_WRITE). The v1 member now comes first and the new name is the alias, as in 0.24.0. Values, wire bytes and schemas are unchanged. The 0.24.1 notes now list #2487: the managed_job module and schemas, the domain-neutral aliases and accepted input forms, and that output stays byte-identical to 0.24.0. * release(types): publish the reviewed content as openadapt-types 0.24.2 0.24.1 was stamped on main by #2543 without this PR's reviewed types code and was never published; that tree breaks 0.24.0 contracts. The reviewed content ships as 0.24.2. Only the version (pyproject, uv.lock) and the changelog change; every other types and verify file is byte-identical to the reviewed 45f0cd5.
Releases
openadapt-types 0.25.0to PyPI soopenadapt-flow 3.4.0andopenadaptlauncher1.24.0(#2542) haveopenadapt_types.receipt(andexception_card/run_ledger) on PyPI instead of failing withImportError: cannot import name 'receipt' from 'openadapt_types'against0.24.0.Changes
packages/types/pyproject.toml: bumpversion = "0.24.0"->"0.25.0".packages/types/CHANGELOG.md: add## v0.25.0 (2026-11-22)entry documentingopenadapt_types.receipt/receipt_callback,openadapt_types.exception_card/run_ledger, andopenadapt_types.rewardpartial credit (feat(reward): score a confirmed write followed by an escalation as configurable partial credit #1824).packages/types/uv.lock: updateopenadapt-typesversion0.24.0 -> 0.25.0(only that single line changed).Local Verification
python3 packages/types/scripts/verify_release_lock.py: OKpython3 packages/types/scripts/check_source_boundary.py: OKpytestinpackages/types: 882 passed in 4.74spython3 scripts/build_llms_full.py --check: OKGenerality & Durability
openadapt-types 0.25.0package thatopenadapt-flow 3.4.0andopenadapt 1.24.0import).packages/typespass.record/run/v1receipt, exception-card, and run-ledger schemas to PyPI soopenadapt verifyanduvx openadapt@latest quickstartwork end-to-end.