Repository navigation
feat(jev): implement lean System One client profiles and per-class calibration (#515, #516, #519, #520, #521) - #655
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the minimal single-seam Python System One client transport behind
SemanticDecisionProviderand class-specific confidence calibration inscripts/route_resolver.py.Changes
scripts/decision_adapter.py: AddsJevProviderProfileand profiles (opencode-console,opencode-zen,openrouter,typesafe-direct). SerializesChoiceRequestto System One/v1/systemonewire format, with paid consent guard, strict JSON parsing, and fail-open error handling.scripts/route_resolver.py: Replaces universal 0.70 confidence threshold with consequence-graded per-class thresholds (CLASS_CONFIDENCE_THRESHOLDS), fences uncalibrated classes, and requires >=0.10 probability margin.tests/test_jev_transport_and_profiles.py: Full test coverage of profiles, paid guards, free retirement fallback, and wire contract.tests/test_class_calibration_policy.py: Full test coverage of per-class calibration thresholds, unknown class rejection, and margin gating.Closes #515, closes #516, closes #519, closes #520, closes #521.