Skip to content

feat(workspace): manifest-driven scaffold feature opt-outs (release, sync-issues, scanning, skills, worktree) #1284

Closed

Description

@c-vigo

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:

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

Acceptance criteria

  • Key + feature names documented in the docs/MIGRATION.md manifest 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 --preview reports the re-adds as intended.
  • Splitting features into separate repos/templates — heavyweight, breaks the single-scaffold upgrade story.
  • Profiles only (e.g. a single solo switch) — 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 --preview reflect intent.
  • Backward compatible (semver:minor); absent key changes nothing.

Activity

  1. added this to the Backlog milestone on Jul 28, 2026
  2. added
    feature
    priority:medium
    area:workspace
    effort:large
    semver:minor
    on Jul 28, 2026
  3. c-vigo commented on Jul 29, 2026

    @c-vigo
    ContributorAuthor

    Merged to dev via #1293 (dev-targeted PRs do not auto-close). Ships with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspaceeffort:largefeaturepriority:mediumsemver:minor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions