legionio 1.5.2 → 1.5.3

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: ab73463db65a9727d48f06fe62241a998ed59bd4f65ae37e3beea891ff7a039f
4
- data.tar.gz: 61da69443e787e03c589605f604bf5cc03b22d05699a18bcb6bd04b5127cd00a
3
+ metadata.gz: 8f271018748afb1f0673160c77fb130306881d834350f863459b0dd4bf9e50ca
4
+ data.tar.gz: 30735d835cdf55297b2c3e930bf5208aa57f8e93b2ebecce34759922f1717778
5
5
  SHA512:
6
- metadata.gz: 61a381380b6120a894ea646ba6bc4a7e03d2aadb354a482d4217069de840f95f0aa42c4ef42ae8d1c333e2bfc5d8de7873c90441fc99d8a54f01a44c96f44150
7
- data.tar.gz: 2cc61385a084947067caaf5201aaf32865b994f9d330842801c5e1f41794cb0c35bbb444739a426cf3ac0d05124a4638e664742dc3f5a2816db826b270855d65
6
+ metadata.gz: 350a4f591d15e80fbeec13d00cecc6dc5517fc217ecf403fb33fea6b4288a8c54d6c120ef944d2ce28780dd02be02b79e22d7c534a84f9c6fd23e861a3189514
7
+ data.tar.gz: 06c021bdaa31ab1d1533893288c095385dd170b5910c42f843144f705faf0fdb45615ae98a7936de628b7599fac7ece3f9af3c96de2b63d96887554508912ad8
data/.rubocop.yml CHANGED
@@ -57,6 +57,7 @@ Metrics/AbcSize:
57
57
  Max: 60
58
58
  Exclude:
59
59
  - 'lib/legion/cli/chat_command.rb'
60
+ - 'lib/legion/digital_worker/lifecycle.rb'
60
61
 
61
62
  Metrics/CyclomaticComplexity:
62
63
  Max: 15
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Legion Changelog
2
2
 
3
+ ## [1.5.3] - 2026-03-24
4
+
5
+ ### Added
6
+ - Extinction escalation verification in lifecycle integration tests (stub_const approach)
7
+ - De-escalation on worker resume: `transition!` calls `Client#deescalate` when extinction level decreases
8
+ - Credential revocation on worker termination: calls `VaultSecrets.delete_client_secret` guarded by `defined?`
9
+ - Ownership transfer integration tests with event and audit verification
10
+ - Retirement cycle integration tests with full audit chain and extinction L3/L4 coverage
11
+
3
12
  ## [1.5.2] - 2026-03-24
4
13
 
5
14
  ### Fixed
@@ -88,6 +88,22 @@ module Legion
88
88
  authority: by || :system,
89
89
  reason: "lifecycle transition: #{from_state} -> #{to_state}"
90
90
  )
91
+ elsif new_level && new_level < current_level
92
+ Legion::Extensions::Extinction::Client.new.deescalate(
93
+ authority: by || :system,
94
+ reason: "lifecycle transition: #{from_state} -> #{to_state}",
95
+ target_level: new_level
96
+ )
97
+ end
98
+ end
99
+
100
+ if to_state == 'terminated' &&
101
+ defined?(Legion::Extensions::Agentic::Self::Identity::Helpers::VaultSecrets)
102
+ begin
103
+ Legion::Extensions::Agentic::Self::Identity::Helpers::VaultSecrets
104
+ .delete_client_secret(worker_id: worker.worker_id)
105
+ rescue StandardError => e
106
+ Legion::Logging.warn("Credential revocation failed for #{worker.worker_id}: #{e.message}") if defined?(Legion::Logging)
91
107
  end
92
108
  end
93
109
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legion
4
- VERSION = '1.5.2'
4
+ VERSION = '1.5.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legionio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity