Repository navigation
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Scope: this is a dependency-policy/config change owned by this repository (AGENTS.md, .agents/skills/custom-codereview-guide.md, .github/dependabot.yml, pyproject.toml, uv.lock), so it belongs here. I re-read the repo guidance, the current PR body/labels, the head checks, and the current discussion (no prior reviews or comments). Head is still 1b5ea96621b416f98e33ac71def305a5da88e006; CI on that head is green (unit-tests, backend, Validate PR description, check-pr-artifacts all success).
What I verified independently on the checked-out head:
- Parsed
pyproject.tomlanduv.lock:[tool.uv] exclude-newer = "7 days",exclude-newer-package = { openhands-sdk = false, openhands-workspace = false }, and the lock's matching[options]/[options.exclude-newer-package]blocks are present and consistent. - Compared parsed
[[package]]name/version records between base and head: 200 entries in both, byte-for-byte identical version set. The PR description's "no package changes" claim holds. - The two lock entries with sub-seven-day
upload-timeare exactly the two exempted first-party packages (openhands-sdk1.57.0,openhands-workspace1.57.0, uploaded 2026-10-21), consistent with the stated exemption rationale. No third-party package in the lock is under seven days. ghcheck runs on the head are all green, matching the reported pre-commit/uv lockresults.
One material compatibility defect is described inline. It is not a policy-content problem; the added guards are correct in intent and the reviewer/contributor guidance matches the repository's existing conventions. It is that the committed artifacts now require a newer uv than this repository declares, and that requirement is neither updated nor documented.
✅ CI on the head is green and the guard semantics are correct for current uv.
🔄 The repository's declared minimum uv (Makefile: REQUIRED_UV_VERSION := 0.8.13, plus the README uv sync --group dev path) can no longer read the committed uv.lock; the floor needs to be raised and documented.
✅ APPROVED would follow once the uv floor is aligned. As it stands: 🔄 CHANGES REQUESTED
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Scope
This belongs here: the repository owns its own Dependabot configuration, uv lock/settings, and the review guidance under .agents/skills/. No ownership or product-direction concern.
Findings
1. The committed uv.lock now requires uv >= 0.9.25, but the repository's own version gate still accepts 0.8.13 (material).
The new lock emits an [options] table with [options.exclude-newer-package] entries valued false. I reproduced the boundary in a scratch copy (no tracked files changed):
- Base
uv.lock(HEAD~1):uv lock --checksucceeds on uv 0.8.13, 0.9.0, 0.9.10, 0.9.20 and 0.9.24. - This PR's
uv.lock:uv lock --check/uv sync --frozenfail on uv 0.8.13 through 0.9.24 witherror: Failed to parse 'uv.lock' ... 11 | [options] ... data did not match any variant of untagged enum Helper, and succeed on 0.9.25, 0.10.0, 0.11.32 and 0.12.23. Isolated fixtures show the booleanfalsevalue is the binding constraint: a lock carrying onlyexclude-newer-spanstill parses on 0.9.24. - The friendly-duration form
exclude-newer = "7 days"inpyproject.tomlis additionally unsupported before uv 0.9.20 (settings-discovery TOML warning on 0.8.13-0.9.10).
Impact: Makefile still declares REQUIRED_UV_VERSION := 0.8.13, and make build runs check-uv-version followed by uv sync --dev. A contributor on uv 0.8.13-0.9.24 passes the gate ("uv version 0.9.24 meets requirements") and then fails on an unrelated-looking TOML parse error. CI is unaffected (astral-sh/setup-uv@v7 unpinned installs latest) and the image pins uv 0.12.23, so this only affects local development - but it breaks the contributor contract the Makefile gate exists to enforce.
Suggested: raise REQUIRED_UV_VERSION to 0.9.25 in Makefile (and note the minimum in README.md), or avoid the boolean form. This PR already updates the policy docs, so recording the floor next to them keeps config and gate consistent.
Checks
- Current head
1b5ea96621b416f98e33ac71def305a5da88e006matches the requested SHA; all checks on this head are green (backend, unit-tests, Validate PR description, pr-title, check-pr-artifacts, Build and Push Automation Image). - Intended semantics verified: with
exclude-newer-package = { <pkg> = false }under a 3650-day cutoff, uv resolves the newest release (idna 3.20); without it, uv falls back to a 2016-era release (idna 2.1). The first-party exemptions are therefore necessary for the pinnedopenhands-sdk==1.57.0/openhands-workspace==1.57.0(both uploaded 2026-10-21, about one day before this PR) and are correctly scoped per package rather than to their dependencies. - Confirmed the lock diff introduces no package, version or source changes - only the new
[options]block. - Dependabot
cooldown.default-days: 7is supported for thepipecosystem, and cooldown applies to version updates only (security updates bypass it), matching the documented policy.
🔄 CHANGES REQUESTED
Co-authored-by: openhands <openhands@all-hands.dev>
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Scope
Belongs here: repository-owned Dependabot config, uv settings/lock, Makefile, README, and review guidance. No ownership or product-direction concern.
Prior finding - fixed
The uv 0.9.25 floor is now correct and consistent (Makefile REQUIRED_UV_VERSION := 0.9.25, README prereq, tool.uv.required-version). Re-verified against the real repo files: uv 0.9.20/0.9.24 reject the lock ([options] ... did not match any variant of untagged enum Helper), while 0.9.25, 0.10.0, 0.11.32 and 0.12.23 accept it. uv lock --check and uv sync --frozen --group dev pass on 0.12.23 with no lock churn, and the Docker uv sync --locked ... --group production path passes. Lock package records are unchanged versus base, and the sort -V gate now rejects 0.8.13-0.9.24 and accepts 0.9.25+.
Finding - the added required-version guard is inert for this configuration, and the AGENTS.md claim about it is inaccurate (material)
AGENTS.md now states that tool.uv.required-version "also guards direct uv sync and uv lock use outside Make." That does not hold. exclude-newer-package = { ... = false } is unparseable below uv 0.9.25, and when a [tool.uv] setting fails to parse, uv discards the whole table and falls back to defaults, so required-version is never evaluated.
Demonstrated with the real pyproject.toml and no uv.lock, sweeping uv 0.8.13, 0.9.0, 0.9.10, 0.9.11, 0.9.13, 0.9.15, 0.9.17, 0.9.19, 0.9.20, 0.9.22 and 0.9.24: every one resolves 208 packages, exits 0, and writes a lock containing no [options] block and no exclude-newer - the seven-day cutoff is silently dropped - while emitting no Required uv version message. Only 0.9.25 writes the cutoff. A control isolates the cause: with required-version plus a friendly-duration exclude-newer only, uv 0.9.24 does print error: Required uv version >=0.9.25 does not match the running version 0.9.24.
So the guard is a no-op for this configuration on every version below the floor rather than a backstop. The fail-open path requires uv.lock to be absent; the committed lock makes old uv fail closed with a parse error, and that parse requirement is the protection that actually works. Practical exposure is therefore narrow, but for a PR whose purpose is enforcing a minimum release age, documenting a protection that does not exist is a false assurance worth correcting before merge.
Suggested: reword the AGENTS.md sentence so the lock's parse requirement and the Makefile gate are named as what enforces the floor, or state that required-version only applies when the rest of [tool.uv] parses.
Checks
- Head
a10f3a675998d108e622f52f16b47e633413a690matches; all checks green (backend, unit-tests, Build and Push Automation Image, Validate PR description, pr-title, check-pr-artifacts). pytest tests/: 1504 passed, 60 skipped, 1 failed, 559 errors. The single failure (test_storage.py::TestGetFileStoreFactory::test_default_path_works_without_env) and the 559 errors reproduce on the base commit and are environmental (no Docker daemon / testcontainers), not caused by this change.- Dependabot
cooldown.default-days: 7is valid for thepipecosystem and applies to version updates only, matching the documented policy.
🔄 CHANGES REQUESTED
Co-authored-by: openhands <openhands@all-hands.dev>
Removed redundant information about repository resolver settings and emphasized the importance of using committed locks for reproducible installs.
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Scope
Belongs here: repository-owned Dependabot config, pyproject.toml [tool.uv] settings, committed uv.lock options, Makefile version gate, README, AGENTS.md, and the repo's own review guidance. No cross-repository ownership or product-direction question; the scope gate passes.
State (freshly verified)
- Head is still
028515907b7e38d3726354b2017b2af892a03287; PR open, title/labels unchanged. No earlier review by this account exists on this exact head, so this is a fresh review. - Required checks on the PR pass (pr-title, PR description, backend, unit-tests).
Verification performed in the workspace
uv lock --checkwith local uv 0.13.5: resolved 200 packages, exit 0, working tree left clean — the committed lock is consistent with the new[tool.uv]settings.make check-uv-versionpasses;git diff --checkis clean.- Diff vs merge base is +65/−2 across 7 files; the
uv.lockchange is only the[options]/[options.exclude-newer-package]block (spanP7D, seven-day cutoff, two named first-party exemptions). No third-party package version changed. - Age audit of the head lock: every third-party artifact has an
upload-timeat least seven days old relative to PR opening (newest third-party upload 2026-10-08). The only record withoutupload-timeisopenhands-automation 1.23.2, which is the repository's own editable package, not a third-party artifact. - The
openhands-sdk/openhands-workspaceexemptions are exactly the two direct pinned first-party dependencies (==1.57.0, uploaded 2026-10-21); without the exemption the existing pin would not resolve under the seven-day cutoff. They are narrow, named, and documented as not covering their third-party dependencies. - The uv floor is consistent across
pyproject.toml(required-version = ">=0.9.25"),Makefile(REQUIRED_UV_VERSION := 0.9.25), README, and AGENTS.md, with the old-uv fail-open behavior documented. Dependabot security-update bypass is covered by the explicit maintainer-exception rule inAGENTS.mdand the review guide, as required.
Findings
No material correctness, security, compatibility, or acceptance defects found. The PR only strengthens the release-age guards; no guard is weakened and no broad exemption is introduced.
✅ APPROVED
Audit of the seven-day third-party package intake policy.
Why
Weekly pip bot scheduling does not prevent updating to a freshly published version; the uv resolver and agent/reviewer instructions lack the minimum age.
Summary
Add Python bot cooldown and uv seven-day cutoff; synchronize lock options without package changes. Name only the two direct first-party packages as exemptions so the existing pinned release remains resolvable.
Require exact-version publication/upload evidence for direct and transitive third-party npm/PyPI changes; weekly scheduling is not minimum age.
Security updates can bypass Dependabot cooldown. Urgent exceptions require a named package/version/reason and explicit maintainer approval; agents cannot grant their own bypass.
Repository settings do not propagate to downstream PyPI installs or retroactively validate an existing lock.
Issue Number
N/A - focused dependency-policy audit follow-up.
How to Test
Changed-file pre-commit passed.
uv lock --no-build-package litellmresolved successfully; pinned uv 0.11.32 validated the final lock without format churn.Additional audit checks:
cooldown.default-days: 7.git diff --checkpassed. Compared parsed lock package records before/after: no package changes.--package-lock-only --ignore-scripts --no-audit --no-fund; uv usedlock --no-build --no-cache. No live third-party package was installed by these fixtures.Video/Screenshots
N/A - dependency configuration and contributor/reviewer instructions only; no UI or runtime feature change.
Type
Notes
Ready for human review. No merge requested.
Sources: Dependabot cooldown, uv exclude-newer, npm min-release-age. npm's manual
--min-release-age=7requires npm >=11.10; older versions do not enforce it, andnpm cireplays the lock rather than proving age.Review follow-up
Review follow-up: set
tool.uv.required-version = ">=0.9.25", raised the Makefile floor to 0.9.25, and documented the minimum in README/AGENTS. Real uv 0.9.24 rejects the boolean-exemption lock; uv 0.9.25lock --checksucceeds (200 packages).make check-uv-versionand changed-file pre-commit passed. Lock package records remain unchanged.Current review follow-up (24 October)
Corrected the old-uv guidance: boolean exemptions can make old uv discard the whole settings table, including
required-version. The committed lock and Makefile gate enforce the floor; direct invocations must checkuv --version. Changed-file pre-commit andmake check-uv-versionpass. No package or lock changes in this follow-up.Jev-Fast-Audit
⚡ Jev fast audit · estimates · 0.30s · commit 0285159⚠️ reduced context — partial coverage; 7/7 hunks, 7/7 files (missing context: 2).
Strongest signal: No primary concern selected.
Evidence: No primary concern to locate.
Coverage:
All estimates and evidence