# Independent component releases Echoion product releases and component releases are deliberately separate. A component release never edits `components.lock.json`, creates an Echoion product tag, or starts the Echoion product workflow. The lock is updated only while preparing a later full Echoion release. ## Published objects Every runtime component publishes the same verified package to two places: 1. A release in the component's own Gitea repository. This is the provenance and maintainer-facing release after that repository becomes private. 2. An immutable public distribution key. The default deployment uses the public `Void` organization Generic Package Registry: ```text https://git.faumaray.ru/api/packages/Void/generic/// ``` Gitea packages belong to the organization rather than a repository, so they remain anonymously downloadable while component repositories and their native releases are private. The signed public feed refers only to the distribution URL. It never contains Gitea credentials, storage credentials, presigned URLs, or private clone URLs. Private Gitea repositories do not have independently public release units, so public delivery remains a separate distribution concern. The organization registry is the no-infrastructure public backend. A future paid distribution gateway should use a separate permanent origin from its first published version; immutable feed documents must not have their URLs rewritten after signing. ## Release transaction The workflow on a signed `vX.Y.Z` tag publishes stable releases. A prerelease tag publishes beta. A scheduled run publishes a nightly only when that component's source SHA differs from its last nightly state. The shared release tool performs this idempotent transaction: 1. Verify the component tag and derive the required version from the prior stable feed state and canonical ABI contract. 2. Check out exact dependency revisions from the product dependency snapshot. 3. Configure the component with its own `ECHOION_COMPONENT_VERSION`, build, test, install, and package it deterministically. 4. Upload with an object-store create precondition and download-verify the result. An existing object is accepted only when its bytes match. 5. Create or reconcile the component's native Gitea release. 6. Merge that component into the signed channel feed and push one signed `release-feed` commit. Gitea 1.25 does not enforce the GitHub Actions `concurrency` and `permissions` keys. All component release jobs therefore target the dedicated `echoion-release-serial` runner label. That label must have capacity one. The feed push is still a compare-and-swap through Git's fast-forward rule, so a misconfigured second runner fails instead of losing another publication. ## Required configuration Set `ECHOION_RELEASE_TOOLS_REF` to the full 40-character Echoion commit that contains the approved release tools. Workflows verify the checkout against the exact value. The following Gitea Actions variables are required: - `ECHOION_RELEASE_TOOLS_REF` - `ECHOION_DISTRIBUTION_BACKEND`, currently `gitea-generic` - `ECHOION_DISTRIBUTION_BASE_URL` - `ECHOION_FEED_BASE_URL` - `ECHOION_FEED_SIGNING_KEY_ID` - `COMPONENT_OBJECT_STORAGE_BUCKET` only for the optional `s3` backend - `COMPONENT_OBJECT_STORAGE_ENDPOINT` when using a non-AWS S3 service - `COMPONENT_OBJECT_STORAGE_PREFIX`, normally `components`, for S3 - `COMPONENT_OBJECT_STORAGE_REGION` for S3 The following secrets are required once at the `Void` organization level and are inherited by every component release workflow: - `RELEASE_CHECKOUT_SSH_KEY` (single-line base64 of an OpenSSH private key with read access to every private component and dependency repository, plus write access to Echoion's protected `release-feed` branch) - `RELEASE_TAG_ALLOWED_SIGNERS` - `RELEASE_BOT_TOKEN` - `RELEASE_FEED_ED25519_PRIVATE_KEY` (single-line base64 of the PEM private key) - `RELEASE_FEED_GIT_SIGNING_KEY` (single-line base64 of the OpenSSH private key) - `COMPONENT_OBJECT_STORAGE_ACCESS_KEY` only for S3 - `COMPONENT_OBJECT_STORAGE_SECRET_KEY` only for S3 Create single-line private-key values with `base64 -w0`. Raw multiline private keys are deliberately rejected because some runner versions expose multiline environment values in job diagnostics. The Echoion product repository needs only `RELEASE_FEED_ED25519_PUBLIC_KEY` for feed verification. It must not receive the component-feed private key. Use a release-bot PAT limited to repository release and feed publication operations. Do not share a personal administrator token. Protect `v*` tags and the Echoion `release-feed` branch, and permit only the release identity to publish them. ## Manifest schema 3 Independent packages use manifest schema 3. The manifest carries the component version, product compatibility range, source/tree/ABI identities, exact build dependency provenance, platform/toolchain contract, activation policy, private libraries, and file hashes. It does not claim the current Echoion product version. The channel catalog is a merge of independently published components. Its sequence is global and monotonic; each component state also maintains monotonic per-channel history. Immutable release documents are never replaced with different artifact or source identities. Before creating a full Echoion tag, update `components.lock.json` intentionally. The product workflow verifies every locked component against its signed immutable feed document before it builds or publishes the product.