Profile and Validation Config Layering
Why
SpecFact needs validation rollout profiles that tune strictness without changing the evidence contract. Profile defaults should remain the single source of truth for validation posture, module activation defaults, clean-code mode selection, and resolved source annotations.
What Changes
- Add validation tier profiles for
specfact init --profile:solo,startup,mid_size, andenterprise. - Resolve config layers deterministically: profile defaults < org baseline < repo overlay < developer-local override.
- Write
.specfact/config.yamlwithsource_annotationsfor the winning source of each resolved value. - Derive clean-code defaults from the selected tier:
solo -> advisorystartup -> advisory_then_mixedmid_size -> mixedenterprise -> hard
- Preserve legacy first-run workflow presets as compatibility inputs while making validation tiers the config-authority surface.
- Refresh the February 2026 OpenSpec artifacts so proposal, design, specs, tasks, and TDD evidence match the July 2026 validation-evidence roadmap.
Implementation Status
- OpenSpec change:
profile-01-config-layering - PR: https://github.com/nold-ai/specfact-cli/pull/624
- Branch:
feature/profile-01-config-layering-baseline - Target:
dev - Status: PR candidate / draft PR open
Validation Signals
- Targeted unit tests:
24 passed - Targeted e2e tests:
2 passed openspec validate profile-01-config-layering --strict: passed- SpecFact code review:
PASS_WITH_ADVISORY, 0 blocking findings - Bandit and Semgrep SAST gates: passed
Notes
The implementation intentionally keeps the scope in core init and config resolution. It does not introduce a stale modules/profile/... package structure or a separate clean-code profile selector.
OpenSpec Change Proposal: profile-01-config-layering
Dependency mapping from CHANGE_ORDER: blocked by #193.
Updated this issue to match the refreshed OpenSpec change and PR-ready implementation scope.
Draft PR is open against dev: https://github.com/nold-ai/specfact-cli/pull/624
Notable refresh from the February 2026 proposal:
- profiles are now explicitly validation rollout tiers, not a broad ceremony layer
- core implementation target is
init+ config resolution - legacy first-run presets remain compatibility inputs
- validation tier profiles own the clean-code default mapping
- OpenSpec proposal/design/spec/tasks/evidence were refreshed before PR creation