Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- version list -->

## Unreleased
## v1.24.0 (2026-11-22)

### Requirements

Expand Down
62 changes: 31 additions & 31 deletions docs/platform-compatibility-report.md

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions openadapt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,9 +1341,11 @@ def _warn_about_launcher_conflicts() -> None:
# public_seal module, and the quickstart's encrypted checkpoints rely on its
# key derivation once per store. Launcher 1.23 requires Flow 3.3: the OpenEMR
# quickstart's referral program checks its date picker against the run's
# clock (`Postcondition.text_clock`), which Flow 3.2 ignores. Flow 4.0
# removes and renames APIs the launcher doesn't use, so it is accepted too.
_SUPPORTED_FLOW_RANGE = ">=3.3.0,<5.0.0"
# clock (`Postcondition.text_clock`), which Flow 3.2 ignores. Launcher 1.24
# requires Flow 3.4 (headed-browser settle fallback, receipts/handoffs, and
# the openadapt-privacy 1.1.4 floor). Flow 4.0 removes and renames APIs the
# launcher doesn't use, so it is accepted too.
_SUPPORTED_FLOW_RANGE = ">=3.4.0,<5.0.0"
_RDP_INSTALL_COMMAND = _pip_install("openadapt[rdp]")
_CHROMIUM_SYSTEM_LIBS_COMMAND = (
f"{shlex.quote(sys.executable)} -m playwright install-deps chromium"
Expand All @@ -1353,7 +1355,7 @@ def _warn_about_launcher_conflicts() -> None:
def _supported_flow_version(value: str) -> bool:
"""Return whether a stable Flow version is in the launcher's supported range."""
parsed = _release_tuple(value)
return parsed is not None and (3, 3, 0) <= parsed < (5, 0, 0)
return parsed is not None and (3, 4, 0) <= parsed < (5, 0, 0)


# The Python modules each native or remote Flow backend imports when its
Expand Down
254 changes: 124 additions & 130 deletions platform-manifest.json

Large diffs are not rendered by default.

34 changes: 18 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openadapt"
version = "1.23.0"
version = "1.24.0"
description = "Give your agent a program, not a mouse: the open-source, verified execution layer for computer-use agents. Compile one run into a program that makes no model calls, reads each save back from the system of record, and stops instead of guessing."
# The package description is README.md with its lifecycle block swapped for a
# link to the live record; see hatch_build.py.
Expand Down Expand Up @@ -73,13 +73,15 @@ dependencies = [
# The quickstart's terminal view (MIT). Pure Python; the engine doesn't
# depend on it. Gated like the engine: without it the quickstart can't run.
"rich>=13.0.0; python_version < '3.13'",
# Every Flow floor is 3.3.0: the OpenEMR quickstart's referral program
# checks its date picker against the run's clock, which 3.3 reads; 3.2
# added public Seals and the at-rest key derived once per store
# (tests/test_flow_floor.py). Flow 3
# moved its vision stack to the `vision` extra; its `browser` and other
# surface extras include it, and the `flow` extra below names it.
"openadapt-flow[browser,hosted]>=3.3.0,<5.0.0; python_version < '3.13'",
# Every Flow floor is 3.4.0: Launcher 1.24 ships the headless quickstart
# with headed-window settle fallback, receipts, handoffs, and Flow 3.4's
# openadapt-privacy 1.1.4 floor; 3.3 added clock-relative date-picker checks
# and 3.2 added public Seals and the at-rest key derived once per store
# (tests/test_flow_floor.py). Flow 4.0 removes/renames APIs the launcher
# doesn't use, so `<5.0.0` is accepted too. Flow 3 moved its vision stack to
# the `vision` extra; its `browser` and other surface extras include it, and
# the `flow` extra below names it.
"openadapt-flow[browser,hosted]>=3.4.0,<5.0.0; python_version < '3.13'",
# Day-1 partner kit: `pip install openadapt` must expose the
# `openadapt-agent` command without a second package. 2.1.0 adds Seal checks;
# `--bundles`; the bundle-free tutorial `serve --allow-run` needs a later
Expand All @@ -100,30 +102,30 @@ browser = [
# launcher now selects this Flow contract because the bundled quickstart
# uses the browser. OpenAdapt requests Chromium on first browser use after
# the host dependency check passes.
"openadapt-flow[browser]>=3.3.0,<5.0.0; python_version < '3.13'",
"openadapt-flow[browser]>=3.4.0,<5.0.0; python_version < '3.13'",
]
# Local human desktop recording. Flow owns the supported capture adapter
# contract; the direct floor prevents an already-installed pre-1.0 Capture
# from satisfying the launcher's public recording path. FFmpeg remains a
# separately provisioned executable, not a Python-package dependency.
capture = [
"openadapt-capture>=1.2.0,<2.0.0",
"openadapt-flow[capture]>=3.3.0,<5.0.0; python_version < '3.13'",
"openadapt-flow[capture]>=3.4.0,<5.0.0; python_version < '3.13'",
]
# Replay substrate dependencies stay separate from capture: recording observes
# the human on the local interactive desktop, while replay may target a WAA
# agent, a native app, or a remote framebuffer.
windows = [
"openadapt-flow[windows]>=3.3.0,<5.0.0; python_version < '3.13'",
"openadapt-flow[windows]>=3.4.0,<5.0.0; python_version < '3.13'",
]
macos = [
"openadapt-flow[macos]>=3.3.0,<5.0.0; sys_platform == 'darwin' and python_version < '3.13'",
"openadapt-flow[macos]>=3.4.0,<5.0.0; sys_platform == 'darwin' and python_version < '3.13'",
]
linux = [
"openadapt-flow[linux]>=3.3.0,<5.0.0; sys_platform == 'linux' and python_version < '3.13'",
"openadapt-flow[linux]>=3.4.0,<5.0.0; sys_platform == 'linux' and python_version < '3.13'",
]
rdp = [
"openadapt-flow[rdp]>=3.3.0,<5.0.0; python_version < '3.13'",
"openadapt-flow[rdp]>=3.4.0,<5.0.0; python_version < '3.13'",
]
ml = [
"openadapt-ml>=0.2.0",
Expand All @@ -141,13 +143,13 @@ retrieval = [
"openadapt-retrieval>=0.1.0",
]
privacy = [
"openadapt-flow[privacy]>=3.3.0,<5.0.0; python_version < '3.13'",
"openadapt-flow[privacy]>=3.4.0,<5.0.0; python_version < '3.13'",
]
# `flow` now ships in the base install (see `dependencies` above). This
# extra is kept for backward compatibility so `pip install openadapt[flow]`
# and the `all` bundle still resolve.
flow = [
"openadapt-flow[vision]>=3.3.0,<5.0.0; python_version < '3.13'",
"openadapt-flow[vision]>=3.4.0,<5.0.0; python_version < '3.13'",
]
# `openadapt-agent` also ships in the base install. Keep the extra so
# `pip install openadapt[agent]` still resolves.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cli_shell_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def test_deploy_console_hint_is_double_quoted(monkeypatch, supported_python):
"importlib.util.find_spec",
lambda name, *args: object() if name in present else None,
)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.1")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.1")

result = CliRunner().invoke(cli_main, ["deploy"])

assert result.exit_code == 0, result.output
assert '"openadapt-flow[console]==3.3.1"' in result.output
assert '"openadapt-flow[console]==3.4.1"' in result.output
assert not _UNQUOTED_SPEC.search(result.output), result.output


Expand Down
40 changes: 20 additions & 20 deletions tests/test_cli_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,29 +391,29 @@ def test_launcher_flow_and_substrate_extras_metadata():

assert (
metadata["dependencies"].count(
f"openadapt-flow[browser,hosted]>=3.3.0,<5.0.0; {supported}"
f"openadapt-flow[browser,hosted]>=3.4.0,<5.0.0; {supported}"
)
== 1
)
assert (
metadata["dependencies"].count(f"openadapt-agent>=2.1.0,<3; {supported}") == 1
)
assert extras["flow"] == [f"openadapt-flow[vision]>=3.3.0,<5.0.0; {supported}"]
assert extras["flow"] == [f"openadapt-flow[vision]>=3.4.0,<5.0.0; {supported}"]
assert extras["agent"] == [f"openadapt-agent>=2.1.0,<3; {supported}"]
assert extras["browser"] == [f"openadapt-flow[browser]>=3.3.0,<5.0.0; {supported}"]
assert extras["privacy"] == [f"openadapt-flow[privacy]>=3.3.0,<5.0.0; {supported}"]
assert extras["browser"] == [f"openadapt-flow[browser]>=3.4.0,<5.0.0; {supported}"]
assert extras["privacy"] == [f"openadapt-flow[privacy]>=3.4.0,<5.0.0; {supported}"]
assert extras["capture"] == [
"openadapt-capture>=1.2.0,<2.0.0",
f"openadapt-flow[capture]>=3.3.0,<5.0.0; {supported}",
f"openadapt-flow[capture]>=3.4.0,<5.0.0; {supported}",
]
assert extras["windows"] == [f"openadapt-flow[windows]>=3.3.0,<5.0.0; {supported}"]
assert extras["windows"] == [f"openadapt-flow[windows]>=3.4.0,<5.0.0; {supported}"]
assert extras["macos"] == [
f"openadapt-flow[macos]>=3.3.0,<5.0.0; sys_platform == 'darwin' and {supported}"
f"openadapt-flow[macos]>=3.4.0,<5.0.0; sys_platform == 'darwin' and {supported}"
]
assert extras["linux"] == [
f"openadapt-flow[linux]>=3.3.0,<5.0.0; sys_platform == 'linux' and {supported}"
f"openadapt-flow[linux]>=3.4.0,<5.0.0; sys_platform == 'linux' and {supported}"
]
assert extras["rdp"] == [f"openadapt-flow[rdp]>=3.3.0,<5.0.0; {supported}"]
assert extras["rdp"] == [f"openadapt-flow[rdp]>=3.4.0,<5.0.0; {supported}"]
assert extras["all"] == [
"openadapt[browser,core,grounding,retrieval,privacy,flow,windows,rdp,agent]",
"openadapt[macos]; sys_platform == 'darwin'",
Expand Down Expand Up @@ -444,7 +444,7 @@ def test_released_flow_x11_sonames_are_case_corrected(monkeypatch):
)


@pytest.mark.parametrize("version", ["3.3.0", "3.3.1", "3.99.0"])
@pytest.mark.parametrize("version", ["3.4.0", "3.4.1", "3.99.0"])
def test_launcher_accepts_flow_versions_in_the_supported_range(version):
assert _supported_flow_version(version)

Expand Down Expand Up @@ -556,7 +556,7 @@ def test_deploy_native_backend_fails_without_its_platform_extra(
monkeypatch, backend, host, modules, install
):
_host(monkeypatch, host, {"openadapt_flow"})
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")

result = CliRunner().invoke(cli_main, ["deploy", "--backend", backend])

Expand All @@ -573,7 +573,7 @@ def test_deploy_native_backend_passes_with_its_platform_extra(
monkeypatch, backend, host, modules, install
):
_host(monkeypatch, host, {"openadapt_flow"} | modules)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")

result = CliRunner().invoke(cli_main, ["deploy", "--backend", backend])

Expand Down Expand Up @@ -717,7 +717,7 @@ def test_deploy_preflight_composes_existing_flow_interfaces_without_secrets(
else None
),
)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")
monkeypatch.setenv("BYOC_CONNECTOR_TOKEN", "connector-token-value")
result = CliRunner().invoke(
cli_main,
Expand All @@ -742,13 +742,13 @@ def test_deploy_base_hosted_install_gives_conditional_console_setup(monkeypatch)
"importlib.util.find_spec",
lambda name: object() if name in {"openadapt_flow", "aardwolf"} else None,
)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")

result = CliRunner().invoke(cli_main, ["deploy", "--backend", "rdp"])

assert result.exit_code == 0, result.output
assert "optional local operator console is not installed" in result.output
assert 'python -m pip install "openadapt-flow[console]==3.3.0"' in result.output
assert 'python -m pip install "openadapt-flow[console]==3.4.0"' in result.output
assert "openadapt flow console --bundles" not in result.output
assert "Re-run this preflight" in result.output

Expand All @@ -763,13 +763,13 @@ def test_deploy_console_requires_openadapt_types(monkeypatch):
else None
),
)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")

result = CliRunner().invoke(cli_main, ["deploy", "--backend", "rdp"])

assert result.exit_code == 0, result.output
assert "optional local operator console is not installed" in result.output
assert 'python -m pip install "openadapt-flow[console]==3.3.0"' in result.output
assert 'python -m pip install "openadapt-flow[console]==3.4.0"' in result.output
assert "openadapt flow console --bundles" not in result.output


Expand All @@ -794,7 +794,7 @@ def test_deploy_preflight_fails_without_web_runtime(monkeypatch):
"importlib.util.find_spec",
lambda name: object() if name == "openadapt_flow" else None,
)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")

result = CliRunner().invoke(cli_main, ["deploy", "--backend", "web"])

Expand All @@ -812,7 +812,7 @@ def test_deploy_preflight_fails_without_rdp_transport(monkeypatch):
"importlib.util.find_spec",
lambda name: object() if name == "openadapt_flow" else None,
)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")

result = CliRunner().invoke(cli_main, ["deploy", "--backend", "rdp"])

Expand All @@ -834,7 +834,7 @@ def test_deploy_preflight_fails_for_unsupported_flow(monkeypatch, flow_version):

assert result.exit_code != 0
assert "[UNSUPPORTED]" in result.output
assert ">=3.3.0,<5.0.0" in result.output
assert ">=3.4.0,<5.0.0" in result.output
assert "Preflight passed" not in result.output


Expand Down
2 changes: 1 addition & 1 deletion tests/test_deploy_preflight_readiness.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _deploy(monkeypatch, args, installed=READY_WEB, host=None):
"importlib.util.find_spec",
lambda name: object() if name in installed else None,
)
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.3.0")
monkeypatch.setattr("importlib.metadata.version", lambda _name: "3.4.0")
return CliRunner().invoke(cli_main, ["deploy", *args])


Expand Down
7 changes: 5 additions & 2 deletions tests/test_flow_floor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
ROOT = Path(__file__).resolve().parents[1]
# Launcher 1.22 requires Flow 3.2 (public Seals, the at-rest key derived once
# per store); 1.23 requires Flow 3.3 (the OpenEMR quickstart's clock-relative
# date-picker check). Keep every earlier rejection case, including the former 2.7 floor.
# date-picker check); 1.24 requires Flow 3.4 (headed-browser settle fallback,
# receipts/handoffs, openadapt-privacy 1.1.4 floor). Keep every earlier
# rejection case, including the former 2.7 floor.
BELOW_FLOOR = [
"1.29.0",
"1.35.1",
Expand All @@ -42,8 +44,9 @@
"3.0.0",
"3.1.0",
"3.2.0",
"3.3.0",
]
ACCEPTED = "3.3.0"
ACCEPTED = "3.4.0"


def _flow_requirements() -> list[Requirement]:
Expand Down
1 change: 1 addition & 0 deletions tests/test_receipt_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from click.testing import CliRunner

pytest.importorskip("openadapt_flow.receipt_record")
pytest.importorskip("openadapt_types.receipt")

from openadapt_flow.receipt_record import ( # noqa: E402
ReceiptRecordError,
Expand Down
Loading
Loading