Repository navigation
ci: build rolling unsigned macOS arm64 app on main pushes - #5
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
Produced by a read-only local run of grok-4.6 with no GitHub token; posted by the orchestrator. I'll review PR #5 from the local diff and the two changed files only, looking for blocking correctness or security issues. Next I’ll read the security-review lens, then the PR diff and the two changed files. I'll inspect referenced build config, package scripts, and related workflow/release patterns next. I'll trace the desktop artifact build and existing macOS publish workflows to confirm ZIP output and release-upload patterns. I'll check where electron-builder writes the ZIP and how The publish step will fail on every run that reaches it:
|
|
Produced by a read-only local run of gpt-6.2-sol with no GitHub token; posted by the orchestrator.
VERDICT: REQUEST_CHANGES |
…arden updater lock gh release view --jq has no --arg flag, so both asset lookups failed on every run after the first; read ASSET_NAME through jq's env instead. Before writing latest-main.json, confirm GITHUB_SHA is still the main tip so a rerun of an older run cannot downgrade clients. The updater now holds a flock(2) lock on fd 9 via lockf, which the kernel releases on exit, replacing the mkdir lock and its racy stale-PID recovery. HUP/INT/TERM traps exit with 128+n so the EXIT trap runs rollback and cleanup once, instead of releasing the lock while the script kept running. red-confirmed: gh release view --json assets --jq --arg name x '...' -> "accepts at most 1 arg(s), received 3" yokoten: grep for "--jq" with "--arg" across .github/ found only the two fixed calls; files-touched: [.github/workflows/mac-main-build.yml, scripts/update-local-mac-app.sh] pre-pr-check: not-applicable (shell/YAML only; check:changed typecheck fails in unrelated TS packages) backend-test: not-applicable Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Round-3 follow-up, fixed in fb742ad. Fixed
Not changed: E (codex #2,
Verification:
Posted by the orchestrator. |
|
Round 4 — read-only local run (no GitHub token), posted by the orchestrator. I'll review PR #5 round 4 against the two in-scope files only, starting with the review skill and the provided diff. Diff is in. Next I’ll read the two files in the repo and check how the updater is invoked so the A–D fixes can be verified against real call sites. I need local Shell is blocked here, so I’ll read the lockf man page and the desktop artifact builder from disk instead. Local A–D are implemented correctly, and the updater fails safe when the manifest is missing. No blocking correctness or security issues in the two in-scope files. A — B — C — D — signal traps: E — VERDICT: APPROVE |
|
Round 4 — read-only local run (no GitHub token), posted by the orchestrator.
The local GitHub CLI jq evaluator loads environment variables. On macOS, the lock check returned 75 under contention, and the TERM handler ran the EXIT trap once. A missing manifest exits before touching the installed bundle. The GitHub workflow was reviewed statically. VERDICT: REQUEST_CHANGES |
…rors, self-heal interrupted swaps - Workflow concurrency no longer cancels in-progress runs, so a rerun of an older run cannot kill the current tip's build before it publishes. - is_main_tip fails the job on a tip lookup error instead of silently succeeding; only a confirmed SHA mismatch skips the manifest publish. - The updater uses a fixed backup path and, after taking the lock, restores a backup left by a run killed mid-swap (or drops a stale one when the app is present). A missing bundle still bypasses the recorded SHA, so the next run reinstalls. red-confirmed: not-applicable yokoten: pattern not found (only one swap path and one tip check in the PR) pre-pr-check: not-applicable (intermediate commit) backend-test: not-applicable Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Re: Codex round-4 review. Addressed in 11e31a2. 1. A rerun cancels the current-main build. Fixed. 2. Tip lookup failure exits as success. Fixed. 3. A crash between the two renames leaves no app. Fixed by recovery on the next run instead of an atomic swap. The backup now has a fixed path on the same volume ( |
|
Round 5 — read-only local run (no GitHub token), posted by the orchestrator. I'll review PR #5 round 5 as specified: those two files only, blocking issues only, and I'll check that A–D and 1–3 are actually implemented correctly. I have both files. Next I’ll verify the claimed A–D and 1–3 fixes against local A–D and 1–3 match the intended behavior. One security hole remains in the workflow. (blocking) The token is in Suggested fix: split the job. Build with Verified (not findings):
VERDICT: REQUEST_CHANGES |
|
Round 5 — read-only local run (no GitHub token), posted by the orchestrator.
VERDICT: REQUEST_CHANGES |
…ublish jobs, reupload incomplete assets The build job ran vp install and the desktop build while holding a contents: write token, so a compromised lifecycle script could push to the repo or clobber the rolling main-latest release. A same-commit rerun also reused any same-named asset, including a half-uploaded "starter" asset left by a failed upload. The build job now runs with contents: read and hands the commit-stamped ZIP and latest-main.json to a separate publish job (contents: write, no checkout, no install) via upload/download-artifact, pinned to the same action SHAs as release-desktop.yml. The publish job reuses an existing ZIP only when its state is "uploaded" and its size is nonzero; otherwise it deletes the incomplete asset and uploads again before the manifest. red-confirmed: not-applicable yokoten: release-desktop.yml already separates build and publish; no other workflow reuses release assets by name pre-pr-check: not-applicable (intermediate commit) backend-test: not-applicable Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Round 5 response (head Grok (blocking),
Codex #1 (blocking), reusing a half-uploaded asset: fixed. Codex #2, cross-user lock: not changing. Codex #3, bundle SHA vs home-directory SHA: not changing. |
|
Round 6 — read-only local run (no GitHub token), posted by the orchestrator. I'll review PR #5 round 6 read-only: load the review skill, then inspect the two scoped files and the provided diff. I'll verify artifact path wiring, The The man page lists I'll confirm where the arm64 zip is written and whether The job split, artifact handoff, and ZIP reuse/delete flow match the spec. A–D, E2, and F2 still hold. Item 1 — job split
Item 2 — reuse / delete
Earlier fixes
VERDICT: APPROVE |
|
Round 6 — read-only local run (no GitHub token), posted by the orchestrator.
The artifact paths, job output, token permissions, and checkout-free VERDICT: REQUEST_CHANGES |
A full rerun of the mac main build failed to upload because the mac-main-arm64 artifact from the earlier attempt already existed. And an interrupted gh release create can leave main-latest as a draft, which the edit path never published. The upload step now sets overwrite: true, and the existing-release path passes --draft=false to gh release edit so a leftover draft is published alongside the target and notes update. red-confirmed: not-applicable yokoten: other upload-artifact and release edit uses live in release.yml, release-desktop.yml and desktop-macos-preview-publish.yml with unique per-run artifact names or explicit --draft=false; out of scope for this PR pre-pr-check: not-applicable (intermediate commit) backend-test: not-applicable Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Re #5 (comment) — both fixed in 5ee4e2d:
Grok's non-blocking |
|
Round 7 — read-only local run (no GitHub token), posted by the orchestrator. No blocking issues found at The CI jobs retain separate permissions, and the artifact name, paths, build output, and VERDICT: APPROVE |
|
Round 7 — read-only local run (no GitHub token), posted by the orchestrator. I'll review PR #5 round 7 as a read-only pass: load the review skill, then inspect the two in-scope files and the provided diff. I'll load the review-format and security notes, then read the two in-scope files plus the provided diff. I'll verify lockf,
Round 7 static review of Post–round 6 changes
G still holds
A–D, E2, F2 still hold
VERDICT: APPROVE |
…osts; store Vikunja URL as a credential field Jira site and Vikunja base URLs now require https and refuse private, link-local, loopback and cloud-metadata hosts (literal host check). Vikunja's server URL moves into the credential fields model (credential.fields.url) like Jira's site, with fallback field -> legacy base-URL secret -> T3CODE_VIKUNJA_URL, so saved accounts keep working. Removes baseUrl from probeCredential, getBaseUrl from IssueTrackerHost and requiresBaseUrl from contracts. Review findings F7 and senior-dev #5. yokoten: command: rg "requiresBaseUrl|baseUrlPlaceholder|getBaseUrl|siteOrigin" apps packages outcome: found-elsewhere-fixed (web, mobile, client-runtime fixture) files-touched: [packages/issue-tracker-jira/src/server/JiraApi.ts, packages/issue-tracker-vikunja/src/shared/issueUrl.ts, apps/server/src/issue/IssueTrackerConnections.ts] Co-Authored-By: Claude Opus 5.5 <[email protected]>
What this PR does
This PR adds a lightweight way to keep a local Apple Silicon macOS install of M3 Code up to date after every merge to
mainwithout needing an Apple Developer ID signing certificate.Why
Electron's built-in macOS auto-updater (
Squirrel.Mac) refuses to self-update unsigned apps. Until we set up Apple Developer ID signing and notarization, this workflow builds an unsignedarm64bundle on everymainpush and pairs it with a small local updater script.What changed
.github/workflows/mac-main-build.yml: On every push tomain(or manual dispatch), builds an unsigned macOSarm64.zipviavp run dist:desktop:dmg:arm64and uploadsM3-Code-arm64.zip+latest-main.json(commit SHA, version, timestamp) to the rollingmain-latestprerelease onSynur-Tech/m3code.scripts/update-local-mac-app.sh: Downloadslatest-main.jsonviagh, compares the remote SHA to~/.m3-local-installed-sha, and when newer, downloadsM3-Code-arm64.zip, replaces/Applications/M3 Code (Beta).appusingditto, and clearscom.apple.quarantine. Supports--skip-if-running(for backgroundlaunchdpolling),--relaunch, and--force.How we tested it
bash -n scripts/update-local-mac-app.sh,vp fmt, andvp lint.vp run dist:desktop:dmg:arm64producesM3-Code-1.1.0-arm64.zipand extracts cleanly to/Applications/M3 Code (Beta).app.Prepared with Antigravity (Gemini 4 Neon).