Skip to content

docs: basert updates itself, from 0.5.5 - #100

Merged
IsuraManchanayake merged 4 commits into
mainfrom
docs/auto-update
Nov 26, 2026
Merged

IsuraManchanayake merged 4 commits into
mainfrom
docs/auto-update

Conversation

@IsuraManchanayake

Copy link
Copy Markdown
Contributor

Merge when basert 0.5.5 ships. These pages describe automatic updates, which arrive in basert 0.5.5 (basecompute/baseRT-internal#960, paired with superfluid 0.2.2). Merging before then would document behaviour users don't have yet. The pages feed basert.basecompute.co through baseRT-docs' daily sync.

What changes

docs/getting-started/installation.md: the Updating section is rewritten:

  • How it works: a daily background look; a release is taken once it is 3 days old and served by a Superfluid release; the foreground update with its release-notes link, progress bars and "goes back / auto-update off" line; a failure keeps the current version; a running server keeps its engine.
  • Superfluid follows the engine: it comes along with a basert update, comes forward on its own when basert is already the newest, and is never replaced under a server.
  • Package managers:
    • Homebrew (when the formula is that release), global npm, pipx, uv and cargo update in the background, pinned to the release, with a log.
    • pip, project npm, a pinned formula, or a copy the user can't write only get a line naming the command. pip's command is never run.
  • Turning it off: basert self auto-update off|on, BASERT_NO_UPDATE=1, --no-update, plus BASERT_NO_UPDATE_CHECK, which also stops the daily look and line. Also settings.json / BASERT_CONFIG_DIR, and when nothing updates: no terminal, CI, root, informational commands.
  • By hand and going back: self check|update|list|use, --version, basert superfluid install <release>.
  • The environment table gains BASERT_NO_UPDATE and BASERT_CONFIG_DIR.

Other pages:

  • docs/cli/reference.md: --no-update, basert self auto-update [on|off], the hold on self use, basert superfluid install [RELEASE] [--force].
  • docs/guides/serving.md: basert keeps its Superfluid current itself; a row for going back.
  • docs/getting-started/quickstart.md, docs/index.md, docs/cli/overview.md: updates are automatic; self update is the manual path; how to turn it off.
  • docs/reference/security.md: the daily release-listing reads from api.github.com, what an update downloads and checks, and the off switches.
  • docs/reference/engine-releases.md: an automatic update checks the same hash.
  • README.md: install step and command table.
  • install.sh: the closing note says basert updates itself and how to turn that off. It prints this only when the installed basert knows self auto-update, so an older pinned BASERT_VERSION still gets the old line.

The packaging READMEs and base-convert README are not here; the 0.5.5 open-core sync brings their reviewed wording.

Checked

Every command, flag, env var and path was fact-checked against baseRT-internal feat/auto-update (0365f1eb) by two independent checkers. All 12 issues they raised are fixed. python3 -m unittest tests/scripts/test_packaging.py: 69 run, OK. sh -n install.sh passes.

basert 0.5.5 updates itself, and the Superfluid it runs, from a command
run in a terminal; the pages said a command only checks daily and
prints a line.

- docs/getting-started/installation.md: Updating describes the
  automatic updates (the daily look, the three-day hold-off, the
  foreground update with its release-notes link and way back, failures),
  Superfluid following the engine and coming forward by itself, what a
  package manager's install does (Homebrew, a global npm, pipx, uv and
  cargo in the background, pinned to the release; pip and the rest get a
  line naming the command), the switches (self auto-update off|on,
  --no-update, BASERT_NO_UPDATE, BASERT_NO_UPDATE_CHECK, settings.json),
  when nothing updates, and going back (self use, self list,
  self update --version, superfluid install <release>). The environment
  table gains BASERT_NO_UPDATE and BASERT_CONFIG_DIR; the Superfluid
  block shows superfluid install <release>.
- docs/cli/reference.md: --no-update on any command,
  basert self auto-update [on|off], superfluid install [RELEASE].
- docs/cli/overview.md: an Updates section.
- docs/guides/serving.md: basert keeps its Superfluid up to date; a row
  for going back; its own update check is off since basert brings it
  forward.
- docs/getting-started/quickstart.md, docs/index.md: updates are
  automatic; self update is the manual path; how to turn them off.
- docs/reference/security.md: the daily read of the two release
  listings on api.github.com, the downloads an update makes, and the
  switches.
- docs/reference/engine-releases.md: an automatic update checks the
  same hash.
- README.md: the install step and the command table.
- install.sh: the closing notes say basert updates itself and how to
  turn that off, when the installed release can (an older one keeps the
  self update line).
Checked against the 0.5.5 source (baseRT-internal feat/auto-update):

- installation.md: Superfluid comes forward by itself whenever basert is
  not updated first, including the one in basert's data directory beside a
  package manager's install; an update of basert still brings a
  BASERT_SUPERFLUID_DIR Superfluid basert did not install, and one gone
  back to with `superfluid install <release>`, to the newest release that
  serves the new engine; cargo's background update runs while a server
  does.
- superfluid install <release> is from 0.5.5 and takes only a release
  that serves this engine (reference, serving guide, installation, README).
- self auto-update says whether automatic updates are on and which switch
  turned them off, not whether basert updates itself (reference, README).
- overview: a package manager's install updates in the background after
  the command, not first; pip gets a line.
- security: the daily read of the two listings predates 0.5.5; only the
  automatic update after it is new.
A release is taken as soon as it is out; basert self auto-update wait <days>
(updateWaitDays in settings.json, BASERT_UPDATE_WAIT_DAYS for a shell) has it
wait. BASERT_NO_UPDATE and --no-update now turn off the daily look and the
line too, as BASERT_NO_UPDATE_CHECK and superfluid's switches do.
An unreadable settings file still lets the wait it holds govern the line saying a newer release is out.
@IsuraManchanayake
IsuraManchanayake marked this pull request as ready for review November 26, 2026 17:08
@IsuraManchanayake
IsuraManchanayake merged commit 3809756 into main Nov 26, 2026
11 checks passed
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.

1 participant