Release and support policy: what a version promises, which lines get fixes, and how images and npm map onto it
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- docker, mongodb, nodejs, typescript
- 领域
- devops, documentation, release
调研方向
Read the proposal in this issue alongside #1822, especially the release policy, image tag, npm, and breaking change sections. The author identifies release workflow changes and separate follow-up work in increment-version.ts, .env.template, the deployment guide, release-channels.md, and SECURITY.md. First resolve the open questions and audit the unchecked HTTP API, export formats, and permissions against §1; done means maintainers agree on a policy and its rollout before revising #1822.
由索引模型根据 Issue 内容生成。
描述
@gdevenyi @thomasbeaudry: this follows up on #1822 and my comment there about a hybrid approach. I worked through a full release and support policy. Before #1822 gets reworked to match it, I'd like your thoughts, especially on anything you would push back on and on the two open questions at the end.
Why
- Every merge to
mainstill re-pusheslatestand2.5.2. The most recent was today, in run 42063797447.mainis 564 commits pastv2.5.2(48feat, 101fix). A deployment on either tag runsmainfrom whenever it last pulled, and the actualv2.5.2code is no longer published under any image tag. SECURITY.mdpromises security updates for "the most recent version" only.- Major numbers have marked big features, not compatibility breaks. The 2.0.0 changelog calls it "a non-breaking upgrade."
- The deployment guide has deployers
git clonemain, so the compose file they run is unreleased code.
Proposal
1. What a version number promises
A change that breaks any of these is a new major:
- Stored data. An upgrade boots against the existing MongoDB and object storage and reads every existing record, with no manual step.
- Deployment config. This covers
.envvariables, compose services, volumes and ports. A new variable needs a default that keeps the old behaviour. Renaming or removing a variable, or making it required, is breaking. It follows that the newest image of a major works with the compose file from any earlier release of that major. - Stored instruments. Every bundle already in a database keeps rendering, and its records keep exporting.
- The documented HTTP API (
spec.json). Additions are fine; removing or changing anything is breaking. - Export formats. Column and field names.
- Access. An upgrade never widens or narrows what an existing user can see or do, unless an admin acts.
- The public API and CLI of each published npm package.
Outside the contract: UI layout and workflows, undocumented endpoints, internal workspaces, and the gateway↔api protocol. The gateway and api must run the same version.
2. Which lines are supported
- The current major is supported in its newest minor only. To get a fix, upgrade to the newest minor, which §1 makes safe.
- Every superseded major keeps its last minor supported for 36 months after the next major ships.
- The policy applies going forward only. 1.x is not covered.
3. What each line gets
| Fix | Current major (newest minor) | Newest superseded major | Older superseded majors |
|---|---|---|---|
| Security | ✓ | ✓ | ✓ |
| Data integrity | ✓ | ✓ | ✓ |
| Critical bug | ✓ | ✓ | — |
| Everything else | ✓ | — | — |
-
Security means either of two things.
- A vulnerability that lets someone, in a documented deployment configuration (the compose stack and its documented options, opt-in ones included), do any of these:
- read data they aren't authorized to see;
- create, change or delete data they aren't authorized to;
- act as another user or gain permissions they weren't given;
- run code on the server or in another user's browser.
- Or a Critical-rated CVE in anything a deployment runs: the base image, OS packages, the runtime npm dependencies of api, gateway and web, and the third-party images the compose stack pins (MongoDB, RustFS, Caddy).
A CVSS score alone qualifies nothing, and availability-only issues (DoS, resource exhaustion, crashes) never get a backport. They're fixed on the current line in its next ordinary release.
- A vulnerability that lets someone, in a documented deployment configuration (the compose stack and its documented options, opt-in ones included), do any of these:
-
Data integrity means a bug that silently loses, corrupts or misattributes recorded data, or exports it wrong.
-
Critical bug means the stack fails to start, or a core workflow is unusable with no workaround. The core workflows are administering an instrument, collecting a remote assignment, managing subjects and users, and exporting data.
-
Maintainers judge reachability and whether a workaround exists. The backport PR states which category it falls under.
-
If a fix can't be backported without breaking the line (for example, the fix exists only in the dependency's next major), we publish an advisory saying the line is affected and recommending an upgrade, rather than skipping it quietly.
4. Image tags
| Tag | Moves when | For |
|---|---|---|
<version> |
never (immutable) | production deployments that upgrade by hand |
<major> |
every release on that major, including backports | the documented default: fixes and features, never a breaking change |
latest |
every release of the newest major | demos and quick starts; crosses majors, so not for production |
edge |
every push to main |
the demo instance and dev environments |
sha-<7> |
never | pinning an exact main build |
<major>.<minor>is dropped. Under §2 it would stop getting fixes the day the next minor ships, and nothing would tell the people tracking it..env.templatedefaultsRELEASE_CHANNELto the current major.increment-version.tsrewrites it on a major bump.- Staging tracks
<major>, so it runs what production will run.
5. Which compose file a deployment runs
- Deploy from a release tag, never from
main. Install withgit clone --branch v<version>, and upgrade withgit fetch --tags && git checkout v<newer>.mongo/,rustfs/,sqlite/and.envare git-ignored, so switching refs never touches data or config. - A per-major branch that deployers can
git pullwould be safer, but CI would need to push to a protected branch with a token we don't hold today. That's a later improvement if people keep pullingmain.
6. npm packages
- The version numbers stay in lockstep with the platform, but npm publishes only from
main. That makes every npm publish alatestpublish. - A release from a branch ships images and a GitHub release, and logs that it is skipping npm. Authors targeting an older major install
@^<major>. - The
releaseenvironment staysmainonly, so the npm trusted publisher never has to trust a branch.
7. Breaking changes
- Every breaking change is marked
!, with aBREAKING CHANGE:footer written for deployers that says what they have to do. The footer becomes the changelog entry, so a major's upgrade notes come from the commits themselves. - Merging a
!commit tomainis the decision that the next release frommainis a major. There is no cadence cap, andmaindoesn't have to stay releasable as a minor. increment-version.tsrefuses a bump lower than the recommended one once a breaking commit is in range, and refuses any!commit on a release branch.- Automatic detection is follow-up work, with an issue for each check:
- an OpenAPI diff against the last tag;
- an
.env.templateand compose diff against the last tag; - export-format snapshots;
- an upgrade test that boots the previous release's data with the new images.
Out of scope: release cadence and gating. Releases stay at my discretion, as now.
What this means right now
- No
release/2.5branch and no 2.5.3. Under §2, 2.5 isn't a separate line, and a branch cut fromv2.5.2would rebuild code almost no deployment runs. - Once #1822 has landed, the next release is cut from
main.- Before bumping, audit the commits since
v2.5.2against §1. A first pass over.env.template, compose and the Prisma schema found nothing breaking:BIND_ADDRESShas a default,PROJECT_ROOTleft the template, and the schema only gained optional fields and new models. The HTTP API, export formats and access are still unchecked. Permission sets need the closest look. - If nothing is breaking: release 2.6.0. Its notes tell deployers to set
RELEASE_CHANNEL=2and check outv2.6.0. - If something is breaking: release 3.0.0, with upgrade notes. 2.x then gets no maintenance line, because every 2.x image tag points at moving code and there is no stable 2.x build to support. The policy would start with 3.x.
- Before bumping, audit the commits since
- Confirm the Node version in the build log before announcing the CVE fix.
mainbuildsFROM node:lts-krypton, which should already resolve to 24.22.1.
What changes in #1822
| Area | #1822 today | Under this proposal |
|---|---|---|
| Image tags | <version>, <major>.<minor>, latest, edge, sha-<7> |
<version>, <major>, latest, edge, sha-<7> |
| Release branches | release/<major>.<minor> |
release/<major>; planRelease checks the version's major against the branch |
| npm | publishes from branches under release-<major>.<minor>; publish-npm.cjs reconciles dist-tags |
publishes only from main; a branch release logs that it skips npm; dist-tag logic removed |
release environment |
add release/* after merge |
stays main only |
| "After merge" plan | cut release/2.5, ship 2.5.3 |
dropped; the next release is 2.6.0 or 3.0.0 from main |
Node fix: commit |
in the PR | unchanged |
release-channels.md |
describes the PR's model | rewritten to match this policy |
These would land as separate small PRs, independent of the workflow:
increment-version.ts: refuse a lower bump, refuse!commits on a release branch, and rewriteRELEASE_CHANNELon a major bump..env.templatedefaulting toRELEASE_CHANNEL=2, and the deployment guide switching to deploying from a tag.- A user-facing versioning and support page, and
SECURITY.md. - The detection issues listed in §7.
Open questions
- How should this land? I'd revise #1822 in place with the table above, then merge it before the next release. Merging as-is would add a dist-tag scheme, a reconciliation script and environment instructions that this proposal then deletes. The cost is that
latestkeeps moving with every merge until the revision lands. The alternative is to merge #1822 now and do the table as a follow-up. That's safe only if the follow-up lands before the next release, because until a release happens the merge run only pushesedge. - Where do deployers read the policy? Not discussed yet. Options are a docs page with a table of end-of-life dates, the "Supported Versions" section of
SECURITY.md, and whether advisories go through GitHub Security Advisories.
- 主要语言
- TypeScript
- 星标
- 119
- 派生
- 19
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 60
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DouglasNeuroInformatics/OpenDataCapture 的其他 Issue
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at once可能已有人在做 @2389400626lh-ops 今天认领。 未关闭Area: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
难度 2/5 1-3 小时 新手友好度 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
维护者通常 1 天内回复
-
Area: Infrastructure Chore Difficulty: Low Priority: Low
难度 2/5 1-3 小时 新手友好度 72/100
DouglasNeuroInformatics/OpenDataCapture#1948 ·
维护者通常 1 天内回复
-
apps/web preview overwrites newly built dist/index.html with stale dist/index.html.bak across builds未关闭Area: Infrastructure Area: Web Bug Difficulty: Low Priority: Medium
难度 2/5 1-3 小时 新手友好度 82/100
DouglasNeuroInformatics/OpenDataCapture#1938 ·
维护者通常 1 天内回复
-
Area: API Bug Difficulty: Low Priority: Low
难度 2/5 1-3 小时 新手友好度 62/100
DouglasNeuroInformatics/OpenDataCapture#1937 ·
维护者通常 1 天内回复
-
Area: Infrastructure Bug Difficulty: Low Priority: Medium Security
难度 2/5 1-3 小时 新手友好度 72/100
DouglasNeuroInformatics/OpenDataCapture#1916 ·
维护者通常 1 天内回复
查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
ag-ui-protocol/ag-ui#3504 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Dokploy/dokploy#6151 · 2 条评论 ·
维护者通常 1 天内回复
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#161712 ·
维护者通常 1 天内回复
-
bug p3
难度 2/5 1-3 小时 新手友好度 78/100
rothgar/rabble.radio#283 ·
维护者通常 1 天内回复
-
bug from-app needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
nightly-labs/openbot#19805 · 1 条评论 ·
维护者通常 1 天内回复