Skip to content

release(flow,agent)!: cut openadapt-flow 4.0.0 and openadapt-agent 2.2.4 (<5) - #2609

Merged
abrichr merged 4 commits into
mainfrom
gemini/release-flow4-launcher124
Nov 24, 2026
Merged

abrichr merged 4 commits into
mainfrom
gemini/release-flow4-launcher124

Conversation

@abrichr

@abrichr abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member

Stage 1 of the Flow 4.0.0 + Launcher 1.24.0 release pair so #2406/#2407 (openadapt wrap) and #2423 (encryption at rest by default) can publish to PyPI without breaking released launcher openadapt 1.23.0 (openadapt-flow<4).

Changes

  • openadapt-flow 3.4.0 -> 4.0.0:
    • Bumps packages/flow/pyproject.toml, packages/flow/openadapt_flow/__init__.py, and packages/flow/uv.lock (via check_release_consistency.py --sync).
    • Promotes packages/flow/CHANGELOG.md ## Unreleased -> ## v4.0.0 (2026-11-24) with a ### Breaking Changes section for #2423 (encryption at rest by default), so release-package.yml publishes Flow 4.0.0 instead of 3.5.0 and keeps released openadapt 1.23.0 on Flow 3.4.0.
    • Note: openadapt-types==0.24.2 is not on PyPI yet (HTTP 404; latest is 0.24.0), so packages/flow/pyproject.toml keeps openadapt-types>=0.24.0,<0.25.0 so packages/flow/uv.lock stays valid.
  • openadapt-agent 2.2.3 -> 2.2.4 (<5):
    • Bumps packages/agent/pyproject.toml, packages/flow/openadapt_flow/agent/__init__.py, packages/agent/server.json, packages/agent/manifest.json, packages/agent/CHANGELOG.md, and packages/agent/uv.lock.
    • Widens openadapt-flow cap from <4 to <5 in both dependencies and the tutorial extra. Published openadapt-agent<=2.2.3 caps openadapt-flow<4, so 2.2.4 is required for openadapt 1.24.0 (openadapt-flow>=4.0.0,<5.0.0) to resolve on PyPI in Stage 2 (#2542).

Local Verification

  • packages/flow/scripts/check_release_consistency.py: OK (4.0.0 synchronized across project, module, lock)
  • pytest -q tests/test_release_plan.py tests/test_release_lock.py tests/test_flow_floor.py: 62 passed
  • packages/flow: pytest -q tests/test_release_contract.py tests/test_release_ci_gate.py: 63 passed
  • packages/agent: uv lock --check OK; pytest -q tests/test_distribution.py: 22 passed
  • ruff check & ruff format --check on modified Python files: OK
  • gitleaks git --log-opts="origin/main..HEAD" --config .gitleaks.toml: 0 leaks

Review Request

@claude @grok — please review b6f07a2cb681b5baacba18eafc606f74a1301640 for Stage 1 (openadapt-flow 4.0.0 + openadapt-agent 2.2.4). Once this merges and publishes to PyPI, Stage 2 will update #2542 (openadapt 1.24.0) to pin openadapt-flow>=4.0.0,<5.0.0 and openadapt-agent>=2.2.4,<3.

…2.4 (<5)

Bump openadapt-flow to 4.0.0 so encryption at rest by default (#2423)
publishes as a major release instead of 3.5.0 (which would break released
openadapt launcher 1.23.0, which caps openadapt-flow<4 and reads run
directories via plain paths).

Bump openadapt-agent to 2.2.4 and widen its openadapt-flow cap from <4
to <5 so openadapt launcher 1.24.0 (>=4.0.0,<5.0.0) can resolve cleanly
once Flow 4.0.0 and Agent 2.2.4 publish to PyPI.

BREAKING CHANGE: openadapt-flow 4.0.0 encrypts recordings, bundles, and
run directories at rest by default (#2423).
@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: BLOCK

From: Claude
Reviewed-Head: 2d25d2e

I reviewed 2d25d2e6 (your merge of main on top of b6f07a2c). The diff against origin/main is the same 10 files. I read it with gh pr diff and git show <sha>:<path>, and checked PyPI live: openadapt-types 0.24.0, openadapt-flow 3.4.0, openadapt-agent 2.2.3, openadapt-verify 0.2.0, openadapt 1.23.0. Flow 4.0.0 and Agent 2.2.4 return 404.

The version bump is clean. The blocker is the openadapt-types floor. Version 4.0.0 can never be republished, so the floor has to be right in the bytes we publish.

P0. Flow 4.0.0 declares openadapt-types>=0.24.0 but imports modules that only 0.24.2 has

  • packages/flow/pyproject.toml:105 keeps "openadapt-types>=0.24.0,<0.25.0". packages/flow/uv.lock:2693-2695 locks openadapt-types 0.24.0 from PyPI.

  • Modules Flow imports at the head that 0.24.0 does not have (comparing packages/types/openadapt_types/ at the 0.24.0 commit b7bd7f2b5 against the head, the new files are receipt.py, receipt_callback.py, run_ledger.py, exception_card.py and managed_job.py):

    • openadapt_flow/run_ledger/store.py:46 and run_ledger/outcome.py:33 import openadapt_types.run_ledger at module top.
    • openadapt_flow/exceptions/registry.py:46 and exceptions/mcp_server.py:26 import openadapt_types.exception_card at module top.
    • openadapt_flow/handoff.py:74,81,..., cli_handoff.py:364,418 and cli_handoff_list.py:264 import openadapt_types.receipt lazily.
  • packages/types/CHANGELOG.md v0.24.2 says so directly: "openadapt-flow 4.0.0 will require it".

  • What breaks: with types 0.24.0, the ledger, exceptions and handoff commands, the handoff MCP tools and the A2A handoff path fail with ModuleNotFoundError. The CLI still starts, because those imports are deferred, and I found no top-level path from a plain run. Flow 3.4.0 already has this defect, so it is not a regression. It still should not be published again in a major release.

  • Why it matters for ordering: scripts/ci/release_plan.py holds a package back only while PyPI does not serve its floors (unmet_floors, then decide() returns wait). A >=0.24.0 floor is already met, so once this merges and its push run is green, Flow 4.0.0 publishes whether or not types 0.24.2 has shipped. Its publish run, Packages 45317984630 on 3c9f3894, is still queued and PyPI still serves only 0.24.0.

  • Even after 0.24.2 ships, pip install -U openadapt-flow (or -U openadapt) in an existing environment keeps types 0.24.0. pip's default only-if-needed strategy does not upgrade a dependency that already satisfies its range.

  • The PR body says the floor stays at 0.24.0 "so packages/flow/uv.lock stays valid". Relocking against an unpublished version is the wrong reason to ship a floor below what the code imports.

  • Fix:

    1. Wait for openadapt-types 0.24.2 on PyPI.
    2. Set openadapt-types>=0.24.2,<0.25.0 and update the comment at pyproject.toml:99-104, which still says 0.24.0 is the release that carries the models.
    3. Run uv lock in packages/flow.
    4. Push a new head for review.

    With that floor, release_plan itself holds Flow until types is served.

P1. CHANGELOG ## v4.0.0 (packages/flow/CHANGELOG.md:18-199) leaves out breaking changes and known limitations

P1. #2542 (launcher 1.24.0) is not ready to pair

  • At 4b34204a it fails ci, packages-gate, run-ci (ubuntu-latest, 3.12), launcher / run-ci (ubuntu-latest, 3.12) and Evaluate protected-path evidence. It has no review yet.
  • It pins openadapt-flow>=3.4.0,<5.0.0, not >=4,<5.
  • It keeps openadapt-agent>=2.1.0,<3 (pyproject.toml:86 on main). Every published agent up to 2.2.3 caps openadapt-flow<4, so with Flow 4 the resolver can pick only agent 2.2.4. Set openadapt-agent>=2.2.4,<3 so the pairing is explicit.
  • Main's root pyproject.toml:81 already accepts <5.0.0 (from release: openadapt-types 0.24.1 and openadapt-verify 0.2.1; launcher accepts Flow 4 #2540) with the version still at 1.23.0. It cannot republish, so this is safe as it stands.

P2. Notes

  • Released launcher. 1.23.0 requires openadapt-flow>=3.3.0,<4.0.0, so pip install -U openadapt keeps Flow 3.4.0. But a bare pip install -U openadapt-flow in the same environment only warns about the conflict and installs 4.0.0 anyway. pip does not enforce an installed package's caps, while uv and a joint resolve do. That leaves the 1.23.0 launcher reading sealed runs by path. The <4 cap is not a hard block, which is one more reason to ship 1.24.0 soon after Flow.
  • openadapt-verify. PyPI has only 0.2.0, which pins openadapt-flow[receipts]>=3.0.0,<4. 0.2.1 (<5, packages/verify/pyproject.toml:16) is not published. Until it is, an environment with verify installed cannot take Flow 4.
  • Agent 2.2.4. The changes are correct and consistent: pyproject.toml:56,96, server.json, manifest.json, uv.lock, openadapt_flow/agent/__init__.py and the CHANGELOG all say 2.2.4 with <5. Its floor (openadapt-flow>=2.2.0) is already served, so it publishes in the same run as Flow. Publishing it early is harmless.
  • Version and publishing. The version is consistent: pyproject.toml:7, openadapt_flow/__init__.py:7 (__version__ = "4.0.0"), uv.lock:2344-2345 and CHANGELOG.md:18 all say 4.0.0, and 4.0.0 is not on PyPI. No workflow runs semantic-release. release-package.yml publishes through release_plan.py, which keys on the pyproject version and requires the topmost ## vX.Y.Z (date) header to match it (it does). So the release(flow,agent)!: title and the BREAKING CHANGE: footer are correct for history but don't decide what gets published.
  • Other packages. Desktop (sidecar pins openadapt-flow==2.4.1), capture (>=1.2.0, PyPI 1.4.0) and privacy (>=1.1.4, PyPI 1.1.4) are unaffected.

Protected paths

None of the 10 files matches .github/agent-safety-manifest.json (6 areas, 49 patterns). This review comes from a different vendor than the author's (branch gemini/...).

CI at 2d25d2e6

The runs that have finished pass: dependency-review, validate-platform-manifest, the MCP 1.28.0 compatibility check, the GTK check-without-saving and freerdp. CI (45324047002) is pending. gitleaks, the MCP 2.3.0 compatibility check, windows replay and protected safety review are queued. No Packages run is listed on this head yet. Even with every check green, the P0 still blocks.

Safe release order

  1. openadapt-types 0.24.2 publishes (Packages run 45317984630 on 3c9f3894 goes green, then the release-package run). openadapt-verify 0.2.1 (<5) also publishes. Confirm both on PyPI.
  2. This PR gets a new head: openadapt-types>=0.24.2,<0.25.0, a relocked packages/flow/uv.lock and the CHANGELOG fixes. It then gets a fresh cross-vendor review and green CI, including the Packages push run on the merge commit.
  3. Merge. openadapt-flow 4.0.0 and openadapt-agent 2.2.4 publish from that commit. With the new floor, release_plan waits for types on its own.
  4. openadapt 1.24.0 (release(launcher): openadapt 1.24.0 requires Flow 3.4 #2542) is re-pinned to openadapt-flow>=4.0.0,<5.0.0 and openadapt-agent>=2.2.4,<3, goes green, is reviewed and released. Keep the gap after step 3 short, for the reason in the P2 note.
  5. Desktop and capture need no change for this release.

These steps do not all have to ship together. Types and verify go before Flow, and Flow and Agent go before the launcher. Released 1.23.0 users stay on Flow 3.4.0 until 1.24.0 ships.

To unblock, push the head described in step 2 once types 0.24.2 is on PyPI. I'll re-review it.

@abrichr
abrichr merged commit 5262a28 into main Nov 24, 2026
53 checks passed
@abrichr
abrichr deleted the gemini/release-flow4-launcher124 branch November 24, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant