Repository navigation
feat(updater): add an adhoc release channel for branch builds - #12051
Conversation
Hourly covers main. This covers everything that is not main yet: a dispatchable macOS build of an unlanded branch, published to stablyai/orca-adhoc, so the team can run an experimental feature for a few days instead of reasoning about it from a diff. Adhoc sits at the bottom of the version order — 'adhoc' < 'hourly' < 'rc' < stable — so no routine check can walk anyone onto somebody's branch; only an explicit pinned jump reaches one. It gets its own repo rather than sharing orca-hourly's, because a branch build must not appear in the list a developer riding main is looking at. Signed and notarized exactly like hourly, for the same reason: macOS anchors a notarized app's TCC grants on identifier + team, so an unnotarized build reads as a new client and silently loses file access under Documents/Desktop/Downloads. Tags stamp to the second rather than the minute. Hourly runs under a concurrency group and cannot overlap itself; adhoc builds are dispatched on demand, so two people cutting from different branches inside one minute is ordinary — and a minute-resolution tag would collide and fail the second build after its whole pack-and-notarize run. Channel-specific behaviour now derives from one DEDICATED_REPO_CHANNELS list: repo mapping, macOS-only support, and UpdateSource. The RPC schema that validates releaseChannelOverride was a hand-copied enum missing the new channel, which would have rejected the override on its way to the main process; it reads the predicate now.
Greptile SummaryThis PR adds a third release channel,
Confidence Score: 5/5Safe to merge — the new channel is correctly isolated from existing release and hourly paths, and the drift-protection refactors tighten the existing code. The adhoc channel slots into every existing guard cleanly: activeUpdateSource checks use === 'release' / !== 'release' rather than explicit channel names, so the new value is handled without any missed branch. DEDICATED_REPO_CHANNELS drives UpdateSource, isChannelSupportedOnPlatform, and the Zod schema. The Zod schema fix replaces the hand-copied enum that would have silently rejected the new override. Version ordering is verified by tests. Files Needing Attention: No files require special attention beyond the two items already raised in prior review threads on adhoc-mac-build.yml and adhoc-build-version.mjs.
|
| Filename | Overview |
|---|---|
| src/shared/release-channel.ts | Adds 'adhoc' to ReleaseChannel, DEDICATED_REPO_CHANNELS, and CHANNEL_RELEASE_REPOS. Refactors parseHourlyVersionStamp into a shared parseStampedVersion. Adds parseAdhocVersionStamp, parseDevBuildStamp, isAdhocVersion, formatAdhocVersion, and hasDedicatedReleaseRepo. Channel routing and platform-support logic derive from DEDICATED_REPO_CHANNELS rather than hard-coded names. |
| config/scripts/adhoc-build-version.mjs | New script producing the version stamp (seconds-resolution), normalizing the free-text label, and formatting the release title. normalizeAdhocLabel correctly sanitizes newlines, bullet separators, and git ref prefixes. The label='' default parameter causes an immediate throw (already flagged in previous thread). |
| .github/workflows/adhoc-mac-build.yml | New workflow. Token expiry race (already flagged) aside: the draft-to-publish pattern correctly hides incomplete releases; the failure cleanup step guards on steps.publish_live.outcome != 'success'; the prune query correctly excludes drafts; concurrency is keyed per-ref. |
| src/main/updater.ts | activeUpdateSource gains 'adhoc' via the DedicatedRepoChannel union type. All existing guards check === 'release' or !== 'release', so the new value is naturally handled without any missed branches. |
| src/main/runtime/rpc/methods/client-ui-schemas.ts | Replaces the hand-copied z.enum(['stable','rc','hourly']) with z.custom(isReleaseChannel) so the schema validates against the authoritative channel list. Clean drift-protection fix. |
| src/renderer/src/components/settings/ReleaseChannelSection.tsx | Generalizes hourly-specific strings to use CHANNEL_LABELS[channel] for parameterized translations. The warning block correctly uses hasDedicatedReleaseRepo() as the gate. |
| src/shared/types.ts | UpdateSource is now 'local' |
| config/scripts/release-title-timestamp.mjs | Extracts the Pacific-time timestamp formatter previously inline in hourly-build-version.mjs into a shared module. No behavioral change for hourly; reused by adhoc. |
| config/electron-builder.config.cjs | Adds ORCA_MAC_ADHOC flag and ternary for devChannelBuildVersion / devChannelRepo. Correctly falls back to 'orca' when neither dev-channel flag is set. |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant GHA as GitHub Actions
participant Script as adhoc-build-version.mjs
participant EB as electron-builder
participant Apple as Apple Notary
participant AdhocRepo as stablyai/orca-adhoc
participant Updater as Orca Updater
Dev->>GHA: gh workflow run adhoc-mac-build.yml
GHA->>GHA: "checkout ref=my-branch"
GHA->>Script: "ORCA_ADHOC_LABEL=label node adhoc-build-version.mjs"
Script-->>GHA: version, commit, label, name
GHA->>AdhocRepo: gh release create --draft
GHA->>EB: "ORCA_MAC_ADHOC=1 electron-builder"
EB->>Apple: notarize
Apple-->>EB: ticket
EB->>AdhocRepo: upload assets
GHA->>GHA: verify latest-mac.yml
GHA->>AdhocRepo: "gh release edit --draft=false"
GHA->>AdhocRepo: prune releases older than 30 days
Dev->>Updater: checkForPinnedBuild('adhoc', tag)
Updater->>Updater: "activeUpdateSource = 'adhoc'"
Updater->>AdhocRepo: fetch latest-mac.yml
Updater-->>Dev: install adhoc build
Reviews (3): Last reviewed commit: "fix(ci): default the adhoc build ref to ..." | Re-trigger Greptile
| sendStatus({ | ||
| state: 'error', | ||
| message: 'Hourly builds are produced only for macOS.', | ||
| message: `${channel} builds are produced only for macOS.`, |
There was a problem hiding this comment.
The channel identifier is lowercase (
'hourly', 'adhoc'), so this now produces "hourly builds are produced only for macOS." or "adhoc builds are produced only for macOS." — losing the capitalization that the previous hardcoded string had. Capitalizing the first letter restores the original user-facing presentation.
| message: `${channel} builds are produced only for macOS.`, | |
| message: `${channel[0].toUpperCase()}${channel.slice(1)} builds are produced only for macOS.`, |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| ].join(' • ') | ||
| } | ||
|
|
||
| export function getAdhocBuildIdentity(now = new Date(), label = '') { |
There was a problem hiding this comment.
label = '' is a misleading default — normalizeAdhocLabel('') always throws, so any call to getAdhocBuildIdentity() or getAdhocBuildIdentity(new Date()) without an explicit label immediately errors. Removing the default makes the requirement explicit at the call site.
| export function getAdhocBuildIdentity(now = new Date(), label = '') { | |
| export function getAdhocBuildIdentity(now = new Date(), label) { |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds the 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (2)
config/scripts/setup-adhoc-release-repo.sh (1)
1-90: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoffBash-only script does not run natively on Windows.
This script requires bash and
ghand does not run natively on Windows without WSL or Git Bash. It follows the same convention assetup-hourly-release-token.sh, which is a one-off admin provisioning script, so the practical impact is low.As per path instructions: "code, commands, and scripts must work on macOS, Linux, and Windows."
Source: Path instructions
.github/workflows/adhoc-mac-build.yml (1)
64-89: 🔒 Security & Privacy | 🔵 Trivial | 🏗️ Heavy liftArbitrary dispatched refs get full production signing and notarization secrets.
This job checks out
inputs.ref— any branch, tag, or SHA a user with write access chooses — and then runspnpm installandpnpm build:releasefrom that ref withCSC_LINK,CSC_KEY_PASSWORD,APPLE_ID,APPLE_APP_SPECIFIC_PASSWORD, andAPPLE_TEAM_IDavailable. This is a wider trust surface than the hourly workflow, which only buildsmain. A malicious or compromised branch (for example through a package script) could exfiltrate the production Apple signing credentials.Consider gating this job behind a protected GitHub Actions
environment:with required reviewers, so dispatching against an arbitrary ref requires an explicit approval before the signing secrets are exposed.Also applies to: 225-238
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: a13f67cd-6b1a-4f62-91a2-11ea9be8d07c
📒 Files selected for processing (16)
.github/workflows/adhoc-mac-build.ymlconfig/electron-builder.config.cjsconfig/scripts/adhoc-build-version.mjsconfig/scripts/adhoc-build-version.test.mjsconfig/scripts/electron-builder-config.test.mjsconfig/scripts/hourly-build-version.mjsconfig/scripts/release-title-timestamp.mjsconfig/scripts/setup-adhoc-release-repo.shconfig/scripts/setup-hourly-release-token.shsrc/main/runtime/rpc/methods/client-ui-schemas.tssrc/main/updater.tssrc/renderer/src/components/settings/ReleaseChannelSection.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/shared/release-channel.test.tssrc/shared/release-channel.tssrc/shared/types.ts
| # Why the token is minted here and not at the top: installation tokens live | ||
| # one hour, everything before this point writes nothing, and the notary round | ||
| # trip inside the publish step can be tens of minutes. Minting after the build | ||
| # starts the clock at the first call that actually uses it. | ||
| - name: Mint adhoc repo token | ||
| id: app_token | ||
| uses: actions/create-github-app-token@v2 | ||
| with: | ||
| app-id: ${{ secrets.HOURLY_RELEASE_APP_ID }} | ||
| private-key: ${{ secrets.HOURLY_RELEASE_APP_PRIVATE_KEY }} | ||
| owner: stablyai | ||
| repositories: orca-adhoc | ||
|
|
||
| - name: Create adhoc release | ||
| id: release | ||
| shell: bash | ||
| env: | ||
| GH_TOKEN: ${{ steps.app_token.outputs.token }} | ||
| TAG: v${{ steps.adhoc.outputs.version }} | ||
| NAME: ${{ steps.adhoc.outputs.name }} | ||
| SHA: ${{ steps.adhoc.outputs.head_sha }} | ||
| REF: ${{ inputs.ref }} | ||
| # Via env, not inline `${{ }}`: both land inside a shell string, and an | ||
| # expression expanded there is substituted before bash parses the line | ||
| # (zizmor: template-injection). | ||
| ACTOR: ${{ github.actor }} | ||
| run: | | ||
| set -euo pipefail | ||
| short_sha="${SHA:0:12}" | ||
| # Why create it up front: electron-builder then uploads into a known tag | ||
| # rather than inferring one from package.json. | ||
| # | ||
| # Why --draft: everything between here and the manifest check is a window | ||
| # where the release exists but has no installable assets. A draft is | ||
| # absent from the releases list and from listReleaseBuilds, so a job that | ||
| # dies in that window — including a hard kill by the job timeout, which | ||
| # runs no cleanup step at all — leaves something invisible rather than a | ||
| # tag the picker offers and the download 404s on. | ||
| gh release create "$TAG" \ | ||
| --repo "$ADHOC_REPO" \ | ||
| --title "$NAME" \ | ||
| --draft \ | ||
| --notes "Adhoc macOS dev build of \`$REF\` at commit \`$short_sha\`. | ||
|
|
||
| Built from [\`stablyai/orca@$short_sha\`](https://github.com/stablyai/orca/commit/$SHA), cut by @$ACTOR. | ||
|
|
||
| **Unlanded and unvetted.** This is somebody's branch, not main. No tests | ||
| ran. Signed and notarized like a release, so it installs through Orca's | ||
| in-app updater and opens without a Gatekeeper prompt — but the branch may | ||
| never merge, and this build is deleted after $ADHOC_RETAIN_DAYS days." | ||
| echo "tag=$TAG" >>"$GITHUB_OUTPUT" | ||
|
|
||
| - name: Publish adhoc macOS artifacts | ||
| uses: nick-fields/retry@v4 | ||
| with: | ||
| # Why 45: an attempt is pack + notarize + upload, and the notary queue is | ||
| # the unbounded part. Two attempts, because a failed adhoc build has a | ||
| # person waiting on it who can simply dispatch again. | ||
| timeout_minutes: 45 | ||
| max_attempts: 2 | ||
| retry_wait_seconds: 30 | ||
| command: node config/scripts/ensure-native-runtime.mjs --runtime=electron && ORCA_MAC_ADHOC=1 pnpm exec electron-builder --config config/electron-builder.config.cjs --mac --publish always | ||
| env: | ||
| # Why: electron-builder's github publisher targets the repo named in the | ||
| # config; the token must therefore carry write access to orca-adhoc. | ||
| GH_TOKEN: ${{ steps.app_token.outputs.token }} | ||
| ORCA_ADHOC_BUILD_VERSION: ${{ steps.adhoc.outputs.version }} | ||
| ORCA_BUILD_COMMIT: ${{ steps.adhoc.outputs.commit }} | ||
| CSC_LINK: ${{ secrets.MAC_CERTS }} | ||
| CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }} | ||
| # Why all three: electron-builder's notarize step authenticates to the | ||
| # Apple notary service with the app-specific password, not with the | ||
| # signing cert. Omitting them fails the build rather than skipping it. | ||
| APPLE_ID: ${{ secrets.APPLE_ID }} | ||
| APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | ||
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Workflow file:"
wc -l .github/workflows/adhoc-mac-build.yml || true
echo
echo "Relevant workflow sections:"
sed -n '1,120p' .github/workflows/adhoc-mac-build.yml
sed -n '120,340p' .github/workflows/adhoc-mac-build.yml
echo
echo "GH_TOKEN / app_token usages in workflow:"
rg -n "app_token|GH_TOKEN|github-token|token" .github/workflows/adhoc-mac-build.ymlRepository: stablyai/orca
Length of output: 17033
🌐 Web query:
GitHub App installation access token expires after 1 hour actions/create-github-app-token
💡 Result:
GitHub App installation access tokens are short-lived credentials that expire exactly 1 hour after they are created [1][2][3][4]. This expiration is a security feature by design and cannot be extended or configured [5][6]. If your process requires authentication beyond this 1-hour window, you must handle token renewal. Official documentation and community best practices recommend the following approaches: 1. Use GitHub's Octokit SDKs: The most reliable method is to use the Octokit SDK (e.g., octokit.js), which can manage authentication as an app installation automatically [1][2]. The SDK handles the generation and automatic regeneration of installation access tokens, abstracting the expiration issue away from your application logic [1][2]. 2. Use @octokit/auth-app: For lower-level control, you can use the @octokit/auth-app library, which also provides built-in mechanisms to authenticate as an installation and handle token renewal [5]. 3. Manual Token Caching: If you are not using an SDK, you should implement your own caching logic for the token [4]. It is recommended to cache the token and check for its expiration before making API calls, regenerating it if the token is near expiration (e.g., using a 5-minute buffer, meaning you refresh it after 55 minutes) [4][7]. The actions/create-github-app-token GitHub Action explicitly notes this 1-hour limitation in its documentation and directs users to these alternative approaches for long-running processes [8][9]. Using an expired token will result in a 401 Unauthorized error [6].
Citations:
- 1: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-an-installation-access-token-for-a-github-app
- 2: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation
- 3: https://docs.github.com/en/[email protected]/organizations/managing-programmatic-access-to-your-organization/github-credential-types
- 4: https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/best-practices-for-creating-a-github-app
- 5: Token seems to expire after 1h actions/create-github-app-token#121
- 6: Clarify expiration of created token actions/create-github-app-token#128
- 7: https://elliot-digital.co.uk/protocols/github-apps
- 8: https://github.com/actions/create-github-app-token/blob/5c1e00d1af39c515564da2ae21cc9dedf0793346/README.md
- 9: https://github.com/actions/create-github-app-token
Re-new the app token before the long publishing steps.
The token is minted once before the publish retry, and the same steps.app_token.outputs.token is reused for manifest verification, live publishing, draft discard, and pruning. A publish attempt can take up to 45 minutes with retries configured for 90 minutes total, but GitHub App installation tokens expire after 1 hour. Re-new the token immediately before the retry or before the later gh steps so those calls do not fail with authentication errors after the token expires.
| "adhocWarning": "Adhoc builds are macOS-only and come from a branch that has not landed. Whoever cut one may abandon it — keep a stable build handy.", | ||
| "loadingBuilds": "Loading builds…", | ||
| "noBuilds": "No builds found", | ||
| "refresh": "Refresh build list", | ||
| "switchTo": "Switch to build", | ||
| "alreadyRunning": "This is the build you are running.", | ||
| "willSwitch": "{{value0}} → {{value1}}", | ||
| "webUnavailable": "Switching builds is only available in the desktop app.", | ||
| "hourlyMacOnlyAria": "Hourly (macOS only)", | ||
| "hourlyMacOnly": "Hourly builds are produced only for macOS. Linux and Windows stay on Stable or RC." | ||
| "devChannelMacOnlyAria": "{{value0}} (macOS only)", | ||
| "devChannelMacOnly": "{{value0}} builds are produced only for macOS. Linux and Windows stay on Stable or RC." |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Confirm ReleaseChannelSection locale keys are in sync across all locale files.
for f in src/renderer/src/i18n/locales/*.json; do
echo "== $f =="
python3 - "$f" <<'PY'
import json, sys
data = json.load(open(sys.argv[1]))
section = data.get("auto", {}).get("components", {}).get("settings", {}).get("ReleaseChannelSection", {})
for key in ["adhocWarning", "devChannelMacOnlyAria", "devChannelMacOnly", "hourlyMacOnlyAria", "hourlyMacOnly"]:
print(f" {key}: {'present' if key in section else 'MISSING'}")
PY
doneRepository: stablyai/orca
Length of output: 1071
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== localization scripts/tasks =="
rg -n "localization|sync|catalog|verify" package.json pnpm-lock.yaml 2>/dev/null || true
echo
echo "== en.json ReleaseChannelSection context =="
python3 - <<'PY'
import json
data = json.load(open("src/renderer/src/i18n/locales/en.json", encoding="utf-8"))
section = data["auto"]["components"]["settings"]["ReleaseChannelSection"]
for key in ["adhocWarning","devChannelMacOnlyAria","devChannelMacOnly","hourlyMacOnlyAria","hourlyMacOnly"]:
print(key, "=>", repr(section.get(key)))
PY
echo
echo "== ReleaseChannelSection usages =="
rg -n "adhocWarning|devChannelMacOnly|hourlyMacOnly|ReleaseChannelSection" src/renderer/src -SRepository: stablyai/orca
Length of output: 9079
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Verify localization catalog without --fix =="
node config/scripts/verify-localization-catalog.mjs 2>&1 | sed -n '1,220p'
echo
echo "== Extract missing/new keys reported by catalog for non-English locales =="
node - <<'JS'
const fs = require('node:fs');
const files = ['es.json','ja.json','ko.json','zh.json'].map(f => `src/renderer/src/i18n/locales/${f}`);
const en = JSON.parse(fs.readFileSync('src/renderer/src/i18n/locales/en.json','utf8'));
const enSection = en.auto.components.settings.ReleaseChannelSection;
for (const file of files) {
const data = JSON.parse(fs.readFileSync(file,'utf8'));
const section = data.auto.components.settings.ReleaseChannelSection || {};
const missing = [];
for (const [key] of Object.entries(enSection)) {
if (section[key] === undefined) missing.push(key);
}
const obsolete = Object.keys(section).filter(k => enSection[k] === undefined).filter(k => k.endsWith('MacOnly') || k === 'adhocWarning');
if (missing.length || obsolete.length) {
console.log(`== ${file} ==`);
console.log('missing:', missing);
console.log('obsolete:', obsolete);
}
}
JSRepository: stablyai/orca
Length of output: 2127
Run the localization catalog sync for all locale files.
src/renderer/src/i18n/locales/{es,ja,ko,zh}.json are missing the new devChannelMacOnlyAria, devChannelMacOnly, and adhocWarning entries from ReleaseChannelSection. Run pnpm run sync:localization-catalog so these keys are added to every locale catalog entry.
Source: Learnings
Co-authored-by: Orca <[email protected]>
The Actions UI puts its own "Use workflow from" branch picker directly above the ref field, and picking a branch there is what most people read as "build this". Making the field optional means the obvious action is also the correct one; naming a branch explicitly still wins, so main's copy of the workflow runs rather than a stale one on an old branch. Co-authored-by: Orca <[email protected]>
…ai#12051) * feat(updater): add an adhoc release channel for branch builds Hourly covers main. This covers everything that is not main yet: a dispatchable macOS build of an unlanded branch, published to stablyai/orca-adhoc, so the team can run an experimental feature for a few days instead of reasoning about it from a diff. Adhoc sits at the bottom of the version order — 'adhoc' < 'hourly' < 'rc' < stable — so no routine check can walk anyone onto somebody's branch; only an explicit pinned jump reaches one. It gets its own repo rather than sharing orca-hourly's, because a branch build must not appear in the list a developer riding main is looking at. Signed and notarized exactly like hourly, for the same reason: macOS anchors a notarized app's TCC grants on identifier + team, so an unnotarized build reads as a new client and silently loses file access under Documents/Desktop/Downloads. Tags stamp to the second rather than the minute. Hourly runs under a concurrency group and cannot overlap itself; adhoc builds are dispatched on demand, so two people cutting from different branches inside one minute is ordinary — and a minute-resolution tag would collide and fail the second build after its whole pack-and-notarize run. Channel-specific behaviour now derives from one DEDICATED_REPO_CHANNELS list: repo mapping, macOS-only support, and UpdateSource. The RPC schema that validates releaseChannelOverride was a hand-copied enum missing the new channel, which would have rejected the override on its way to the main process; it reads the predicate now. * fix(updater): merge the duplicated shared/types import Co-authored-by: Orca <[email protected]> * fix(ci): default the adhoc build ref to the dispatch branch The Actions UI puts its own "Use workflow from" branch picker directly above the ref field, and picking a branch there is what most people read as "build this". Making the field optional means the obvious action is also the correct one; naming a branch explicitly still wins, so main's copy of the workflow runs rather than a stale one on an old branch. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
What
A third release channel, adhoc, for one-off macOS builds cut from an unlanded branch. Dispatch it, hand someone a build, they run the feature for a few days.
Titles read
1.4.164 • wasm-terminal • 08-01 14:25 • abc1234. The label is where hourly puts its build number — several adhoc builds from different branches coexist, so the picker needs the branch to tell them apart.Why these choices
Its own repo (
stablyai/orca-adhoc), notorca-hourly. A branch build must not appear in the list a developer riding main is looking at. The two are different levels of unvetted.Bottom of the version order.
adhoc<hourly<rc< stable, so no routine check can walk anyone onto somebody's branch — only an explicit pinned jump reaches one. The version script drops any in-flight-rc.Ntail for exactly this reason.Notarized, like hourly. macOS anchors a notarized app's TCC grants on identifier + team rather than cdhash, so they survive an update. An unnotarized build reads as a new client and silently loses file access under Documents/Desktop/Downloads.
Stamped to the second, not the minute. Hourly runs under a concurrency group and cannot overlap itself. Adhoc is dispatched on demand, so two people cutting from different branches inside one minute is ordinary — at minute resolution the second build would collide on the tag and die after its whole pack-and-notarize run.
Pruned by age (30 days), not by count. Low-volume and bursty; a count would either hold one week's experiments forever or evict a build someone is still running after a busy afternoon.
Drift protection
Repo mapping, macOS-only support, and
UpdateSourceall derive from oneDEDICATED_REPO_CHANNELSlist. While wiring that up I found the RPC schema validatingreleaseChannelOverridewas a hand-copiedz.enum(['stable','rc','hourly'])— it would have rejected the new channel's override on its way to the main process, moving the picker while nothing installed. It readsisReleaseChannelnow.Follow-up before the first build
stablyai/orca-adhocexists (public, issues/wiki off). The release GitHub App still needs the new repo added to its installation — I lack org-owner rights to do it via API.bash config/scripts/setup-adhoc-release-repo.shattempts it and otherwise prints the browser steps. No new secrets: the adhoc workflow reads the same App id and key as hourly.Testing
pnpm typecheck,oxlint,oxfmt --check,verify:localization-catalog,verify:localization-extraction— clean•or newline in the dispatch input can't forge the title separator or the$GITHUB_OUTPUTline), and that the two dev channels stay on separate repos🤖 Generated with Claude Code
Made with Orca 🐋