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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3d1202bc5192676ef21a045629561762a5b4b48b924df76a1d1867bb9c7fcfb
4
- data.tar.gz: b67db39aa8974294a5bd45ea90408709d371a8a0186e7a120688b7773a35a518
3
+ metadata.gz: fa7ba49d17c9d418f172c576bc3d1b2d5174757c489928cecf52a403c43c4544
4
+ data.tar.gz: a1339abda9a424179721b7b7af22e5ec972c5847976876a967547b5080f48c29
5
5
  SHA512:
6
- metadata.gz: 0e15b22d7a9a10ecccf2cb868551736e1518e9d3cc8236a6efdab68d92f0e780b703f4047d0ab69cdea6eb6fa529714e0779c9a0f2da9a61df2501b890e33b88
7
- data.tar.gz: 1f49b84a3a30fe42cb4dd59c534ac0c35de96777cf8e2fa63c1017ddf38a1d040a6d36a84a55ecec3945813b71e784973cd6e9edc87a05b7a631d5b82536f5be
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module LLM
5
- VERSION = '0.5.12'
5
+ VERSION = '0.5.13'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity