Repository navigation
Description
Description
Add a job to the scaffolded consumer ci.yml that fails when the working tree's managed files do not match what the pinned devkit version would scaffold — i.e. when .vig-os DEVKIT_VERSION was bumped without re-running the scaffold, or managed files were hand-edited. Opt-out via .vig-os, default enabled.
Problem Statement
The documented failure mode (init-workspace.sh #1093 warning) — flake-delivered hooks and scaffold-delivered files skewing apart — is completely unguarded in consumer CI today. A pin-only bump PR merges green: nothing re-runs the scaffold or diffs against it. Any upgrade automation (see the companion self-polling devkit-upgrade workflow issue) must be backstopped by this check; it equally protects manual bumps.
Proposed Solution
- New
ci.ymljob (scaffold template): pullghcr.io/vig-os/devcontainer:$DEVKIT_VERSION(read from.vig-osvia the existingresolve-toolchainaction), run the scaffold in preview/diff mode, fail on drift in managed files. - Preferred mechanism:
install.sh --preview(exists today, prints add/overwrite/preserve/delete without touching files) — may need a machine-readable / exit-code mode as part of this issue; alternative is re-scaffold-into-tempdir +git diff --exit-codeover the managed set. *.projectfiles and preserved.vig-osvalues are exempt by construction (the scaffold already preserves them).- Cost control: gate the job on a
pathsfilter (.vig-os,flake.lock, managed-file globs) or run on PRs only — the image pull is ~1.5 GiB. - Opt-out knob:
.vig-oskeyDEVKIT_DRIFT_CHECK=true|false, defaulttrue. The job reads it and self-skips when disabled (runtime gate, so flipping the knob needs no re-scaffold). Align naming/mechanism with the feat(workspace): manifest-driven scaffold feature opt-outs (release, sync-issues, scanning, skills, worktree) #1284 manifest-driven opt-outs work if that lands first. - Also advances the drift half of the flake-side guards ([BUG] Bumping DEVKIT_VERSION without the matching vigos flake pin ships the #1053 JSONC banner without its check-json exclude — every commit fails, no warning #1093 lockstep warning covers pinned inputs only; Consumer adoption bumps .vig-os but not the vigos flake pin — dev-shell toolchain lags a release behind #1263 shell-entry guard is advisory) into an enforced CI gate for floating-input consumers.
Alternatives Considered
- Extending the [BUG] Bumping DEVKIT_VERSION without the matching vigos flake pin ships the #1053 JSONC banner without its check-json exclude — every commit fails, no warning #1093 scaffold-time warning: only fires during upgrades, not on the skewed PR itself.
- Hosted-Renovate pin tracking: watches the version string but cannot detect (or prevent) scaffold skew — the gap this issue closes.
Impact
Consumers gain a hard gate against skewed upgrades; devkit's own repo is unaffected. Backward compatible: new job in the scaffolded ci.yml, lands at next adoption, opt-out available. Prerequisite for the self-polling devkit-upgrade workflow.
Changelog Category
Added
Activity
test(workflow): add failing scaffold-drift CI gate tests
feat(workflow): add scaffold-drift CI gate (DEVKIT_DRIFT_CHECK)
feat(workflow): add scaffold-drift CI gate (DEVKIT_DRIFT_CHECK) (#1297)
chore: merge dev into feature/1296-devkit-upgrade-workflow
feat(workflow): scaffold self-polling devkit-upgrade workflow (#1298)
c-vigo commentedon Jul 30, 2026
Implemented in PR #1297, merged to dev @b8056ffe. Ships with 1.5.0.
chore: release 1.5.0 (#308)
chore: release 1.5.1 (#330)
chore: release 1.5.1 (#1311)
fix(workspace): compare template copies by checksum so same-size chan…
chore: release 1.6.0 (#1341)
chore: release 0.3.2 (#136)
ci(actions): update github-actions (minor and patch) (#1368)
ci: cancel superseded CI runs per ref (#1604)
fix(workspace): render knobs unconditionally and refuse symlinks (#1641)