Skip to content

os migrate meta: evaluate a minor-aware --from 18.x, so an app upgrading from an early 18 straight to 19 is also shown the ~140 upgrade notes that first shipped in 18.1–18.6 #38277

Backlog

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① maintainer ruling. Tesla chose 「立一张 p3 卡评估按小版本升级」 on the seat's decision card (cmsg_01AXsQkLFKRdQCqQ3RTr6Jao9Kg9A39LAzKKjtoAhoo7BU, 2026-11-28T10:59Z), on the question the L2 contract review of PR #38239 stated and left unjudged (7237861973, out-of-diff note). Source: maintainer.
Grading: area:build · domain:spec · Task · p3 (the maintainer's grade) · reach: every app on an 18.0–18.5 release that upgrades to 19 with os migrate meta --from 18. Each note still refuses loudly when it is met.
Dedupe: "migrate meta minor version", "--from 18.2" → none; related #38142, #38256.

维护者速读

  • 问题:升级说明按大版本分组。18.1 到 18.6 新增的约 140 条都在 18 组里,而 --from 18 只回放 19 组,所以从 18.0 直接升到 19 的应用看不到这 140 条。把它们挪到 19 也不对,因为 18.6 的用户已经升过这些。
  • 本卡:先评估,再定要不要做。评估让 --from 接受小版本(例如 --from 18.2):只回放该小版本之后首发的条目。
  • 要你做的:看评估结论,决定是否开实现卡。

Measured (L2 on PR #38239)

  • 406 semantic/18.* entries at spec@18.0.0, 545 at spec@18.6.0.
  • Steps are chosen from the filename major alone (build-migration-registry.ts parseEntry); composeMigrationChain keeps majors above fromMajor (packages/spec/src/migrations/chain.ts ~38-45). Nothing records the minor an entry first shipped in.
  • The step 18 comment in registry.ts.template says post-cut entries belong to the next major, while build-schemas.ts prescribes the package major. The two readings disagree.

Ask (evaluation only, no behaviour change)

  1. Can the first-shipped release of each entry be derived reliably (release tags, .changeset/pre/* and CHANGELOG adr-0087: registered markers, spec-changes.json per-release sections), or must it be recorded in a new place? Measure it on the 18.x entries.
  2. Sketch what --from 18.2 would replay, and what --from 18 (no minor) should keep meaning, so nothing silently changes for today's callers.
  3. Cost: files, generated outputs and gates touched; whether it widens a published surface (Clause-②) and what it owes ADR-0087.
  4. Settle the registry.ts.template versus build-schemas.ts disagreement as part of the proposal.

Done when

  • A short report on this card answers 1–4 with measured numbers and recommends build or don't build. The maintainer rules on it.

Size: S (evaluation)
Related: #38142, PR #38239, #38256, #38240.

Activity

  1. added
    pm:queue
    domain:spec
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/spec migrations (build-migration-registry.ts, chain.ts, registry.ts.template), possibly a CLI flag later · area:build · domain:spec · Task · p3 · pm:queue · size S. Rationale: an evaluation-only report on a minor-aware --from 18.x for os migrate meta. A Task at the default p3, and compat/migration work defaults to p3 under the stage posture. It matches the grade in the quoted request. Not a duplicate: #38256 (entries misfiled under major 18), #38240 (the registration gate) and #38142 (closed) are different mechanisms. The build/don't-build ruling that follows the report, and any widening of the published --from surface (Clause-②, ADR-0087), are the maintainer's. The request is quoted from a channel message attributed to "Tesla", not a maintainer comment on GitHub, so Source: stays fleet. Type set to Task.
    Path: none

    Recorded 2026-11-28T14:16Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:builddomain:specpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions