Skip to content

docs(rfcs): record turnkey publish-lane ADR - #1785

Merged
c-vigo merged 2 commits into
devfrom
feature/1769-publish-lanes-adr
Sep 30, 2026
Merged

c-vigo merged 2 commits into
devfrom
feature/1769-publish-lanes-adr

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Summary

Records the decision from the publish-lane spike #1769 as docs/rfcs/ADR-publish-lanes.md (status: proposed; flip to accepted on merge).

  • One managed, top-level publish-release.yml, with a job per channel gated on a new DEVKIT_PUBLISH declaration. Each job's body is a devkit composite action. crates.io, PyPI and npm Trusted Publishing bind to the caller workflow filename and none accepts reusable workflows, so the filename is frozen by this ADR.
  • Ownership split: devkit manages the publish mechanics; the repo owns the build (just dist-*) and the one-time registry registration.
  • Release seal as the first job of promote-release.yml: refuses to undraft a Release with unattested assets, and adds an attested SHA256SUMS.
  • OCI is the one reusable-workflow exception (no registry Trusted Publishing; cosign identity binds to the called workflow). Nix is reclassified as CI infrastructure.
  • A per-channel verdict and prerelease matrix, verified 2026-09-29 against primary sources (per-channel reviews on [SPIKE] Publish lane: GitHub Releases & release assets (checksums, SBOM, attestations, immutability) #1770–[SPIKE] Publish lane: Nix binary caches & flake distribution (Cachix, FlakeHub, attic) #1776).

Scope

Docs only; no behaviour change. No CHANGELOG.md entry: the ADR ships nothing a consumer can see. Each implementation issue (#1777–#1784, #1748) carries its own entry when it lands.

Test plan

  • prek run --files docs/rfcs/ADR-publish-lanes.md passes (pymarkdown, typos, agent identity, branch name)
  • Reviewer: confirm the frozen names (publish-release.yml, the OCI reusable path) and the single-approval-compatible environment: model before accepting

Refs: #1769

Freeze the managed top-level publish-release.yml contract, the
DEVKIT_PUBLISH declaration, the manage/seed/repo ownership split, the
release seal in promote, and the per-channel prerelease matrix decided
by the publish-lane spike.

Refs: #1769
Make v1 registry publishing finals-only with a resolve guard and defer
candidates, give the environments frozen non-colliding names that allow
default-branch retries, order the seal validate-seal-promote with real
attestation verification and a private-repo degrade mode, introduce the
managed asset builder as owner of the Release bytes, and rename the
concurrency group away from promote's.

Refs: #1769
@c-vigo
c-vigo marked this pull request as ready for review September 30, 2026 17:49
@c-vigo
c-vigo merged commit 36e74cc into dev Sep 30, 2026
15 checks passed
@c-vigo
c-vigo deleted the feature/1769-publish-lanes-adr branch September 30, 2026 17:49
c-vigo added a commit that referenced this pull request Sep 30, 2026
…ack, tmux detach (#1792)

## Description

Five triaged fixes in one PR, plus the publish-lanes ADR status change.
Each issue has its own failing-test commit followed by its fix commit,
so review can go commit by commit.

| Issue | What changes |
|---|---|
| #1757 | `sync-issues.yml` no longer saves the incremental watermark
after a failed push |
| #1759 | `ci.yml`/`codeql.yml` run on PRs to any base; `codeql.yml`
gets a concurrency group |
| #1745 | The release train rebuilds a committed bundle at prepare time,
so it no longer deadlocks on its own Dist Check |
| #1366 | `devkit-upgrade.yml` drops the numeric `DEVKIT_UPGRADE_APP_ID`
fallback |
| #1753 | `vigos.multiplexer`: `detach-on-destroy no-detached` |
| #1769 | `docs/rfcs/ADR-publish-lanes.md` status `proposed` →
`accepted` (#1785 merged) |

## Type of Change

- [x] `feat` -- New feature
- [x] `fix` -- Bug fix
- [x] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [x] `refactor` -- Code restructuring (no behavior change)
- [x] `test` -- Adding or updating tests
- [ ] `ci` -- CI/CD pipeline changes
- [ ] `build` -- Build system or dependency changes
- [ ] `revert` -- Reverts a previous commit
- [ ] `style` -- Code style (formatting, whitespace)

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

**#1757, sync watermark.** In both copies of `sync-issues.yml` (scaffold
and devkit's own), `Save sync state` changes from `if: always()` to
`steps.sync.outcome == 'success' && steps.commit.outcome != 'failure'`.
- A failed push keeps the old cutoff, so the next run retries the same
delta.
- A skipped commit (nothing changed) still saves.
- The 14-day look-back on a cache miss already covers the
endless-rebuild loop that `always()` was added to break.

**#1759, stacked PRs.**
- `pull_request.branches` is now `'**'` in both copies of `ci.yml` and
`codeql.yml`.
- `codeql.yml` gets `concurrency: codeql-${{ github.workflow }}-${{
github.ref }}`, with `cancel-in-progress: ${{ github.event_name !=
'push' }}` so post-merge analysis on `main` still reports every merge.
- The trunk render's `- dev` filter deletion and the trigger-header
prose rewrites for these two files are gone. They were dead code once
the filter no longer lists `dev`.

**#1745, Dist Check deadlock** (the issue's option (a)).
- The detect-and-build logic moves out of `release-core.yml` into a new
managed composite action, `.github/actions/build-bundle`. It outputs
`has_bundle` and `dist_paths` and keeps the #1159 non-ignored-files
rule.
- `prepare-release.yml` calls it before the CHANGELOG freeze, and the
rebuilt `dist/` rides the freeze commit. The release PR therefore opens
with a fresh bundle.
- `release-core.yml` calls the same action at finalize. The rebuild is
idempotent, and the tag stays authoritative.
- Rollback still reverts only `CHANGELOG.md`; a fresher bundle on the
integration branch is harmless.
- The action is added to the `release` feature group, so a release-less
repo does not receive it.

**#1366, App-ID fallback.**
- `devkit-upgrade.yml` reads only `DEVKIT_UPGRADE_APP_CLIENT_ID`. The
fallback expression, the legacy branch of the preflight check and the
deprecation warning are gone.
- `docs/runbooks/devkit-upgrade-app.md` is updated to match.
- The issue's preconditions were checked live on 2026-09-30:
- The Client-ID secret exists in vig-os (selected repos), exo-pet (all
private repos) and exoma-ch (all repos).
- Every vig-os repo that can read the legacy secret can also read the
Client-ID secret.
  - exo-pet already has no legacy secret.
- Commit type is `feat`, not `feat!`: by the issue's own reasoning, the
set of consumers this breaks is empty.

**#1753, multiplexer.** `detach-on-destroy off` → `no-detached`, with
the comment updated.

## Changelog Entry

### Removed

- **Numeric `DEVKIT_UPGRADE_APP_ID` fallback in `devkit-upgrade.yml`**
  ([#1366](#1366))

### Fixed

- **Sync watermark advanced past a failed push**
([#1757](#1757))
- **Stacked PRs ran no CI or CodeQL**
([#1759](#1759))
- **Release train deadlocked on its own Dist Check**
([#1745](#1745))
- **`vigos.multiplexer` re-attached a window to an on-screen session**
([#1753](#1753))

(The sub-bullets are in `CHANGELOG.md`.)

## Testing

- [x] Tests pass locally (`just test`)
- [x] Manual testing performed (describe below)

### Manual Testing Details

- `uv run pytest --ignore=tests/test_image.py
--ignore=tests/test_integration.py`: 2343 passed, 1 skipped. The image
and integration tests are excluded because they run against the local
`:dev` image, which lags behind the branch.
- `bats -j $(nproc)` on every `tests/bats/*.bats` file except
`worktree.bats`: 617/617 ok. `worktree.bats` is excluded because it is
not safe to run in parallel and deletes sibling worktrees when run
locally.
- `prek run --all-files`: green.
- New or updated tests:
  - `tests/test_workflow_sync_watermark.py`
- `tests/test_ci_concurrency.py` (any-base filter and CodeQL
concurrency)
  - `tests/test_release_prepare_bundle.py`
  - `tests/test_release_core.py`
  - `tests/test_workflow_devkit_upgrade.py`
  - `tests/test_flake_checks.py` (multiplexer)
- `init-workspace.bats`: the bundle build now lives in the action, and
the `release` group prunes it
- #1745 can only be proven live on a consumer train with a stale bundle,
which means the next `sync-issues-action` release.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published

## Additional Notes

- #1366's last step, deleting the numeric org secrets
(`DEVKIT_UPGRADE_APP_ID`, `COMMIT_APP_ID`, possibly `RELEASE_APP_ID`),
happens in org-config after consumers adopt this release.
- Separate gap, not changed here: `vig-os/revkit` carries
`devkit-upgrade.yml`, but no App secret is scoped to it, so its weekly
upgrade cannot mint a token. It needs adding to org-config.

Refs: #1757, #1759, #1745, #1366, #1753, #1769
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.

2 participants