Skip to content

chore: set version to 0.9.5-rc4 - #2838

Merged
vybe merged 4 commits into
devfrom
chore/release-0.9.5-rc4
Sep 17, 2026
Merged

vybe merged 4 commits into
devfrom
chore/release-0.9.5-rc4

Conversation

@obasilakis

@obasilakis obasilakis commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps VERSION from 0.9.5-rc3 to 0.9.5-rc4 so the v0.9.5-rc4 tag can be cut off dev.

It also points scripts/deploy/trinity-do-create.sh's default TRINITY_IMAGE_TAG at v0.9.5-rc4, which test_2380_installer_release_pin ties to VERSION.

Why

The DigitalOcean Marketplace snapshot builds from a pinned tag, not from a branch — packer/digitalocean/scripts/01-provision.sh feeds one TRINITY_IMAGE_TAG to both git clone --branch and docker pull, and the Packer template rejects latest. So a tag has to exist before a snapshot can be built, and publish-images.yml only fires on a v* tag push.

Step 8-RC of the release playbook hard-fails unless VERSION equals the tag minus its v:

test "$(tr -d '[:space:]' < VERSION)" = "${TAG#v}" || exit 1

This is release-candidate mode: no dev → main merge, no Closes block, no issue sweep, no release notes. The tag closes nothing and moves no branch.

What rc4 carries that rc3 does not

rc3 was tagged off feature/ent580-582-first-run, not off dev. Its packer bundle is near-identical to today's, but it predates these landing on dev:

rc4 is the first tag in this series whose lineage is actually dev.

Pre-release checks

  • latest guard present — publish-images.yml:200 carries !contains(github.ref_name, '-'), so the RC will not move latest (Step 2.12, not overridable)
  • No open P0 issues outside dev
  • Secrets scan over v0.9.5-rc3..dev clean
  • CI green on dev tip 0bddbc95

🤖 Generated with Claude Code

Release candidate cut off dev for the DigitalOcean Marketplace snapshot
build. The VERSION file is what /api/version reports and what tags the
agent base image, so it carries the full RC string including the suffix.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@vybe

vybe commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

merge-train: not on this train — fails its own check.

regression diff on head 2b50854f reports one new failure introduced by HEAD: test_2380_installer_release_pin::test_installer_default_tag_matches_the_version_file. VERSION moved to 0.9.5-rc4 but the installer's default tag pin did not move with it. Bump the installer pin alongside VERSION (the test names the file) and the run goes green.

This is a release-flow chore rather than a train member either way — it merges when the rc tag is cut. Rides on its own once fixed.

@obasilakis
obasilakis requested a review from vybe September 16, 2026 11:37
obasilakis and others added 2 commits September 16, 2026 13:54
The installer hardcodes the release it fetches, and the guide tells operators
to run it straight off a tag with no environment set. Left at rc3, a script
fetched FROM the rc4 tag would clone and pull rc3 — a successful install of
the wrong release, invisible to the operator and to CI.

test_2380_installer_release_pin fires on exactly this: it ties the default to
the VERSION file so the bump cannot land alone. Caught by the regression-diff
job on PR #2838.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The DigitalOcean installer hardcoded the release it fetched, and the guide
tells operators to run it straight off a tag with no environment set, so that
literal was what they got. A test tied it to the VERSION file to stop a bump
landing alone -- which worked, and cost a red CI run per release to deliver a
reminder someone then had to act on. That is bookkeeping, not a safeguard.

It now reads releases/latest at run time. There is no literal to keep in step.

Why an endpoint and not the `latest` image tag: one string feeds both
`git clone --branch` and `docker pull`, and `latest` is a Docker tag, not a
git ref -- it cannot serve the clone. `releases/latest` also EXCLUDES
pre-releases, which is the property that matters here. /release cuts every RC
with --prerelease precisely so an RC can publish images and seed a marketplace
snapshot without becoming what operators install, and publish-images.yml
withholds the `latest` image tag from hyphenated versions under the same rule.
Resolution today returns v0.9.0, correctly skipping rc1 through rc4.

Resolution failure aborts rather than falling back to a baked-in tag: a stale
fallback is exactly the defect being removed -- a successful install of the
wrong release, invisible to the operator and to CI. The message names the
override so a rate-limited API is not a dead end.

The guard is inverted rather than deleted: it now holds the ABSENCE of a
literal open, checks the resolver reads releases/latest rather than the
pre-release-inclusive list, and checks the failure path stays fatal. Verified
by reintroducing a pin and watching it fail.

Two pins deliberately survive, and neither is bookkeeping:

  - packer/digitalocean/trinity.pkr.hcl still REQUIRES an explicit tag and
    rejects `latest`. Marketplace review approves a specific artifact, and a
    snapshot resolving a moving target would serve a different Trinity on
    every droplet created from one reviewed image (#2281).
  - The single-server guide still recommends pinning TRINITY_IMAGE_TAG in
    .env, because an unpinned install turns the operator's next re-run into
    an unscheduled upgrade.

Refs #2380, #2281

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@vybe

vybe commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

merge-train 2026-09-16: not on this train. CI is green, but the third commit (66569a1b, "the installer resolves its release instead of carrying one") breaks the installer until v0.9.5 ships as a full release.

What breaks. scripts/deploy/trinity-do-create.sh:39-47 resolves the tag from releases/latest, which today returns v0.9.0:

$ gh api repos/abilityai/trinity/releases/latest --jq .tag_name
v0.9.0

The droplet's first-boot script (:228) then runs start.sh --provision --cloud digitalocean … from that tag. v0.9.0's start.sh has no --provision (git show v0.9.0:scripts/deploy/start.sh | grep -c -- --provision returns 0), so on a stock Ubuntu droplet it stops at the Docker pre-flight. Any run without TRINITY_IMAGE_TAG set, including from the rc4 tag this PR exists to cut, creates a billed droplet that never installs and times out after 15 minutes. Commit 2's pinned v0.9.5-rc4 default did not have this problem.

Why no test caught it. The test that tied the installer to VERSION was deleted, and nothing else runs the resolver. test_2380_installer_portability.py always sets TRINITY_IMAGE_TAG, so only the override branch executes. The remaining pin test is source-text only. Three mutations all stayed green: pointing curl at the plural releases endpoint, adding a || echo v0.9.0 fallback, and an indented hardcoded tag.

Also stale: hosted-install.md:154 and its "Release pin" row at :171, PROV-014's "clones the pinned tag" wording, and the script header at :6.

Two ways forward, your call:

  1. Drop 66569a1b from this PR so it is the version bump its title says, and land the resolver on its own once v0.9.5 is a full release.
  2. Keep it, but give the resolver a floor (the first release whose start.sh has --provision), and add a test that executes the resolver against a stubbed curl.

Rides the next train once fixed.

…arrying one"

This reverts commit 66569a1.

releases/latest returns v0.9.0 today, and v0.9.0's start.sh has no
--provision. Any run without TRINITY_IMAGE_TAG, including one fetched from
the rc4 tag this PR exists to cut, created a billed droplet that never
installed and timed out after 15 minutes (review on #2838).

The resolver can land on its own once v0.9.5 is a full release, when
releases/latest first returns a tag that can provision. Until then any floor
is either this pin again or an installer that refuses to run. The commit is
kept on feature/2380-installer-resolves-release.

This PR goes back to being the version bump its title says, with the
installer pinned to v0.9.5-rc4 and the VERSION-tie test restored.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@obasilakis

obasilakis commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Went with option 1. 66569a1b is reverted in afbac824, so the PR tree is byte-identical to commit 2: VERSION is 0.9.5-rc4, the installer default is pinned to v0.9.5-rc4, and the VERSION-tie test is back. test_2380_installer_release_pin.py and test_2380_installer_portability.py pass locally (18 passed).

The stale spots you listed (hosted-install.md:154/:171, PROV-014, the script header at :6) all describe the pinned model, so the revert makes them accurate again.

Why not option 2: the floor is the first release whose start.sh has --provision, which is v0.9.5, and v0.9.5 isn't a full release yet. Until it is, a floor can only do one of two things. It can fall back to an RC literal, which is the pin under another name, or it can refuse to run, which is an installer nobody can use. Neither beats the pin.

The resolver can land on its own after v0.9.5 ships, with the docs you flagged updated alongside it.

I used a revert rather than a force-push so your review stays tied to the commits it read. It squash-merges the same either way.

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated: 2-line version bump (VERSION + DO installer default tag), Lane B, security greps clean, CI green; release-pin/provenance suites pass (144) on the merge with current dev tip 012292b.

@vybe
vybe merged commit 3a47f74 into dev Sep 17, 2026
25 of 26 checks passed
obasilakis added a commit that referenced this pull request Sep 17, 2026
The rc5 bump moves to its own chore PR, as #2838 did for rc4, so this fix
can merge on its own and the bump is not coupled to it. Review finding I1 on
#2862: the bump must not land ahead of #2861 while dev is red.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@obasilakis obasilakis mentioned this pull request Sep 17, 2026
1 of 3 tasks
obasilakis added a commit that referenced this pull request Sep 17, 2026
…first boot serves again (#2862)

* fix(onboarding): the getting-started checklist updates without a reload

The store fetched the checklist once per page load, so a milestone reached
mid-session (creating an agent from the dashboard, or chatting, scheduling or
connecting a channel on another page) stayed unticked until a browser refresh.

Re-read on every mount, so returning to the dashboard picks up milestones
reached elsewhere, and whenever the agent count changes, since agents are
created and deleted from the dashboard itself.

Refs Abilityai/trinity-enterprise#238

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(deploy): make the rendered Caddyfile readable by the caddy user

The 1-Click first boot runs start.sh under `umask 077`. Since the Caddyfile
is rendered to Caddyfile.new and moved into place, the new file came out
0600 root, the `caddy` service user could not read it, the restart failed,
and provisioning stopped before Trinity started: a droplet created from the
v0.9.5-rc4 snapshot never served HTTPS. Overwriting in place had kept the
package's 0644, so rc3 booted.

chmod 0644 before the move (the file holds no secrets). The new test runs
provision_caddyfile under umask 077 and asserts the installed mode.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* chore: set version to 0.9.5-rc5

Bumps VERSION to 0.9.5-rc5 and points trinity-do-create.sh's default
TRINITY_IMAGE_TAG at v0.9.5-rc5 (tied to VERSION by
test_2380_installer_release_pin), so the v0.9.5-rc5 tag can be cut off dev
with the Caddyfile permission fix for the DigitalOcean Marketplace snapshot.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(onboarding): don't re-ask an absent checklist surface on every forced read

The checklist now forces a read on every mount, sidebar expand and fleet-size
change. On OSS (404) and unentitled (403) builds that turned one swallowed
request per session into one per event, each with a console 404, for a card
that never renders. A 404/403 now marks the surface absent for the session;
a genuine failure (5xx) stays retryable.

Addresses review finding I1 on #2862.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* Revert "chore: set version to 0.9.5-rc5"

The rc5 bump moves to its own chore PR, as #2838 did for rc4, so this fix
can merge on its own and the bump is not coupled to it. Review finding I1 on
#2862: the bump must not land ahead of #2861 while dev is red.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* chore: set version to 0.9.5-rc5 (restored)

Reverts the split in ea0649a. Agreed with the reviewer to keep the rc5 bump
here and merge in order instead: #2861 (green dev) first, then this PR, then
tag v0.9.5-rc5.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants