## Summary
The release notes template that CI prefills into every release draft,
the structure sketch of the same sections in RELEASING.md, and the quick
start's upgrade recipe still described the 0.1.13 finish line. Since
then both installers end by opening Raven in the browser, where
first-run setup now happens; `raven upgrade` installs the plugin wheels
too; rerunning the installer cannot pick up a pre-release, since it
resolves `releases/latest`; and a release ships three plugin wheels plus
`raven-constraints.txt` and `raven-plugins.txt` beside the wheel and
sdist. Both files now say so.
The Upgrade section of the template and the "Update a one-line install"
recipe in docs-site/docs/quick-start.md and quick-start.zh.md are
written to match the upgrade code: stop the page, run `raven upgrade`,
and start Raven again only after the upgrade has finished. On Linux and
macOS the command execs the helper in the foreground and returns when
the install is done; on native Windows it spawns the helper and returns
at once, and a `raven web` started before the completion message runs
into the install marker and exits 75. `raven upgrade` installs the
latest stable release unless the install has joined the beta channel, in
which case it installs that channel's pre-release.
Each claim was checked against the v0.2.0 tree: the launch sections of
install.sh and install.ps1, the `web` command and
`_refuse_incomplete_install` in raven/cli/serve_commands.py,
`_handoff_upgrade` and `fetch_latest_for_channel` in
raven/updates/upgrade.py, the first-run gate in ui-web/src/app/boot.ts,
and the asset list in .github/workflows/release.yml.
The 0.2.0 draft is edited in place; this change only reaches the drafts
CI creates from now on. The `__VERSION__` and `__TAG__` placeholders and
the two TODO markers the release job and the notes step rely on are
unchanged.
## Type
- [ ] Fix
- [ ] Feature
- [x] Docs
- [ ] CI / tooling
- [ ] Refactor
- [ ] Other
## Verification
- `git diff --stat origin/main..HEAD`:
.github/release-notes-template.md, RELEASING.md,
docs-site/docs/quick-start.md, docs-site/docs/quick-start.zh.md
- `npx commitlint --from origin/main --to HEAD --config
commitlint.config.cjs`: exit 0
- `PYTHONPATH=. python scripts/check_commit_messages.py
origin/main..HEAD`: exit 0
- `PYTHONPATH=. python scripts/check_source_language.py
origin/main..HEAD`: exit 0
- Non-ASCII scan of the template and RELEASING.md: nothing found (the zh
quick start page is Chinese by design)
- No tests run: markdown only; the one code consumer is the sed in
release.yml, whose placeholders are unchanged. The docs build runs in
CI.
- [ ] Relevant tests pass locally
- [x] Relevant lint / type checks pass locally
- [x] User-facing docs or screenshots are updated when needed
## Risk
Documentation only. Rollback is reverting the commits; the next tagged
release then prefills the old text again.
- [ ] Security impact considered
- [x] Backward compatibility considered
- [x] Rollback path is clear for risky changes
## Related Issues
N/A
---------
Co-authored-by: Claude (claude-fable-5-1) <noreply@anthropic.com>
## Summary
Two fixes to how a release is presented, both found while cutting
0.1.10.
**Install / Upgrade in the release notes.** The template shipped a
single
`curl | bash` line, so every release page told native Windows readers
nothing
about `install.ps1` and told existing users nothing about upgrading --
even
though a release page is mostly read by people who already run Raven.
Install
now has one block per platform, mirroring README: `install.sh` for
Linux / macOS / WSL2, `install.ps1` for native Windows plus the
PowerShell 5.1
direct-URL note (the short URL fails there with `Permanent Redirect`). A
new
Upgrade section gives `raven upgrade` and its three limits: latest
stable only,
so a pre-release still needs the installer (rc tags are published with
`--prerelease` and never become `/releases/latest`); editable checkouts
are
never overwritten; on native Windows an external helper finishes the
job.
**The draft-link trap.** GitHub addresses a draft release as
`releases/tag/untagged-<hash>`, even when the tag already exists -- CI
only runs
after the tag is pushed. Publishing moves the release to
`releases/tag/vX.Y.Z`
and leaves the old URL serving its own stale page with no redirect. With
0.1.10
that draft link had been shared, so after publication two readers hit
the stale
page and concluded, once that the tag was never pushed and once that
publishing
had not taken effect; both were wrong. RELEASING.md now states this at
the
publish step, and the release job prints the draft URL next to the
public one in
its step summary, so whoever cuts the release has the correct link at
hand
instead of copying the address bar. The notes skeleton in RELEASING.md
is also
brought in line with the new template.
## Type
- [ ] Fix
- [ ] Feature
- [x] Docs
- [ ] CI / tooling
- [ ] Refactor
- [ ] Other
## Verification
- `sed "s/__VERSION__/0.1.11/g; s/__TAG__/v0.1.11/g"
.github/release-notes-template.md`
-> both placeholders substituted, no leftover `__` markers
- Applied the same Install / Upgrade section to the pending 0.1.10 draft
release
and reviewed the rendered GitHub page before committing; that draft's
summary,
Highlights, Release Status, and Notes were left untouched
- `release.yml` parsed with `yaml.safe_load`, and the modified `run:`
block
checked with `bash -n`
- Every CI check reproduced locally, all green: `npx commitlint --from
origin/main
--to HEAD --config commitlint.config.cjs`,
`uv run --extra dev python scripts/check_commit_messages.py
origin/main..HEAD`,
`uv run --extra dev python scripts/check_large_files.py
origin/main..HEAD`,
`uv run pre-commit run --from-ref origin/main --to-ref HEAD`, `make
lint-python`,
`make test-python` (5143 passed, 30 skipped), plus
`scripts/check_pr_title.py` and `scripts/check_pr_body.py` on this title
and body
- [x] Relevant tests pass locally
- [x] Relevant lint / type checks pass locally
- [x] User-facing docs or screenshots are updated when needed
## Risk
Documentation, plus one added step-summary write in the release
workflow. No
runtime code path changes; already-published release notes are
unaffected. The
workflow change only adds output -- the release-creation logic is
untouched, and
the `else` branch (release already published) keeps its existing
behaviour.
Rollback is reverting the two commits.
- [ ] Security impact considered
- [x] Backward compatibility considered
- [x] Rollback path is clear for risky changes
## Related Issues
N/A
---------
Co-authored-by: Claude (claude-opus-5) <noreply@anthropic.com>
## Change description
The one-click installers ran `uv tool install` without a lockfile, so
they
re-resolved dependencies to the newest versions allowed by
`pyproject.toml`
instead of the tested set. Once `litellm` 1.92+ shipped a Rust extension
with
Linux-only wheels, Windows/macOS installs broke: with no wheel, the
sdist builds
from source and needs a compiler (`link.exe` / a Rust toolchain).
Fix, without touching the `pyproject.toml` constraints (so `uv lock`
still
governs when litellm upgrades):
- **release.yml**: export the locked dependency set as a
`raven-constraints.txt`
release asset via `uv export --locked --all-extras --no-hashes`.
`--locked`
fails the release if `uv.lock` is stale vs `pyproject.toml`, so we never
ship
constraints that conflict with the wheel's own metadata.
- **install.sh / install.ps1**: pass the constraints to `uv tool install
-c`.
The constraints URL is derived from the wheel URL (same release
directory) so
it always matches the wheel being installed, including the
`RAVEN_WHEEL_URL`
escape hatch. A missing asset or a failed download degrades to an
unconstrained install rather than aborting.
- **raven upgrade** (`upgrade_commands.py`): the self-upgrade helper
does the
same derive-and-pin, so upgrading an installed copy no longer
re-triggers the
litellm source build either.
With the pin, litellm resolves to the locked 1.85.0 (pure-Python, wheels
on all
platforms), so no compiler is needed anywhere.
**Rollout note:** this only takes effect once a new release is cut (so
the
`raven-constraints.txt` asset exists). Existing releases have no such
asset and
the scripts degrade to the current unconstrained behavior. Recommend
cutting an
rc first and verifying a zero-compile install on real Windows and macOS
before
the stable tag.
## Type of change
- [x] Bug fix
- [ ] New feature
- [ ] Document
- [ ] Others
## Related issues
Closes#181
## Checklists
### Development
- [x] Lint rules pass locally
- [ ] Application changes have been tested thoroughly
- [x] Automated tests covering modified code pass
> Unit tests and the full CI preflight pass locally (upgrade-helper
tests cover
> both the pinned and the graceful-fallback paths). End-to-end
Windows/macOS
> installs were not run on real machines; that should happen on an rc
tag before
> the stable release.
### Security
- [x] Security impact of change has been considered
- [x] Code follows security best practices and guidelines
> The constraints URL is derived from the wheel URL, which
`_parse_release_payload`
> already validates as a trusted github.com release path; constraints
only pin
> versions, they do not execute code.
### Code review
- [x] Pull request has a descriptive title and context useful to a
reviewer
---------
Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
## Summary
`release.yml` only uploaded the built wheel to Actions artifacts, so a
pushed tag never produced a downloadable Release asset. `install.sh`
resolves the wheel from the latest Release asset, so a tag silently kept
serving the old version until someone manually created the Release and
attached the wheel. This builds a draft Release with the wheel and sdist
attached (cutting a release becomes one review plus a Publish click),
and documents the conventions in RELEASING.md.
- **release.yml**: on a version tag, create a draft GitHub Release with
the wheel + sdist attached, a dated title, and notes prefilled from a
template. Idempotent re-runs (list endpoint + delete a stale draft,
keeping the tag); prerelease tags (`vX.Y.Z-rcN`) stay out of
`/releases/latest`; the tag is guarded against the pyproject version;
adds `concurrency` and aligns action versions with ci/commits.
- **RELEASING.md** + **.github/release-notes-template.md**: the release
conventions and the CI notes skeleton.
Publishing stays a deliberate human step -- CI only creates the draft.
## Type
- [x] CI / tooling
## Verification
Local (macOS):
- `actionlint` (with shellcheck on the run blocks) clean on release.yml.
- YAML parses; the version/prerelease shell logic and template
substitution run correctly against the real pyproject and tag values.
- Idempotency detection verified against the live releases API
(published tag -> left alone; missing tag -> create).
- Not yet run end to end on a GitHub runner. Before the first stable
release, a `vX.Y.Z-rc1` tag will dry-run the full
draft/attach/idempotency path -- a prerelease never becomes
`/releases/latest`, so users are unaffected.
- [ ] Relevant tests pass locally
- [x] Relevant lint / type checks pass locally
- [x] User-facing docs or screenshots are updated when needed
## Risk
- [x] Security impact considered
- [x] Backward compatibility considered
- [x] Rollback path is clear for risky changes
The job gets `contents: write` (needed to create the Release). No
behavior change until a version tag is pushed; the workflow is dormant
otherwise. Rollback: revert the commit.
## Related Issues
N/A
Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>