Skip to content

Commit 9ade568

Browse files
committed
Fix: Standardize performance schemas and resolve circular reporting imports
1 parent 5c51082 commit 9ade568

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
> **"One Engine. Two Worlds. Total Accountability."**
66
7-
[**Full Documentation 📚**](https://daretechie.github.io/CommitGuard-AI/) | [**Commercial Strategy 💰**](COMMERCIAL.md)
7+
[**Full Documentation 📚**](https://daretechie.github.io/CommitGuard-AI/)
8+
89

910

1011
---

src/core/reporting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from src.schemas.performance import SlippageAnalysis, TruthGapAnalysis
2+
23
from src.schemas.agents import UserHistory
34
from datetime import datetime
45

src/schemas/performance.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ class SlippageAnalysis(BaseModel):
1919
intervention_required: bool
2020

2121

22+
class TruthGapAnalysis(BaseModel):
23+
gap_detected: bool
24+
truth_score: float = Field(..., ge=0, le=1, description="1.0 means perfect alignment.")
25+
explanation: str
26+
recommended_tone: str
27+
28+
29+
2230
class GitCommitPromise(BaseModel):
2331
commit_hash: str
2432
author_email: str

0 commit comments

Comments
 (0)