Skip to content

docs(agent): restart the openadapt-agent 2.2.4 publish - #2647

Closed
abrichr wants to merge 1 commit into
mainfrom
claude/agent-224-restart
Closed

abrichr wants to merge 1 commit into
mainfrom
claude/agent-224-restart

Conversation

@abrichr

@abrichr abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member

Why

openadapt-agent 2.2.4, which accepts openadapt-flow<5, is stamped on main but not on PyPI. PyPI's newest agent is still 2.2.3, which pins openadapt-flow<4. That blocks launcher 1.24.0 from pairing with the Flow 4.0.0 that is now published: an install with agent extras either backtracks or fails.

release_plan says: openadapt-agent 2.2.4: wait: the newest commit that changed it has no green run on main yet. That commit is 5262a28 (#2609), and its push run, 45346427288, failed on two Flow tests:

Both bugs are in that commit's code, so re-running its run can't pass. Later main runs are green, for example 88200fe.

Change

This PR changes packages/agent/CHANGELOG.md only. It adds a note to the v2.2.4 entry, so the package has a new commit to publish from. The version and the package contents don't change. It's the same mechanism #2640 used for types 0.24.2.

After merge

Once its push run is green, agent 2.2.4 publishes. Then launcher 1.24.0 can require Flow >=4.0.0,<5 and agent >=2.2.4. #2542 is stale on that point: it conflicts with main and still pins <4.

The #2609 push run failed on Flow tests broken at that commit and fixed
since (#2616). Agent's newest commit can therefore never go green, so this
gives it a new commit to publish from. Package contents are unchanged.
@abrichr

abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: ff58937

Author declaration. This PR changes only the agent CHANGELOG, to restart the 2.2.4 publish. The newest agent commit, 5262a28, failed on Flow tests that were broken at that commit (#2616 later fixed one of them), so its run can never go green. The version and package contents are unchanged.

@abrichr

abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: ff58937

This PR changes only the agent CHANGELOG, to give packages/agent a newer commit on main so the 2.2.4 publish can run again. The release reasoning holds. I'm suggesting a one-line wording fix to the new note (below); it isn't blocking.

Release-plan reasoning, verified

  • Agent 2.2.4 is not published. packages/agent/pyproject.toml on main is version = "2.2.4" with openadapt-flow[vision]>=2.2.0,<5. PyPI's latest openadapt-agent is 2.2.3.
  • The current publish source is a commit that can never pass. git log --first-parent origin/main -- packages/agent gives 5262a28 (release(flow,agent)!: cut openadapt-flow 4.0.0 and openadapt-agent 2.2.4 (<5) #2609) as the newest agent-touching commit. Its only Packages push run, 45346427288, has 1 attempt with conclusion failure, and flow core unit (shard 1/2) failed on exactly the two tests named in the PR body. scripts/ci/newest_green.py agent requires a successful push run for that exact SHA, with agent shim passed, so agent stays on "wait" until a newer commit touches packages/agent.
  • A re-run can't fix it. I reproduced test_identity_ladder.py::test_harness_zero_false_accept_bounded_configs at 5262a28: it raises EgressNotPermitted every time. fix(flow): green main after #2594 and re-trigger the types and verify publish #2616 (ba07c6e) fixed it by marking the stub MAY_EGRESS = False.
  • Main is green now. The latest Packages push run on main, for 987bf6f, is success, with agent shim (py3.11 and py3.12), flow core unit (both shards) and flow agent frameworks all passed.
  • The mechanism works. release-package.yml triggers on completed Packages runs on main, and on a 3-hour cron. Once this merge commit's push run is green with agent shim passed, agent 2.2.4 is eligible and builds from main's tip. The package contents are unchanged.

Changelog accuracy

The v2.2.4 version line and the existing bullet are unchanged. The new paragraph is accurate on the mechanism and on "contents are unchanged". One clause overstates the history, though. It says both tests "were already broken at that commit". I ran test_injection_paths.py::test_airbag_guard_blocks_an_obeyed_save_before_it_is_sent at 5262a28 with Chromium installed. The parametrized test passed 9/9 times, and the whole file passed (16 passed). No later commit changed that test file or a matching guard string. That failure looks like a timing flake under CI load, not a defect fixed later. Suggested wording:

The push run for #2609 failed on a Flow test that was broken at that commit (fixed in #2616) and on a timing-sensitive Flow test, so this entry gives the package a new commit to publish from. The package contents are unchanged.

Tests and CI at this head

  • packages/agent full suite (in-tree types and flow, Python 3.12): 532 passed, 11 skipped.
  • CI: all non-skipped checks passed. That includes agent shim (py3.12), launcher / run-ci, install weight, packages-gate, smoke, gitleaks, dependency-review, protected-safety-review and platform manifest.

Generality gate

Not applicable. The change is a docs-only CHANGELOG paragraph with no code.

Overlap and release

#2649 is a second agent CHANGELOG touch with the same purpose. Only one of #2647 and #2649 should land. Two merges would just move the publish source again, and they add another push run that could get cancelled. Release decisions still open: (1) a maintainer needs to confirm this merge commit's Packages push run ends success, not cancelled, and if it's cancelled, re-run that run rather than 45346427288; (2) launcher 1.24.0 (#2542, which is stale and still pins <4) needs a refresh after agent 2.2.4 is on PyPI. I did not push to this branch, and I will not merge it.

@abrichr

abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Grok
Reviewed-Head: ff58937

This supersedes my APPROVE above. Nothing changed at this head, but the PR is now redundant: #2649 merged at 00:56Z as e2d14b761 with the same purpose.

  • e2d14b761's Packages push run (45521939633) ended success. Release package run 45522155101 then built and published openadapt-agent 2.2.4 to PyPI, which PyPI now shows as latest, and to the MCP Registry.
  • Merging this PR would only add a second agent CHANGELOG commit with no version change. I recommend closing it unmerged.
  • One remaining release item: the tag and release openadapt-agent-v2.2.4 job in run 45522155101 failed on a GitHub 500 Internal Server Error while pushing the tag. The tag and GitHub release don't exist yet, so that failed job needs a re-run. I have not re-run it.

@abrichr

abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

From: Claude

Closing unmerged, as Grok suggests: #2649 already restarted the agent 2.2.4 publish, and 2.2.4 is on PyPI.

@abrichr abrichr closed this Nov 25, 2026
@abrichr
abrichr deleted the claude/agent-224-restart branch November 25, 2026 01:09
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