You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor prompt regression scoring, enhance version control retrieval, and improve reflection tuning conditions
- Updated `PromptRegressionRunner` to use a weighted scoring function for baseline and candidate outputs, incorporating partial matches.
- Enhanced `PromptVersionControl` to ensure version retrieval is robust against missing tags.
- Adjusted `DynamicReflectionPromptBuilder` to allow a wider confidence range for header injection.
- Improved `SelfImprovementOrchestrator` to streamline result finalization and ensure accurate status updates.
- Modified `TaskScheduler` to track scheduled tasks more effectively and prevent over-dispatching.
- Added deadline checks in `ThemisRPCService` for search and paginated query handling to prevent timeouts.
- Enhanced time point handling in `task_scheduler_api_handler` to account for edge cases.
- Updated tests across various modules to reflect changes in expected behavior and ensure robustness.
- Introduced a fix plan for the LLM adapter to address future blockers while maintaining existing functionality.
|**T2: Data Plane Engines**| Query, transaction, storage, index, sharding/replication logic |`src/query/`, `src/storage/`, `src/index/`, `src/transaction/`, `src/sharding/`, `src/replication/`| High | Data corruption, consistency and integrity impact |
389
+
|**T3: Interface & Protocol Edge**| External protocol handling and request ingress |`src/server/`, `src/network/`, `src/rpc_grpc/`, `src/api/`, `src/cdc/`| Medium | Remote attack surface and tenant boundary violations |
390
+
|**T4: Managed Extension Runtime**| In-tree feature extensions with controlled interfaces |`src/llm/`, `src/llama_cpp/`, `src/whisper/`, `src/stable_diffusion/`, `src/content/`, `src/onnx_clip/`| Medium-low | Feature-domain scoped, can escalate if guardrails fail |
391
+
|**T5: Plugin Boundary (Least Trusted)**| Dynamically loaded or remotely controlled plugin code and adapters |`src/plugins/`, selected adapters in `adapters/`| Lowest | Arbitrary code execution within plugin sandbox scope |
392
+
393
+
### Dependency and Privilege Rules (Mandatory)
394
+
395
+
1.**One-way dependency direction:** Higher-numbered tiers may depend on lower-numbered tiers; lower tiers must not depend on higher tiers.
396
+
2.**No direct T5 -> T0/T1 privileged calls:** Plugins interact via brokered interfaces (`PluginManager`, RPC contracts, policy checks).
397
+
3.**Security mediation at boundaries:** Every T3/T4/T5 entry path must pass authentication, authorization, input validation, rate limits, and audit hooks.
398
+
4.**Least privilege by default:** Capabilities must be explicitly granted and denied by default (network, filesystem, model loading, data export).
399
+
5.**Fail-closed behavior:** On policy/config/auth uncertainty, requests must be rejected rather than downgraded.
|**T5**| Signature verification, sandboxing, capability-scoped RPC, provenance checks | No implicit trust of plugin manifests, explicit allowlist/denylist, kill-switch support | Plugin verification tests + signed artifact validation |
411
+
412
+
### Promotion and Change Management
413
+
414
+
- Any component moving toward a lower-trust tier (for example, from T4 to T5) must include an explicit threat model update and new boundary tests.
415
+
- Any component requiring higher trust (for example, T3 -> T2) requires architecture review plus security maintainer approval.
416
+
- Public interfaces crossing tier boundaries must document auth model, input contract, error behavior, and audit events.
417
+
418
+
This tiering is normative for architecture changes and complements the controls in [SECURITY.md](SECURITY.md), [AUDIT.md](AUDIT.md), and [GOVERNANCE.md](GOVERNANCE.md).
Copy file name to clipboardExpand all lines: SECURITY.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,37 @@ gemeinsame Baseline:
121
121
122
122
---
123
123
124
+
## 🧱 Security Tiering Model (Normativ)
125
+
126
+
ThemisDB uses a security tier model from trusted core modules to least-trusted plugin boundaries. This model is normative for architecture, implementation, and release review.
0 commit comments