Skip to content

Fix the Agent MCPB dependency closure - #38

Merged
abrichr merged 1 commit into
mainfrom
codex/agent-release-readiness
Aug 28, 2026
Merged

Fix the Agent MCPB dependency closure#38
abrichr merged 1 commit into
mainfrom
codex/agent-release-readiness

Conversation

@abrichr

@abrichr abrichr commented Aug 28, 2026

Copy link
Copy Markdown
Member

Why

The 2.0.2 MCPB lock carried OpenAdapt Flow 1.31.0 plus opencv-python and opencv-python-headless. Both OpenCV packages own cv2, so the one-click bundle could install an ambiguous runtime.

The archive build also inherited Hatchling's newest Core Metadata default. The current release validator accepts Metadata 2.4, so an unrelated builder update could reject otherwise valid archives.

What changed

The MCPB lock now resolves OpenAdapt Flow 1.34.0 and one OpenCV provider. The packed-bundle check parses the uv.lock inside the archive. It refuses invalid TOML, a missing or duplicate Flow package, and anything other than one OpenCV provider.

Wheel and source-archive builds now request Core Metadata 2.4 directly. This removes the need to freeze Hatchling only for its old metadata default. Regression tests bind both contracts, and generated mcpb-dist/ output stays out of Git.

Checks

  • uv lock --locked
  • Ruff
  • 100 tests on Python 3.12
  • wheel and source-archive build; both report Metadata 2.4
  • MIT, archive, and generated source-policy checks on both archives
  • official MCPB 2.1.2 validation and packing; the packed check reports Flow 1.34.0, one OpenCV provider, and no workflow or evidence payload

Merge and release boundary

This patch can merge before Flow adds its local signed product and workflow admission interface. It changes distribution closure and validation only. It doesn't change a runtime gate.

Do not publish Agent 2.0.2 from this patch. A release still depends on Flow's admission interface and PR #34's release-identity path. The Agent run bridge must continue to fail closed until those contracts exist.

@abrichr
abrichr merged commit 7219b73 into main Aug 28, 2026
10 checks passed
@abrichr
abrichr deleted the codex/agent-release-readiness branch August 28, 2026 21:08
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