Skip to content

FormAT 0.30.1: the macOS build installs keyring - #12

Merged
nodemode-ai merged 2 commits into
mainfrom
fix/macos-keyring-0.30.1
Nov 20, 2026
Merged

nodemode-ai merged 2 commits into
mainfrom
fix/macos-keyring-0.30.1

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormAT 0.30.1: the macOS build installs keyring

Two commits on top of 0.30.0: the fix to the list of engine packages macOS installs, with a test that keeps it in step, and the release.

What failed

Both macOS builds of FormAT in the 0.30.0 release run stopped at the freeze step:

File "build/pyinstaller/format-engine.spec", line 13, in <module>
    datas += copy_metadata('keyring')
importlib.metadata.PackageNotFoundError: No package metadata was found for keyring

The cause

0.27.0 added keyring==25.7.0 to backend/requirements.txt and the freeze scripts name it (--collect-submodules keyring --copy-metadata keyring), but macOS installs the engine from backend/requirements_macos.txt (backend/oc_install, its darwin branch), a separate list kept by hand that never got the line. Linux and Windows install from requirements.txt, so their builds passed.

What changes for people

  • The macOS desktop app builds again: backend/requirements_macos.txt has keyring==25.7.0, in the same place as in requirements.txt.
  • A macOS person on 0.27.0 to 0.30.0 running the engine from source got no error, only a quiet fallback (the engine started, and the Outside agents choice was kept without its keychain seal); now keyring is installed and the choice is sealed in the macOS keychain, so a choice of Allowed saved without a seal reads as Ask, with the sentence in Settings, until it is chosen again.
  • A new test, backend/tests/test_requirements_lists.py, checks that every requirement of requirements.txt that is not Windows-only is in the macOS list with the same pin, and that every package the two freeze scripts name with --copy-metadata, --collect-submodules, --collect-data or --hidden-import is in both lists (websockets and certifi through uvicorn[standard] and httpx, proved from the installed metadata).

How it was checked

  • Every install path read on each system: ./format install and format_oc_install run setup/install_all, which runs backend/oc_install (macOS: requirements_macos.txt; Linux: requirements.txt); format.bat install runs setup/install_all.bat and backend/oc_install.bat (requirements.txt); install_desktop, install_voice, install_browser and their .bat twins install the desktop, voice and browser lists the same way on every system, with no macOS twin and no macOS branch, and the freeze takes what comes from them only when it is installed. build_app and the compiler's macOS setup go through ./format install and ./format install-desktop. With the line in, every third-party module the engine imports comes from the list each system installs or from what its packages bring.
  • The new test, copied into a copy of origin/main: 2 failed, both naming keyring (missing from the macOS list; named by both freeze scripts and not in the macOS list). On this branch: 4 passed.

Checks rehearsed

On a local clone of the fix commit a740ae1; the version test on the release commit.

Job Commands Result
frontend npm ci --dry-run, npm audit, npm run typecheck, npm run build exit 0 each; 0 vulnerabilities
backend python -m compileall -q app format_engine.py; boot uvicorn and probe /api/health exit 0; {"ok":true,"name":"FormAT","version":"0.30.0"} on the commit before the release
test python -m pytest tests -q -p no:cacheprovider in backend 136 passed
window pytest frontend/tests/window after npm run build 2 passed
scripts bash -n on the shell scripts; no em dash or emoji in tracked markdown exit 0; clean
agents ./format agents sync --check 114 commands, up to date
lock npm ci --dry-run after the release commit exit 0
version tests/test_f4_versions.py after the release commit 3 passed

The workflow has no macOS or Windows job. The new test reads files as UTF-8 through pathlib and needs no /proc, shell or keychain.

Merge with a merge commit. Do not squash and do not rebase-merge.

Held

  • Nothing of this fix. The desktop, voice and browser lists needed no change: they have no macOS twin and no macOS branch.

Not run

  • No macOS machine here: the macOS list is proved by reading and by the test, not by a macOS install or a macOS build.
  • Nothing ran on Windows. No packaged engine was built.
  • The desktop shell was not compiled; this release changes only its version fields.
  • No real agent program was run (stand-ins only).

…the two lists together

Both macOS builds of the 0.30.0 release run stopped at the freeze with
PackageNotFoundError for keyring. keyring==25.7.0 went into
backend/requirements.txt in 0.27.0 and the freeze scripts name it, but
backend/oc_install installs backend/requirements_macos.txt on macOS and
that list never got the line. It now has it.

backend/tests/test_requirements_lists.py checks that every requirement
of requirements.txt that is not Windows-only is in the macOS list with
the same pin, and that every package the two freeze scripts name with
--copy-metadata, --collect-submodules, --collect-data or --hidden-import
is in both lists (websockets and certifi through uvicorn[standard] and
httpx, proved from the installed metadata). Copied into a copy of
origin/main it fails twice, naming keyring; here 4 passed.
Version sites, as in the last release: backend/app/__init__.py,
frontend/src/version.ts, frontend/package.json, both version fields at
the top of frontend/package-lock.json, src-tauri/Cargo.toml, the format
package entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the
README badge, and the "Current build version" and "Last updated" lines
of both HASHOUT logs. CHANGELOG.md has the 0.30.1 entry for the macOS
engine list.

Run on the commit before this one, in a local clone: npm ci --dry-run,
npm audit (0 vulnerabilities), typecheck, build, compileall, the engine
booted and /api/health probed, the whole engine suite (136 passed), shell
syntax, the markdown check, agents sync --check (114 commands, up to
date), and the window smoke (2 passed). After the version change:
tests/test_f4_versions.py and tests/test_requirements_lists.py 7 passed.

Left as they are: the SECURITY.md supported-versions row (0.26.x).
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 20, 2026 11:00
@nodemode-ai
nodemode-ai merged commit 96aede5 into main Nov 20, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/macos-keyring-0.30.1 branch November 20, 2026 11: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