Skip to content

feat(jev): implement lean System One client profiles and per-class calibration (#515, #516, #519, #520, #521) - #655

Merged
tommy-ca merged 2 commits into
mainfrom
feat/jev-lean-transport-and-calibration
Oct 20, 2026
Merged

tommy-ca merged 2 commits into
mainfrom
feat/jev-lean-transport-and-calibration

Conversation

@tommy-ca

Copy link
Copy Markdown
Owner

Implements the minimal single-seam Python System One client transport behind SemanticDecisionProvider and class-specific confidence calibration in scripts/route_resolver.py.

Changes

  • scripts/decision_adapter.py: Adds JevProviderProfile and profiles (opencode-console, opencode-zen, openrouter, typesafe-direct). Serializes ChoiceRequest to System One /v1/systemone wire 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.

@tommy-ca
tommy-ca merged commit 85286ba into main Oct 20, 2026
1 check passed
@tommy-ca
tommy-ca deleted the feat/jev-lean-transport-and-calibration branch October 20, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment