legion-llm 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/legion/llm/pipeline/steps/tier_assigner.rb +5 -4
- data/lib/legion/llm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43cc1358dabaa66c319b8e8c12810ed4c9b9dd344d74fe608c7607d745369618
|
|
4
|
+
data.tar.gz: 9388386688c739d59e69779ef950563f10259aa69ea4833dd2a5ef1f29caeda0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25b3734d86e86107226fea78aa686132c9030ae3cb191388d88e962b9c5b66327524528e91af7ebb27d8df9b8d8057684cf10e030d37992b5d44e6ae5cf885cf
|
|
7
|
+
data.tar.gz: 8bdbbdd6cb270a40cf47de6391b36cab005f305a1b2a39628849c9c1747968b8eebea765bb745ecc4d7f5d36afa876510972c28a61a804770a62bd631e2cca55
|
|
@@ -36,10 +36,11 @@ module Legion
|
|
|
36
36
|
mapping = find_role_mapping(caller)
|
|
37
37
|
return mapping if mapping
|
|
38
38
|
|
|
39
|
-
# 3. Classification-driven
|
|
40
|
-
if classification && (classification[:contains_phi] || classification[:contains_pii]
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
# 3. Classification-driven: PHI/PII/restricted -> local only (fail closed)
|
|
40
|
+
if classification && (classification[:contains_phi] || classification[:contains_pii] ||
|
|
41
|
+
classification[:level]&.to_sym == :restricted)
|
|
42
|
+
log.info('[llm][routing] tier_assigned source=classification tier=local (phi/pii/restricted)')
|
|
43
|
+
return { tier: :local, intent: { privacy: :strict }, source: :classification }
|
|
43
44
|
end
|
|
44
45
|
|
|
45
46
|
# 4. Priority-driven
|
data/lib/legion/llm/version.rb
CHANGED