docs(setup): describe refreshing another installation's registration

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
gensokyo-devandgensokyo-dev authored and Ysopwnable committed 2026-11-29 11:02:35 +08:00
1 parent 263d03d915
commit 88dfef4e33
2 files changed
+15 -9

No files matched your search

+7 -4
View File
@@ -24,8 +24,10 @@ version updates. When no eligible alias exists, setup uses the selected
installation paths. This also applies when setup
runs through a package runner: retain the selected cache entry and runtime while
the registration uses them. Clearing either makes startup fail without resolving
another package from the client's project. Restore the same installation before
repairing it; an unidentified registration remains untouched. See
another package from the client's project. Setup refreshes a registration of
another installed `rea-agents` package; when that installation is gone, restore
it before repairing the registration, because an unidentified registration
remains untouched. See
[installation and recovery](installation.md#package-runners-and-global-installation).
For a supported Aube v2 package shim, setup saves a wrapper around the shim so
@@ -57,8 +59,9 @@ the runtime command, preserving the REA script arguments and other settings.
Rerun setup to review the registration and restart the client.
Doctor JSON records each registration's `command_identity` as `owned`, `foreign`,
or `unknown`, separately from its readiness `state`. An invalid timeout or client
policy can leave ownership established. Setup uses that recorded observation for
or `unknown`, separately from its readiness `state`. A launcher of another
installed `rea-agents` package or runtime is `owned` with a `stale` state. An
invalid timeout or client policy can leave ownership established. Setup uses that recorded observation for
its default client selection, then inspects selected configuration again before
planning writes; a missing or unreadable launcher remains unknown.
+8 -5
View File
@@ -2242,11 +2242,14 @@ untouched. Setup does not prewarm a separate package-runner command.
If setup itself runs from a package-runner cache, the registration depends on
that cache entry and the selected runtime remaining installed. Removing either
makes startup fail; it does not download or resolve another package. Restore the
same installation and rerun setup. Changing package requests, cache roots, or
runtimes can create a different installation identity. If the old entry cannot be
identified, restore it first or manually remove the confirmed REA registration
before running setup again. A global installation provides a more durable path.
makes startup fail; it does not download or resolve another package. Changing
package requests, cache roots, or runtimes selects a different installation. Doctor
reports a registration of another installation as owned but stale, and setup
refreshes it with a backup, when its script still resolves to the CLI script that
an installed `node_modules/rea-agents/package.json` names. A removed cache entry
leaves ownership unknown: restore the same installation first or manually remove
the confirmed REA registration before running setup again. A global installation
provides a more durable path.
## Package runners and global installation