Repository navigation
ci(agent): one dispatch builds, signs and publishes a Maple Work release - #1420
Merged
Merged
Conversation
A release is now `agent-desktop-build.yml` dispatched with `release=true` after a version bump. Its new `publish` job signs the four update manifests and uploads packages, per-version envelopes and feed pointers to R2 with a 140-line `services/agent-updates/publish.py`, byte-compatible with what installed clients parse. Removed: - agent-updates-publish.yml (verify/reserve/sign/publish, three approvals), the publisher, the release_helpers operator CLI and their tests - the verify-macos/verify-linux/verify-windows/attest-linux jobs and the verification and smoke scripts they ran - the Windows signature probe workflow and its reference checker - verification steps inside the build jobs and packaging scripts (windows-release.py 1510 -> 183 lines) - the packaging script test suites Windows ARM64 no longer builds on master pushes (it was an uncached 48-minute job that also held x64 signing back); it builds nightly, on dispatch and for releases, with its own release cache. The ARM64 packaging rehearsal gets a cache and leaves the ci:windows label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Maple Auth development preview: https://f95458cd.maple-auth-dev.pages.dev Commit: Uses development services. Cloudflare Access applies. Provider OAuth is not configured for PR URLs; use the stable Auth Dev host for OAuth rehearsal. |
Contributor
|
Maple development preview: https://ac86b238.maple-ca8.pages.dev Commit: Uses development API, billing, flags and PCR configuration. Cloudflare Access applies. |
…thon smoke probe Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HTTP/2 stream resets ("Error in the HTTP2 framing layer", "Failed sending
data to the peer") cut NAR downloads short; Nix then resumes from an offset
past the end of the compressed file and cache.nixos.org answers 416, which
fails the job. The CDN serves ranges correctly (a mid-file range returns
206). Set `http2 = false` on the shared setup-nix action and on every direct
Nix install outside the release and EIF workflows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning
added a commit
that referenced
this pull request
Nov 2, 2026
…ml; docs (#1427) * ci: give the ARM64 packaging rehearsal its own cache family The x64 Windows rehearsal restores by the prefix `ci-v1-agent-package-Windows-`, which also matched the ARM64 lane's `ci-v1-agent-package-Windows-ARM64-<hash>` keys (same paths, same store), so once the nightly run saved an ARM64 entry the x64 rehearsal could restore ARM64 objects. The ARM64 family is now `ci-v1-agent-package-ARM64-Windows-`; no ARM64 entry has been saved yet, and the x64 keys are unchanged, so nothing goes cold. C4 now checks behaviour instead of only pinning the text: with each job's runner.os filled in, no Agent packaging family's key or restore prefix can match another cache's keys, and no other cache's prefix can match a packaging key. It fails on the old ARM64 key in both directions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: the nightly report waits for ci.yml's scheduled run GitHub creates the scheduled runs 5-6.5 hours after their cron times, and nightly.yml's Report job starts only about an hour after ci.yml's run does, while that run takes 35-60 minutes. On 2026-10-30 the report ran at 11:49:49, ci.yml's run finished at 11:52:23, and the ci-nightly issue said "still in_progress". The Report job now polls the API (the token's existing actions: read) once a minute until today's scheduled ci.yml run has finished, for at most CI_WAIT_MINUTES (120 on schedule, 0 for dispatched dry runs), then decides as before; a run still missing or unfinished after the wait is reported as it was. API errors while waiting are retried. Its timeout grows to 135 minutes. No trigger, required check or permission changes. The cron comments and the docs no longer present cron times as start times or rely on one schedule starting before another. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: describe what the packaging rehearsals and nightly builds do now #1420 removed the verification and smoke steps from `just package-rehearsal` and the Agent's post-build verify jobs, and #1401 added the native ARM64 lane, but some names and docs still said otherwise: - the Linux and macOS rehearsal step names no longer claim to verify and smoke-test; - docs/ci.md: the Dev nightly builds and signs (no verify), for every platform including Windows ARM64; ci:package includes the ARM64 installer (the skill's label table too); - lanes.py: the 16-core GitHub Windows runner now serves only packaging, and the free runner the updater suites; - the skill: the Agent PR long pole is agent-macos or agent-test (28 Agent PR runs since 10-29: agent-macos 11, agent-test 11, agent-windows 3), the ARM64 runner constant and its release cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: bound the nightly report's API calls and close review gaps The Report job now waits up to two hours, so a hung `gh api` call could hold it until its 135-minute timeout and leave the night unreported. Every call now times out after 60 seconds, and a timed-out poll is retried like a failed one. Tests now cover what the review found untested: a red or cancelled ci.yml run ends the wait at once; CI_WAIT_MINUTES is read as minutes (the 10-30 replay needs three polls, more than 120 seconds allows); nightly.yml's Report job outlasts its longest wait, and a dispatched dry run does not wait; and every API call carries a timeout. Docs: the Agent Dev nightly signs only the macOS and Windows packages (the Linux bundle is attested only when published); GitHub has started the scheduled runs 5-7 hours late; and `ci-v1-agent-arm64-release-` joins the release-reserved prefixes ci.yml must never write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A release is one command
That run builds and signs Prod for macOS, Linux, Windows x64 and Windows ARM64. Then a new
publishjob signs the four update manifests and uploads the packages, per-version envelopes and feed pointers to R2. Nobody downloads or checks anything.Before: a master push build, then a separate
Publish Agent Updatesdispatch with run ID, version, notes and three platform toggles. That ran verify → reserve → sign → publish, with threeupdates-productionapprovals, plus an operator CLI that re-downloaded and re-verified every stage by hand and ended with a 125-request live check.Speed
Verify downloaded */Attest Linuxjobs are gone, as are the in-job verify steps (the deps/SQLCipher graph checks, PE/host-spawn fixtures, archive scanners and Nix version checks).agent-package-windows-arm64(35–40 min uncached) leaves theci:windowslabel and gets a nightly-saved cache like x64. It no longer runs the updater tests or the install smoke.Ordinary PR CI was not affected: unlabeled Agent PRs are at p50 4.0 / p90 5.5 min to
ci-ok.What was cut
services/agent-updates/publisher/(publisher.py,release_helpersoperator CLI, 17 test files)agent-updates-publish.yml,agent-windows-signature-probe.yml, signature reference checkervalidate-release-archive/windows_signature_probeexampleswindows-release.pysmoke harness, re-extraction and inspections (1,510 → 183 lines)release-info.pyverify/extract/compare, macOS verify-only commandsThe docs were rewritten for a new agent:
apps/maple-agent/docs/updates.md(403 → 87 lines),desktop-builds.md(344 → 106),services/agent-updates/README.md(209 → 52), plus the publication section of the develop-maple-agent skill.Compatibility with installed clients
The feed paths, R2 layout, envelope and v1–v4 manifest bytes are unchanged;
buildis still the producing run's number. I checkedpublish.py's output from fake packages and a throwaway key with:parse_envelope+minisign -V(all 8 envelopes);manifest::verify_envelopefor all four targets, and the legacy pre-Linux v1 validator (tests/fixtures/legacy-v1-validator.rs);updates.maple.aifeed's shape (sorted compact JSON, same comments).Windows: the updater archive is now written from the signed payload directory instead of re-extracting it from the installer with 7-Zip. These are the same bytes in the same order, so the tar is identical.
The publish job refuses a version that is already live, because release paths are cached as immutable. Bump the version and release again.
Verification
nix flake check(actionlint, workflow policy, contracts, 536 CI script tests): greenhosted_oauth::dropping_wait_closes_listener_without_a_callback), which passed 5 of 5 on rerunci:packageon this PR runs the trimmed Linux, Windows x64 and Windows ARM64 packagingAfter merge
AGENT_UPDATES_ENABLEDandAGENT_UPDATE_PUBLIC_KEYare unused now and can be deleted.updates-productionstill has a required reviewer. That is one click per release instead of three; removing it would also affect Research'supdates-publish.yml.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.