MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / summarize_draft_chunk_rule

Function summarize_draft_chunk_rule

crates/openshell-server/src/grpc/policy.rs:413–417  ·  view source on GitHub ↗
(chunk: &DraftChunkRecord)

Source from the content-addressed store, hash-verified

411}
412
413fn summarize_draft_chunk_rule(chunk: &DraftChunkRecord) -> Result<String, Status> {
414 let rule = NetworkPolicyRule::decode(chunk.proposed_rule.as_slice())
415 .map_err(|e| Status::internal(format!("decode proposed_rule failed: {e}")))?;
416 Ok(summarize_add_rule(&chunk.rule_name, &rule))
417}
418
419/// Run prover queries against the merged policy and render a short
420/// human-readable verdict for the reviewer. The verdict reports only the

Calls 2

summarize_add_ruleFunction · 0.85
as_sliceMethod · 0.80

Tested by

no test coverage detected