@@ -18,12 +18,110 @@ Choose one installation owner and keep it authoritative:
1818| Isolated CLI on an externally managed machine | ` pipx ` | ` pipx install loopx ` | ` pipx upgrade loopx ` , then refresh LoopX host material |
1919| Existing uv tool environment | ` uv ` | ` uv tool install loopx ` | ` uv tool upgrade loopx ` , then refresh LoopX host material |
2020| Contributor or source qualification | Git checkout | clone/fetch plus ` scripts/install-local.sh ` | update the checkout explicitly, rerun the installer, validate ` loopx-canary ` before promotion |
21- | No-clone recovery fallback | LoopX archive snapshot | published archive installer | ` loopx update apply ` |
21+ | No-clone CLI or main preview | LoopX runtime snapshot | published installer with a prebuilt runtime | ` loopx update apply ` |
2222
2323PyPI is the canonical source for normal releases. A source checkout is a
2424development and qualification surface, not a second implicit package channel.
2525The archive snapshot remains a recovery path rather than a competing default.
2626
27+ ### Stable, main and source builds
28+
29+ ` loopx update apply ` and ` loopx upgrade ` preserve the installation owner. pip
30+ and pipx continue to use their own environment and configured package index;
31+ they do not become archive installs. Stable PyPI wheels already contain Chat's
32+ frontend. Node is needed for the TypeScript runtime described below, but npm
33+ and a local frontend build are not part of a normal package upgrade.
34+
35+ Managed snapshots inherit their recorded repo and ref, including a pinned SHA.
36+ New snapshots default to stable. Stable snapshots use the runtime attached to
37+ the latest stable release; main uses the latest ** qualified** main snapshot,
38+ which can lag the branch while CI runs. The plan records its exact revision,
39+ version, size and SHA-256 before downloading. Missing metadata or a missing
40+ artifact stops the update without starting a source build. An older, diverged
41+ or unverified target requires explicit ` --allow-downgrade ` intent.
42+
43+ ``` bash
44+ loopx update plan
45+ loopx upgrade --ref main # snapshot installs only
46+ loopx update apply --ref stable --allow-downgrade
47+ loopx upgrade --ref main --source # explicit source download + local build
48+ ```
49+
50+ To acquire a main snapshot without a checkout, use the published installer
51+ with ` LOOPX_REF=main ` . To build another ref, set
52+ ` LOOPX_BUILD_FROM_SOURCE=1 LOOPX_REF=<ref> ` before running that installer, or
53+ use the existing checkout installer. ` LOOPX_ARCHIVE_URL ` remains an explicit
54+ developer archive path. These choices never silently replace a pip/pipx or
55+ live-checkout owner. App updates continue through the native signed updater;
56+ a CLI-only installation does not install a Desktop App.
57+
58+ Updates run in an owned background worker even when the caller waits for the
59+ result. A terminal/Agent disconnect does not cancel it. Repeating apply while
60+ that installation's update is running observes the existing operation. To
61+ return immediately and read back later:
62+
63+ ``` bash
64+ loopx --format json upgrade --background
65+ loopx --format json update status
66+ loopx --format json update status --operation-id < returned-id>
67+ ```
68+
69+ Windows console launchers retain their existing self-uninstall protection in
70+ the original process. Follow the printed ` python -m loopx.entrypoint ` retry
71+ to update safely and use the durable worker; a worker never hides a locked
72+ console executable from that guard.
73+
74+ JSON stdout contains the final result (or background operation descriptor).
75+ Progress is NDJSON on stderr: operation id, phase, downloaded bytes, total
76+ (` null ` when unknown), observed rate, elapsed time and last progress time.
77+ The worker refreshes observation every five seconds and marks ten seconds
78+ without progress explicitly; a heartbeat is not a new byte or completed stage.
79+ Native App downloads show bytes, unknown totals, rate and stalled observation
80+ in ** LoopX updates** , with existing check/install/recovery actions unchanged.
81+
82+ Runtime downloads cache hash-verified bytes across invocations. Partial data
83+ is appended only with a matching strong ETag, origin, exact Content-Range and
84+ length; ignored/rejected Range restarts within the bounded budget. A complete
85+ cache hit is verified again before use. ` LOOPX_UPDATE_CACHE ` selects the cache;
86+ ` LOOPX_UPDATE_STATE_DIR ` selects private operation readback. Failed or killed
87+ workers remain failed/interrupted, and status reads never replay installation.
88+ Normal HTTP(S) proxy environment variables remain authoritative. Optional
89+ ` LOOPX_DOWNLOAD_MIRRORS ` is a comma-separated list of operator-trusted HTTPS
90+ base URLs serving identical filenames; publisher-listed sources are also
91+ supported. Timeouts or sustained low throughput can switch sources, always
92+ with the same expected revision/hash/size. This is not a claim that regional
93+ mirrors have been deployed or that any country's latency has been measured.
94+
95+ The prebuilt runtime retains CLI/runtime code, skills and references, text
96+ documentation, developer smokes and the verified frontend. Named presentation
97+ videos/screenshots and frontend development sources are in the accompanying
98+ optional resource archive; illustrations remain available in versioned online
99+ docs. The release inventory lists every retained
100+ and optional file. Installers validate a candidate before activation and restore
101+ owned executable links on activation failure. Data-format migrations retain
102+ their independent receipts/backups; restoring an executable does not reverse
103+ migrated data. Existing managed-service ownership and pending-work restart
104+ guards still apply.
105+
106+ 中文:普通 stable 用户继续使用 PyPI;pip/pipx 保留原环境和索引。snapshot 沿用
107+ 既有 main/stable/固定 SHA,默认取带前端的预构建包。main 指最新通过 CI 的快照;
108+ 源码构建须显式 ` --source ` ,不会静默降级到整仓下载。旧版本或无法核实的目标须
109+ 明确 ` --allow-downgrade ` 。` --background ` 返回 operation id,断线后用
110+ ` update status ` 回读原升级;JSON 结果在 stdout,持续进度在 stderr。下载缓存、
111+ 续传和可选可信镜像都校验同一制品;代理沿用用户配置。恢复旧可执行文件不回滚
112+ 已迁移的数据。无 Node 时无需构建前端,但运行控制平面仍需下面要求的 Node。
113+
114+ Release rollout: publish and qualify the stable runtime before deploying the
115+ new public bootstrap. The Pages lane checks this dependency and retains the
116+ previous deployed site if it is unavailable. ` runtime-snapshots.yml ` builds
117+ main artifacts; ` release-artifacts.yml ` reuses the release frontend/wheel lane
118+ for stable. Main archives and revision-addressed metadata share one dedicated
119+ ` runtime-main ` release, keeping product release history and stable-predecessor
120+ discovery intact; only the latest-channel metadata is replaced. Clean
121+ install/upgrade, package contents, byte size, provenance and
122+ phase timings are release evidence. A 20 MiB runtime is an evaluation target,
123+ not a waived dependency check or a global p50/p95 promise.
124+
27125LoopX's Effect Program core runs in a managed, idle-exiting TypeScript runtime
28126and requires Node.js 22.22.3 or later; Node.js 24 LTS is the recommended primary
29127runtime. LoopX starts and reuses that local runtime automatically; users do not
0 commit comments