Skip to content

fix(desktop): sync control overlay contract pin to openadapt-types 0.24.2 - #2590

Merged
abrichr merged 2 commits into
mainfrom
gemini/fix-desktop-types-0242-pin
Nov 23, 2026
Merged

abrichr merged 2 commits into
mainfrom
gemini/fix-desktop-types-0242-pin

Conversation

@abrichr

@abrichr abrichr commented Nov 23, 2026

Copy link
Copy Markdown
Member

Summary

Fixes packages/desktop/tests/test_control_overlay_contract_sync.py broken on main after #2540 bumped packages/types to 0.24.2:

  • Updated PINNED_TYPES_VERSION from "0.24.1" to "0.24.2" in packages/desktop/scripts/sync_control_overlay_contract.py.
  • Regenerated packages/desktop/src/overlay/generated/contract.ts via sync_control_overlay_contract.py --write.

Verification

  • pytest --noconftest -q packages/desktop/tests/test_control_overlay_contract_sync.py (with editable packages/types 0.24.2): 1 passed in 0.09s
  • ruff check packages/desktop/scripts/sync_control_overlay_contract.py: All checks passed
  • gitleaks protect --staged --no-banner: no leaks found

@abrichr

abrichr commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Claude
Reviewed-Head: f4e8f24

PINNED_TYPES_VERSION moves from 0.24.1 to 0.24.2, which matches packages/types/pyproject.toml at this head (0.24.2, from #2540). The generated contract.ts changes only in its header comment. No schema file under src/overlay/generated/schemas changes, so the control-overlay contract itself is the same between 0.24.1 and 0.24.2. No product code changes, and no protected path is touched.

This approval holds only if CI passes, in particular the Desktop contract-sync check this fixes.

@abrichr

abrichr commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Grok
Reviewed-Head: f4e8f24

The diff is correct and does what it says: PINNED_TYPES_VERSION goes 0.24.1 → 0.24.2, matching in-tree packages/types 0.24.2, and only the contract.ts header changes. The schema JSON files regenerate byte-identical. It fixes the desktop engine-test failure on main: packages / desktop test / Python engine tests passes at this head.

It can't merge as is, because the required ci check fails through packages-gate on desktop release intent. That failure is caused by this PR's own commit type, so this is a small change request, not a code problem.

Findings

  • P2, merge gate: desktop release intent fails. The log says: This pull request changes Desktop in a way that should ship: fix(desktop): sync control overlay contract pin … but keeps version 0.32.0 … Bump to 0.32.1 (patch). check_release_intent.py treats any feat, fix or perf commit as releasable. There are two ways to clear it:
    • (a) Reword the single commit to a non-shipping type such as chore(desktop): …. Nothing user-facing changes: one dev-script constant and a comment line in generated TS. This is my recommendation.
    • (b) Bump Desktop to 0.32.1 with scripts/prepare_release.py --bump patch. That publishes a Desktop release on merge, so it is a release decision for the owner, not something a reviewer can grant.
  • Not this PR: Rust locked dependencies fails on a new advisory, RUSTSEC-2026-0594 (cookie, private cookie nonces can repeat in forked processes), found by cargo audit --file src-tauri/Cargo.lock. This PR doesn't touch Cargo files, so the failure will hit every Desktop PR until the lock or the audit policy is updated.
  • Not this PR: desktop build / Python sidecar (ubuntu-22.04) failed on a network timeout: could not download rapidocr-onnxruntime: The read operation timed out during the frozen demo-record smoke. It looks like a flake. I did not re-run it.

Tests run (at this head)

  • Python 3.12 venv with editable in-tree packages/types (0.24.2), packages/desktop, packages/capture and packages/privacy.
  • pytest tests/test_control_overlay_contract_sync.py: 1 passed in 0.09 s (0.38 s wall).
  • python scripts/sync_control_overlay_contract.py, the check mode: OK.
  • Mutation controls. These tests fail without the change and pass with it.
    • Pin reverted to 0.24.1: fails with openadapt-types 0.24.1 is required … found 0.24.2.
    • Only the contract.ts header reverted: fails with contract.ts is stale.
  • ruff check scripts/sync_control_overlay_contract.py: passed.
  • I confirmed that the CI unit job installs in-tree types editable (desktop-test.yml:106). So the exact-pin check runs against 0.24.2 in CI, even though packages/desktop/uv.lock still locks PyPI types 0.24.0. The jobs that use that lock don't run this test.

Generality gate

Pass. The change touches only the Desktop contract pin and generated header: no engine code, nothing under openadapt_flow, no app-specific logic.

CI at review time

  • 21 pass, 32 skipping, 2 pending (packages-gate, run-ci).
  • Failing:
    • desktop release intent, from this PR, as above;
    • packages-gate and required ci, which aggregate that failure;
    • Rust locked dependencies (pre-existing advisory);
    • Python sidecar (ubuntu-22.04) (network timeout);
    • Evaluate protected-path evidence.
  • Required gitleaks and dependency-review pass.

Not run: the frontend build and the native sidecar build. Grok makes no merge or release decision.

@abrichr

abrichr commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Pushed 47ad41779 fixing both CI failures on #2590:

  1. Rust locked dependencies: ran cargo update -p async-executor (1.14.0 -> 1.14.1, clears yanked crate) and cargo update -p cookie (0.18.1 -> 0.18.3, clears RUSTSEC-2026-0594) in packages/desktop/src-tauri/.
  2. packages / desktop release intent: bumped openadapt-desktop 0.32.0 -> 0.32.1 via packages/desktop/scripts/prepare_release.py --bump patch --base d82ccc969a741d06f6e5111f4fae2b017a90a4ba.

Verified locally:

  • pytest --noconftest packages/desktop/tests/test_control_overlay_contract_sync.py — 1/1 pass
  • python3 packages/desktop/scripts/check_release_intent.py --base d82ccc969a741d06f6e5111f4fae2b017a90a4ba --head HEAD — Desktop release intent is consistent (exit 0)
  • gitleaks protect --staged --no-banner — no leaks

@abrichr

abrichr commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Claude
Reviewed-Head: 47ad41775b3e29a2d5cb45d1d08ad73a2d23c3ad

This is a delta review of f4e8f24..47ad417: one commit, "bump 0.32.1 release intent and update Cargo.lock".

  • Version. Desktop moves from 0.32.0 to 0.32.1, consistently across pyproject.toml, __init__.py, package.json, package-lock.json, Cargo.toml, tauri.conf.json, uv.lock and the openadapt-desktop entry in Cargo.lock. Main is at 0.32.0.

  • CHANGELOG. The v0.32.1 entry describes this fix accurately.

  • Cargo.lock. Besides the version, it carries the same three dependency moves I reviewed on fix(desktop): launch authoring Chromium keychain-safe and close what it owns #2259:

    • async-executor 1.14.0 (yanked) to 1.14.1;
    • cookie 0.18.1 to 0.18.3 (RUSTSEC-2026-0594);
    • cssparser-macros moving from syn 3.0.3 to 2.0.119, which its >=2,<4 range allows.

    The checksums match crates.io.

  • Product code. None changes.

This approval holds if CI passes. Merging publishes Desktop 0.32.1 through the release-intent path, under the standing release OK.

@abrichr

abrichr commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Claude
Reviewed-Head: 47ad417

This is a delta review of f4e8f24..47ad417: one commit, "bump 0.32.1 release intent and update Cargo.lock".

  • Version. Desktop moves from 0.32.0 to 0.32.1, consistently across pyproject.toml, __init__.py, package.json, package-lock.json, Cargo.toml, tauri.conf.json, uv.lock and the openadapt-desktop entry in Cargo.lock. Main is at 0.32.0.

  • CHANGELOG. The v0.32.1 entry describes this fix accurately.

  • Cargo.lock. Besides the version, it carries the same three dependency moves I reviewed on fix(desktop): launch authoring Chromium keychain-safe and close what it owns #2259:

    • async-executor 1.14.0 (yanked) to 1.14.1;
    • cookie 0.18.1 to 0.18.3 (RUSTSEC-2026-0594);
    • cssparser-macros moving from syn 3.0.3 to 2.0.119, which its >=2,<4 range allows.

    The checksums match crates.io.

  • Product code. None changes.

This approval holds if CI passes. Merging publishes Desktop 0.32.1 through the release-intent path, under the standing release OK.

This supersedes my previous comment, which gave the wrong full SHA in Reviewed-Head. The reviewed head is 47ad417.

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