Repository navigation
Description
Context
The 0.4.0-rc1 smoke-test failure (#852) prompted a full audit of the CI glue the workspace scaffold ships to consumers (assets/workspace/.github/**, justfile layering, hook runner wiring). The immediate defect is fixed (#852: .vig-os pin honors install.sh --version), but the audit surfaced structural gaps that need their own cycle — most likely alongside or after the devkit rename (#781).
A. Nix-direct CI lane (the main feature)
"direnv mode" today is local-only: init-workspace.sh prunes .devcontainer/ but ships all 13 workflows unchanged, so a direnv consumer's CI still runs every job inside container: ghcr.io/vig-os/devcontainer:<pin> and hard-depends on .vig-os — if the consumer (reasonably) deletes it, resolve-image hard-fails and bricks 9 of 13 workflows (ci, sync-issues, renovate-changelog-build, release*, promote-release, sync-main-to-dev; only codeql/scorecard/renovate-changelog-commit/release-extension survive).
A nix-direct lane should mirror the parent repo's own project-checks job (.github/workflows/ci.yml:168-221): host runner → install-nix + cachix composite → nix develop -c just sync|precommit|test (the dev-shell provides prek/ruff/uv from the flake SSoT), dropping the container-only UV_PROJECT_ENVIRONMENT / PREK_HOME env. Open design questions: mode-conditional workflow scaffolding vs one workflow with a mode matrix; what the smoke test covers (today it exercises only the devcontainer mode).
B. Version-skew hardening (defects found by the audit)
- No CI-wired skew guard:
version-check.shruns only in the interactive container lifecycle (post-attach.sh:26,|| true); no workflow compares scaffold generation vsDEVCONTAINER_VERSION. Theresolve-imageaction validates manifest existence only — no minimum-version floor, no tool probe. Acommand -v prekfirst-step guard in the lint job (with an actionable error) would have turned today's opaque failure into a one-line diagnosis. prepare-release.yml:62-73forks the resolver: inline awk parse with a silentlatestfallback — diverges from the sharedresolve-imageaction (which hard-fails). Unify.- Old-scaffold + new-image breakage is undocumented: old
just precommit=uv run pre-commit run --all-files;pre-commitwas dropped from image+venv in 0.4.0 ([CHORE] Adopt git-hooks.nix with package = pkgs.prek (supersedes #40) #778). Needs a release-notes/MIGRATION callout. justfile.devc devc-upgradecurlsinstall.shfrommain— upgrades the scaffold to HEAD regardless of the pin the consumer keeps; itself a skew generator.- Shell-settings drift in direnv mode:
set shell := ["bash","-euo","pipefail","-c"]lives in the devc-managedjustfile.devc:6; absent in direnv mode, identicaljustfile.projectrecipes run undersh -cuwithout pipefail. Move to the root justfile. - Stale Debian-era doc:
docs/container-ci-quirks.md:41-43still describes auv run banditpre-commit hook that no longer exists and names the wrong runner. init-precommit.sh:5hard-codes/workspace/{{SHORT_NAME}}— derive from the script location.- Private-image consumers:
resolve-imageprobes with unauthenticateddocker manifest inspect(stderr swallowed) and nocontainer:block declarescredentials:— public-image-only today, opaque failure otherwise.
Scope
- Not 0.4.0-blocking: the release-blocking chain (Release 0.4.0-rc1 failed -- automatic rollback #842/Release 0.4.0-rc1 failed -- automatic rollback #847/Release 0.4.0-rc1 failed -- automatic rollback #849/Smoke-test dispatch failed for 0.4.0-rc1 #852) is fixed on
release/0.4.0. - Target: devkit-1.0.0 rename cycle ([CHORE] Rename devcontainer → devkit (after publish-cutover #639) #781) or the cycle after — the rename already touches the entire
assets/workspace/scaffold, so the two blast radii overlap.
Activity
fix(setup): rc4 field-validation batch — direnv commits, prune, scrip…
docs(migration): formalize the native-build contract (#888)
fix(workspace): run prek skew guard via bash -c in direnv ci.yml
feat(workspace): nix-direct direnv CI lane + version-skew hardening (#…
c-vigo commentedon Jul 8, 2026
Delivered by #923 (merged to
devon 2026-07-07). Closing as complete for milestone 0.5.chore: release 0.4.1 (#202)
feat(ci): authenticated GHCR probe and opt-in private-image credentia…
chore: release 0.4.1 (#898)
chore: release 0.5.0 (#938)
chore: release 1.1.0 (#1014)
fix(workspace): treat pytest no-tests-collected exit as a green no-op (…
test(bats): isolate worktree.bats and tighten the BATS suite (#1709)