Skip to content

chore: sync dev with main - #1317

Merged
vig-os-release-app[bot] merged 5 commits into
devfrom
chore/sync-main-to-dev-27-1
Jul 30, 2026
Merged

vig-os-release-app[bot] merged 5 commits into
devfrom
chore/sync-main-to-dev-27-1

Conversation

@vig-os-release-app

Copy link
Copy Markdown
Contributor

Syncs dev with main (sync-main-to-dev workflow).

c-vigo and others added 5 commits July 30, 2026 20:30
Pre-rc1 unfreeze: folds the renovate batch (#1312–#1315, merged to dev
per maintainer direction) into the release branch, relocating their
changelog entries from dev's Unreleased into the frozen [1.5.1] section.
Content otherwise identical to the rc4-validated tree.
Set release date to 2026-07-30 and regenerate release docs.

Refs: #1311
# [Release 1.5.1](https://github.com/vig-os/devkit/releases/tag/1.5.1) -
2026-07-30

This PR prepares release 1.5.1 for merge to main.

## [1.5.1](https://github.com/vig-os/devkit/releases/tag/1.5.1) -
2026-07-30

### Added

- **Self-polling devkit-upgrade workflow**
([#1296](#1296))
- New managed `devkit-upgrade.yml` scaffolded into every consumer: a
weekly
schedule (Monday, aligned with the Renovate window) polls devkit's
public
`releases/latest` and, when this repo's `DEVKIT_VERSION` is behind, runs
the
    full-fidelity `install.sh --force` upgrade — the `.vig-os` pin, the
`flake.lock` `vigos` node and the whole scaffold move together,
committed
inside the project shell so consumer hooks run — then opens the adoption
PR.
`workflow_dispatch` takes an explicit `version` (final or rc) for the
    release-train / lane-re-bump path.
- The version check is prerelease-aware: a consumer on an rc of a newer
train
is never downgraded (no-op when current **or ahead**). Within a train
the
adoption issue, branch and PR are reused across rc→rc→final,
force-updated to
    the latest bump.
- Two `.vig-os` knobs: `DEVKIT_AUTO_UPGRADE=false` disables the schedule
only
(manual dispatch still works); `DEVKIT_UPGRADE_EXCLUDE` lists paths
reset
    before the adoption commit. The whole file opts out via the new
    `devkit-upgrade` feature group (`DEVKIT_FEATURES_DISABLED`).
  - Requires a dedicated GitHub App identity
    ([#1302](#1302)): the
`DEVKIT_UPGRADE_APP_ID` and `DEVKIT_UPGRADE_APP_PRIVATE_KEY` secrets
feed a
per-run installation token minted in-workflow (the default
`GITHUB_TOKEN`
cannot open a PR that triggers CI, and a static PAT is not supported —
user-bound, expiring, single-owner). The workflow fails fast with a
clear
message when the secrets are absent, and the commit identity is
configurable
    and kept off the agent blocklist.
  - The published adoption commit is **GitHub-signed**
([#1308](#1308)): the in-shell
commit
stays a staging artifact (hooks run, message validated) and its tree is
replayed through the git-data API with the App token — blobs → tree
(with
explicit per-entry modes, so executable bits survive) → commit → ref,
with
    deletions as null-sha entries and a force-updated branch ref for the
within-train reuse semantics. Consumers' Signed-commits rulesets stay
fully
    enforced; no bypass actors are needed anywhere.
- **Scaffold-drift CI gate (DEVKIT_DRIFT_CHECK)**
([#1295](#1295))
- The scaffolded `ci.yml` gains a `scaffold-drift` job that re-runs the
pinned
devkit version's scaffold over the checkout and fails a PR whose managed
files diverge from it — `DEVKIT_VERSION` bumped without re-scaffolding,
or a
managed file hand-edited. A pin-only bump otherwise merges green.
`*.project`
files and persisted `.vig-os` values are exempt by construction (the
scaffold
never overwrites them), and `.gitignore`d files (e.g. `*.local`) are
ignored.
- Mechanism: re-scaffold + `git diff` (the `install.sh --preview` report
classifies OVERWRITTEN by path existence, not content, so it cannot tell
drift from an up-to-date file). The job `docker run`s the in-image
scaffold on
the host so a direnv/bare consumer (which resolves an empty container
image)
    is covered too; `resolve-toolchain` emits the all-modes image ref.
- Opt-out via the new `.vig-os` key `DEVKIT_DRIFT_CHECK` (`true`
default,
    `false` disables). It is a runtime gate — CI reads it through
    `resolve-toolchain`'s `drift-check` output, so flipping it needs no
re-scaffold — and the value round-trips across `--force` upgrades. Runs
on
PRs only (the ~1.5 GiB image pull); an invalid value fails the scaffold.

- **Solo/private-repo adoption profile**
([#1285](#1285))
- New `docs/SOLO_ADOPTION.md`: the one document a single-user, private
repo
follows to adopt devkit without the team/traceability layer, expressed
as a
    combination of existing `.vig-os` knobs (`--mode`/`--workflow`,
`DEVKIT_FEATURES_DISABLED`, `DEVKIT_REFS_POLICY`). States what is kept
(hook
stack, commit-msg validation, agent-identity enforcement, managed
upgrade
path, justfiles, dev environment) as clearly as what is dropped, calls
out
the `renovate` judgment call and forward-drift on upgrades, and
cross-links
the adoption notes that trip solo adopters (#1280, #1281, #1283). Linked
    from the README install section and `docs/MIGRATION.md`.

- **Scaffold-time Refs policy knob (DEVKIT_REFS_POLICY)**
([#1282](#1282))
- A new `.vig-os` manifest key drives the `Refs:`-line enforcement of
both the
`validate-commit-msg` pre-commit hook and CI's `validate-commit-range`
from a
single value: `chore-optional` (default — only `chore` may omit `Refs:`,
today's behavior), `optional` (any approved type may omit it), and
`required`
(every type, `chore` included, must carry a `Refs:` line). Absent key =>
a
byte-identical scaffold; the value round-trips across `--force`
upgrades.

- **Preflight abort on non-main default branches**
([#1283](#1283))
- Scaffolding assumes the default branch is `main` (the branch-name
hook,
`ci.yml` and its workflow triggers all key off it). On a legacy `master`
repo the scaffold used to succeed silently, then block every subsequent
commit with a confusing hook error. `install.sh` now detects a
non-`main`
default branch (via `origin/HEAD`, a best-effort `gh api` lookup, or the
local branch) and refuses **before** writing anything, printing the
rename
recipe. A topic/`dev` branch of a repo that already has `main` proceeds
unchanged; `--preview` warns without aborting; `--skip-preflight`
bypasses.

- **Manifest-driven scaffold feature opt-outs
(DEVKIT_FEATURES_DISABLED)**
([#1284](#1284))
- New `.vig-os` key: a comma-separated, whitespace-tolerant list of
scaffold
feature groups a repo opts out of. Disabled groups are never scaffolded,
pruned if a prior scaffold left them, reported by `--preview`, and
stable
across `--force` upgrades; clearing the key re-ships them. Absent/empty
    scaffolds identically to before; an unknown name aborts loudly.
- Seven groups: `release` (the release/prepare/promote workflows +
downstream
docs), `renovate` (renovate config + changelog workflows), `sync-issues`
(the sync workflow + label taxonomy), `scanning` (CodeQL + Scorecard),
    `gh-templates` (issue templates + PR template), `skills` (every
    `.claude/skills/` dir except `worktree_*`), and `worktree` (the
    `worktree_*` skills + `justfile.worktree`).
  - Consumer-owned extension seams (`release-extension.yml`,
`prepare-release-extension.yml`) and `renovate.json` are never pruned
when
    their feature is disabled — they are left in place with a notice.

### Fixed

- **`install.sh` prefers a responsive docker over podman in runtime
auto-detection** ([#1305](#1305))
- With both runtimes on PATH (GitHub `ubuntu-latest` runners),
auto-detection
picked the preinstalled podman, whose stale system crun rejects podman ≥
5's
    OCI configs (`crun: unknown version specified`) — the first live
    `devkit-upgrade` dispatch died at the install step on exactly this.
Detection now prefers docker when its daemon responds and falls back to
podman: podman-only hosts are unchanged, a dead docker daemon still
yields
    podman, and explicit `--docker`/`--podman` keep overriding. The
`devkit-upgrade.yml` template also passes `--docker` explicitly, so the
    choice rides in the scaffold independent of the fetched installer.

- **`just test` no longer fails a Python repo with zero collected
tests** ([#1281](#1281))
  - The scaffolded `justfile.project` `test`/`test-cov` recipes gate on
`pyproject.toml` presence, so a consumer with a `pyproject.toml` but no
test
suite ran `uv run pytest` → exit 5 ("no tests collected") → red `just
test`
and red CI out of the box. Both recipes now treat pytest's exit 5 as a
green
    no-op — "nothing to test" is not a failure, matching how non-Python
consumers silently skip — while every other nonzero exit still fails.
This
is a template-only change; preserved consumer copies of
`justfile.project`
    keep their own recipes (the #877 repair only appends missing ones).

- **Undotted `typos.toml` no longer collides with the template
`.typos.toml`** ([#1280](#1280))
- The `typos` tool reads config from `.typos.toml`, `_typos.toml`, or
the
undotted `typos.toml`. The scaffold guarded the first two (a preserved
`.typos.toml` via the preserve list; a legacy `_typos.toml` via a
copy-time
exclude) but not the undotted spelling, so a consumer carrying
`typos.toml`
also received the template `.typos.toml` — two active configs, the
curated
allowlist silently shadowed. An undotted `typos.toml` (with no
`.typos.toml`)
is now treated exactly like the legacy `_typos.toml` case: the consumer
file
stays the single active config, the template copy is not shipped, and
the
skip is mirrored in `--preview` and named in the scaffold surface
message.

- **sync-issues cache cleanup no longer silently skips on early job
failure** ([#1278](#1278))
- The `if: always()` "Delete old cache" step calls the `retry` shim,
which
only exists after toolchain setup. When the job died beforehand the shim
    was absent and the `retry ... | head -1` assignment masked the
    `command not found`, so the step took the "No cache found" branch. A
one-shot fallback shim now runs a single unretried attempt when `retry`
is
    missing; healthy runs still use the real wrapper.

### Security

- **Route the sync-issues bootstrap step's target input through env, not
inline** ([#1279](#1279))
- The scaffolded `sync-issues.yml` "Bootstrap sync target branch if
absent"
step (rendered only when `DEVKIT_SYNC_TARGET` is set) interpolated the
`workflow_dispatch` `target-branch` input straight into its `run:`
block,
which `zizmor` flags as a template-injection (High). The input is now
forwarded via a `TARGET_INPUT` env var and referenced as a shell
parameter
expansion (`TARGET="${TARGET_INPUT:-<target>}"`), matching the
template's
existing `TARGET_BRANCH` pattern; the allowlist-validated scaffold
default
stays the safe literal fallback. First consumer hit:
vig-os/org-config#80,
which carried a local forward-port of this fix until the template
shipped it.

- **Advance the nixpkgs pin and drop the propagated vulnix exception
blocks** ([#1273](#1273))
  - Advanced the pinned `nixpkgs` rev (`flake.lock`) from nixos-26.05
@ `34268251` (2026-06-22) to @ `8623c4c2` (2026-07-26). The before/after
`vulnix` closure diff cut the reported CVE surface from 112 to 56 unique
    advisories with no new HIGH/CRITICAL (CVSS ≥ 7.0) findings.
- Dropped four `.vulnixignore` blocks whose fixes reached the pinned
channel:
    openssl 3.6.2 → 3.6.3 (10 CVEs), curl 8.20.0 → 8.21.0 (17 CVEs),
openssh 10.3p1 → 10.4p1 (CVE-2026-60002), and the jq CVE-2026-49839
entry
(jq 1.8.1 → 1.8.2). jq 1.8.2 surfaces three unrelated sub-7.0 advisories
(CVE-2026-33948, -39979, -44777) that are awareness-only and do not
gate.
- Retained the unbound (1.25.1), gawk (5.4.0), podman (5.8.2), fzf
(0.72.0)
and libssh2 (1.11.1) blocks — the rebuilt closure confirms those fixes
have
still not propagated to the pinned channel; their re-verification notes
were
    refreshed to 2026-07-28 with the new pin context.
@vig-os-release-app
vig-os-release-app Bot enabled auto-merge July 30, 2026 21:57
@vig-os-release-app
vig-os-release-app Bot merged commit d2eab65 into dev Jul 30, 2026
21 checks passed
@vig-os-release-app
vig-os-release-app Bot deleted the chore/sync-main-to-dev-27-1 branch July 30, 2026 22:05
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