Repository navigation
Description
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
- Skill installer fails at every startup: packages/skill is never built, and it is invoked via npx in a Bun-only repo #2113 — same generated-artifact pattern for the skill distribution repo. Both are small public repos that should be outputs of core rather than hand-maintained. Worth solving with one approach.
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 nodespaceverified end to end on both architectures after the change
Activity
malibio commentedon Aug 17, 2026
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.ymlexists and does substantial work: builds Tauri for macOS ARM/Intel, builds thenodespacedandnodespacesidecars, packages the.pkg, uploads binaries to the GitHub release, and generatesSHA256SUMSfor the release assets (release.yml:567-573).Verified there is no tap publishing anywhere:
grepforhomebrew-nodespace/NodeSpaceAI/homebrewacross.github/andscripts/returns nothing. The onlybrewlines in the workflow arebrew untap aws/tap azure/biceprunner-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
versioninCasks/nodespace.rb, pulls both per-architecture digests from the generatedSHA256SUMS, and pushes toNodeSpaceAI/homebrew-nodespace. It needs a token with write access to that repo.Immediate impact: the next release will not update the tap.
brew install nodespacecontinues 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:
release.yml, after release assets are uploadedSHA256SUMSoutput, never hand-computedhomebrew-nodespaceauthenticated appropriatelymalibio commentedon Aug 17, 2026
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.
nodespace-corerelease.ymlhomebrew-nodespaceSKILL.md, shims)Where this plugs into
release.ymlThe workflow ends with
upload-checksums(release.yml:547-576), which runsif: 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-checksumsdownloads 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 bytauri-apps/tauri-actionviareleaseId(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-checksumsmust 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
versionand bothsha256values inCasks/nodespace.rb, commit and push toNodeSpaceAI/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_TOKENis 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-failurejob 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)
upload-checksums, or compute in the sync job)GITHUB_TOKENbrew installstops serving v0.1.6 in the meantimemalibio commentedon Aug 17, 2026
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)
Cut the release; wait for
release.ymlto finish uploading assets.Download both DMGs from the release:
NodeSpace_<version>_aarch64.dmgNodeSpace_<version>_x64.dmgNote these are not covered by the release's
SHA256SUMS— that file only containsnodespaced-*andnodespace-*binaries (release.yml:557-559). The DMG digests must be computed locally.shasum -a 256 <each dmg>In
NodeSpaceAI/homebrew-nodespace, editCasks/nodespace.rb: setversion, and replace thesha256under bothon_armandon_intel.Commit and push to the tap's default branch.
Verify:
brew update && brew info nodespacereports the new version, and a cleanbrew install nodespacesucceeds on at least one architecture.Step 2's caveat is the likely footgun — reaching for
SHA256SUMSand 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.
malibio commentedon Aug 18, 2026
Raising priority context: #2146 (one-line
curl | shinstall) wraps Homebrew as its primary install strategy, falling back to direct download only whenbrewis 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.
mstomar125 commentedon Aug 19, 2026
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 256on 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 withbrew style,brew audit --cask --online, and an actualbrew install --cask+nodespace --versionin an isolated Homebrew prefix (not this machine's real Homebrew install).Automation + drift guard (nodespace-core#2157, merged @
14a67bd7):scripts/update-homebrew-cask.tsresolves 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-configuredHOMEBREW_TAP_TOKENrepo secret) or just check for drift (drift-check). Wired into.github/workflows/release.ymlas a newsync-homebrew-caskjob. 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:
NodeSpaceAI/homebrew-nodespaceto merge it (confirmed: mstomar125 has pull-only access there).HOMEBREW_TAP_TOKENneeds to be added as anodespace-corerepo secret (a PAT/fine-grained token withcontents: writeonhomebrew-nodespace) beforesync-homebrew-caskcan actually push on a future release — until then it fails loudly andnotify-failureopens 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.
Guide the CLI-missing skill failure to install.sh; wire its version p…
Bump cask to v0.2.0 with verified per-arch digest (#1)
Wire the nodespace-cli Homebrew formula into release-sync and drift-c…