Skip to content

chore(flow): hold Flow 4.0.0 until its types floor is 0.24.2 - #2641

Closed
abrichr wants to merge 1 commit into
mainfrom
claude/hold-flow-400
Closed

abrichr wants to merge 1 commit into
mainfrom
claude/hold-flow-400

Conversation

@abrichr

@abrichr abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member

Why (P0)

Main's Flow 4.0.0 imports openadapt_types.check_level, evidence_scope and run_ledger. None of these is in types 0.24.0, but Flow's floor is still openadapt-types>=0.24.0.

#2639 merged, and once its push run (45466293417) goes green, release_plan.py publishes Flow 4.0.0. pip could then resolve types 0.24.0 and fail on import. Grok raised this on the inbox.

Change

One line in packages/flow/CHANGELOG.md: the v4.0.0 heading loses its date. It now reads ## v4.0.0 (held: needs openadapt-types>=0.24.2, see #2637).

release_plan only publishes when the first dated heading (_HEADER, ^## v(\S+) \(YYYY-MM-DD\)$) matches the version. Without the date, the first dated heading is v3.4.0. I ran the plan locally at this head:

openadapt-flow 4.0.0: wait: CHANGELOG.md starts with v3.4.0, not v4.0.0

check_release_health's heading pattern (^## v?X.Y.Z \() still matches this heading, and 4.0.0 has no tag, so that check is unaffected.

Undo

#2637 puts the date back, together with the >=0.24.2 floor and a relock, once types 0.24.2 is on PyPI. #2640 (merged) restarts that types publish.

Timing

This must merge before run 45466293417 goes green. If it can't, cancel that run's Release package follow-up.

release_plan publishes a version only when CHANGELOG.md's first dated entry
matches it. Undating v4.0.0 keeps the plan at wait, so #2639's green push
run can't publish 4.0.0 with openadapt-types>=0.24.0, which fails on import.
#2637 re-dates the entry together with the >=0.24.2 floor.
@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: d914812

The hold works. Merge it before the release plan job that follows the Packages push run for 47e1435 (#2639) starts. That run is still in progress. The plan job reads packages/flow/CHANGELOG.md from main's tip when it runs, so the merge order is what counts.

Evidence at this head (the branch is main tip 88200fe plus this commit):

  • release_plan._HEADER matches only ## vX (YYYY-MM-DD). changelog_top() returns 4.0.0 on main and 3.4.0 here. decide() therefore returns wait before it looks at the green run or the dependency floors.
  • GITHUB_REPOSITORY=OpenAdaptAI/OpenAdapt python scripts/ci/release_plan.py --package all --tip HEAD prints openadapt-flow 4.0.0: wait: CHANGELOG.md starts with v3.4.0, not v4.0.0. Types 0.24.2 is wait because the push run for 88200fe is still in progress. Agent 2.2.4 is wait because the newest run on its commit failed. The other packages are done.
  • check_release_health.CHANGELOG_HEADING (^## v?X.Y.Z \() still matches the undated heading, so release-health still sees a v4.0.0 entry. Its --self-test passes.
  • tests/test_release_plan.py, tests/test_release_lock.py and tests/test_ci_efficiency_gating.py pass: 69 passed (Linux, Python 3.12).
  • PR CI is green. The checks that apply to this diff passed, and the package matrix jobs were skipped by path scope.

Generality: the change is one CHANGELOG line and adds no code paths. It reuses the existing release rule (only a dated heading releases) and makes no case-specific change.

Limits and follow-ups:

  • I did not run the Windows or macOS suites. They don't apply to a CHANGELOG-only change.
  • A Release package plan that starts before this PR merges still sees the dated v4.0.0 heading. If the merge misses that window, cancel that run.
  • Flow pyproject still pins openadapt-types>=0.24.0,<0.25.0. fix(flow): require openadapt-types>=0.24.2 for Flow 4.0.0 #2637 has to raise it to >=0.24.2 and restore the date in the same commit, and only after types 0.24.2 is on PyPI.
  • After this merges, the newest commit that changes Flow is CHANGELOG-only. If that commit's push run skips the Flow jobs, Flow stays wait until fix(flow): require openadapt-types>=0.24.2 for Flow 4.0.0 #2637. That keeps the hold in place.

abrichr added a commit that referenced this pull request Nov 24, 2026
* fix(flow): require openadapt-types>=0.24.2 for Flow 4.0.0

Flow 4.0.0 imports openadapt_types.check_level and evidence_scope (#2495),
which no released types version has. The >=0.24.0 floor let pip resolve
types 0.24.0 and fail on import.

* chore(flow): hold Flow 4.0.0 until its types floor is 0.24.2

release_plan publishes a version only when CHANGELOG.md's first dated entry
matches it. Undating v4.0.0 keeps the plan at wait, so #2639's green push
run can't publish 4.0.0 with openadapt-types>=0.24.0, which fails on import.
#2637 re-dates the entry together with the >=0.24.2 floor.

* chore(flow): re-date v4.0.0 with the 0.24.2 types floor (undoes the #2641 hold)

* chore(flow): relock openadapt-types 0.24.2

* chore(connectors): relock eligibility for the 0.24.2 types floor; name all new types imports
@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Closing as superseded: openadapt-types 0.24.2 is live on PyPI and #2637 (require openadapt-types>=0.24.2 for Flow 4.0.0) just merged to main.

@abrichr abrichr closed this Nov 24, 2026
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