Skip to content

chore: sync main into dev after 0.3.1 release - #458

Merged
c-vigo merged 165 commits into
devfrom
chore/sync-main-to-dev
Mar 27, 2026
Merged

c-vigo merged 165 commits into
devfrom
chore/sync-main-to-dev

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Syncs main into dev after the 0.3.1 release: brings release workflow fixes, smoke-test orchestration, vig-utils (retry, prepare-changelog unprepare, validate-commit-msg updates), image/tooling changes, synced docs, and finalizes the 0.3.1 changelog headers (link + date). Resolves merge conflicts from the sync. Keeps ## Unreleased entries that only existed on dev (#373, #383).

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • 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

  • Merge: main → chore/sync-main-to-dev (merge commit 926963a), including release 0.3.1 history through merge of release/0.3.1.
  • Follow-up: docs: set 0.3.1 release link and date in root and workspace CHANGELOG.md (7acaab4).
  • High-level areas (from git diff --stat origin/dev...HEAD): upstream and workspace GitHub workflows (release, prepare-release, CI, sync, smoke-test templates), Containerfile / init-workspace.sh, packages/vig-utils (retry CLI, prepare_changelog unprepare, validate_commit_msg, tests), scripts/manifest.toml, BATS and pytest updates, docs/issues/ and docs/pull-requests/ sync artifacts, dependency pins (package.json / lockfile).

Changelog Entry

The 0.3.1 shipped changes are already under ## [0.3.1](...) - 2026-03-26 in CHANGELOG.md and the workspace copy; this PR does not duplicate them in Unreleased.

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A — branch merge and conflict resolution; full just test not run in this session.

Checklist

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

Additional Notes

Merge-conflict resolutions (earlier on this branch): combined Unreleased with 0.3.1 sections in CHANGELOGs; took newer sync-issues snapshots from main where appropriate; kept PR #342 doc state from dev where it was newer (merged release PR).

Refs: #455, #459

commit-action-bot Bot and others added 30 commits March 17, 2026 14:13
Strip empty Unreleased section from release branch.
Release date TBD (set during finalization).
## Description

This PR fixes release-branch CI drift caused by changelog mutations not
being mirrored into `assets/workspace/.devcontainer/CHANGELOG.md` before
API commits.

It adds explicit manifest sync steps to both release workflows so
changelog writes and mirror writes stay atomic across prepare, finalize,
and rollback paths.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `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

- `.github/workflows/release.yml`
- Add `Sync workspace manifest for finalized release` step after
changelog finalization/doc generation and before collecting file paths
for API commit.
- `.github/workflows/prepare-release.yml`
- Add `sync_manifest.py` execution after changelog prepare and after
stripping `Unreleased` on release branch.
- Ensure API commit file lists include both `CHANGELOG.md` and
`assets/workspace/.devcontainer/CHANGELOG.md`.
- Sync workspace manifest in rollback path before rollback commit when
changelog restore is needed.
- `assets/workspace/.devcontainer/CHANGELOG.md`
- Commit current mirrored state (`## [0.3.1] - TBD`) so branch starts
from a synced baseline.

## Changelog Entry

No changelog needed — this is a CI/workflow consistency fix on release
automation and does not add user-facing runtime behavior.

## Testing

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

### Manual Testing Details

- Ran pre-commit checks on modified workflow files:
  - `uv run pre-commit run --files .github/workflows/release.yml`
- `uv run pre-commit run --files .github/workflows/prepare-release.yml`
- Verified clean working tree after commits and confirmed branch is
ahead with only intended changes.

## Checklist

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

## Additional Notes

- Root cause reproduced from failing check run:
https://github.com/vig-os/devcontainer/actions/runs/23198605456/job/67414012578?pr=342
- This branch targets `release/0.3.1` to unblock the release train.

Refs: #343
…350)

## Description

Hardens the release workflow against transient network failures that
previously caused candidate publishing to fail during Sigstore/Rekor
interactions. It adds retries for SBOM generation, cosign signing,
provenance/SBOM attestations, and smoke-test repository dispatch, and
migrates SBOM attestation from deprecated `actions/attest-sbom` to
`actions/attest`.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `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

- `.github/workflows/release.yml`
- Add retry loop (`3` attempts, `15s` backoff) around `cosign sign` in
`publish` job
  - Add first-attempt + conditional retry pattern for `Generate SBOM`
- Add first-attempt + conditional retry pattern for `Attest build
provenance`
- Replace deprecated `actions/attest-sbom` with `actions/[email protected]`
and add retry pattern
- Add retry loop (`3` attempts, `10s` backoff) for smoke-test
`repository_dispatch` API call

## Changelog Entry

No changelog needed: this is an internal CI workflow reliability fix
with no user-facing runtime behavior change.

## Testing

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

### Manual Testing Details

- Ran repo pre-commit hooks via `git commit` path; `check yaml`,
`yamllint`, and action pin checks passed.
- Verified workflow syntax and resulting diff for all retry/migration
changes in `.github/workflows/release.yml`.

## Checklist

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

## Additional Notes

- Root failure reference: release run `23201577188`, step `Attest SBOM`,
timeout while creating Rekor tlog entry.
- `anchore/sbom-action` Node 20 deprecation warning remains out of scope
for this issue and should be tracked separately.

Refs: #347
## Description

Adds the missing `artifact-metadata: write` permission to the release
publish job so attestation metadata storage records can be persisted and
related warnings are removed during release publish runs.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `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

- `.github/workflows/release.yml`
- Add `artifact-metadata: write` under `publish` job permissions for
attestation metadata persistence.
- `CHANGELOG.md`
  - Add `0.3.1` Fixed entry for issue `#348`.
- `assets/workspace/.devcontainer/CHANGELOG.md`
  - Sync mirrored changelog entry via repository manifest hook.

## Changelog Entry

### Fixed
- **Release attestation warnings reduced by granting artifact metadata
permission** ([#348](#348))
- Add `artifact-metadata: write` to the release publish job so
attestation steps can persist metadata storage records
- Keep `actions/attest`-based SBOM attestation path and remove
missing-permission warnings from publish runs

## Testing

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

### Manual Testing Details

- Verified workflow diff includes only the permission addition in
`publish` job.
- Verified attestation steps use `actions/attest` and no
`actions/attest-sbom` remains in `.github/workflows/release.yml`.
- Verified pre-commit hooks passed on both commits.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] 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
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

This PR targets `release/0.3.1` because the warning was observed in that
release workflow run path.

Refs: #348
Repair repository ownership in repository_dispatch deploy runs when Docker leaves bind-mounted files non-writable, preventing changelog copy failures and downstream deploy automation breakage.

Refs: #352
Use target-specific writability checks for .devcontainer/CHANGELOG.md and CHANGELOG.md so ownership normalization triggers for the actual copy failure mode noted in PR review.

Refs: #352
Use source readability (-r) for .devcontainer/CHANGELOG.md in the dispatch deploy ownership guard so the probe matches cp preconditions more accurately.

Refs: #352
## Summary
- add a post-install write probe in
`assets/smoke-test/.github/workflows/repository-dispatch.yml` for
repository dispatch deploy runs
- when the probe fails, normalize workspace ownership with `sudo chown
-R "$(id -u):$(id -g)" .` before copying `.devcontainer/CHANGELOG.md` to
root `CHANGELOG.md`
- document the fix in `CHANGELOG.md` (and synced
`assets/workspace/.devcontainer/CHANGELOG.md`) under issue `#352`

## Test plan
- [x] run `uv run pre-commit run --files
assets/smoke-test/.github/workflows/repository-dispatch.yml CHANGELOG.md
assets/workspace/.devcontainer/CHANGELOG.md`
- [ ] trigger downstream `repository_dispatch` smoke-test run for an RC
tag and confirm no `Permission denied` errors in `Run installer from
dispatch tag`
- [ ] confirm deploy branch preparation and deploy PR creation steps
execute after installer
## Description

Fixes a false-positive release lookup in the smoke-test
`repository_dispatch` workflow where a missing tag release (`404`) was
treated as an existing release because the script relied on non-empty
stdout instead of command status.

The workflow now branches on `gh api` exit status so missing tags
correctly follow the release-create path, and existing releases still
validate and update release notes.

## Type of Change

- [x] `fix` -- Bug fix
- [ ] `feat` -- New feature
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `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

- `assets/smoke-test/.github/workflows/repository-dispatch.yml`
- Replace `|| true` + stdout-emptiness release detection with
status-aware `if EXISTING_RELEASE=$(gh api ...)`
- Preserve existing release validation (`.prerelease` check) and `gh
release edit` path
- Ensure 404/missing tag falls into `gh release create` path instead of
failing with `prerelease=null`
- `CHANGELOG.md`
  - Add `### Fixed` entry for issue `#355`
- `assets/workspace/.devcontainer/CHANGELOG.md`
  - Synced by pre-commit `sync-manifest` hook from root changelog update

## Changelog Entry

### Fixed
- **Smoke-test release lookup no longer treats missing tags as existing
releases** ([#355](#355))
- Change `assets/smoke-test/.github/workflows/repository-dispatch.yml`
to branch on `gh api` exit status when querying `releases/tags/<tag>`
- Ensure missing release tags follow the create path instead of failing
with `prerelease=null` mismatch

## Testing

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

### Manual Testing Details

- Ran `npx bats tests/bats/just.bats` (13/13 passing)

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] 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
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

N/A

Refs: #355
c-vigo and others added 24 commits March 25, 2026 14:56
## Description

When upstream publishes a candidate such as `0.3.1-rc21` and dispatches
to `devcontainer-smoke-test`, the downstream workspace `release.yml`
used to auto-increment the RC from local tags only, producing
`0.3.1-rc1` and breaking the upstream final-release gate that expects a
downstream pre-release at the same RC tag.

This change passes the numeric RC suffix from the dispatch tag through
smoke-test orchestration into workspace `release.yml` /
`release-core.yml` via optional `rc-number`, and documents the contract
for cross-repo alignment.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `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

- **`assets/smoke-test/.github/workflows/repository-dispatch.yml`**
- Derive `rc_number` from `client_payload.tag` when it matches
`X.Y.Z-rcN`
- Expose `rc_number` on `validate` job outputs; pass `-f rc-number=…`
when triggering downstream `release.yml` for candidates
  - Extend dispatch summary with base version and RC suffix
- **`assets/workspace/.github/workflows/release.yml`**
- Add optional `workflow_dispatch` input `rc-number`; forward to
`release-core` as `rc_number`
- **`assets/workspace/.github/workflows/release-core.yml`**
- Add optional `workflow_call` input `rc_number`; when set for candidate
mode, use it instead of scanning remote tags for the next RC (with
validation `>= 1`)
- **`tests/bats/just.bats`**
- Smoke tests for dispatch `rc_number` wiring and workspace `rc-number`
/ `rc_number` inputs
- **`docs/CROSS_REPO_RELEASE_GATE.md`**,
**`docs/DOWNSTREAM_RELEASE.md`**
- Document when and how to pass `rc-number` for cross-repo RC alignment
- **`CHANGELOG.md`**, **`assets/workspace/.devcontainer/CHANGELOG.md`**
  - Fixed entry for #441 under the `0.3.1` TBD section

## Changelog Entry

Under `## [0.3.1] - TBD` → `### Fixed`:

```markdown
- **Downstream candidate RC tag can match upstream dispatch** ([#441](#441))
  - Workspace `release.yml` / `release-core.yml` accept optional `rc-number` so candidate tags are not always recomputed from local tags only
  - Smoke-test `repository-dispatch.yml` exposes `base_version` and `rc_number` job outputs for orchestration that calls workspace `release.yml`
```

## Testing

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

### Manual Testing Details

N/A — workflow and template changes; BATS coverage exercises template
invariants.

## 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 active release section (`##
[0.3.1] - TBD`) (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
- [ ] Any dependent changes have been merged and published

## Additional Notes

Branch was created from `release/0.3.1`; this PR should target
**`release/0.3.1`** (patch line), not `dev`.

Refs: #441
## Description

Adds an early validation step in the release workflow so a final release
fails in **Validate Release** if a GitHub Release for `PUBLISH_VERSION`
already exists. That avoids spending build/sign/publish time when the
publish step would hit the same guard anyway (see investigation on
#443).

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `test` -- Adding or updating tests
- [x] `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

- **`.github/workflows/release.yml`**
- New step **Verify GitHub Release does not exist** after **Verify tag
does not exist**, using `gh release view` and `github.token`.
- **`CHANGELOG.md`**
  - Fixed entry for #443 under `## [0.3.1] - TBD`.
- **`assets/workspace/.devcontainer/CHANGELOG.md`**
  - Same changelog bullet kept in sync with root manifest.

## Changelog Entry

This PR targets `release/0.3.1`; the entry is under `## [0.3.1] - TBD`
(not `## Unreleased`).

### Fixed

- **Release validate fails early when GitHub Release already exists**
([#443](#443))
- Validate job in `.github/workflows/release.yml` now checks `gh release
view` for `PUBLISH_VERSION` so an existing release is rejected before
build/sign/publish

## Testing

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

### Manual Testing Details

N/A — workflow-only change; validation is exercised on the next release
run.

## Checklist

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

## Additional Notes

N/A

Refs: #443
#447)

## Description

Removes the **PR Title Check** GitHub Actions workflow that produced
false positives (e.g. on release PRs) and drops the **`--subject-only`**
mode from `validate-commit-msg`, which existed only for that CI path.
Full commit messages remain validated by pre-commit and
`validate-commit-msg` as before.

## Type of Change

- [ ] `feat` -- New feature
- [ ] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [x] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `test` -- Adding or updating tests
- [x] `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

- **`.github/workflows/pr-title-check.yml`** — deleted (workflow removed
from CI).
- **`.github/agent-blocklist.toml`**,
**`assets/workspace/.github/agent-blocklist.toml`** — header comment no
longer references removed CI.
- **`CHANGELOG.md`**, **`assets/workspace/.devcontainer/CHANGELOG.md`**
— `### Removed` under `## [0.3.1] - TBD` documents the workflow removal
and `--subject-only` removal.
- **`packages/vig-utils/src/vig_utils/validate_commit_msg.py`** — remove
`subject_only` parameter and `--subject-only` CLI flag.
- **`packages/vig-utils/tests/test_validate_commit_msg.py`** — remove
`TestSubjectOnly` and related coverage; rename chore minimal test for
clarity.
- **`packages/vig-utils/tests/test_gh_issues.py`** — dedup CI test uses
generic check name instead of `Validate PR Title`.
- **`packages/vig-utils/README.md`** — drop `--subject-only` from
command reference.

## Changelog Entry

Target section is **`## [0.3.1] - TBD`** (release branch; not `##
Unreleased`).

```markdown
### Removed

- **PR Title Check GitHub Actions workflow** ([#444](#444))
  - Remove `.github/workflows/pr-title-check.yml`; commit message rules remain enforced via local hooks and `validate-commit-msg`
  - Remove `--subject-only` from `validate-commit-msg` (it existed only for PR title CI)
```

## Testing

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

### Manual Testing Details

Ran targeted pytest (not full `just test`):

- `uv run pytest packages/vig-utils/tests/test_validate_commit_msg.py` —
110 passed
- `uv run pytest packages/vig-utils/tests/test_gh_issues.py` — 70 passed

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [ ] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [ ] 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

- Changelog updates are under **`## [0.3.1] - TBD` → `### Removed`**,
not `## Unreleased`, per release-branch rules.
- **`packages/vig-utils/README.md`** updated for the CLI; no
`docs/templates/` change.
- After merge, remove **Validate PR Title** from required status checks
in branch protection if it is still listed (repo settings).

Refs: #444
…back

Final release automation creates a draft GitHub Release for human review and
publishing from the UI, matching immutable-releases draft-first guidance.
Validate and publish treat an existing draft for the same tag as the retry path
and fail closed on a published (non-draft) final release for that tag.

After finalization, detect when the remote publish tag already peels to the
finalize SHA; skip redundant tag create and push. Remove the pre-publish
"tag must not exist" gate in favor of this SHA-aware check.

Rollback resets the release branch (best-effort) but no longer deletes remote
tags; failure issues and operator copy explain forward-fix recovery, draft
release handling, and how immutable releases differ from tag rulesets.

Align workspace release-core, release-publish, and orchestrator rollback with
the same semantics; extend release-publish inputs for tag_already_exists and
draft/published release checks (including candidate pre-release retry paths).
Update smoke-test repository-dispatch failure guidance for published releases
and immutable tags.

Document policy and recovery in RELEASE_CYCLE (new immutable-releases section,
diagram and procedure updates), DOWNSTREAM_RELEASE (consumer-only scope,
downstream draft final and RC pre-release notes), and CROSS_REPO_RELEASE_GATE.
CHANGELOG Unreleased records user-visible impact.

Refs: #446
…ck (#448)

## Description

Aligns release automation with GitHub **immutable releases** and
**draft-first** practice for finals: `release.yml` creates a **draft**
GitHub Release for human review, allows retry when a draft or matching
remote tag already exists, skips redundant tag push when the tag peels
to the finalize SHA, and stops deleting remote tags on rollback
(forward-fix policy). Workspace downstream workflows, smoke-test
dispatch guidance, and release docs are updated to match.

## Type of Change

- [ ] `feat` -- New feature
- [ ] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `test` -- Adding or updating tests
- [x] `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

- **`.github/workflows/release.yml`** — Draft final GitHub Release;
validate/publish tolerate existing draft vs published; `tag_state` /
skip tag create-push when remote tag matches finalize SHA; rollback
removes tag deletion step; summaries and failure issues document
forward-fix and draft handling.
- **`assets/workspace/.github/workflows/release-core.yml`** — Move
tag-vs-SHA check to finalize job; expose `tag_already_exists`; drop
blunt “tag must not exist” validate gate.
- **`assets/workspace/.github/workflows/release-publish.yml`** — Input
`tag_already_exists`; conditional tag step; draft final release create;
draft/prerelease retry semantics for candidates.
- **`assets/workspace/.github/workflows/release.yml`** — Pass
`tag_already_exists`; rollback no longer deletes tags; issue body
updated.
- **`assets/smoke-test/.github/workflows/repository-dispatch.yml`** —
Failure copy: immutable/published release guidance and fresh RC
dispatch.
- **`docs/RELEASE_CYCLE.md`**, **`docs/DOWNSTREAM_RELEASE.md`**,
**`docs/CROSS_REPO_RELEASE_GATE.md`** — Immutable releases vs tag
rulesets, operator steps, downstream scope, recovery.
- **`CHANGELOG.md`** and
**`assets/workspace/.devcontainer/CHANGELOG.md`** — `## [0.3.1] - TBD`
entry for #446 (template mirror).

**Commits (vs `release/0.3.1`):** `1bb5f78` — feat(ci): draft final
releases, idempotent tags, and forward-fix rollback

## Changelog Entry

On this branch the active section is `## [0.3.1] - TBD` (not `##
Unreleased`). Added under **### Changed**:

```markdown
- **Immutable GitHub releases, tag rulesets, and forward-fix policy** ([#446](#446))
  - Final releases create a **draft** GitHub Release for human review before publishing; rollback no longer deletes remote tags
  - Release workflows skip redundant tag push when the tag already matches the finalized commit; workspace `release-core` / `release-publish` and smoke-test failure guidance updated accordingly
  - Document tag rulesets, immutable releases, and recovery in `docs/RELEASE_CYCLE.md`, `docs/DOWNSTREAM_RELEASE.md`, and `docs/CROSS_REPO_RELEASE_GATE.md`
```

## Testing

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

### Manual Testing Details

N/A — workflow and documentation changes; validate in Actions on merge /
release dry-run as appropriate.

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] 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` under `## [0.3.1] - TBD` (and pasted
the entry above)
- [x] My changes generate no new warnings or errors
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Additional Notes

Target base is **`release/0.3.1`** (release train), not `dev`. Operators
must **publish** the draft GitHub Release from the UI when ready for
finals; see `docs/RELEASE_CYCLE.md`.

Refs: #446
…450)

## Description

Release PR bodies from `prepare-release` and the finalize step in
`release.yml` used `## Release` plus a redundant `### Release Content`
wrapper, so the Keep a Changelog `## [version]` block was nested under
an extra heading. This PR uses `# Release $VERSION` for draft PRs, keeps
the existing linked H1 on finalize, and removes `### Release Content`
everywhere. Downstream consumer template under `assets/workspace/` is
kept in sync.

## Type of Change

- [ ] `feat` -- New feature
- [ ] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `test` -- Adding or updating tests
- [x] `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

- `.github/workflows/prepare-release.yml` — Draft PR `PR_BODY`: H1 `#
Release $VERSION`, drop `### Release Content`, changelog slice
unchanged.
- `.github/workflows/release.yml` — Finalize refresh heredoc: drop `###
Release Content`; keep `# [Release …](tag) - date` and intro.
- `assets/workspace/.github/workflows/prepare-release.yml` — Mirror
draft PR body formatting for downstream installs.

## Changelog Entry

No changelog needed — internal automation / PR body Markdown only; issue
#449 tracked as no user-facing CHANGELOG entry.

## Testing

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

### Manual Testing Details

- `rg` over workflow paths: no `### Release Content`, no `PR_BODY="##
Release`; both `prepare-release.yml` files contain `PR_BODY="# Release`.
- Pre-commit passed on commit `fix(ci): use H1 release title and drop
Release Content in PR bodies`.

## Checklist

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

## Additional Notes

Targets **release/0.3.1** so the fix can ride the current release line.
See issue #449 for acceptance criteria.

Refs: #449
)

## Description

Smoke-test orchestration failed for `0.3.1-rc24` because the workspace
`release.yml` passed `needs.core.outputs.tag_already_exists` (a string
from job outputs) into `release-publish.yml`, which declares that input
as `type: boolean`. GitHub Actions rejects the reusable workflow call,
so the Publish job never spawns sub-jobs and the downstream Release run
fails. This PR coerces the value with `== 'true'` so the call receives a
real boolean.

## Type of Change

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [ ] `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

- `assets/workspace/.github/workflows/release.yml` — pass
`tag_already_exists: ${{ needs.core.outputs.tag_already_exists == 'true'
}}` into `release-publish.yml`.
- `CHANGELOG.md` — document the fix under `## [0.3.1] - TBD` →
**Fixed**.
- `assets/workspace/.devcontainer/CHANGELOG.md` — same entry (workspace
SSoT mirror).

## Changelog Entry

Pasted from `CHANGELOG.md` on this branch (under `## [0.3.1] - TBD` →
**Fixed**; this release branch uses the TBD section instead of `##
Unreleased`):

```markdown
- **Workspace release publish `tag_already_exists` input coercion** ([#451](#451))
  - Pass a boolean into `release-publish.yml` via `needs.core.outputs.tag_already_exists == 'true'` so `workflow_call` does not reject string `"true"`/`"false"` job outputs
```

## Testing

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

### Manual Testing Details

N/A — workflow expression change only; behavior verified via RCA against
failed run logs. Follow-up validation is a new smoke-test dispatch after
template reaches the validation repo.

## Checklist

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

## Additional Notes

RCA draft for posting on the issue:
`docs/issues/issue-451-github-comment.md` (optional).

Refs: #451
# [Release
0.3.1](https://github.com/vig-os/devcontainer/releases/tag/0.3.1) -
2026-03-26

This PR prepares release 0.3.1 for merge to main.

## [0.3.1] - TBD

### Added

- **Split downstream release workflow with project-owned extension
hook** ([#326](#326))
- Add local `workflow_call` release phases (`release-core.yml`,
`release-publish.yml`) and a lightweight `release.yml` orchestrator in
`assets/workspace/.github/workflows/`
- Add `release_kind` support with candidate mode (`X.Y.Z-rcN`) and final
mode (`X.Y.Z`) in downstream release workflows
- Candidate mode now auto-computes the next RC tag, skips CHANGELOG
finalization/sync-issues, and publishes a GitHub pre-release
- Add project-owned `release-extension.yml` stub and preserve it during
`init-workspace.sh --force` upgrades
- Add `validate-contract` composite action for single-source contract
version validation
- Add downstream release contract documentation and GHCR extension
example in `docs/DOWNSTREAM_RELEASE.md`
- **`jq` in devcontainer image**
([#425](#425))
- Install the `jq` CLI in the GHCR image so containerized workflows
(e.g. `release-core` validate / downstream Release Core) can pipe JSON
through `jq`

### Changed

- **Dependabot dependency update batch**
([#302](#302),
[#303](#303),
[#305](#305),
[#306](#306),
[#307](#307),
[#308](#308),
[#309](#309))
- Bump `@devcontainers/cli` from `0.81.1` to `0.84.0` and `bats-assert`
from `v2.2.0` to `v2.2.4`
- Bump GitHub Actions: `actions/download-artifact` (`4.3.0` -> `8.0.1`),
`actions/github-script` (`7.1.0` -> `8.0.0`),
`actions/attest-build-provenance` (`3.0.0` -> `4.1.0`),
`actions/checkout` (`4.3.1` -> `6.0.2`)
- Bump release workflow action pins: `sigstore/cosign-installer`
(`4.0.0` -> `4.1.0`) and `anchore/sbom-action` (`0.22.2` -> `0.23.1`)
- **Dependabot dependency update batch**
([#314](#314),
[#315](#315),
[#316](#316),
[#317](#317))
- Bump GitHub Actions: `actions/attest-sbom` (`3.0.0` -> `4.0.0`),
`actions/upload-artifact` (`4.6.2` -> `7.0.0`),
`actions/create-github-app-token` (`2.2.1` -> `3.0.0`)
  - Bump `docker/login-action` from `3.7.0` to `4.0.0`
  - Bump `just` minor version from `1.46` to `1.47`
- **Node24-ready GitHub Actions pin refresh for shared composite
actions** ([#321](#321))
- Update Docker build path pins in `build-image`
(`docker/setup-buildx-action`, `docker/metadata-action`,
`docker/build-push-action`) to Node24-compatible releases
- Set `setup-env` default Node runtime to `24` and upgrade
`actions/setup-node`
- Align test composite actions with newer pins (`actions/checkout`,
`actions/cache`, `actions/upload-artifact`)
- **Smoke-test dispatch payload now carries source run traceability
metadata** ([#289](#289))
- Candidate release dispatches now include source repo/workflow/run/SHA
metadata plus a deterministic `correlation_id`
- Smoke-test dispatch receiver logs normalized source context, derives
source run URL when possible, and writes it to workflow summary output
- Release-cycle docs now define required vs optional dispatch payload
keys and the future callback contract path for `publish-candidate`
- **Smoke-test repository dispatch now runs for final releases too**
([#173](#173))
- `release.yml` now triggers the existing smoke-test dispatch contract
for both `candidate` and `final` release kinds
- Final release summaries and release-cycle documentation now reflect
dispatch behavior for both release modes
- **Workspace CI templates now use a single container-based workflow**
([#327](#327))
- Consolidate `assets/workspace/.github/workflows/ci.yml` as the
canonical CI workflow and remove the obsolete `ci-container.yml`
template
- Extract reusable `assets/workspace/.github/actions/resolve-image` and
run workspace release tests in the same containerized workflow model
- Update smoke-test and release-cycle documentation to reference the
single CI workflow contract
- **Final release now requires downstream RC pre-release gate**
([#331](#331))
- Add upstream final-release validation that requires a downstream
GitHub pre-release for the latest published RC tag
- Move smoke-test dispatch to a dedicated release job and include
`release_kind` in the dispatch payload
- Add downstream `repository-dispatch.yml` template that runs smoke
tests and creates pre-release/final release artifacts
- **Ship changelog into workspace payload and smoke-test deploy root**
([#333](#333))
- Sync canonical `CHANGELOG.md` into both workspace root and
`.devcontainer/` template paths
- Smoke-test dispatch now copies `.devcontainer/CHANGELOG.md` to
repository root so deploy output keeps a root changelog
- **Final release now publishes a GitHub Release with finalized notes**
([#310](#310))
- Add a final-only publish step in `.github/workflows/release.yml` that
creates a GitHub Release for `X.Y.Z`
- Source GitHub Release notes from the finalized `CHANGELOG.md` section
and fail the run if notes extraction or release publishing fails
- **Release dispatch and publish ordering hardened for 0.3.1**
([#336](#336))
- Make smoke-test dispatch fire-and-forget in
`.github/workflows/release.yml` and decouple rollback from downstream
completion timing
- Add bounded retries to the final-release downstream RC pre-release
gate API check
- Move final GitHub Release creation to the end of publish so artifact
publication/signing completes before release object creation
- Add concurrency control to
`assets/smoke-test/.github/workflows/repository-dispatch.yml` to prevent
overlapping dispatch races
- Handle smoke-test dispatch failures with a targeted issue while
avoiding destructive rollback after publish artifacts are already
released
- **Redesigned smoke-test dispatch release orchestration**
([#358](#358))
- Replace premature `publish-release` behavior with full downstream
orchestration: deploy-to-dev merge gate, `prepare-release.yml`, release
PR readiness/approval, and `release.yml` dispatch polling
- Add upstream failure issue reporting with job-phase results and
cleanup guidance when dispatch orchestration fails
- **Smoke-test release orchestration now runs as two phases**
([#402](#402))
- Keep `repository-dispatch.yml` focused on deploy/prepare/release-PR
readiness and move release dispatch to a dedicated merged-PR workflow
(`on-release-pr-merge.yml`)
- Add release-kind labeling and auto-merge enablement for release PRs,
and keep upstream failure notifications in both phases
- Remove release-branch upstream `CHANGELOG.md` sync from
`repository-dispatch.yml` (previously added in
[#358](#358))
- **Dependabot dependency update batch**
([#414](#414))
- Bump `github/codeql-action` from `4.32.6` to `4.34.1` and
`anchore/sbom-action` from `0.23.1` to `0.24.0`
- Bump `actions/cache` restore/save pins from `5.0.3` to `5.0.4` in
`sync-issues.yml`
- **Dependabot dependency update batch**
([#413](#413))
  - Bump `@devcontainers/cli` from `0.84.0` to `0.84.1`
- **cursor-agent install is now resilient to CDN failures**
([#434](#434))
  - Retries 3 times with backoff before giving up
  - Build succeeds without cursor-agent when Cursor's CDN is unavailable
- **Immutable GitHub releases, tag rulesets, and forward-fix policy**
([#446](#446))
- Final releases create a **draft** GitHub Release for human review
before publishing; rollback no longer deletes remote tags
- Release workflows skip redundant tag push when the tag already matches
the finalized commit; workspace `release-core` / `release-publish` and
smoke-test failure guidance updated accordingly
- Document tag rulesets, immutable releases, and recovery in
`docs/RELEASE_CYCLE.md`, `docs/DOWNSTREAM_RELEASE.md`, and
`docs/CROSS_REPO_RELEASE_GATE.md`
- **Container image tests expect current GitHub CLI minor line**
- Update `tests/test_image.py` `EXPECTED_VERSIONS["gh"]` to `2.89.` to
match the CLI shipped in the image

### Removed

- **PR Title Check GitHub Actions workflow**
([#444](#444))
- Remove `.github/workflows/pr-title-check.yml`; commit message rules
remain enforced via local hooks and `validate-commit-msg`
- Remove `--subject-only` from `validate-commit-msg` (it existed only
for PR title CI)

### Fixed

- **Smoke-test deploy restores workspace CHANGELOG for prepare-release**
([#417](#417))
- Add `prepare-changelog unprepare` to rename the top `## [semver] - …`
heading to `## Unreleased`
- `init-workspace.sh --smoke-test` copies `.devcontainer/CHANGELOG.md`
into workspace `CHANGELOG.md` and runs unprepare; remove duplicate remap
from smoke-test dispatch workflow
- **Release app permission docs now include downstream workflow dispatch
requirements**
([#397](#397))
- Update `docs/RELEASE_CYCLE.md` to require `Actions` read/write for
`RELEASE_APP` on the validation repository
- Clarify this is required so downstream `repository-dispatch.yml` can
trigger release orchestration workflows via `workflow_dispatch`
- **Smoke-test dispatch no longer fails on release PR self-approval**
([#402](#402))
- Remove bot self-approval from `repository-dispatch.yml` and replace
with release-kind labeling plus auto-merge enablement
- Remove in-job polling for release PR merge and downstream release
execution from phase 1 orchestration
- Phase 2 (`on-release-pr-merge.yml`) fails validation unless the merged
release PR has `release-kind:final` or `release-kind:candidate`
- **Sync-main-to-dev PRs now trigger CI reliably in downstream repos**
([#398](#398))
- Replace API-based sync branch creation with `git push` in
`assets/workspace/.github/workflows/sync-main-to-dev.yml`
- **Sync-main-to-dev no longer dispatches CI via workflow_dispatch**
([#405](#405))
- `workflow_dispatch` runs are omitted from the PR status check rollup,
so they do not satisfy branch protection on the sync PR
- Remove the post-PR `gh workflow run ci.yml` step and drop `actions:
write` from the sync job in `.github/workflows/sync-main-to-dev.yml` and
`assets/workspace/.github/workflows/sync-main-to-dev.yml`
- **Sync-main-to-dev conflict detection uses merge-tree**
([#410](#410))
- Replace working-tree trial merge with `git merge-tree --write-tree` so
clean merges are not mislabeled as conflicts
- Enable auto-merge when dev merges cleanly with main; print merge-tree
output on conflicts; fail the step on unexpected errors
- **Smoke-test release phase 2 branch-not-found failure**
([#419](#419))
- Merge phase 2 (`on-release-pr-merge.yml`) back into
`repository-dispatch.yml` so the release runs while `release/<version>`
still exists, matching the normal release flow
  - Remove `on-release-pr-merge.yml` from the smoke-test template
- **Pinned commit-action to v0.2.0**
([#354](#354))
- Updated workflow pins from `vig-os/commit-action@c0024cb` (v0.1.5) to
`1bc004353d08d9332a0cb54920b148256220c8e0` (v0.2.0) in release,
sync-issues, prepare-release, and smoke-test workflows
- Upstream v0.2.0 adds bounded retry with exponential backoff for
transient GitHub API failures (configurable `MAX_ATTEMPTS` and delay
bounds)
- Efficient multi-file commits via `createTree` inline content for text
files, binary blobs only when needed, and chunked tree creation for
large change sets
- Exports `isBinaryFile`, `getFileMode`, and `TREE_ENTRY_CHUNK_SIZE` for
library use; sequential binary blob creation to reduce secondary
rate-limit bursts

- **Release finalization now commits generated docs and refreshes PR
content** ([#300](#300))
- Final release automation regenerates docs before committing so
pre-commit `generate-docs` does not fail CI with tracked file diffs
  - Release PR body is refreshed from finalized `CHANGELOG.md`
- **Release attestation warnings reduced by granting artifact metadata
permission** ([#348](#348))
- Add `artifact-metadata: write` to the release publish job so
attestation steps can persist metadata storage records
- Keep `actions/attest`-based SBOM attestation path and remove
missing-permission warnings from publish runs
- **Smoke-test dispatch deploy now repairs workspace ownership before
changelog copy**
([#352](#352))
- Add a write probe and conditional `sudo chown -R` in
`assets/smoke-test/.github/workflows/repository-dispatch.yml` after
installer execution
- Prevent `Permission denied` failures when copying
`.devcontainer/CHANGELOG.md` to repository root in GitHub-hosted runner
jobs
- **Smoke-test release lookup no longer treats missing tags as existing
releases** ([#355](#355))
- Change `assets/smoke-test/.github/workflows/repository-dispatch.yml`
to branch on `gh api` exit status when querying `releases/tags/<tag>`
- Ensure missing release tags follow the create path instead of failing
with `prerelease=null` mismatch
- **Bounded retry added for network-dependent setup and prepare-release
calls** ([#357](#357))
- Replace shell-based retry helper with pure Python `retry` CLI in
`vig-utils` (`packages/vig-utils/src/vig_utils/retry.py`)
- Update this repository CI workflows to call `uv run retry` after
`setup-env` dependency sync
- Update downstream workflow templates to call `retry` directly in
devcontainer jobs and remove `source` lines
- Ensure downstream containerized jobs resolve image tags from `.vig-os`
instead of hardcoded `latest`
- Bundle idempotency guards for branch/PR/tag/release creation paths to
keep retried network calls safe on reruns
- Remove synced `retry.sh` artifacts and BATS retry tests in favor of
`vig-utils` pytest coverage
- **Release workflow no longer fails when retry tooling is unavailable**
([#365](#365))
- Extend `.github/actions/setup-env/action.yml` with a reusable `retry`
shell function exported via `BASH_ENV` as the retry single source of
truth
- Add `setup-env` input support for uv-only usage by allowing Python
setup to be disabled when jobs only need retry tooling
- Switch release workflow retry calls from `uv run retry` to shared
`retry` and remove duplicated inline retry implementations
- **Upstream sync workflows no longer depend on pre-published GHCR image
tags** ([#367](#367))
- Remove upstream `.vig-os` files at repository root and
`assets/smoke-test/` to eliminate downstream-only configuration from
upstream CI
- Refactor `.github/workflows/sync-issues.yml` and
`.github/workflows/sync-main-to-dev.yml` to run natively on runners via
`./.github/actions/setup-env` instead of `resolve-image` + `container`
- **Release test-image setup now recovers from uv sync crashes**
([#370](#370))
- Harden `.github/actions/setup-env/action.yml` to retry `uv sync
--frozen --all-extras` once after clearing uv cache and removing stale
`.venv`
- Prevent repeat release test failures when `setup-env` is executed
multiple times in the same job
- **Release setup-env no longer self-sources retry helper via BASH_ENV**
([#374](#374))
- Guard the retry-helper merge logic in
`.github/actions/setup-env/action.yml` to skip merging when
`PREV_BASH_ENV` already equals `RETRY_HELPER`
- Prevent infinite `source` recursion and exit 139 crashes when
`setup-env` is invoked multiple times in one job
- **Smoke-test dispatch now checks out repository before local setup
action** ([#376](#376))
- Add `actions/checkout` to the `smoke-test` job in
`.github/workflows/release.yml` before invoking
`./.github/actions/setup-env`
- Prevent dispatch failures caused by missing local action metadata
(`action.yml`) in a fresh job workspace
- **Workspace resolve-image jobs now checkout local action metadata**
([#380](#380))
- Update `sparse-checkout` in workspace `resolve-image` jobs to include
`.github/actions/resolve-image` in addition to `.vig-os`
- Prevent CI failures in downstream deploy PRs where local composite
actions were missing from sparse checkout
- **Smoke-test dispatch gh jobs now set explicit repo context**
([#386](#386))
- Add job-level `GH_REPO: ${{ github.repository }}` to
`cleanup-release`, `trigger-prepare-release`, `ready-release-pr`, and
`trigger-release` in
`assets/smoke-test/.github/workflows/repository-dispatch.yml`
- Prevent `gh` CLI failures (`fatal: not a git repository`) in runner
jobs that do not perform `actions/checkout`
- **Smoke-test release orchestration now validates workflow contract
before dispatch**
([#389](#389))
- Add a preflight check that verifies `prepare-release.yml` and
`release.yml` are resolvable on dispatch ref `dev` before downstream
orchestration starts
- Dispatch and polling now use explicit ref/branch context (`--ref dev`
/ `--branch dev`) to avoid default-branch workflow registry drift and
`404 workflow not found` failures
- **Smoke-test preflight now uses gh CLI ref-compatible workflow
validation** ([#392](#392))
- Update `assets/smoke-test/.github/workflows/repository-dispatch.yml`
preflight checks to call `gh workflow view` with `--yaml` when `--ref`
is set
- Prevent false preflight failures caused by newer GitHub CLI argument
validation before `prepare-release` dispatch
- **Downstream release workflow templates hardened for smoke-test
orchestration**
([#394](#394))
- Add missing `git config --global --add safe.directory
"$GITHUB_WORKSPACE"` in containerized release and sync jobs that run git
after checkout
- Decouple `release.yml` rollback container startup from
`needs.core.outputs.image_tag` by resolving the image in a dedicated
`resolve-image` job
- Add explicit release caller/reusable workflow permissions for
`actions` and `pull-requests` operations, and update dispatch header
comments to reference only current CI workflows
- **Workspace containerized workflows now pin bash for run steps**
([#395](#395))
- Set `defaults.run.shell: bash` in containerized workspace release and
prepare jobs so `set -euo pipefail` scripts do not execute under POSIX
`sh`
- Prevent downstream smoke-test failures caused by `set: Illegal option
-o pipefail` in container jobs
- **Downstream release templates now require explicit app tokens for
write paths**
([#400](#400))
- Update `assets/workspace/.github/workflows/prepare-release.yml`,
`release-core.yml`, `release-publish.yml`, `release.yml`, and
`sync-issues.yml` to remove `github.token` fallback from protected write
operations
- Route protected branch/ref writes through Commit App tokens and
release orchestration/issue operations through Release App tokens
- Document downstream token requirements in `docs/DOWNSTREAM_RELEASE.md`
and `docs/CROSS_REPO_RELEASE_GATE.md`
- Use `github.token` specifically for Actions cache deletion in
`sync-issues.yml` because that API path requires explicit `actions:
write` job token scope
- Use Commit App credentials for rollback checkout in `release.yml` so
rollback branch/tag writes can still bypass protected refs
- **setup-env retries uv install on transient GitHub Releases download
failures** ([#407](#407))
- Add `continue-on-error` plus a delayed second attempt for
`astral-sh/setup-uv` in `.github/actions/setup-env/action.yml`
- Reduce flaky release publish failures when GitHub CDN returns
transient HTTP errors for uv release assets
- **Smoke-test deploy keeps workspace scaffold as root CHANGELOG**
([#403](#403))
- Stop overwriting `CHANGELOG.md` with a minimal stub in
`assets/smoke-test/.github/workflows/repository-dispatch.yml`
- Require the workspace `CHANGELOG.md` from `init-workspace` so
downstream `prepare-release` validation matches shipped layout
- When the first changelog section is `## [X.Y.Z] - …` (TBD or a release
date), remap that top version header to `## Unreleased` so downstream
`prepare-release` can run
- **Smoke-test dispatch release validate no longer runs docker inside
devcontainer**
([#421](#421))
- Remove redundant `docker manifest inspect` step from
`release-core.yml` validate job (container image is already proof of
accessibility; `resolve-image` validates on the runner)
- Set `GH_REPO` for rollback `gh issue create` in workspace
`release.yml` when git checkout is skipped
- **Container image tests expect current uv minor line**
([#423](#423))
- Update `tests/test_image.py` `EXPECTED_VERSIONS["uv"]` to match uv
0.11.x from the latest release install path in the image build
- **Container image tests expect current just minor line**
([#423](#423))
- Update `tests/test_image.py` `EXPECTED_VERSIONS["just"]` to match just
1.48.x from the latest release install path in the image build
- **Smoke-test dispatch approves release PR before downstream release**
([#430](#430))
- Grant `pull-requests: write` on `ready-release-pr` and approve with
`github.token` (`github-actions[bot]`)
- Satisfy `release-core.yml` approval gate without the release app
self-approving its own PR
- **commit-action retries enabled for transient git ref API failures**
([#436](#436))
- Set `MAX_ATTEMPTS: "3"` on every `vig-os/commit-action` step so v0.2.0
bounded retry actually runs (default was 1)
- Covers smoke-test deploy, prepare-release, release finalization,
sync-issues, and workspace templates
- **Release validation fails when bot approves PR**
([#438](#438))
- Add fallback to individual PR review check when `reviewDecision` is
empty (bot approvals not counted by branch protection)
- **Downstream candidate RC tag can match upstream dispatch**
([#441](#441))
- Workspace `release.yml` / `release-core.yml` accept optional
`rc-number` so candidate tags are not always recomputed from local tags
only
- Smoke-test `repository-dispatch.yml` exposes `base_version` and
`rc_number` job outputs for orchestration that calls workspace
`release.yml`
- **Release validate fails early when GitHub Release already exists**
([#443](#443))
- Validate job in `.github/workflows/release.yml` queries `GET
/repos/.../releases/tags/<PUBLISH_VERSION>` with retries and classifies
errors like the downstream RC gate; only a documented not-found response
is treated as “no release,” and ambiguous API failures fail closed
before build/sign/publish
- Publish job uses the same existence checks before and after `gh
release create` instead of `gh release view` with discarded stderr
- **Release tag resolution and GitHub Release view retries**
([#446](#446))
- Fall back to plain `refs/tags/<tag>` when the peeled ref is empty
(lightweight remote tags) in `.github/workflows/release.yml`,
`release-core.yml`, and `release-publish.yml`
- Use one retried `gh release view` in workspace `release-publish.yml`
so draft/prerelease skip paths parse JSON from the same successful
response
- **Workspace release publish `tag_already_exists` input coercion**
([#451](#451))
- Pass a boolean into `release-publish.yml` via
`needs.core.outputs.tag_already_exists == 'true'` so `workflow_call`
does not reject string `"true"`/`"false"` job outputs

### Security

- **Smoke-test dispatch workflow permissions now follow least
privilege** ([#340](#340))
- Reduce `assets/smoke-test/.github/workflows/repository-dispatch.yml`
workflow token permissions from write to read by default
- Grant `contents: write` only to `publish-release`, the single job that
creates or edits GitHub Releases
@c-vigo
c-vigo enabled auto-merge March 27, 2026 08:07
@c-vigo
c-vigo merged commit 458d01b into dev Mar 27, 2026
11 checks passed
@c-vigo
c-vigo deleted the chore/sync-main-to-dev branch March 27, 2026 08:13
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.

1 participant