Last updated: 2026-11-16
Releasing ZINC#
Linux releases cover Vulkan on R9700 and Intel Xe2, plus ROCm on R9700. The workflow builds two release archives, certifies those exact bytes on three hardware profiles, and promotes them after protected publication approval. Metal remains an unsigned preview. The target registry, selected release scope, model pins and ABI requirements live in config/release/targets.json.
Linux 0.1.1 is published. The release record contains its exact-byte qualification and completed public-install checks.
The 0.1.1 record retains its preparation, publication
and earlier failed attempts. Version-specific docs/releases/<version>-changes.md files supply
reviewed change notes; the finalizer freezes them beside the generated hardware
table. RCs share their base version's change notes and keep their own archive
version and qualification.
Change files contain Markdown body fragments (bullets, paragraphs, or headings
at level three and deeper). The finalizer owns the release title, section
headings, downloads, and certified hardware table.
Version policy#
Versions are MAJOR.MINOR.PATCH, tags are vMAJOR.MINOR.PATCH. Before 1.0, MINOR covers new features/models/backends, performance work and breaking changes; PATCH covers fixes/docs without client-visible contract changes. From 1.0, breaking changes require a MAJOR bump. Call out breaking CLI/API/cache changes in the release preparation PR.
Land implementation changes through ordinary reviewed PRs. A later release preparation PR contains the agreed version, scope/known limitations, and user-facing documentation changes. Merge it before freezing the final candidate. Actual hardware/model tables and download names are generated from candidate evidence, not hand-filled placeholders.
Workflows#
| Workflow | Trigger | Result |
|---|---|---|
release-preview.yml |
Relevant PRs/main changes, manual | Unsigned CPU-only packages for Metal, Vulkan and ROCm, with ABI/dependency audits and actual archive installation outside the checkout. No GPU coverage or publication. |
release-worker-check.yml |
Manual from main | Readiness of one configured worker against a successful trusted main preview under the same policy. Optional full model/API exercise; cannot certify or publish a release. |
release-candidate.yml |
Manual from main; opt-in nightly | Frozen full SHA/version, host tests, baseline builds, signing when selected, mandatory GPU reports, generated notes, attestation and a release-candidate artifact. |
release.yml |
Manual candidate run ID from main | Read-only preflight summary, protected approval, re-verification, final tag, draft/upload/read-back/publish, then public-download and clean-install checks. No rebuild. |
PR code never runs on GPU/signing workers. Actions use commit pins, checkout credentials are not retained, and only the publisher has release-write permission. Nightly runs cannot be promoted. Enable them with repository variable ZINC_ENABLE_RELEASE_NIGHTLY=true after provisioning the selected workers. Signing configuration is required only when a selected release target requires it.
The nightly schedule runs the full correctness/model matrix. Performance baselines and broader optional-feature qualifications remain separate work; this pipeline makes no TPS claims. ZINC checks use greedy decoding, one slot and the backend's default KV/MTP settings at the policy's context limits; the native reference uses F32 KV. Metal/Vulkan include browser chat; ROCm exposes CLI/HTTP routes without the built-in UI or hot model switching. Add checks before expanding that contract.
Build environments and package format#
The repository pins Zig and Bun. Linux builds export the frozen Git tree, excluding untracked files, credentials, models and caches. Vulkan links inside a digest-pinned Ubuntu 22.04 image (glibc 2.35), using commit/hash-pinned Vulkan headers and versioned shaderc. ROCm uses a digest-pinned 7.2.4 Ubuntu 24.04 image and pinned hipBLAS/rocWMMA development packages. Both build for baseline x86_64 with explicit glibc targets.
Metal builds for baseline ARM64 with a macOS 15.0 deployment target and the hosted worker's SDK. The hosted image/SDK can change: inspect and retain its build log; the archive does not claim bit-for-bit reproducibility across SDK updates. Mach-O deployment target/system dependencies and ELF architecture/glibc/DT_NEEDED/RPATH are audited. Native --version must succeed before packaging and installation.
Archives contain bin/zinc, CPU-only bin/zinc-tokenize, matching runtime assets, VERSION.json, INSTALL-METADATA, FILES.sha256, binary usage instructions and license. The packaged README comes from docs/releases/BINARY_README.md, rather than the source-checkout setup guide. The build emits a complete shader inventory; missing assets fail packaging. Owners/timestamps/order are normalized. Apple timestamped signatures are final content, frozen before hardware certification. Python 3 is a development/CI tool only; the installed binary and Bash installer add no Python/Node dependency.
Provision GPU workers#
Use dedicated workers with generic role labels. Set these repository variables to JSON arrays of labels, without hostnames, addresses, serials or private machine names:
Only ZINC_RUNNER_RDNA4 and ZINC_RUNNER_INTEL_XE2 block this launch. The
RDNA4 role serves both Vulkan and ROCm with one shared reservation. The other
roles below remain available for preview readiness checks; adding them to the
release scope requires their complete packaged qualification. Missing preview
roles and Apple signing credentials do not block a Linux-only candidate.
Candidates queue one job per worker role. The R9700 job checks Vulkan and ROCm sequentially and uploads an individual report for each profile. This avoids losing one backend's pending job to GitHub's concurrency-group queue limit. Each child owns its GPU processes and reservation; a failed profile stops the group and prevents certification. Each profile has a 150-minute budget. The job budget includes every sequential profile plus 15 minutes for checkout, artifact transfer and report upload: 315 minutes for R9700 and 165 for Intel. The group allows 30 seconds for a cancelled profile helper to stop and reap its own server groups before escalating; server processes retain their shorter termination grace period.
| Variable | Required role | Practical allocation for this matrix |
|---|---|---|
ZINC_RUNNER_METAL_APPLE7 |
M1 / Apple7, macOS 15 | 8 GB UMA; OS minimum + starter |
ZINC_RUNNER_METAL_APPLE8 |
M2 / Apple8 | 8 GB UMA; starter |
ZINC_RUNNER_METAL_APPLE9 |
M3 or M4 / Apple9 | Large-memory worker, 48 GB+; all listed models |
ZINC_RUNNER_METAL_APPLE10 |
M5 / Apple10 | 16 GB+; starter + Qwen3.5 9B |
ZINC_RUNNER_RDNA3 |
AMD RDNA3 Vulkan | 12 GB+; starter + Qwen3.5 9B |
ZINC_RUNNER_RDNA4 |
AMD gfx1201, Vulkan + ROCm |
32 GB; Ubuntu 24.04/ROCm 7.2.4; shared reservation |
ZINC_RUNNER_STRIX_HALO |
RDNA 3.5 / gfx1151 Vulkan |
Enough assigned UMA for starter + Qwen3.5 9B |
ZINC_RUNNER_INTEL_XE2 |
Intel Battlemage Vulkan | 32 GB for required dense/MoE matrix |
A generic label array is ["self-hosted", "linux", "x64", "zinc-rdna4"]. Missing/empty assignments fail resolution. The packaged executable verifies the actual selected family; software Vulkan implementations and device-index fallbacks fail.
For Linux administrators, the worker container kit
provides a pinned runner image, a non-root launcher and administrator-owned job
hooks. Create release-workers with a main-only deployment branch policy before
dispatching readiness or candidate hardware jobs. Keep private configuration,
registration credentials and host mount sources outside Git.
Once a role is configured, dispatch release-worker-check.yml on main with its
profile and a successful release-preview.yml run ID from main. An older preview
must be a verified ancestor of the workflow's frozen main commit and contain the
same release policy bytes. Workers check out the frozen workflow commit for
validation, test the original archive's version/source, and record both commits
plus validation-helper hashes. Advancing documentation on main therefore does
not require rebuilding an otherwise usable preview. A changed policy requires
a new preview.
This permits diagnostics on older engine code with newer checks; the recorded
archive source identifies the tested build. Qualification of a final candidate
still requires that candidate's own complete selected-artifact matrix.
Keep exercise_models=true for actual tokenizer, reference, API and cleanup
checks. Set it to false only to diagnose package/hardware/configuration startup.
Its artifact uses a separate schema and is rejected by candidate aggregation;
even a full readiness pass does not qualify release candidate bytes.
Each runner service sets ZINC_RELEASE_WORKER_CONFIG to a private JSON file outside the checkout. Replace these placeholders locally; device must become an integer:
{
"device": "<GPU index as integer>",
"lock_directory": "<absolute shared reservation directory>",
"reference_source": "<absolute pinned llama.cpp source directory>",
"reference_bin": "<absolute llama.cpp binary directory>",
"reference_args": ["-ngl", "99", "--device", "<reference GPU selector>"],
"models": {
"<required model id>": "<absolute verified managed or canonical model path>"
}
}
Populate every model assigned to that profile in the policy. On Metal, use zinc model pull <id> into ~/Library/Caches/zinc/models/models/<id>/model.gguf. Configure canonical paths on existing Linux workers without relocating other users' models. Every run rechecks model size and SHA256. Qwen3.8 uses the historical revision matching its existing digest. Gemma 31B now has an exact upstream pin instead of an estimated size; old local files with different bytes need qualification against this pin before release.
For a worker serving multiple profiles, an optional profiles object maps profile IDs to overrides for device, reference_args, reference_bin, reference_source or models. Vulkan and HIP often assign different indices to the same card, so configure each backend's observed index/reference flags separately. Model-path overrides merge with the base model map. The shared lock_directory cannot be overridden by profile.
Build the exact llama.cpp commit in the policy. The harness checks clean Git source, executable version and hashes. Workers need Python 3, Git and the supported backend runtime. Vulkan workers also need cc, Vulkan headers, vulkaninfo, and matching shared libggml-base beside the reference tools for the 376 numerical shader cases: 84 cache-boundary, 36 router, and 256 sliding-window cases.
Use a reference build matching the tested backend: Metal for Metal, Vulkan for
Vulkan, and HIP/ROCm for ROCm. Set one explicit --device selector in
reference_args: Metal, Vulkan<N>, or ROCm<N>. The gate rejects a different
backend before probing the reference or starting model work, and aggregation
requires the recorded reference.device_backend to match the target. Quantized
backends can make different greedy choices even with identical GGUFs. The worker
uses each backend's default KV format (Vulkan defaults to F16) and records
kv_cache: backend-default; it does not force F32. Older diagnostic reports
labelled this setting F32 even though they also used the backend defaults.
A cross-backend disagreement is a separate diagnostic, not a reason to loosen
the native reference agreement policy.
Gemma qualification additionally compares three complete native continuations
from prompts beyond its pinned sliding window, through both CLI and HTTP.
The report records measured token bounds and reference agreement. A missing
mask is invisible to the short continuations; missing, unexercised or failed
window evidence blocks aggregation. See the Vulkan correction.
Readiness with exercise_models=true also preserves the pinned window and
runs these extended checks. Historical readiness reports without that evidence
establish only their recorded short-prompt results.
Reports also inventory the reference's ggml/llama libraries. Their hashes and both executable hashes must remain unchanged from the version probe through validation; rebuilding a tool can replace shared libraries without changing the server executable. Keep the reference's ggml libraries beside its tools; empty inventories and inventories without ggml entries fail validation. Only library basenames and digests are published. Library search overrides from the worker's shell are excluded from packaged execution. Reference processes select their own sibling libraries; that explicit search path is never passed to ZINC. The readiness workflow applies these same reference checks.
The policy also freezes reference generation: one slot, a 512-token logical batch, one-token microbatches, F32 K/V, and flash attention disabled. The harness applies these settings after worker arguments and records them in the report; aggregation rejects missing or different settings. Quantized batched and serial paths can choose different greedy tokens within the reference engine itself. Explicit settings make continuation comparisons reproducible. Throughput measurements use the performance suite and its matched scenario settings.
Reference agreement must be at least 97.5% exact across each model's cases. One differing choice per case can qualify only when it is the reference's second choice within 0.05 log probability. The harness checks the complete rendered prompt's tokenization, teacher-forces that choice, requires the entire remaining suffix to match, and verifies the complete detokenized CLI text. HTTP responses must match the original reference or that qualified continuation. Reports retain the original reference and record every accepted choice, gap, and exact-token count. Aggregation checks these measurements against policy.
Vulkan/ROCm jobs share workflow concurrency and the same configured host reservation. Its parent must exist. A kernel file lock protects the reservation and is released even after a hard kill. The harness can reuse its own marked, unlocked reservation; unknown legacy directories or unexpected contents remain busy for manual inspection. Keep the persistent .flock file in place. Visible ZINC/llama processes still block new work; unrelated processes are never interrupted. Owned servers are stopped/reaped on errors, timeouts and normal cancellation before the command returns, and successful evidence is written after reservation cleanup.
Only sanitized JSON is uploaded: source/archive/binary/model digests, public GPU/OS/driver data and results. Private paths, endpoints, process arguments, serials and UUIDs are excluded. Temporary worker logs are removed. Checks cover packaged asset discovery, diagnostics, tokenizer corpus, reference continuations, HTTP health/models/raw/chat SSE, cancellation/recovery and context boundaries. Missing, duplicate, failed or stale reports cannot certify a candidate.
Configure release approval and optional Apple signing#
The Linux-only launch does not use Apple signing. Before adding Metal to the
release scope, create release-signing, restricted to main, with these
environment secrets:
ZINC_APPLE_CERTIFICATE_BASE64: Developer ID Application certificate/private key exported as PKCS#12, base64 encoded.ZINC_APPLE_CERTIFICATE_PASSWORD: PKCS#12 password.ZINC_APPLE_SIGNING_IDENTITY: matching Developer ID Application identity.ZINC_APPLE_API_KEY_BASE64,ZINC_APPLE_API_KEY_ID,ZINC_APPLE_API_ISSUER: App Store Connect notarization API credentials.
The disposable macOS job imports into a temporary keychain, signs both executables with hardened runtime/timestamps, submits a ZIP to Apple, requires Accepted, then packages the signed files once. It restores the original keychain search list and deletes temporary keychain/credentials in finally. Hardware jobs run codesign and spctl against the package. Unsigned PR archives cannot pass candidate notarization. Command-line executables do not receive an app-bundle stapling step.
Create release with at least one required reviewer, restricted to main. The publisher reads its configuration and refuses a missing/unprotected environment; naming an environment in YAML is insufficient. Decide whether self-review is permitted for the maintainer setup. Preflight presents the candidate run, full source SHA and archive hashes before approval.
Publication rechecks the live reviewer configuration and the complete main-only branch policy both before approval and in the protected publishing job. Wildcard rules, tag rules, broader protected-branch access, incomplete policy responses and malformed reviewer identities fail before candidate downloads or release writes. A candidate's earlier configuration snapshot cannot substitute for these checks after an environment change.
Check configuration before dispatch#
Intel may use the restricted SSH qualification path without Docker or a GitHub runner on the compute node. Its isolated controller fills the same required Intel role. This changes transport and the documented compute-account trust boundary; all package/model/reference gates remain mandatory. Provision the controller and pass full readiness before dispatch.
From a current main checkout, use the maintainer's authenticated GitHub CLI:
python3 tools/release.py preflight --repo zolotukhin/zinc
python3 tools/release.py preflight --repo zolotukhin/zinc --json
The default command only reads configuration and exits nonzero when blocked or unable to inspect it. It checks the selected release profiles: two runner roles covering the three selected Linux profiles. Each needs an online matching worker. It verifies the worker/publication environments allow only main, and publication has a required reviewer. If the release scope includes a signed target, it also checks the signing environment and six Apple secret names. Preview-only roles and signing configuration are excluded from a Linux-only audit. Busy online workers count as eligible and can queue normally. Missing pages, inconsistent counts, duplicate entries, unreadable APIs and malformed responses fail the check. Paginated inventories are not atomic: same-count replacements can evade these checks, and workers can change after the audit. Reports contain public role names and counts, with runner names, label values, unrelated secret names, reviewer identities and raw CLI errors excluded.
This uses local gh authentication with repository administration read access
for runner inventory, variables read access, and environment/secret metadata
read access. It adds no administrator token to CI. See GitHub's
runner API permissions,
label matching,
and environment API.
Only secret names are requested; their values cannot be read through this API.
To dispatch only after this snapshot passes, add --dispatch (also requires
Actions write access). The workflow always runs from main. The helper resolves
main once to a full SHA. --source optionally selects an older full source SHA;
the helper verifies that it exists and is an ancestor of that frozen main commit
before dispatch. The candidate job rechecks ancestry against main.
python3 tools/release.py preflight --repo zolotukhin/zinc --dispatch 0.1.2-rc.1
Passing configuration does not certify the hardware, private worker files,
model/reference pins or Apple credentials. The protected candidate jobs still
check these and qualify the actual selected archives. Dispatch uses GitHub's
run-details response
to retain the exact candidate_run_id, without matching unrelated concurrent
runs. Confirmation means GitHub created that run; execution and input validation
can still fail. Empty/malformed responses and dispatch failures are not retried
automatically; inspect Actions runs before retrying to avoid duplicate candidates.
Qualify, freeze and publish#
After workflows merge to main and infrastructure is configured:
- Run the configuration preflight above, then dispatch
release-candidate.ymlon main with an explicit nightly/RC version first. Preparation checks out the immutable dispatched workflow SHA.mainselects that snapshot; an explicit older full SHA must be its ancestor and have identical release qualification inputs. Changed policy, build/installer inputs, toolchain pins, catalog, release helpers or validation code require a fresh candidate. Dirty source and incomplete hardware assignments fail before outputs/builds. - Review all three Linux reports and model results. The starter review promotes only Vulkan inference on R9700 and Intel, with chat/thinking recommendations disabled. Stable publication requires its explicit Vulkan backend scope and coverage for both selected roles (
amd-rdna4-32gbandintel-arc); Apple-only or partial coverage cannot satisfy it. Adding a stable hardware role requires an explicit reviewed catalog mapping. All shipped model sizes must match the policy and default contexts must stay within the qualified limits. Catalog changes require a fresh candidate. - Dispatch the final candidate with the intended stable version, such as
version=0.1.1. An RC cannot be renamed. Every final archive already embeds the selected version and the full SHA. - Review the
release-candidateartifact: two Linux archives, policy, checksums, validation, generated notes, installer and offline provenance. Artifacts expire after 14 days; rebuild/requalify if unavailable. - Dispatch
release.ymlon main with the successful manual candidate run ID. Preflight verifies workflow identity, source ancestry, provenance, complete model/report matrix and protected environment. Review its summary, then approverelease. - Publication re-verifies, refreshes main immediately before writes, and requires the candidate source, candidate workflow and publisher to share the same qualification inputs. Documentation-only advancement remains valid; changed gates during approval require a fresh candidate. It creates the final tag at the tested SHA, creates/resumes only this candidate's draft, uploads missing assets without overwriting, downloads/verifies every byte, then publishes. Dependent jobs verify public downloads/installs without relying on token-created tag events to trigger another workflow.
- Review all public checks and backend/model/download documentation before closing issue #10.
The same published candidate can be rechecked without writes. Different bytes or another candidate under an existing version fail. A partially uploaded draft for this candidate can resume. An orphan tag without its candidate draft requires manual inspection. Failed public checks remain visible; the workflow does not delete or silently replace a release.
The CPU release contracts rehearse an upload accepted by GitHub whose reply is lost. Retrying skips accepted assets, verifies the complete downloaded inventory and bytes before publishing, and makes no writes when retried after publication. Changed uploaded bytes, another candidate under the same version and orphan tags fail. Installer fixtures also exercise upgrade and explicit rollback while preserving the model cache; configuration/report fixtures reject unavailable workers and failed or missing hardware results. Run these without a model/GPU:
python3 -m unittest discover -s tools -p release_test.py
The same contracts run through the normal Bun/Zig CI suite. These local fixtures test failure handling. The first Linux RC is now published; its protected publisher passes verification of the real public downloads and clean installation on both Linux backends.
Published 0.1.0#
The Intel SSH endpoint/controller and R9700 worker are configured and have
qualified the final Linux 0.1.0 in
candidate run 41712528792.
All three selected profiles pass on source c3d4c0a2; the
candidate validation report
retains the exact archive/model/reference identities and cleanup results.
The RC publication rehearsal
passes verification of its separate RC bytes and both public install jobs.
The final bundle also passes independent provenance and stable catalog checks.
The protected stable publisher
passes publication and both public-install jobs. All nine anonymous downloads
match the certified bundle. The isolated upgrade/rollback report
also verifies RC-to-stable upgrades, rollback, reinstall, default stable
selection, command links and cache sentinels on both backends. These complete
the launch checks for issue #10. Metal stays an unsigned preview;
the other hardware profiles can be qualified later. Broader optional-feature,
memory-rejection and performance-regression qualification remains necessary
before advertising those features. Future releases follow the same
candidate-to-publication process; existing published bytes are preserved.
Published 0.1.1#
Candidate run 43941111324
is the certified source of the published release, from commit
4ab52f7d2d0ed595ef4199cc7680ba64e1915af5. All three selected Linux GPU profiles
and 20 model/backend rows passed, including installed model diagnostics.
Independent verification recomputed the qualification gates, verified eight
assets against provenance.jsonl (the ninth bundle file), and checked the stable
catalog. The preparation record links exact
archive identities, installation controls, supplementary actual-client checks
and retained failures. The protected publisher
passed publication and both public-install jobs. All nine anonymous downloads
match the certified files. The public installation rehearsal
passed 12 controls across the two backends, including upgrade from 0.1.0,
rollback, reinstall, command-link repair and default stable selection, with
cache sentinels preserved. The current stable release is 0.1.1.