Repository navigation
Description
Description
A .vig-os manifest key (e.g. DEVKIT_REFS_POLICY) that renders the Refs: #N requirement policy into both enforcement points at scaffold time — the validate-commit-msg hook args in .pre-commit-config.yaml and CI's validate-commit-range — instead of hardcoding --refs-optional-types chore.
Problem Statement
Solo/private consumers without an issue-driven workflow (personal repos, data repos) want Refs: optional for all commit types while keeping type/format validation. Today the only route is editing the preserved .pre-commit-config.yaml, which has two costs:
- Permanent template drift — the upgrade path prints the preserved-file diff against the template on every re-scaffold, forever, for a deliberate policy choice.
- CI desync —
validate-commit-rangeenforces its own copy of the policy, so the local hook and the CI gate silently disagree (this consistency has already broken once, fix(vigutils): validate-commit-range title check treats all types as Refs-optional #1074).
Proposed Solution
- New
.vig-oskeyDEVKIT_REFS_POLICYwith valueschore-optional(default — today's behavior),optional(Refs never required), and optionallyrequired(strict, no exemptions). - Rendered via the existing
{{TOKEN}}substitution into the scaffolded hook args; the CI side either reads the manifest (theresolve-toolchaincomposite already parses.vig-os) or receives the same substitution. - Round-trip the key across
--forceupgrades likeDEVKIT_TAG_PREFIX/DEVKIT_FLOATING_TAGS(.vig-os upgrade blanks DEVKIT_TAG_PREFIX / DEVKIT_FLOATING_TAGS (silent release-tag regression) #1116 pattern).
Acceptance criteria
- Key documented in the
docs/MIGRATION.mdmanifest table - Hook and
validate-commit-rangeagree in all modes/policies (single source of truth) - Default (absent key) produces a byte-identical scaffold to today
- bats coverage incl. manifest round-trip
Alternatives Considered
- Edit the preserved
.pre-commit-config.yaml— works, but permanent drift nag + CI desync (see above). - Disable the commit-msg hooks entirely — throws away type/format validation, which solo repos still want.
Additional Context
#885 (manifest as the per-consumer config surface), #1074 (hook/CI policy desync precedent), #1173 (DEVKIT_CI_RUNNER — precedent for a consumer knob consumed by CI). Surfaced while evaluating devkit adoption for a private single-user repo whose history is legitimately chore-dominant but occasionally needs fix/refactor without an issue tracker.
Impact
- Benefits solo/private consumers and any org repo with a non-issue-driven workflow.
- Backward compatible (
semver:minor); default behavior unchanged.
Activity
test(workspace): add DEVKIT_REFS_POLICY scaffold-surface tests
feat(workspace): render DEVKIT_REFS_POLICY into the pre-commit refs arg
test(workspace): add DEVKIT_REFS_POLICY CI-surface tests
feat(workspace): map DEVKIT_REFS_POLICY into CI validate-commit-range
fix(workspace): guard undotted typos.toml against dual configs (#1289)
feat(workspace): manifest-driven scaffold feature opt-outs (DEVKIT_FE…
test(workspace): add DEVKIT_REFS_POLICY scaffold-surface tests
feat(workspace): render DEVKIT_REFS_POLICY into the pre-commit refs arg
test(workspace): add DEVKIT_REFS_POLICY CI-surface tests
3 remaining items
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 #1292 (dev-targeted PRs do not auto-close). Ships with the next release.
chore: release 1.5.0 (#308)
chore: release 1.5.1 (#330)
chore: release 1.5.1 (#1311)
chore: release 0.3.2 (#136)
ci(actions): update github-actions (minor and patch) (#1368)
feat(workspace): add scaffold-time commit-types knob (DEVKIT_COMMIT_T…
chore: release 1.8.0 (#1441)
fix(workspace): render knobs unconditionally and refuse symlinks (#1641)
fix(workspace): render the branch guard from the workflow model both …
feat(workspace): reconcile a preserved pre-commit config on upgrade (#…