legion-llm 0.5.12 → 0.5.13
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/CHANGELOG.md +5 -0
- data/lib/legion/llm/pipeline/steps/classification.rb +13 -2
- 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: fa7ba49d17c9d418f172c576bc3d1b2d5174757c489928cecf52a403c43c4544
|
|
4
|
+
data.tar.gz: a1339abda9a424179721b7b7af22e5ec972c5847976876a967547b5080f48c29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3283898e616549b10b78d722210c538e9f30135a5b20eed49fea1f326c300ca9be4cfbb269ab698080eaee9f8f3d0ccee2bf7350474b195b59130cc55ec5cbe6
|
|
7
|
+
data.tar.gz: 76c4137add776f2c40634daf05baaf459d99a865147b6021e24f22c442564cca569ac6ff63d6bc3b7c7bb43aafa01690f02a2ec948e8bbf840ca7a43bc89c34f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Legion LLM Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.13] - 2026-03-27
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Classification step (step 6) now auto-enables when `Settings.dig(:compliance, :classification_level)` is set, making it opt-out instead of opt-in when compliance profile is active
|
|
7
|
+
|
|
3
8
|
## [0.5.12] - 2026-03-26
|
|
4
9
|
|
|
5
10
|
### Added
|
|
@@ -20,9 +20,9 @@ module Legion
|
|
|
20
20
|
].freeze
|
|
21
21
|
|
|
22
22
|
def step_classification
|
|
23
|
-
return unless @request.classification
|
|
23
|
+
return unless @request.classification || compliance_classification_default
|
|
24
24
|
|
|
25
|
-
classification = @request.classification
|
|
25
|
+
classification = @request.classification || compliance_classification_default
|
|
26
26
|
declared_level = classification[:level]
|
|
27
27
|
scan = scan_content_for_sensitive_data
|
|
28
28
|
effective_level = upgrade_if_needed(declared_level, scan)
|
|
@@ -92,6 +92,17 @@ module Legion
|
|
|
92
92
|
|
|
93
93
|
LEVELS[threshold_idx]
|
|
94
94
|
end
|
|
95
|
+
|
|
96
|
+
def compliance_classification_default
|
|
97
|
+
return nil unless defined?(Legion::Settings)
|
|
98
|
+
|
|
99
|
+
level = Legion::Settings.dig(:compliance, :classification_level)
|
|
100
|
+
return nil unless level
|
|
101
|
+
|
|
102
|
+
{ level: level.to_sym }
|
|
103
|
+
rescue StandardError
|
|
104
|
+
nil
|
|
105
|
+
end
|
|
95
106
|
end
|
|
96
107
|
end
|
|
97
108
|
end
|
data/lib/legion/llm/version.rb
CHANGED