530 lines
34 KiB
Markdown
530 lines
34 KiB
Markdown
# Versions And Compatibility
|
|
|
|
A release assigns one product version to its App, Server and bundled Web
|
|
build and records the full source SHA. See the [publication status](../status.md)
|
|
and the [published 2.x contract](#published-2x).
|
|
|
|
## Give Each Identifier One Job
|
|
|
|
| Identifier | Meaning and owner | Change rule |
|
|
| --- | --- | --- |
|
|
| `vMAJOR.MINOR.PATCH` | Public Git tag/product release | Patch: compatible fixes; minor: compatible features; major: incompatible public contract |
|
|
| Full Git SHA / `REVISION` | Exact source revision | Changes with the source commit; never use SHA inequality as release ordering or compatibility proof |
|
|
| Artifact SHA-256 | Exact packaged bytes in the release descriptor | Each artifact; one source SHA can produce different platform/toolchain binaries |
|
|
| Platform application version fields | Generated package metadata | Product version in the platform's numeric format; source SHA stays separate. XML/desktop-format versions remain specification values |
|
|
| Product major and minor on 3.0 connections | Derived from the product build version for Domain joins and App discovery | The major controls compatibility. The minor guides which features a client offers. See [Extending Interfaces](#extending-interfaces) |
|
|
| Capture probe and encoded-frame envelope | Rust Native capture/media owners; retained standalone helpers own their matched private formats | Internal matched bundle; change only the affected format |
|
|
| SQLite schema, App config format, Browser storage-key format | Their storage/parser owners | Change with the actual stored representation; preserve accepted authority across a compatible upgrade |
|
|
| Portable backup format | Core backup metadata and the archive adapters | Change when the exported archive representation changes; a new backup format does not imply resetting an unchanged live database |
|
|
| Release descriptor schema | Packager and descriptor readers | Describes metadata format, not the product release |
|
|
| Room policy and grants | Persisted room authority | Preserve accepted authority across compatible upgrades |
|
|
| Share/route/publication/media generations, connection IDs and flow leases | Current resource owners | Follow the lifetime of the resource independently of releases |
|
|
|
|
Keep storage and authorization counters at the first public release to
|
|
preserve data and stale-work fences.
|
|
The private tooling-only npm package carries no independent product version.
|
|
Local test candidates may explicitly set `PIIK_BUILD_VERSION=v3.0.0-beta.4`.
|
|
This prerelease build identity does not declare a public release: stable-tag
|
|
selection and publication remain stable-only. The handshake uses the major and
|
|
minor from the build version. Build metadata keeps the full tag and source SHA.
|
|
Android versionCode and macOS numeric bundle fields use the major/minor/patch
|
|
base. Successive candidates with the same base therefore share an Android code
|
|
and require explicit local replacement (for example, `adb install -r`); keep
|
|
internal candidate distribution separate from the public channel.
|
|
The shared App launcher displays its installed version from the existing launcher
|
|
state; development builds also show their short source revision.
|
|
The Web help menu displays its bundled build version without a network lookup.
|
|
Server startup logs retain the running version and revision. The website may
|
|
display GitHub's latest stable tag and `published_at` as optional metadata, never
|
|
a manually maintained version or the installed App's identity. Publication time
|
|
is distinct from build time; an unavailable check must not block downloads.
|
|
|
|
## Unreleased 3.0
|
|
|
|
Internal 3.0 builds have no compatibility promise to earlier test builds. Replace
|
|
an unsuitable design directly and remove its superseded implementation. Do not
|
|
retain aliases, parallel readers/writers, fallback protocols or data migrations
|
|
solely to support an obsolete private build. Previous test artifacts are evidence,
|
|
not interfaces the current implementation must continue to serve.
|
|
|
|
The current owning contracts form the implementation baseline. Changes to
|
|
scheduling, resource cleanup, code organization and presentation alone do not
|
|
require new wire or storage identities. Review the actual message and data
|
|
contracts, including nested payloads. Extend an existing operation before
|
|
introducing an incompatible representation.
|
|
An incompatible change needs a concrete requirement that the existing contract
|
|
cannot express. Update affected runtimes, previews and guides together. Change
|
|
storage identity when its representation changes and explain any required reset.
|
|
The product-version handshake replaces the old private wire shape. Testers on
|
|
older betas use packages from the same candidate when keeping an earlier build.
|
|
|
|
## Public Compatibility Promise
|
|
|
|
The protected surface is documented App/Server startup and configuration, room
|
|
and invitation behavior, persisted authority, and the Browser/Server/App
|
|
interfaces needed for established sharing and viewing. Internal Go/TypeScript
|
|
symbols, capture sidecar details within a matched bundle, and undocumented
|
|
diagnostic fields are not separately supported public APIs.
|
|
|
|
- Within a public major, newer releases preserve established workflows and
|
|
accepted configuration/data for older public releases in that major. A new
|
|
feature needs the other end to know it; where it does not, the feature is
|
|
unavailable there and nothing else breaks.
|
|
- A Site serves its own Web build, but an already-open page or installed App
|
|
can be older. Compatibility is checked at their actual contracts, not by
|
|
requiring identical product versions or SHAs. New App with older Site keeps
|
|
established compatible functionality; newly added features may be unavailable.
|
|
- A patch/minor cannot remove a documented command, require a new field from an
|
|
old peer, change an existing field's meaning, revoke valid room authority, or
|
|
turn an incompatible HTTP response into a supposedly compatible WS release.
|
|
Deliberate public breakage needs a major and clear upgrade instructions.
|
|
- Same-major forward upgrades preserve existing durable authority. Arbitrary
|
|
binary/database downgrades, cross-major interoperability, process restart
|
|
without media interruption, and identical performance on every OS/browser
|
|
are not promised. A security repair may restrict previously unsafe behavior;
|
|
explain the impact rather than silently redefining compatibility.
|
|
|
|
This does not require retaining every historical implementation. Keep one stable
|
|
baseline contract and add to it under the rule for
|
|
[extending interfaces](#extending-interfaces). Do not add a flag per feature,
|
|
a version-range solver, a general adapter framework, parallel authority
|
|
writers or blanket old-client fallback paths.
|
|
|
|
Within a published major, substantial new functionality can remain a minor
|
|
release when older peers retain established behavior and new behavior is
|
|
explicitly opted into. A small feature can still be breaking if it unconditionally
|
|
changes a strict message, existing semantics or durable authority. Review those
|
|
boundaries before choosing the version; neither feature count nor a desire to
|
|
avoid a major justifies mislabeling an incompatible release.
|
|
|
|
## Extending Interfaces
|
|
|
|
### 3.0
|
|
|
|
[ADR-0017](../adr/0017-contracts-fixed-before-release.md) records
|
|
the reasons and the sources. The rule:
|
|
|
|
- **Two numbers.** A party states the first two numbers of its product version
|
|
in its existing handshake. The session states them in its join, the Domain
|
|
in its welcome or refusal for an incompatible major, and the App in local
|
|
discovery. The Domain publishes the numbers with the session's other facts,
|
|
including those of the room writer's host session. Equal majors pass the
|
|
version check. A major mismatch blocks the connection and prompts the user
|
|
to update the older side. The minor guides which features a client offers;
|
|
operation outcomes do not depend on it.
|
|
- **Unknown kinds.** A request of a kind its receiver does not know is refused
|
|
as unsupported in that request's reply. A reply of a kind its requester does
|
|
not know ends that request as an unknown outcome, never as success. A
|
|
notification of an unknown kind is ignored.
|
|
- **Unknown fields.** The final recipient ignores unknown object members at
|
|
every depth of requests, replies, notifications and state descriptions.
|
|
A relay forwards the enclosed signed payload unchanged. Known bounds,
|
|
types, required fields and kind values keep their defined contracts.
|
|
A writer stores the
|
|
fields it knows, and its confirmation carries the message as stored. Stores
|
|
and archives are the exception, because nobody is there to be told: content
|
|
their reader does not know is refused before anything is installed, at the
|
|
one place that reads an archive in.
|
|
- **Where an addition goes.** A new action an older receiver must decline uses
|
|
a distinct request. The same applies to a new constraint whose omission
|
|
would widen authority, lifetime, recipients or the operation's target.
|
|
Every implementation understands the constraints defined for its baseline
|
|
requests. Changes to state older observers already display retain their
|
|
baseline update semantics.
|
|
- **New forms.** A request names the optional parts and forms it wants, and
|
|
one that names none gets what the first release gave. A part that was not
|
|
asked for, or that the answering party does not know, is absent. Absent is
|
|
neither empty nor deleted.
|
|
- **Everything else**, which is changing or removing something that exists,
|
|
waits for the next first number. That number also removes every branch
|
|
written for an older peer.
|
|
|
|
A new required field or a new value in a set that released readers treat as
|
|
closed changes the existing interface. Wire choices at every depth are open
|
|
unless their owner identifies the invariant that closes them. Define the
|
|
outcome of an unfamiliar value from the first release. A reader skips
|
|
unfamiliar descriptive detail and preserves the surrounding state and
|
|
authority. An unsupported optional operation ends as unavailable while
|
|
established work continues. Values that carry constraints, authority or signed
|
|
effects must be understood. Refuse an affected request as unsupported or treat
|
|
its record as unknown. Omission preserves baseline state semantics and the
|
|
action's constraints. Invalid contents still fail validation for their known form.
|
|
|
|
Closed baseline choices include publication classes, which determine
|
|
authorization, subscriptions and forwarding budgets, and the Domain's rules
|
|
for hosting, room creation and access, which remain effective in welcome and
|
|
later state. Watch keeps the selected player and clock with the activity and
|
|
uses the reader selected by its byte format. A change to playback semantics
|
|
requires a distinct request and a requested state form. Encoding priorities
|
|
select adaptation behavior. Watch source kinds, clocks and byte formats, and
|
|
encoding degradation priorities are closed baseline choices.
|
|
Capture preparation requires a supported codec
|
|
before a source can transfer or commit. [Domain and Watch model](../research/channel-network-design.md)
|
|
· [Media quality](./media-quality.md)
|
|
|
|
The wire types and fixtures specify validation and fallback for descriptive
|
|
extensions. [Core wire types](../../prototype/channel-core/src/wire.rs)
|
|
· [Browser decoder](../../src/client/channel/protocol.ts)
|
|
· [Browser wire tests](../../tests/channel-wire-images.test.ts)
|
|
· [Browser session tests](../../tests/channel-session.test.ts)
|
|
· [Page-media reader](../../src/client/native/wire.ts)
|
|
|
|
Use the existing version handshake and requested forms for extensions.
|
|
Do not add a support flag for each feature. Runtime descriptions remain scoped
|
|
to the current runtime. The action owner
|
|
validates authorization, identity, generation and state for each operation.
|
|
|
|
The first release exercises additive changes on a real mixed-version path,
|
|
including a peer with a higher minor. Check every released message kind against
|
|
the actual receiver dispatch at each independently implemented wire boundary.
|
|
Use the existing message-family fixtures to exercise unfamiliar fields and
|
|
kinds, nested choices including optional branches, and malformed known forms.
|
|
Assert the operation's outcome and surviving state. One boundary test serves a
|
|
shared decoder. Verify released readers and new producers in both directions
|
|
before calling a change additive. [Remaining baseline checks](../todo.md)
|
|
|
|
Native discovery distinguishes an incompatible Piik App from an absent App. The source picker
|
|
offers update/refresh guidance and Browser operation. Do not reload, reinstall or interrupt
|
|
an active share just because an unrelated product/build label changed.
|
|
|
|
Unknown replies end only the matching operation. A relay returns an error
|
|
to the waiting caller. [Signed room and peer controls](../../prototype/channel-core/src/conversation.rs)
|
|
· [App discovery and control](../../src/client/channel/app-link.ts)
|
|
|
|
### Published 2.x
|
|
|
|
The 2.x maintenance line owns its published compatibility baseline, wire
|
|
identifiers and extension rules. See [2.x versioning](https://github.com/TNTcraftHIM/Piik/blob/main/docs/standards/versioning.md).
|
|
|
|
## Release And Recovery
|
|
|
|
A single release plan computes the next tag and full source SHA. Packagers inject
|
|
both into binaries, embedded Web/debug metadata and the schema-2 release descriptors.
|
|
Local candidates use an exact release tag, `development` or an explicit candidate
|
|
version. An explicit version labels an unpublished test artifact; it does not
|
|
declare or freeze a public release. It cannot reuse a tag owned by another source
|
|
revision. Do not maintain independent hand-edited App/Server/Web version files.
|
|
Archive layout and checks stay in the
|
|
existing packagers; a new build never replaces an already-published package.
|
|
|
|
Android `versionName` uses the product version. Its `versionCode` is generated as
|
|
`major * 1000000 + minor * 1000 + patch`; minor and patch must each be at most
|
|
999, and the result must be in Android's `1..2100000000` range. Development
|
|
builds use code 1 and include the short revision in `versionName`. The shared
|
|
product version remains the only release ordering input; no Android counter is
|
|
maintained separately.
|
|
|
|
Desktop App archive names are fixed per target: `piik-app-{target}.zip`. Each published
|
|
tag owns its archive bytes; the full source SHA remains in `REVISION` and the
|
|
release descriptor. Fixed names allow GitHub's native latest-asset links;
|
|
[website operations](../operations/website.md#preview) owns download presentation
|
|
and verification of the matching AtomGit mirror.
|
|
|
|
Android uses the installable `piik-app-android-universal.apk` for both ARM64 and
|
|
x64. It follows the same release identity, checksum, complete-target and
|
|
mirror rules. [Android build instructions](../../mobile/README.md#signed-release-apk)
|
|
own signing input and installation details.
|
|
|
|
Public Release attachments contain the App ZIPs/APK and Server runtime archives
|
|
for the registered package targets. An updater-capable release also carries
|
|
`update.json` and `update.json.sig`: one signed index derived from those verified
|
|
packages, binding their version, revision, target, filename, size and digest.
|
|
The same signed bytes are mirrored; published manual-only releases are not given
|
|
new update metadata on a retry. [Signing operations](../operations/github.md#app-update-signing)
|
|
owns the publisher's key inputs.
|
|
Package descriptors (`.release.json`), file manifests (`.manifest.tsv`)
|
|
and standalone `.sha256` files remain build/deployment inputs in the local output
|
|
and CI artifacts; publishers validate them but do not upload them to GitHub or
|
|
AtomGit Releases. The release body includes a collapsed full source SHA and
|
|
SHA-256 listing generated from the verified packages. GitHub's automatic source
|
|
archives are separate from Piik's uploaded packages. Retain original build
|
|
metadata with operator deployment records as described in [deployment](../deployment.md).
|
|
|
|
Update checks compare actual release precedence. The App reports its compiled
|
|
OS/architecture and links to that platform's ZIP in the selected release metadata;
|
|
the release page remains the fallback when no matching attachment is available.
|
|
Fixed archive names and published names with that release's SHA suffix are
|
|
accepted only with the provider's exact release download URL. Downloads start on
|
|
click; checking for an update does not fetch the archive.
|
|
Newer version wins even when the source SHA is unchanged. Same version with a
|
|
different known SHA reports a different official build, not a newer one. A
|
|
development build with a known differing SHA offers the official release as a
|
|
manual choice; it makes no ordering claim. Older releases never cause an update
|
|
notice. Unknown SHA is not inferred from a branch name in GitHub metadata.
|
|
The publisher records a full SHA in `target_commitish` and verifies actual tag
|
|
identity separately. Stable update notices ignore prereleases.
|
|
|
|
Mode entry and the Site's App control share the check against the App's compiled
|
|
identity. A newer stable release marks that App control; its panel groups the
|
|
installed version, release notes and App management or manual download. This also covers starred
|
|
Site startup, which bypasses mode entry. Approved health supplies build identity;
|
|
older Apps without that metadata retain their ordinary connection and management.
|
|
|
|
### Major-Upgrade Guidance
|
|
|
|
The App presents the selected release's existing body in its shared notes dialog,
|
|
using the common Markdown renderer with raw HTML disabled. Provider pages remain
|
|
the source; there is no second changelog store. A newer major adds a short, visible
|
|
breaking-change notice. The Server logs the same distinction while preserving its
|
|
checker JSON and exit codes. This is release guidance, not a replacement for wire
|
|
checks. Keep the major warning inline, without a mandatory website detour.
|
|
The manual mirror link opens AtomGit releases directly.
|
|
|
|
Older installed Apps cannot acquire new warning UI from release metadata.
|
|
Their historical download behavior is accepted; do not split release feeds or
|
|
force a stepping-stone release solely to make advisory presentation identical.
|
|
Before a major release, put bilingual upgrade guidance near the top of its
|
|
release notes and on the website download entry. Name the actual incompatible
|
|
App/Site combinations, required upgrade order, interruptions and any persistent
|
|
data implications. Do not assume everyone installed the preceding minor/patch.
|
|
Verify the oldest relevant public App/page and the last preceding-major release
|
|
against the candidate: actual mismatches must fail clearly at their owning
|
|
contract. Keep historical packages available through GitHub releases. A major
|
|
preparation change does not itself authorize a wire bump, migration or release.
|
|
|
|
### App Download And Installation
|
|
|
|
The current App distribution offers update notices and manual downloads.
|
|
An updater-capable Windows App offers an explicit download, then an explicit
|
|
install and restart. A connected site's page opens the App's local management
|
|
page; it cannot authorize replacement or supply an executable URL. Builds without
|
|
a signing trust root, unsupported platforms and installations outside the packaged
|
|
directory layout retain manual download.
|
|
|
|
The App verifies the publisher's signed index before selecting its platform's
|
|
complete bundle. At most two bounded initial body transfers compare the existing
|
|
download lines for that same artifact; the winner continues and the other stops.
|
|
API response time is not package throughput. The App owns this operation, so
|
|
closing its management page does not cancel a download or interrupt room activity.
|
|
|
|
Installation uses the existing orderly App shutdown, then a separate helper
|
|
replaces the complete program directory on the same volume. Application data and
|
|
the WebView profile remain outside it. Failed replacement or process creation
|
|
restores the old program where possible. Once the new process has started, its
|
|
exit does not authorize automatic downgrade or database rollback. Publisher
|
|
verification and distribution of updater-capable packages remain a separate
|
|
decision. [Prototype assessment](../research/cross-platform-client-runtime.md#30-app-update-delivery)
|
|
|
|
## Automatic Publication
|
|
|
|
Before a product-changing merge or manual run that can publish, present the
|
|
planned version and complete Chinese/English release notes to the owner and
|
|
obtain explicit authorization for that release. Implementation or UI acceptance
|
|
does not authorize publication. Each later release needs fresh confirmation;
|
|
previous release/deployment permission is not standing authority. Once a release
|
|
is authorized, its packaging, mirror retries and matching deployments may proceed
|
|
within that scope without asking again. Automation executes the approved release.
|
|
|
|
After one-time activation, a complete squash PR merged to main runs the existing
|
|
CI pipeline. `scripts/release-version.mjs` filters unreleased first-parent
|
|
commits by actual changed paths. Website/film, documentation, research, agent
|
|
instructions and standalone maintenance tools do not create product versions.
|
|
Shared product UI, runtime code, public assets, licenses, dependencies and
|
|
packaging inputs remain eligible; unknown paths are treated as product inputs.
|
|
The script owns the exclusion list, shared with release-note generation.
|
|
|
|
Only eligible commit messages select the increment: `feat` selects minor,
|
|
`!` or `BREAKING CHANGE` selects major, and other accepted product changes select
|
|
patch. A website-only `feat` cannot increase the next product version. Earlier
|
|
unpublished product changes remain eligible when a later website commit reaches
|
|
main. PR/commit naming is owned by [CONTRIBUTING](../../CONTRIBUTING.md#commit-pr-and-branch-names).
|
|
Code size or an internal refactor does not itself imply a breaking release.
|
|
|
|
No version/changelog commit is written back to main. The workflow queues main
|
|
runs, uses the same source SHA for Server and all App targets, and publishes only
|
|
after all required artifacts and checks pass. The publisher verifies matching
|
|
version, source SHA and checksums, then creates/uploads/publishes one GitHub draft.
|
|
When there are no unpublished product changes, CI validates a development build
|
|
and skips packaging and publication; it never assigns an old release version to
|
|
a new source SHA. The separate Website and AtomGit mirror workflows follow successful
|
|
main CI independently. Mirror failure must remain visible without blocking GitHub
|
|
publication or Website deployment; retries use the original publishing artifacts.
|
|
Failed draft uploads can resume; published artifacts are never overwritten.
|
|
An older draft retried after a newer release cannot take over `latest`.
|
|
|
|
`PIIK_RELEASES_ENABLED` is a GitHub repository activation variable, not a product
|
|
setting. Until the first release is explicitly enabled,
|
|
main runs validation and manual `app_checks` dispatches create candidates only.
|
|
Accepted external contributions may merge ahead of a release with this existing
|
|
publication gate held off. Keep it off until the next authorized release;
|
|
that release includes the eligible contributions since the previous tag.
|
|
The [GitHub operations procedure](../operations/github.md#enable-automatic-publication-once)
|
|
owns pausing and resuming publication.
|
|
Ordinary branches do not run cloud CI. PRs run only a read-only release-note
|
|
check, including after edits to their body; product scope uses the same path
|
|
owner as publication and the PR's net diff. Packaging and publication remain
|
|
post-merge. [GitHub operations](../operations/github.md)
|
|
owns activation and main protection; no workflow changes repository visibility.
|
|
|
|
Installation remains explicit and retires active sessions through their existing
|
|
owners, using complete matching packages. [Deployment](../deployment.md) owns artifact verification, cutover and
|
|
recovery. A changed storage format needs its own upgrade and rollback treatment;
|
|
restoring an old authority database after newer grants/revocations is not a safe
|
|
routine downgrade. Storage migrations remain owned by their actual format.
|
|
|
|
## Container Distribution
|
|
|
|
`ghcr.io/tntcrafthim/piik` wraps the same verified linux/amd64 and linux/arm64
|
|
Server archives as the GitHub release. The packager's optional
|
|
`--container-image <tag>` builds from that architecture's extraction;
|
|
CI checks its Compose recipe on the matching native runner and transfers the verified image
|
|
between jobs as a CI artifact, outside public Release attachments.
|
|
`publish-container.mjs` requires matching published GitHub source, version and
|
|
Server digest in each image's labels. A standard multi-platform image index
|
|
selects the matching architecture; platform tags are immutable inputs to that
|
|
index. Existing version tags are retained; `latest`
|
|
moves only when that version is GitHub's latest. Manual candidates never publish.
|
|
The [release approval boundary](#automatic-publication) and
|
|
[first-publication visibility check](../operations/github.md#container-registry)
|
|
apply. Preserve the original image and packages for retries.
|
|
|
|
## Release Notes
|
|
|
|
GitHub Releases owns the published changelog. Each product-changing PR supplies reviewed
|
|
English and Chinese user-facing copy under the exact `## Release notes` heading
|
|
in its squash commit; `###` headings structure that copy. Explain benefits,
|
|
fixes and required upgrade actions, including breaking changes. Keep internal
|
|
work logs, audit handoffs and unverified claims outside this public section.
|
|
|
|
`scripts/release-notes.mjs` collects these sections from the same eligible
|
|
first-parent commits since the previous stable tag. Standalone website and
|
|
documentation phases need no product release notes. The first release uses
|
|
only its launch commit's product introduction; private development history is
|
|
not a launch changelog. Missing, empty, duplicate or visibly encoding-damaged
|
|
sections fail PR and publishing validation. GitHub Actions shows the generated
|
|
release text in its publishing run summary. Manual candidates validate and build
|
|
the requested revision without requiring release copy in branch checkpoints;
|
|
their version labels artifacts and never enables publication. The PR body remains
|
|
the review surface until integration preserves it in the squash commit.
|
|
|
|
Supply multiline PR/release copy through a UTF-8 file and read back the stored
|
|
body before integration. Do not repair published history by rewriting main.
|
|
|
|
The publisher appends generated build identity and package checksums to the
|
|
reviewed text, passes it through a temporary notes file to GitHub, then removes
|
|
that file. AtomGit copies the GitHub description. Retrying the same
|
|
release preserves its reviewed prose; draft retries refresh only the marked
|
|
generated build/checksum section to match the uploaded bytes. Published releases
|
|
remain unchanged. An exact tag does not move
|
|
the changelog's starting point. Keep no `CHANGELOG.md`, versioned note directory
|
|
or generated history commits. PRs and Git retain editorial provenance.
|
|
|
|
Keep the Release title `Piik vX.Y.Z`. The body may open with one short bilingual
|
|
editorial headline. Its lifetime is independent of semver: keep, replace or omit
|
|
it based on what is worth telling readers, not whether the version is a patch
|
|
or minor update. An already-published feature, a verified community milestone,
|
|
thanks or an occasional light aside can lead. Keep Piik's friendly tone without
|
|
forced jokes; never turn an old feature into a claim that it is new in this
|
|
update, advertise an unfinished prototype or trivialize a serious failure.
|
|
|
|
When used, open with a short bold title followed by one plain paragraph explaining
|
|
that headline's concrete meaning. Write the complete English pair first, then the
|
|
Chinese pair. For example: **Play together. Your turn!** / Piik now supports
|
|
remote control and remote co-play; **远程同乐,轮到你啦!** / Piik 现已支持远程控制与远程同乐。
|
|
The explanation states the feature or fact, rather than adding another slogan;
|
|
it does not replace the description of this update below. Keep each title and
|
|
explanation to one authored line, using plain text inside `**...**` and the
|
|
description. The website and App update notices read these same pairs from
|
|
the published Release body and display the current language; Server notices use
|
|
English first. They do not keep another copy, interpret arbitrary Markdown or
|
|
guess a headline from older releases. A missing headline does not invalidate an
|
|
otherwise valid update. AtomGit retains the same body. Do not add a campaign registry or automatic
|
|
version-based inheritance; review any reused headline when preparing the PR.
|
|
|
|
Then introduce **this update** in each language with one or two factual sentences:
|
|
its actual changes, who benefits and any required upgrade action. A headline is
|
|
optional; that explanation is not. An internal refactor alone does not justify
|
|
calling a release breaking or major. Urgent security, data-loss or compatibility
|
|
instructions take precedence over a playful opening.
|
|
|
|
Then group concrete changes under useful headings such as highlights, fixes,
|
|
upgrade instructions or known limitations. Omit empty categories and routine
|
|
implementation/test inventories. A small fix may need only its introduction and
|
|
a few bullets. Required upgrade steps or interruptions must be easy to find.
|
|
English and Chinese cover the same release facts with natural phrasing, with
|
|
English first. Use `###` for language sections and `####` for categories when
|
|
both are needed.
|
|
|
|
Choose public highlights that help someone decide to update or try a changed
|
|
feature. Use concise text and link to the relevant guide for instructions.
|
|
Keep candidate previews, screenshots and internal evidence in the private
|
|
review checklist unless the owner requests them in the public notes.
|
|
|
|
The approved final description must read as one release when several unpublished
|
|
commits are included. Preview the rendered aggregate with at most one bilingual
|
|
headline. The last included product PR owns that choice, including omission;
|
|
aggregation removes earlier headlines but retains all actual change details in
|
|
order. Do not let repeated introductions or raw commit titles become its narrative. The existing pipeline
|
|
preserves authored Markdown and appends identity/checksums; it does not infer an
|
|
editorial summary from a version number. Keep provenance and the full changelog
|
|
link after the user-facing explanation.
|
|
|
|
Piik's release scope and upgrade instructions come from its own accepted changes.
|
|
|
|
## Release Sources
|
|
|
|
GitHub Releases is the primary publication. The public
|
|
[AtomGit project](https://atomgit.com/TNTcraftHIM/Piik) distributes the same original
|
|
Release packages. Optional source synchronization is independent of that duty
|
|
and must not delay it. The mirror's local tag is an attachment locator, not the
|
|
authority for the package's source revision; GitHub and the retained source marker
|
|
own that identity.
|
|
|
|
Build each target once. The mirror publisher reuses the shared artifact validator,
|
|
compares every original package with GitHub's published SHA-256 digest, and copies
|
|
the existing release description plus its original source marker
|
|
(`<!-- piik-source: <full-SHA> -->`). It publishes all original packages,
|
|
including the signed Android APK. Packages are not rebuilt at the mirror.
|
|
Tokens belong only to publishing.
|
|
|
|
Create an AtomGit prerelease, obtain each missing attachment's signed upload
|
|
location, and upload its bytes. Signed locations and callback headers are temporary
|
|
credentials and must not appear in logs. Before marking the release stable,
|
|
anonymously download every package and verify its complete size and SHA-256.
|
|
A rerun inventories the existing release and attachments first; never blindly
|
|
retry a timed-out mutation or replace a published package. An incomplete release
|
|
remains a prerelease. GitHub and website publication may proceed independently,
|
|
but release completion requires the matching verified mirror. Scheduled retries
|
|
do not replace this postflight. No automatic deletion or Gitee-specific quota policy applies to AtomGit.
|
|
|
|
GitHub remains the first update source; the current Rust App and Server use
|
|
AtomGit when it is unavailable. Published 2.x binaries retain their embedded
|
|
Gitee fallback until a subsequent software release changes that consumer. The
|
|
website and current download guides use AtomGit. Update consumers must normalize
|
|
provider fields into the existing release model, retain source provenance and
|
|
semantic version comparison, and reject incomplete listings.
|
|
They must not treat provider update ordering as stable version precedence. A valid
|
|
primary result, including an up-to-date result, does not consult a fallback.
|
|
Use anonymous API metadata in the Browser; a normal attachment download does not
|
|
establish cross-origin fetch support.
|
|
|
|
## Public Release Baseline
|
|
|
|
The first public 3.0 release establishes the baseline for this major. Its
|
|
packages, reviewed notes and descriptors are immutable. See
|
|
[verification status](../verification-status.md) for device and network limits.
|
|
|
|
## References
|
|
|
|
- [SemVer 2.0.0](https://semver.org/spec/v2.0.0.html): release meaning follows a
|
|
declared public API; build metadata does not determine precedence.
|
|
- [Syncthing releases](https://docs.syncthing.net/users/releases.html) and
|
|
[BEP](https://docs.syncthing.net/specs/bep-v1.html): product versions, peer
|
|
protocol and storage/upgrade behavior are distinct. Piik does not adopt its
|
|
minor-release REST-breaking exception for the protected interfaces above.
|
|
- [Go compatibility](https://go.dev/doc/go1compat): name the protected contract
|
|
and its limits instead of promising universal binary/runtime compatibility.
|
|
- [Debug Adapter Protocol evolution](https://microsoft.github.io/debug-adapter-protocol/overview.html):
|
|
stable baseline messages and explicit optional capabilities allow independent
|
|
endpoints to evolve. Piik uses that principle within its existing WebSocket/JSON
|
|
contracts; it does not replace them with DAP or a generic negotiation framework.
|
|
- [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) provides
|
|
the small release-intent vocabulary; standard SemVer libraries perform ordering.
|
|
- Apple's [bundle build version](https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleversion)
|
|
and [release version](https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleshortversionstring)
|
|
are numeric; package generation derives both from the release and keeps SHA separately.
|
|
- [GitHub Releases API](https://docs.github.com/en/rest/releases/releases),
|
|
[AtomGit API](https://docs.atomgit.com/docs/apis/) and
|
|
[AtomGit Release uploads](https://atomgit-api-doc.atomgit.com/14.release/219.get_the_upload_address_of_the_release_attachment.html)
|
|
own provider endpoints, authentication and attachment upload contracts.
|