specfact-cli icon indicating copy to clipboard operation
specfact-cli copied to clipboard

Profile and Validation Config Layering

Open djm81 opened this issue 9 months ago • 2 comments

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, and enterprise.
  • Resolve config layers deterministically: profile defaults < org baseline < repo overlay < developer-local override.
  • Write .specfact/config.yaml with source_annotations for the winning source of each resolved value.
  • Derive clean-code defaults from the selected tier:
    • solo -> advisory
    • startup -> advisory_then_mixed
    • mid_size -> mixed
    • enterprise -> 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

djm81 avatar Feb 15 '26 22:02 djm81

Dependency mapping from CHANGE_ORDER: blocked by #193.

djm81 avatar Feb 15 '26 22:02 djm81

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

djm81 avatar Jul 06 '26 21:07 djm81