Skip to content

feat(phase-14): DoD closure — Common contracts, calibration flag#503

Merged
RicherTunes merged 3 commits intomainfrom
feat/phase-14-dod-closure
Feb 17, 2026
Merged

feat(phase-14): DoD closure — Common contracts, calibration flag#503
RicherTunes merged 3 commits intomainfrom
feat/phase-14-dod-closure

Conversation

@RicherTunes
Copy link
Owner

Summary

Phase 14 (Confidence + Explainability Contracts) Definition of Done closure:

  • Commit 1: Bump Common submodule from e4586e3 to 1bacd6d to pick up TriageReasonCodes and ConfidenceBand contracts (PRs chore(common): bump to v1.5.1 #380, fix: make MBID enrichment best-effort (don\u0027t drop recs) #381)
  • Commit 2: Replace local ReasonCodes inner class with Common's TriageReasonCodes constants; use Common's ConfidenceBand enum for band classification (backward-compatible string output via .ToString().ToLowerInvariant())
  • Commit 3: Add EnableProviderCalibration feature flag (FieldDefinition 43, default=true) — when disabled, orchestrator passes null for provider, skipping per-provider confidence calibration

Test plan

  • All 4 RecommendationTriageAdvisorTests pass (including new CalibrationDisabled_ReturnsRawScores)
  • All 25 triage/golden-fixture/calibration tests pass after contract migration
  • Full suite: 2415/2415 pass after clean build (1 known flaky rate limiter excluded)
  • Circuit breaker tests pass (stale assembly issue resolved with clean build)

Evidence

dotnet test --no-build -c Debug (2026-02-16)
Passed: 2415, Failed: 1 (known flaky), Skipped: 9

🤖 Generated with Claude Code

RicherTunes and others added 3 commits February 16, 2026 21:35
Picks up PR #380 (TriageReasonCodes, ConfidenceBand enum) and
PR #381 (Phase 12-17 evidence blocks in canonical roadmap).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace local ReasonCodes inner class with Common's canonical
TriageReasonCodes constants. Use Common's ConfidenceBand enum for
classification (output remains lowercase string for API compat).

Zero behavior change: all 25 triage/calibration/golden fixture tests
pass with identical outputs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add FieldDefinition(43) EnableProviderCalibration setting (default=true)
that controls whether per-provider confidence calibration is applied to
triage scores. When disabled, the orchestrator passes null for the
provider parameter, resulting in raw uncalibrated scores.

Add CalibrationDisabled_ReturnsRawScores test verifying the flag behavior:
- provider=null yields no CALIBRATION_APPLIED reason code
- provider=Ollama yields CALIBRATION_APPLIED + LOW_CALIBRATION_PROVIDER

2415/2415 tests pass (1 known flaky rate limiter test excluded).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@RicherTunes RicherTunes merged commit 10ebc95 into main Feb 17, 2026
12 of 15 checks passed
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