Skip to content

Commit f07445e

Browse files
committed
feat!(openshell-cli): remove openshell policy prove command and z3 dependency
Signed-off-by: Simon Scatton <[email protected]>
1 parent 3dee557 commit f07445e

3 files changed

Lines changed: 0 additions & 52 deletions

File tree

‎Cargo.lock‎

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/openshell-cli/Cargo.toml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ openshell-bootstrap = { path = "../openshell-bootstrap" }
1919
openshell-core = { path = "../openshell-core", default-features = false }
2020
openshell-policy = { path = "../openshell-policy" }
2121
openshell-providers = { path = "../openshell-providers" }
22-
openshell-prover = { path = "../openshell-prover" }
2322
openshell-tui = { path = "../openshell-tui" }
2423
serde = { workspace = true }
2524
serde_json = { workspace = true }
@@ -84,9 +83,6 @@ tracing-subscriber = { workspace = true }
8483
[lints]
8584
workspace = true
8685

87-
[features]
88-
bundled-z3 = ["openshell-prover/bundled-z3"]
89-
9086
[dev-dependencies]
9187
futures = { workspace = true }
9288
rcgen = { version = "0.13", features = ["crypto", "pem"] }

‎crates/openshell-cli/src/main.rs‎

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,30 +1743,6 @@ enum PolicyCommands {
17431743
#[arg(long)]
17441744
yes: bool,
17451745
},
1746-
1747-
/// Prove properties of a sandbox policy — or find counterexamples.
1748-
#[command(help_template = LEAF_HELP_TEMPLATE, next_help_heading = "FLAGS")]
1749-
Prove {
1750-
/// Path to `OpenShell` sandbox policy YAML.
1751-
#[arg(long, value_hint = ValueHint::FilePath)]
1752-
policy: String,
1753-
1754-
/// Path to credential descriptor YAML.
1755-
#[arg(long, value_hint = ValueHint::FilePath)]
1756-
credentials: String,
1757-
1758-
/// Path to capability registry directory (default: bundled).
1759-
#[arg(long, value_hint = ValueHint::DirPath)]
1760-
registry: Option<String>,
1761-
1762-
/// Path to accepted risks YAML.
1763-
#[arg(long, value_hint = ValueHint::FilePath)]
1764-
accepted_risks: Option<String>,
1765-
1766-
/// One-line-per-finding output (for demos and CI).
1767-
#[arg(long)]
1768-
compact: bool,
1769-
},
17701746
}
17711747

17721748
#[derive(Subcommand, Debug)]
@@ -2297,28 +2273,6 @@ async fn main() -> Result<()> {
22972273
// -----------------------------------------------------------
22982274
// Top-level policy (was `sandbox policy`)
22992275
// -----------------------------------------------------------
2300-
Some(Commands::Policy {
2301-
command:
2302-
Some(PolicyCommands::Prove {
2303-
policy,
2304-
credentials,
2305-
registry,
2306-
accepted_risks,
2307-
compact,
2308-
}),
2309-
}) => {
2310-
// Prove runs locally — no gateway needed.
2311-
let exit_code = openshell_prover::prove(
2312-
&policy,
2313-
&credentials,
2314-
registry.as_deref(),
2315-
accepted_risks.as_deref(),
2316-
compact,
2317-
)?;
2318-
if exit_code != 0 {
2319-
std::process::exit(exit_code);
2320-
}
2321-
}
23222276
Some(Commands::Policy {
23232277
command: Some(policy_cmd),
23242278
}) => {
@@ -2438,7 +2392,6 @@ async fn main() -> Result<()> {
24382392
}
24392393
run::gateway_setting_delete(&ctx.endpoint, "policy", yes, &tls).await?;
24402394
}
2441-
PolicyCommands::Prove { .. } => unreachable!(),
24422395
}
24432396
}
24442397

0 commit comments

Comments
 (0)