Skip to content

Keep embedding model cache outside signed macOS app and verify the sealed archive after boot #1977

Open

Description

@currentbits

The published nightly-202611091044-5f59a825 is rejected by macOS as damaged. Installed-app codesign --verify --deep --strict reports four added resources under Contents/Resources/app/memory-server/node_modules/@huggingface/transformers/.cache/Xenova/all-MiniLM-L6-v2 (config/tokenizer/model_quantized files). The release boot/embedding probe runs after signing/notarization and writes the default Transformer cache into the signed bundle; the existing signature check occurs before that probe. Move model caches to a writable directory outside the app, add a regression for that cache location, verify the sealed app again after boot/embedding, and publish a corrected nightly only after archive extraction retains a valid signature and Gatekeeper acceptance. Preserve user data and repair the installed bundle with verified signed bytes.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Nov 9, 2026
  2. currentbits commented on Nov 9, 2026

    @currentbits
    OwnerAuthor

    Root cause confirmed: the installed published nightly's strict codesign verification identifies four added MiniLM cache files inside Resources/app. Fix in progress on coder/signed-model-cache: configure the model cache beside the memory database; re-check signature/Gatekeeper after stopping the embedding boot probe; extract the final ZIP and verify that bundle before publication. Focused tests: 13 passed. Memory suite: 249 passed. Real inference was verified offline using an external cache: normalized 384-dimensional vector, no default package-cache directory created. Previous .app.old backup passes strict codesign, Gatekeeper and stapler. No installed app or user data changed.

  3. currentbits commented on Nov 9, 2026

    @currentbits
    OwnerAuthor

    Reviewed fix committed as c75f460; PR #1978 is open. Corrected nightly is building in the standard isolated release checkout with both new signature checks. PR CI's Ubuntu test job hits the same pre-existing generated sitemap date drift as main (docs/ssh/web-mode Nov 8 vs Nov 9), before running tests; this is separate from the cache fix. No material review findings.

  4. currentbits commented on Nov 9, 2026

    @currentbits
    OwnerAuthor

    Corrected macOS bundle (c75f460, nightly-202611091234-c75f4601) was accepted by Apple and stapled. The packaged boot probe stored a real MiniLM vector (count 0 -> 1), shut down, then passed codesign --verify --deep --strict and Gatekeeper again. Cross-platform packaging is running before final archive validation/upload. Installed app remains untouched until the corrected release is available.

  5. currentbits commented on Nov 9, 2026

    @currentbits
    OwnerAuthor

    Published corrected release: https://github.com/currentbits/solenta/releases/tag/nightly-202611091234-c75f4601 (all seven packages). The app extracted from the final local ZIP passes strict codesign, stapler and Gatekeeper after the boot/inference probe. macOS ZIP SHA256: b7dd37a427d6d9b1a88bd7b8a0ada394f96d70469960b252ebf916e308f9f25f. The shell.egress host guardrail explicitly blocks independent GitHub API/download verification; no alternate network client was used. Installing the verified local ZIP to repair this machine, with both the damaged bundle and prior .app.old preserved. PR #1978 remains open.

  6. currentbits commented on Nov 9, 2026

    @currentbits
    OwnerAuthor

    Local repair complete: installed nightly-202611091234-c75f4601 now passes strict codesign and Gatekeeper at its real installed path. Damaged app and prior .app.old backup preserved, no user-data changes or forced restart. Corrected nightly is published; independent GitHub re-download remains blocked by host shell.egress policy. PR #1978 is open for landing; keeping this issue open until the source fix is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions