Skip to content

publisher: a release can declare its minimum Platform version (APT-1010) - #32

Open
reoring wants to merge 1 commit into
mainfrom
chore/publish-min-platform-version
Open

reoring wants to merge 1 commit into
mainfrom
chore/publish-min-platform-version

Conversation

@reoring

@reoring reoring commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Tool change only - no release is made and no version is declared.

The catalog renderer (hack/publish-entry.ts) built the new version item itself and had no way to set spec.versions[].minPlatformVersion, although the README requires it for the release that first enables the NEW-APP conversation.

  • catalog/entry.yaml: top-level publisherReleases map ("<version>": { minPlatformVersion }), stripped before the definition is emitted. Committed and reviewable instead of a CLI flag.
  • Attached to the published version only; SemVer with optional v and prerelease, ≤ 63 characters.
  • Immutable once recorded (changing or adding it for a recorded version fails, like a different image). A declaration left for another version fails unless that version already records the same value.
  • Absent metadata → byte-identical output to today.
  • README: release steps; the value is informational until the Platform enforces it (APT-1010).

Local: bun test hack 26 pass; hack typecheck; git diff --check.

The catalog renderer created the new version item itself and could not
set spec.versions[].minPlatformVersion, which the README requires for the
release that first enables the NEW-APP conversation.

catalog/entry.yaml gains a top-level publisherReleases map (stripped from
the emitted definition): an exact version -> { minPlatformVersion }. The
value is attached to the published version only, is immutable once
recorded, and a declaration left over for another version fails the
publication unless that version already records the same value. Absent
metadata produces byte-identical output.

No release is declared here. The value is informational until the
Platform enforces it (APT-1010).
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