Repository navigation
Description
Description
Per-consumer opt-out of managed scaffold feature groups via a .vig-os manifest key, e.g.:
DEVKIT_FEATURES_DISABLED="release sync-issues scanning skills worktree"
honored by the template copy, the stale-file prune, and --preview — so a disabled feature is never scaffolded, is pruned if a previous scaffold left it behind, and stays gone across --force upgrades.
Problem Statement
Opting out of a managed feature today means deleting its files — and every --force re-scaffold re-adds them, a recurring prune tax that grows with upgrade frequency. For solo/private/data consumers, whole subsystems are inert or unwanted:
- the multi-stage release pipeline (~9 workflows) on repos that never cut releases;
- sync-issues (tunable via
DEVKIT_SYNC_TARGET/DEVKIT_SYNC_SCHEDULEper sync-issues knobs: DEVKIT_SYNC_TARGET + DEVKIT_SYNC_SCHEDULE (target 1.4.1) #1228, but not disableable) on repos that file no issues; - codeql/scorecard on private repos (cf. [FEATURE] Scaffold: guard codeql/scorecard workflows on private repos #1039);
- the 33 agent skills oriented at the issue→branch→PR SDLC;
- the worktree autonomous-agent recipes.
A dry-run adoption of devkit on a private single-user data repo leaves ~10 dead workflow files that resurrect on every upgrade.
Proposed Solution
- A feature → path-set map as a single source of truth next to
MODE_CONFIG_EXCLUDESininit-workspace.sh. Disabled features feed:- the rsync copy excludes (mechanism exists: init-workspace.sh --preview reports rsync-excluded files as ADDED #1196),
- the DELETIONS prune (precedent: gitflow→trunk pruning of
sync-main-to-dev.yml, workflow-model: scaffold render core (render_workflow_model + sync-main-to-dev exclude + preview mirror) #1208), - the
--previewclassifier (must stay truthful, init-workspace.sh --preview reports rsync-excluded files as ADDED #1196).
- Manifest key round-trips across upgrades like
DEVKIT_TAG_PREFIX/DEVKIT_FLOATING_TAGS(.vig-os upgrade blanks DEVKIT_TAG_PREFIX / DEVKIT_FLOATING_TAGS (silent release-tag regression) #1116); clearing the key re-ships the features on the next--force. - Naming: deliberately not
DEVKIT_MODULES— that key is reserved by feat(flake): modular capability shells — opt-in vigos capability modules (native, geant4, rust, …) on top of mkProjectShell #884 for Nix capability shells (modules = ["native"]toolchain composition). This is scaffold-level feature selection, orthogonal to toolchain capabilities; the issue should state that delimitation explicitly. - v1 scope: features whose surface is standalone files (workflow files,
.claude/skills/, justfile import fragments). Jobs insideci.yml(e.g. dependency-review) are out of scope for v1 —ci.ymlstays atomic.
Acceptance criteria
- Key + feature names documented in the
docs/MIGRATION.mdmanifest table - Disabled features are neither copied nor listed as ADDED in
--preview; pre-existing copies are pruned and listed under DELETIONS - Empty/absent key → byte-identical scaffold to today
- Re-enabling (key edit +
--force) restores the features - bats coverage: disable, upgrade-stability, re-enable, preview truthfulness
Alternatives Considered
- Status quo — delete after every upgrade; recurring cost, error-prone, and
--previewreports the re-adds as intended. - Splitting features into separate repos/templates — heavyweight, breaks the single-scaffold upgrade story.
- Profiles only (e.g. a single
soloswitch) — less granular; profiles are better layered on top of this key as documented presets (companion docs issue to follow).
Additional Context
#884/#885 (manifest namespace and reserved DEVKIT_MODULES), #1205/#1208 (workflow-model knob — the closest existing precedent for a consumer-shape scaffold switch), #1196 (preview/copy exclude SSoT), #1039 (private-repo scanning guard), #1228 (sync-issues knobs), #1282 (Refs policy knob — companion consumer-policy key). Motivated by a devkit-adoption evaluation for a private single-user repo, but equally useful for any org repo consuming a subset (e.g. a docs-only repo without the release train).
Impact
- Benefits solo/private consumers and subset-consumers across the org; removes the recurring prune tax and makes
--previewreflect intent. - Backward compatible (
semver:minor); absent key changes nothing.
Activity
fix(workspace): guard undotted typos.toml against dual configs (#1289)
test(workspace): assert DEVKIT_FEATURES_DISABLED parse and write-back
feat(workspace): parse and persist DEVKIT_FEATURES_DISABLED
test(workspace): assert disabled features are never scaffolded
feat(workspace): exclude disabled feature groups from the scaffold
test(workspace): assert prune, DELETIONS, and preserved-class opt-out…
feat(workspace): prune disabled features and report them in --preview
test(workspace): assert sync-issues opt-out notice and trunk compose
feat(workspace): warn on inert sync knobs and skip disabled sync render
docs(workspace): document DEVKIT_FEATURES_DISABLED opt-outs
feat(workspace): manifest-driven scaffold feature opt-outs (DEVKIT_FE…
fix(workspace): treat pytest no-tests-collected exit as a green no-op (…
feat(init): preflight abort on non-main default branches (#1291)
feat(workspace): scaffold-time Refs policy knob (DEVKIT_REFS_POLICY) (#…
docs(workspace): add solo/private-repo adoption profile (#1294)
c-vigo commentedon Jul 29, 2026
Merged to dev via #1293 (dev-targeted PRs do not auto-close). Ships with the next release.
feat(workflow): add scaffold-drift CI gate (DEVKIT_DRIFT_CHECK)
feat(workflow): scaffold self-polling devkit-upgrade workflow (#1298)
chore: release 1.5.0 (#308)
chore: release 1.5.1 (#330)
chore: release 1.5.1 (#1311)
feat(release): ship the consumer abandon-release workflow and recipe (#…
fix(init): warn when mirror mode has no release fold-back (#1809)