Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
cli)
binary_component=cli
binary_name=openshell
features="bundled-z3"
features=""
has_image=false
;;
*)
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions crates/openshell-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ openshell-bootstrap = { path = "../openshell-bootstrap" }
openshell-core = { path = "../openshell-core", default-features = false }
openshell-policy = { path = "../openshell-policy" }
openshell-providers = { path = "../openshell-providers" }
openshell-prover = { path = "../openshell-prover" }
openshell-tui = { path = "../openshell-tui" }
serde = { workspace = true }
serde_json = { workspace = true }
Expand Down Expand Up @@ -84,9 +83,6 @@ tracing-subscriber = { workspace = true }
[lints]
workspace = true

[features]
bundled-z3 = ["openshell-prover/bundled-z3"]

[dev-dependencies]
futures = { workspace = true }
rcgen = { version = "0.13", features = ["crypto", "pem"] }
Expand Down
47 changes: 0 additions & 47 deletions crates/openshell-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1743,30 +1743,6 @@ enum PolicyCommands {
#[arg(long)]
yes: bool,
},

/// Prove properties of a sandbox policy — or find counterexamples.
#[command(help_template = LEAF_HELP_TEMPLATE, next_help_heading = "FLAGS")]
Prove {
/// Path to `OpenShell` sandbox policy YAML.
#[arg(long, value_hint = ValueHint::FilePath)]
policy: String,

/// Path to credential descriptor YAML.
#[arg(long, value_hint = ValueHint::FilePath)]
credentials: String,

/// Path to capability registry directory (default: bundled).
#[arg(long, value_hint = ValueHint::DirPath)]
registry: Option<String>,

/// Path to accepted risks YAML.
#[arg(long, value_hint = ValueHint::FilePath)]
accepted_risks: Option<String>,

/// One-line-per-finding output (for demos and CI).
#[arg(long)]
compact: bool,
},
}

#[derive(Subcommand, Debug)]
Expand Down Expand Up @@ -2297,28 +2273,6 @@ async fn main() -> Result<()> {
// -----------------------------------------------------------
// Top-level policy (was `sandbox policy`)
// -----------------------------------------------------------
Some(Commands::Policy {
command:
Some(PolicyCommands::Prove {
policy,
credentials,
registry,
accepted_risks,
compact,
}),
}) => {
// Prove runs locally — no gateway needed.
let exit_code = openshell_prover::prove(
&policy,
&credentials,
registry.as_deref(),
accepted_risks.as_deref(),
compact,
)?;
if exit_code != 0 {
std::process::exit(exit_code);
}
}
Some(Commands::Policy {
command: Some(policy_cmd),
}) => {
Expand Down Expand Up @@ -2438,7 +2392,6 @@ async fn main() -> Result<()> {
}
run::gateway_setting_delete(&ctx.endpoint, "policy", yes, &tls).await?;
}
PolicyCommands::Prove { .. } => unreachable!(),
}
}

Expand Down
Loading