Skip to content

Homebrew tap is two months stale (v0.1.6 vs v0.2.0): cask is hand-maintained instead of generated on release #2114

Closed
NodeSpaceAI/homebrew-nodespace
#1

Description

@malibio

Problem

homebrew-nodespace is stale. The cask installs a release that is two months and one minor version behind.

Version Date
Latest GitHub release v0.2.0 2026-06-25
Casks/nodespace.rb v0.1.6 2026-05-05

brew install nodespace has therefore been serving v0.1.6 since v0.2.0 shipped. The tap has exactly one commit ("Add NodeSpace cask (v0.1.6)", 2026-05-19).

Root cause: the cask is hand-maintained, not generated

Casks/nodespace.rb hardcodes both the version and two per-architecture SHA256 digests:

cask "nodespace" do
  version "0.1.6"
  on_arm  { sha256 "2bab43d7…"; url ".../v#{version}/NodeSpace_#{version}_aarch64.dmg" }
  on_intel{ sha256 "f3a69ad4…"; url ".../v#{version}/NodeSpace_#{version}_x64.dmg" }

Every release requires a manual edit plus two recomputed digests in a separate repo. Nothing in the release flow enforces or reminds, so the tap silently drifts and the only symptom is users installing an old build — or a checksum failure if a release is ever re-cut.

Fix direction

Treat the tap the way the skill distribution repo should be treated: a generated output of nodespace-core, not a hand-authored repo.

On publishing a release, the release workflow should update the cask automatically — bump version, compute both DMG digests from the actual uploaded assets, and commit to homebrew-nodespace. The digests must be derived from the published artifacts rather than typed, since that is the step most likely to be got wrong by hand.

Note there is currently no hosted CI in this repo by design, so "the release workflow" means whatever local/scripted process cuts a release (scripts/build-pkg.sh, bun run tauri:build). The cask update belongs there — a script that takes a version and pushes the updated cask, so it cannot be forgotten.

Also worth a guard: a check that fails, or at least warns loudly, when the tap's version does not match the latest release.

Immediate action

Independent of automation, the cask should be bumped to v0.2.0 now so brew install nodespace stops serving a stale build.

Related

Acceptance criteria

  • Cask updated to the current release (v0.2.0) with correct per-architecture digests
  • Cask version + digests generated from published release assets, not hand-edited
  • Cask update is part of the release process and cannot be silently skipped
  • Mismatch between tap version and latest release is detectable (check or loud warning)
  • brew install nodespace verified end to end on both architectures after the change

Activity

  1. malibio commented on Aug 17, 2026

    @malibio
    CollaboratorAuthor

    Correction — release CI does exist; the cask step is simply absent

    The issue body states there is no hosted CI and that the cask update belongs in a local release script. That is wrong for the release path specifically.

    .github/workflows/release.yml exists and does substantial work: builds Tauri for macOS ARM/Intel, builds the nodespaced and nodespace sidecars, packages the .pkg, uploads binaries to the GitHub release, and generates SHA256SUMS for the release assets (release.yml:567-573).

    Verified there is no tap publishing anywhere: grep for homebrew-nodespace / NodeSpaceAI/homebrew across .github/ and scripts/ returns nothing. The only brew lines in the workflow are brew untap aws/tap azure/bicep runner-environment cleanup (:53, :188, :452), unrelated to the tap.

    This makes the fix smaller than the issue implies. The workflow already computes the digests the cask needs — they are just never written into it. The missing piece is a final job that, after assets are uploaded, bumps version in Casks/nodespace.rb, pulls both per-architecture digests from the generated SHA256SUMS, and pushes to NodeSpaceAI/homebrew-nodespace. It needs a token with write access to that repo.

    Immediate impact: the next release will not update the tap. brew install nodespace continues serving v0.1.6 regardless of what ships, so the cask needs updating as part of that release — manually if the automation is not in place first.

    Revised acceptance criteria:

    • Cask update runs as part of release.yml, after release assets are uploaded
    • Digests sourced from the workflow's existing SHA256SUMS output, never hand-computed
    • Cross-repo push to homebrew-nodespace authenticated appropriately
    • Release fails loudly, or warns, if the tap update step does not succeed
  2. malibio commented on Aug 17, 2026

    @malibio
    CollaboratorAuthor

    Principle: a release publishes all its downstream artifacts

    Decided: the Homebrew tap and the skill distribution repo should both be synced by the release, not updated by hand.

    Both are downstream outputs of a release. Neither should depend on someone remembering. Today both drift silently, and the tap has already been stale for two months (v0.1.6 vs v0.2.0) with no signal.

    Artifact Repo Synced today
    GitHub release (DMG, pkg, binaries, SHA256SUMS) nodespace-core ✅ release.yml
    Homebrew cask homebrew-nodespace ❌ hand-edited, stale
    Skill (SKILL.md, shims) does not exist yet — see #2113 ❌ n/a

    Where this plugs into release.yml

    The workflow ends with upload-checksums (release.yml:547-576), which runs if: github.event_name == 'release' and already downloads release assets, computes SHA256, and uploads back. A tap-sync job is the same shape and can follow it.

    One gap to close first. upload-checksums downloads only --pattern 'nodespaced-*' --pattern 'nodespace-*' — the CLI and daemon binaries. The DMGs are not included, so their digests are never computed today. The DMGs are uploaded directly to the release by tauri-apps/tauri-action via releaseId (release.yml:97-111, :265-283), bypassing any checksum step.

    So the cask sync must download the DMG assets and compute both per-architecture digests itself, or upload-checksums must be widened to cover them. Widening it is preferable — publishing DMG checksums is independently useful for users verifying a download.

    Shape of the sync

    A job per downstream artifact, gated on github.event_name == 'release', running after assets are uploaded:

    Tap sync — download both DMGs from the release, compute SHA256 for each, rewrite version and both sha256 values in Casks/nodespace.rb, commit and push to NodeSpaceAI/homebrew-nodespace.

    Skill sync (once #2113 establishes the repo) — regenerate the skill artifact from skill_pipeline.rs / skill_rules.rs, push to the distribution repo, tagged to match the release.

    Both need a token with cross-repo write access; secrets.GITHUB_TOKEN is scoped to this repository only.

    Failure must be loud

    The current failure mode is silence — the tap simply stops matching and nobody learns until a user installs an old build. Whatever form the sync takes, a failed or skipped sync must fail the release job or raise a visible signal. The workflow already has a notify-on-failure job posting a GitHub issue (release.yml:529-541) — the same mechanism fits here.

    Also worth a standalone check (independent of release runs) that compares the tap's cask version against the latest release and reports a mismatch, so drift is detectable even if a sync step is bypassed.

    Versioning question to settle

    The cask tracks the app version directly. For the skill, decide whether the distribution repo is versioned in lockstep with app releases or independently — skill guidance may change between releases, and forcing a release to publish guidance fixes (or vice versa) couples two things that need not move together. Lockstep is simpler; independent is more honest about what actually changed. Recommend lockstep initially, revisited if guidance iteration outpaces releases.

    Acceptance criteria (supersedes the earlier list)

    • DMG digests computed during the release (widen upload-checksums, or compute in the sync job)
    • Tap cask version + both digests written automatically from release assets; no hand-editing
    • Skill distribution repo synced by the same release (once Skill installer fails at every startup: packages/skill is never built, and it is invoked via npx in a Bun-only repo #2113 creates it)
    • Cross-repo push authenticated with a token scoped beyond GITHUB_TOKEN
    • A failed or skipped sync fails the release or raises a visible notification
    • Standalone drift check comparing tap version to latest release
    • Skill versioning decision recorded (lockstep vs independent)
    • Cask bumped to the current release as a one-off, so brew install stops serving v0.1.6 in the meantime
  3. malibio commented on Aug 17, 2026

    @malibio
    CollaboratorAuthor

    Manual step — corrected for the upcoming release

    The issue body's "Immediate action" says to bump the cask to v0.2.0. That was right when written, but it goes stale the moment the next release ships — bumping to v0.2.0 after cutting v0.2.1 would just pin the cask one version behind again.

    Restated: the cask must be bumped to whatever version is actually released, as part of cutting that release, until the sync job exists.

    Manual procedure (until automated)

    1. Cut the release; wait for release.yml to finish uploading assets.

    2. Download both DMGs from the release:

      • NodeSpace_<version>_aarch64.dmg
      • NodeSpace_<version>_x64.dmg

      Note these are not covered by the release's SHA256SUMS — that file only contains nodespaced-* and nodespace-* binaries (release.yml:557-559). The DMG digests must be computed locally.

    3. shasum -a 256 <each dmg>

    4. In NodeSpaceAI/homebrew-nodespace, edit Casks/nodespace.rb: set version, and replace the sha256 under both on_arm and on_intel.

    5. Commit and push to the tap's default branch.

    6. Verify: brew update && brew info nodespace reports the new version, and a clean brew install nodespace succeeds on at least one architecture.

    Step 2's caveat is the likely footgun — reaching for SHA256SUMS and finding no DMG entries, or worse, pasting a CLI binary's digest into the cask. A checksum mismatch fails the install outright, so this is worth care.

    This whole procedure is what the sync job replaces.

  4. malibio commented on Aug 18, 2026

    @malibio
    CollaboratorAuthor

    Raising priority context: #2146 (one-line curl | sh install) wraps Homebrew as its primary install strategy, falling back to direct download only when brew is absent.

    That puts this issue on the critical path — a stale tap stops being maintenance cleanup and becomes a defect on the main install path. The one-liner shouldn't be published until the cask is current.

    No change to the acceptance criteria here; they already cover it. Noting the dependency so it isn't picked up as low-priority.

  5. self-assigned this
    on Aug 19, 2026
  6. mstomar125 commented on Aug 19, 2026

    @mstomar125
    Contributor

    Resolved.

    Immediate fix (homebrew-nodespace#1, open, self-reviewed — awaiting merge from someone with write access to that repo, see below): bumped the cask to v0.2.0 with a sha256 computed by downloading the real release asset and running shasum -a 256 on it (cross-checked against GitHub's release-assets API digest). Rewritten as an arm64-only cask since v0.2.0 has no Intel/x64 macOS .dmg (see #2154, filed separately). Verified with brew style, brew audit --cask --online, and an actual brew install --cask + nodespace --version in an isolated Homebrew prefix (not this machine's real Homebrew install).

    Automation + drift guard (nodespace-core#2157, merged @ 14a67bd7): scripts/update-homebrew-cask.ts resolves per-architecture digests from the real published release assets (never hand-types a digest), renders the cask in whichever shape the release actually supports, and can push the update to the tap (--push, gated on a not-yet-configured HOMEBREW_TAP_TOKEN repo secret) or just check for drift (drift-check). Wired into .github/workflows/release.yml as a new sync-homebrew-cask job. Added a standalone .github/workflows/homebrew-drift-check.yml (daily + on-demand) independent of the release flow, per this issue's ask. Went through an adversarial review round that found and fixed 3 real bugs (missing workflow permissions, indistinguishable drift-vs-check-failure messaging, an unverified dual-architecture cask render path) before merging.

    Two things still need a human with more access than I have:

    1. homebrew-nodespace#1 needs someone with write access to NodeSpaceAI/homebrew-nodespace to merge it (confirmed: mstomar125 has pull-only access there).
    2. HOMEBREW_TAP_TOKEN needs to be added as a nodespace-core repo secret (a PAT/fine-grained token with contents: write on homebrew-nodespace) before sync-homebrew-cask can actually push on a future release — until then it fails loudly and notify-failure opens an issue, which is the correct behavior in the meantime, not a silent gap.

    Follow-up filed: #2154 — v0.2.0 is missing Intel/x64 macOS release assets despite CI appearing to build them; found while investigating this issue.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions