Repository navigation
Description
Motivation / why
Today every repo that ships anything other than a git tag + GitHub Release reinvents its publish lane. scitadel hand-wrote five workflows (scitadel#208), tessera would rediscover the same shape (tessera#441), and nothing exists at all for npm. #1746 (merged on dev via #1750) established the seams — draft-Release-first owner, pre-publish assets window, standalone publish-release-extension.yml on release: published — but every seam is a no-op a consumer must fill by hand.
Goal: a repo declares which channels it publishes to, and devkit scaffolds and keeps upgrading a lane that meets the 2026 industry bar for that channel (keyless/OIDC auth, provenance attestations, immutability, idempotent retries, prerelease handling). Adopting a channel should be "declare + one-time registry registration", not "copy a recipe and maintain it forever".
This issue is the spike umbrella: one sub-issue per channel researches the current best practice and answers what devkit should own vs. leave to the repo. The spikes produce decisions, not code; implementation issues follow per channel.
Decision / proposed approach (best guess — reviewers should refute)
- Declaration, evidence-seeded. A
.vig-oskey (strawman:DEVKIT_PUBLISH=crates,pypi,npm,oci,nix,binaries) — same contract asDEVKIT_LANGUAGES: a declaration the scaffold seeds from evidence (Cargo.tomlwithoutpublish = false,pyproject.tomlwith a build backend,package.jsonwithout"private": true, …), never a detection cache. Per the smallest-denominator rule (Smallest denominator, not the sum: stop shipping speculative defaults to every Rust consumer #1519), undeclared channels ship nothing. - Managed, not seeded, for the publish mechanics. The per-channel publish logic (auth, idempotency precheck, attestations, prerelease routing) is devkit-managed and regenerated on upgrade, so security fixes propagate via
devkit-upgrade. The build stays project-owned viajustfile.projectrecipes (e.g.just dist-pypi,just dist-npm), matching how CI already delegates to project recipes. - Two windows, as Release train: first-class Rust release extension (crates.io, cargo-dist binaries, wheels) via a general publish/Release-owner seam #1746 defined: things that belong on the GitHub Release (binaries, wheels, SBOM, checksums, attestations) go in the pre-publish assets window; irreversible outward publishes (registries, caches) go after
release: published. - Uniform per-channel contract: Trusted Publishing / OIDC wherever the registry supports it (no long-lived tokens), provenance attestation, idempotent "skip if the registry already has this version" precheck,
workflow_dispatchretry by tag, explicit prerelease policy (publish RCs or not, and under which dist-tag / version spelling).
What already exists
assets/workspace/.github/workflows/release-publish.yml(managed) — tag + draft GitHub Release; ondevdraft-first ordering (Release train: first-class Rust release extension (crates.io, cargo-dist binaries, wheels) via a general publish/Release-owner seam #1746).assets/workspace/.github/workflows/release-extension.yml(seeded, no-op) — pre-tag build/sign seam; token ceilingpackages:write, id-token:write, attestations:write([FEATURE] release-extension seam: GITHUB_TOKEN ceiling blocks id-token/attestations (provenance attestation cannot live in the extension point) #1144).assets/workspace/.github/workflows/publish-release-extension.yml(ondev, seeded, no-op) — post-publish seam; stub mentionscrates-io-auth-action/gh-action-pypi-publish.docs/DOWNSTREAM_RELEASE.md(ondev) — "Pre-publish assets window", "cargo-dist adopter recipe", "Publish Extension Hook", GHCR example.- devkit's own
.github/workflows/release.yml— cosign keyless signing, SPDX SBOM,actions/attest-build-provenancefor the GHCR image;nix-cachix.ymlfor the Nix cache. The upstream already does most of the 2026 bar for OCI + Nix; consumers get none of it. - Related: [FEATURE] Rust pack L6: seed templates for the three release seams (cargo set-version, publish dry-run, cargo publish --workspace + Trusted Publishing) #1748 (Rust L6 seam templates), [FEATURE] Data release lane: CalVer data artefacts on their own tag namespace, with an integrity contract and a mirror-target seam (GH Releases / HF / OCI / DOI) #1754 (data release lane / mirror targets), Org stack matrix: one dated, definitive answer per capability × archetype — so projects and agents stop re-rolling #1523 (org stack matrix — the spike verdicts belong there as dated rows), Smallest denominator, not the sum: stop shipping speculative defaults to every Rust consumer #1519 (smallest denominator), Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496 (Rust pack).
Scope
P0 — one spike per channel (sub-issues)
- GitHub Releases & release assets (checksums, SBOM, attestations, immutability)
- crates.io
- PyPI (incl. PyO3/maturin wheels)
- npm
- Prebuilt binaries & installers (cargo-dist, goreleaser-class tools, Homebrew)
- OCI images (GHCR)
- Nix binary caches (Cachix / FlakeHub / attic)
P1 — cross-cutting verdict
- Declaration key shape and evidence rules
- Managed-vs-seeded split, and where OIDC subject binding forces a fixed top-level workflow filename
- Prerelease policy matrix (per channel: publish RCs? how spelled? which tag?)
P2
- Dated rows in the Org stack matrix: one dated, definitive answer per capability × archetype — so projects and agents stop re-rolling #1523 stack matrix for every channel verdict
- ADR in
docs/rfcs/capturing the decision
Pitfalls
- OIDC subject binding vs. reusable workflows. crates.io and PyPI Trusted Publishing bind to the workflow file path; a devkit-managed reusable workflow may not be registrable, and renaming a managed file later silently breaks every consumer's registry registration. The filename is a forever-contract.
- Irreversibility asymmetry. A GitHub Release is abandonable while draft; crates.io / PyPI / npm versions are burned the moment they publish. RC policy must not burn final version numbers.
- Version spelling. One train version must map to SemVer (
1.2.3-rc.1), PEP 440 (1.2.3rc1), npm dist-tags, OCI tags — interacts withDEVKIT_PRERELEASE_FORMAT(Release train: first-class Rust release extension (crates.io, cargo-dist binaries, wheels) via a general publish/Release-owner seam #1746). - Approval gates. GitHub
environment:required reviewers add a second human approval, contradicting the "single approval = release PR" rule indocs/RELEASE_CYCLE.md. - Speculative defaults. Shipping all channels to every repo repeats the Smallest denominator, not the sum: stop shipping speculative defaults to every Rust consumer #1519 anti-pattern; declared-only.
- Token triggering. Anything that publishes the Release with
GITHUB_TOKENnever firesrelease: published(the cargo-dist trap).
Acceptance criteria
- Every channel sub-issue closed with a dated verdict: 2026 best practice, gap vs. devkit today, and a concrete "devkit owns X / repo owns Y" split
- Cross-cutting verdict on declaration key, managed-vs-seeded split, prerelease matrix
- Implementation issues filed per channel (or explicit "won't do" with reason)
- ADR drafted
References
#1746, #1748, #1754, #1523, #1519, #1496, #1144, #988 · docs/DOWNSTREAM_RELEASE.md · docs/RELEASE_CYCLE.md · docs/rfcs/ADR-capability-modules.md
Activity
gerchowl commentedon Sep 29, 2026
Round-1 consolidation (8 fresh-context reviews: 7 channel specialists + 1 platform architect, 2026-09-29)
Per-channel findings with sources are in comments on #1770–#1776.
Where all reviewers agree
devkit-upgradecannot re-register.just dist-*). All seven channel reviewers reached this split independently. It also means [FEATURE] Rust pack L6: seed templates for the three release seams (cargo set-version, publish dry-run, cargo publish --workspace + Trusted Publishing) #1748 should change from seeded to managed.workflow_dispatchby tag.Where they disagree, and the proposed resolution
publish-release.ymlwith a job per channel. npm/PyPI reviewers:publish-npm.yml,publish-pypi.yml, …publish-release.yml. It is one forever-contract name instead of N. Each channel job is gated onDEVKIT_PUBLISH, and each job body is a devkit-owned composite action, which keeps the caller's OIDC identity while still centralising fixes.workflow_dispatchtakestagplus an optionalchannelinput.DEVKIT_PUBLISH, and skip FlakeHub.environment:gatesenvironmentclaim to bind against without adding a human. UNVERIFIED: whether the scaffold can assert it via API; needs a probe.promote-release.yml. Promote is already the natural fan-in: a human dispatches it once all assets are on the draft. Asset producers attest their own build provenance; promote writes and attestsSHA256SUMSand refuses to undraft if any asset lacks an attestation.Prerelease matrix (divergent by design)
create-release: true(unchanged)^); opt-in, dottedrc.N1.2.3rc1); not TestPyPI--tag next; neverlatestX.Y.Z-rcNtags, pruned on promote; floating tags only after publishPitfalls added to the original list
DEVKIT_PRERELEASE_FORMATvalues can be unmappable to PEP 440 (nightly.YYYYMMDD.N, barebeta). The PyPI lane must refuse or normalise them before publish.actions/attest*v4+ also needsartifact-metadata: write; release-candidate pruning on GHCR needspackages: admin.publish-release-extension.yml: scaffold the managed file alongside it, fail a preflight if both publish the same channel, and never rewrite the repo-owned file.Proposed implementation order
publish-release.ymlskeleton,DEVKIT_PUBLISHdeclaration + evidence rules, and composite-action layout; freeze the filename in an ADR.DEVKIT_PUBLISHchannel).Biggest risk (architect): the managed filename becomes an org-wide single point of failure. Mitigations: freeze it in an ADR; add a
publish-preflightthat fails closed when the registered subject drifts; allow no breaking change to that file.docs(rfcs): record turnkey publish-lane ADR
docs(rfcs): address review findings in publish-lane ADR
gerchowl commentedon Sep 29, 2026
Status:
docs/rfcs/ADR-publish-lanes.md, status proposed. It was revised after an adversarial second review, and all 4 blockers and 8 findings are addressed; see the ADR's "Revisions after review" section.publish-release.ymlfoundationpublish-{pypi,crates,npm}, allow default-branch retries, and are never modified once they exist.validate → seal → promote, verifies signer and predicate, and has a degrade mode for private repos without Enterprise Cloud.The channel spikes (#1770–#1776) close when the ADR is accepted.
docs(rfcs): record turnkey publish-lane ADR (#1785)
c-vigo commentedon Sep 30, 2026
ADR merged in #1785 (36e74cc); channel spikes #1770–#1776 are closed with pointers to their implementation issues (#1777–#1787). The ADR's front matter still reads
status: proposed; the flip toacceptedrides the next devkit fix PR.Still open on this spike: dated rows in the #1523 stack matrix for every channel verdict. This issue stays open until they land.
fix: sync watermark, stacked-PR CI, prepare-time bundle, App-ID fallb…
c-vigo commentedon Sep 30, 2026
ADR status flipped to
acceptedondevin #1792.