petter2025 commited on
Commit
770d0b0
·
verified ·
1 Parent(s): cb659ea

Create constants.py

Browse files
Files changed (1) hide show
  1. infrastructure/constants.py +21 -0
infrastructure/constants.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ ARF OSS constants – shared across modules.
3
+ """
4
+
5
+ OSS_EDITION = "OSS"
6
+ OSS_LICENSE = "Apache 2.0"
7
+ ENTERPRISE_UPGRADE_URL = "https://huggingface.co/spaces/petter2025/agentic-reliability-framework?enterprise"
8
+ EXECUTION_ALLOWED = False
9
+
10
+ # Limits
11
+ MAX_SIMILARITY_CACHE = 100
12
+ SIMILARITY_THRESHOLD = 0.7
13
+ MAX_POLICY_VIOLATIONS = 10
14
+ MAX_RISK_FACTORS = 20
15
+ MAX_COST_PROJECTIONS = 5
16
+ MAX_DECISION_TREE_DEPTH = 5
17
+ MAX_ALTERNATIVE_ACTIONS = 5
18
+
19
+ class OSSBoundaryError(Exception):
20
+ """Raised when OSS edition attempts an enterprise-only operation."""
21
+ pass