legion-llm 0.4.2 → 0.4.5
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 +19 -0
- data/docs/routing-reenvisioned.md +861 -0
- data/lib/legion/llm/helpers/llm.rb +6 -5
- data/lib/legion/llm/override_confidence.rb +170 -0
- data/lib/legion/llm/pipeline/executor.rb +3 -36
- data/lib/legion/llm/pipeline/steps/billing.rb +55 -0
- data/lib/legion/llm/pipeline/steps/classification.rb +99 -0
- data/lib/legion/llm/pipeline/steps/rbac.rb +71 -0
- data/lib/legion/llm/pipeline/steps.rb +3 -0
- data/lib/legion/llm/pipeline/tool_dispatcher.rb +48 -1
- data/lib/legion/llm/version.rb +1 -1
- data/lib/legion/llm.rb +1 -0
- metadata +6 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8402009cad8567d64881d1ab4bab1c05b863a0cfa606b4d43da55f412ab04e3c
|
|
4
|
+
data.tar.gz: '0588be98c5a45fd930a5e668ec6ce1789bb9e927ef0c8748208b5dd211b89326'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad633666c8e5d3b25d140f9be94741997b28704a84e35aba33b87eac334a99ae2c6c4829a9caf32aae855eef510d82cb401451f9717a3f64ecef62c649ba8fba
|
|
7
|
+
data.tar.gz: 7947ea6547260b4e16c65fe92bd4154da6b2cd892dcf7097de240f97fc0e851f0fccc416224305ab6220bfd7317bb540babaa89f5c554303fe095d3f122513c7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Legion LLM Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.5] - 2026-03-23
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `llm_chat` and `llm_session` helpers now accept and forward `caller:` to pipeline (unblocks consumer migration)
|
|
7
|
+
|
|
8
|
+
## [0.4.4] - 2026-03-23
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `Pipeline::Steps::Rbac`: real RBAC enforcement using `Legion::Rbac.authorize!`, graceful degradation when unavailable
|
|
12
|
+
- `Pipeline::Steps::Classification`: real PII/PHI scan (SSN, email, phone regex + PHI keyword list); upgrade-only classification levels
|
|
13
|
+
- `Pipeline::Steps::Billing`: real budget enforcement via `CostEstimator`; spending cap rejection
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Extracted all three governance stubs from Executor into dedicated step modules
|
|
17
|
+
|
|
3
18
|
## [0.4.2] - 2026-03-23
|
|
4
19
|
|
|
5
20
|
### Added
|
|
@@ -9,6 +24,10 @@
|
|
|
9
24
|
- `Pipeline::GaiaCaller`: privileged helper for GAIA/GAS LLM calls with system profile (skips governance steps)
|
|
10
25
|
- `Pipeline::AuditPublisher`: publishes audit events to `llm.audit` exchange for GAS subscriber consumption
|
|
11
26
|
- RAG/GAS full cycle integration test (4 examples: enrichment, injection, degradation, feedback loop prevention)
|
|
27
|
+
- `OverrideConfidence` module with 4-tier degrading storage (L0 memory, L1 cache, L2 SQLite, L3 Apollo)
|
|
28
|
+
- Catalog-driven auto-override in `ToolDispatcher`: settings override first, then Catalog + confidence gate
|
|
29
|
+
- Shadow mode execution: when confidence is 0.5-0.8, execute both MCP and LEX, compare results, update confidence
|
|
30
|
+
- `hydrate_from_l2` and `hydrate_from_apollo` for override confidence persistence across restarts
|
|
12
31
|
|
|
13
32
|
## [0.4.1] - 2026-03-23
|
|
14
33
|
|