Skip to content

feat(workspace): manifest-driven scaffold feature opt-outs (DEVKIT_FEATURES_DISABLED) - #1293

Merged
c-vigo merged 9 commits into
devfrom
feature/1284-feature-optouts
Jul 29, 2026
Merged

c-vigo merged 9 commits into
devfrom
feature/1284-feature-optouts

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

New .vig-os key DEVKIT_FEATURES_DISABLED — a comma-separated (whitespace-tolerant) subset of seven scaffold feature groups that are never scaffolded, pruned if a previous scaffold left them behind, truthfully reported by --preview, and stable across --force upgrades. Clearing the key re-ships the features on the next --force. Absent/empty key ⇒ byte-identical scaffold.

Groups (feature → path map, SSoT in feature_paths()):

  • release — the 8 release-train workflows + docs/DOWNSTREAM_RELEASE.md
  • renovate — renovate.json, renovate-default.json, both renovate-changelog workflows
  • sync-issues — sync-issues.yml + label-taxonomy.toml
  • scanning — codeql.yml, scorecard.yml
  • gh-templates — ISSUE_TEMPLATE/, pull_request_template.md
  • skills / worktree — .claude/skills/ split, enumerated dynamically from the template tree (no hardcoded names)

Design notes

Test evidence

  • Strict TDD, five RED→GREEN cycles (commits 52e2fd74…8f8a36f3), failing-first confirmed each cycle.
  • 16 new bats cases: per-group disable, preview truthfulness, upgrade prune + DELETIONS, re-enable, byte-identical default, unknown-name abort, skills/worktree granularity, preserved-class survival, trunk compose, contradiction notice.
  • Verified: --filter "1284|1205|913|1196" 27/27 ok; pytest tests/test_workflow_model.py 22 passed; full bats tests/bats/init-workspace.bats 261 tests zero failures; prek run --all-files green.

Merge order

Part of the #1280–#1285 solo-adoption batch (semver:minor); recommended merge order #1281 → #1280 → #1283 → #1282 → #1284 → #1285.

Closes #1284

@c-vigo
c-vigo merged commit 86e5391 into dev Jul 29, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1284-feature-optouts branch July 29, 2026 09:55
c-vigo added a commit that referenced this pull request Jul 29, 2026
## Summary

New `docs/SOLO_ADOPTION.md`: the one document a single-user, private
repo follows to adopt devkit without the team/traceability layer —
expressed purely as a combination of existing knobs, no new mode.
Distilled from the beancount-repo adoption evaluation that produced
#1280–#1284.

The recipe: `--mode devcontainer --workflow trunk` +
`DEVKIT_FEATURES_DISABLED=release,sync-issues,scanning,skills,worktree,gh-templates`
+ `DEVKIT_REFS_POLICY=optional`, with the accurate two-step apply flow
(both are manifest-only keys: scaffold, set keys, `--force` re-render,
`--preview` first). The guide states what is KEPT (hook stack, commit
type/format validation, agent-identity enforcement, managed upgrade
path, justfiles, dev env, `ci.yml`) as clearly as what is dropped, calls
out `renovate` as a kept-by-default judgment call (preserved-class
`renovate.json` never pruned), warns about forward drift (new feature
groups arrive enabled), and cross-links the three adoption notes that
trip solo adopters (#1283 `main` default branch, #1280 undotted
`typos.toml`, #1281 zero-test Python repos). A `--profile solo`
installer flag is explicitly out of scope (possible follow-up against
#1285).

Also: README pointer in the install section (edited via
`docs/templates/README.md.j2` — README is generated — and regenerated
with `just docs`), MIGRATION.md cross-link bullet in the manifest
section, changelog Added entry.

## ⚠️ Merge order — merge LAST

Depends on #1292 (`DEVKIT_REFS_POLICY`, #1282) and #1293
(`DEVKIT_FEATURES_DISABLED`, #1284): the guide documents those keys and
links MIGRATION.md anchors that land with #1291/#1293. Recommended batch
order: #1290 → #1291 → #1292 → #1293 → this.

## Verification

Docs-only (no TDD — no runtime surface). `prek run --all-files` green;
`just docs` confirms README regenerates identically from the template.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant