Skip to main content

lean_ctx/core/config/
intelligence.rs

1// SPDX-License-Identifier: Apache-2.0
2//! User-global opt-in and independent trust pins for the optional local runtime.
3
4use serde::{Deserialize, Serialize};
5
6/// Never merged from a project file, including trusted workspaces.
7/// A public signing key is not a credential; the package cannot provide its pin.
8#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
9#[serde(default, deny_unknown_fields)]
10pub struct IntelligenceRuntimeConfig {
11    pub enabled: bool,
12    pub accept_proprietary: bool,
13    pub staging: bool,
14    pub root: String,
15    pub manifest_sha256: String,
16    pub trust_key_hex: String,
17    pub channel_url: String,
18    pub channel_signature_url: String,
19    pub channel_root_key_hex: String,
20    /// Explicit user-global handoff to the private verifier, never project input.
21    pub license_configuration: String,
22    /// Let the planner apply a promoted read-strategy policy instead of only
23    /// recording it (shadow). Security and explicit choices still win.
24    pub context_policy_apply: bool,
25}