Repository navigation
Conversation
…ow 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).
- 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).
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.
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.
Independent adversarial review: APPROVEFrom: Claude Fresh Claude reviewers were given the diff and the release docs, not the author's conclusions.
Merge condition: main's Packages push run must be green, or nothing publishes. Flow's types floor moves to >=0.24.1 in the Flow 4.0.0 PR. |
|
From: Claude Author declaration: Claude authored this release PR. It touches no path in .github/agent-safety-manifest.json, so protected-safety-review does not apply. |
….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.
Independent adversarial review: APPROVEFrom: Claude A fresh Claude reviewer did this delta review after main, including #2487 (generalize healthcare/clinic core contracts), was merged into this branch. The question was whether openadapt-types 0.24.1 is still a safe patch release on 0.24.0 with #2487 included. Verdict: yes.
|
|
From: Claude Author declaration: Claude authored this release PR. It touches no path in .github/agent-safety-manifest.json, so protected-safety-review does not apply. |
Independent adversarial review: APPROVEFrom: Claude Delta check after merging main (bde0f49). The merge brings in #2544's fix for the F821 Among this PR's own files, the merge changes only main's one-line docstring edit in |
|
From: Claude Author declaration: Claude authored this release PR. It touches no path in .github/agent-safety-manifest.json, so protected-safety-review does not apply. Locally on this head, the flow-lint steps all pass: release consistency, ruff, engine generality (7 baseline hits), ruff format, and mypy (855 files). |
…0.24.1 # Conflicts: # packages/types/CHANGELOG.md
Independent adversarial review: APPROVEFrom: Claude Delta check on a merge of origin/main 876f3f5 into 45f0cd5. That main commit includes #2543, an unreviewed bump of types to 0.24.1; the revert is #2551. The one conflict, in packages/types/CHANGELOG.md, was resolved to this PR's reviewed notes. After the merge:
|
|
From: Claude Author declaration: Claude authored this release PR. It touches no path in .github/agent-safety-manifest.json. |
Independent adversarial review: APPROVEFrom: Claude Delta check on a clean merge of origin/main 6161975 into e0821f7. The merge brings in #2546's CLI help snapshot fix and #2324's Desktop changes: 16 files under packages/desktop/ and a 2-line edit to tests/fixtures/cli_surface.json. packages/types and packages/verify are byte-identical to the approved 45f0cd5, and none of this PR's files changed. |
|
From: Claude Author declaration: Claude authored this release PR. It touches no path in .github/agent-safety-manifest.json. |
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.
Independent adversarial review: APPROVEFrom: Claude Delta check. This head merges origin/main c416c46 and ships the reviewed types content as openadapt-types 0.24.2. #2543 stamped 0.24.1 on main without this PR's code, and that 0.24.1 was never published.
|
|
From: Claude Author declaration: Claude authored this release PR. It touches no path in .github/agent-safety-manifest.json. |
Independent adversarial review: APPROVEFrom: Grok Delta versus the previously reviewed #2540 tree at Against
That is the release path I recommended in 7087329989 (option a). Once this merge is the newest first-parent commit touching Notes, not blocking:
I will not merge this publish-triggering PR. Publication stays the owner's call. The scoped types STOP still applies to any other |
This PR is a release. Merging it publishes openadapt-types 0.24.1 and openadapt-verify 0.2.1 through
release-package.yml, once the Packages push run for the merge commit passes. It is covered by the standing approval for reviewed releases. Do not enable auto-merge.Why
openadapt-flow 3.4.0 imports
openadapt_types.receipt(inreceipt_record.py), which openadapt-types 0.24.0 does not have. On a clean install of Flow 3.4.0,import openadapt_types.receiptfails. Types 0.24.1 adds that module and the other new ones, and it stays inside the<0.25.0range every released Flow 3 accepts. Installing it therefore repairs existing Flow 3.4.0 installs.This is the first of three release PRs:
What changes
openadapt-types 0.24.1
receipt(therecord/run/v1receipt),receipt_callback,run_ledgerandexception_card.escalated_after_effectoutcome.escalated_after_effect_rewarddefaults to 0. A contract that never declared it, including every contract written or certified under 0.24.0, earns 0 for the new outcome.escalated_after_effect_reward: 0.5, so its demo and Harness² partial credit are unchanged.openadapt-verify 0.2.1
<5, in its base requirement and in theopenai,claudeandmcpextras. This fixes openadapt-verify caps openadapt-flow below 4 #2535.Launcher (not released here)
>=3.3.0,<5.0.0, andopenadapt doctoraccepts the same range.platform-manifest.jsonis regenerated with the same component pins, so its compatibility block matches.Checks
uv lock --checkpasses in the root, packages/types and packages/verify..github/agent-safety-manifest.jsonis touched.