Repository navigation
feat(workflow): scaffold self-polling devkit-upgrade workflow - #1298
Merged
Merged
Conversation
Cover the self-polling devkit-upgrade workflow deliverable: the two .vig-os runtime knobs, the managed template shape (triggers, latest-release check, prerelease-aware compare, dedicated token, install.sh + nix develop commit), the no-template-injection rule over run blocks, the workflow-model base-branch retarget, and the devkit-upgrade feature opt-out. Refs: #1296
Ship a managed devkit-upgrade.yml into consumers: a weekly schedule (Monday, aligned with the Renovate window) polls devkit's public releases/latest and, when DEVKIT_VERSION is behind, runs install.sh --force to move the pin, the flake.lock vigos node and the whole scaffold together — committing inside the project shell so consumer hooks run — then opens the adoption PR. A workflow_dispatch version input drives the release-train / rc re-bump path. The version check is prerelease-aware (no-op when current or ahead) so a consumer on an rc of a newer train is never downgraded; the adoption issue, branch and PR are keyed on the train and reused across rc->final. Two runtime .vig-os knobs (DEVKIT_AUTO_UPGRADE gates the schedule; DEVKIT_UPGRADE_EXCLUDE resets paths before the commit) plus a new devkit-upgrade feature group opt out. Untrusted values (dispatch input, event fields, API responses) are routed through env and the resolved version is strictly validated before it reaches any shell/gh sink; the deliberate persist-credentials push is baselined in zizmor.yml. The base branch is workflow-model aware via render_workflow_model. Requires a dedicated DEVKIT_UPGRADE_TOKEN (fail-fast when absent). Refs: #1296
This was referenced Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1296
Summary
Scaffolds a self-polling
devkit-upgrade.ymlworkflow into consumers: weekly (Monday 06:00, aligned with the Renovate window) it queries devkit'sreleases/latest, and when the repo's.vig-ospin is behind it runs the full-fidelityinstall.sh --force --version <X>upgrade — pin +flake.lockvigosnode + scaffold regeneration move together — commits inside the project shell so consumer hooks run (dist rebuild, trailer strip, commit-msg validation), and opens the adoption PR.workflow_dispatchwith an explicitversioninput (final or rc) is the release-train / lane-re-bump path. Merging stays human. Depends on the #1295 drift gate (PR #1297) as its safety net.Design
devkit-upgradegroup in the feat(workspace): manifest-driven scaffold feature opt-outs (release, sync-issues, scanning, skills, worktree) #1284 opt-out mechanism (never ship the file at all), composing with the runtime knobs:DEVKIT_AUTO_UPGRADE(.vig-os, default enabled): gates the schedule path only; manual dispatch always runs.DEVKIT_UPGRADE_EXCLUDE: comma-separated paths reset before the adoption commit (e.g. vault's generated-doc churn). Both round-trip across--forceupgrades.releases/latestexcludes prereleases/drafts, so cron never proposes an rc; a prerelease-aware compare makes the schedule a no-op when the pin is current or ahead (an rc of a newer train is never downgraded). Resolved versions are strictly semver-validated before reaching any shell/gh sink.chore/<issue>-devkit-1-5-0, dots→dashes for the branch guard), so rc1→rc2→final reuse one issue/branch/PR force-updated; commit + PR title carry the exact version.devliterals, retargeted tomainat scaffold time for trunk repos viarender_workflow_model(the sync-issues.yml precedent).DEVKIT_UPGRADE_TOKENsecret (fail-fast with a clear error when absent) — the defaultGITHUB_TOKENis used only for the read-only release query, since PRs it creates don't trigger CI. Commit identity configurable viavars.DEVKIT_UPGRADE_AUTHOR_NAME/EMAIL; the default avoids the agent-blocklist.env:; actions SHA-pinned;permissions: {}at workflow level,contents: readon the job. One deliberate zizmorartipackedbaseline entry (the checkout persists the dedicated token because the branch push needs it), commented inzizmor.yml.Test evidence
tests/test_workflow_devkit_upgrade.py(new, 15 tests; RED-first) + workflow-model/sync-settings/scaffold-lint/zizmor-baseline/ci-runner suites: 121 passedtests/bats/init-workspace.bats(feature-group assertions): 275/275 passzizmor --offlineover the workspace templates: no findingsprek run --all-files: green (both hook layers)Reviewer notes
DEVKIT_UPGRADE_TOKENApp/PAT identity (and optionalDEVKIT_UPGRADE_AUTHOR_*variables) must be created per the feat(workflow): self-polling devkit-upgrade workflow (auto adoption PR in consumers) #1296 checklist before the workflow can act; until then it fails fast with a pointer. The default author email is a placeholder — set the real identity at provisioning.workflow_dispatchon one lane during the 1.5.0 rollout).nix develop -c git commitstep assumes a flake-bearing (direnv/both) consumer — true for all five current consumers; bare/devcontainer-only consumers are out of scope per the issue.DEVKIT_UPGRADE_EXCLUDEare not reset (git checkout --only restores tracked paths) — acceptable for the known use case (tracked generated PDFs).CHANGELOG.md,.vig-os, andinit-workspace.sh; whichever merges second needs a trivial conflict resolution (GitHub merges don't apply the changelog union driver).Refs: #1296