Skip to content

Commit cdfe58c

Browse files
committed
refactor(policy): rename policy schema crate
Signed-off-by: Johnny Greco <[email protected]>
1 parent a32bdd0 commit cdfe58c

18 files changed

Lines changed: 37 additions & 37 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ These pipelines connect skills into end-to-end workflows. Individual skill files
4444
| `crates/openshell-isolation-interface/` | Isolation backend interface | RFC 0012 `IsolationBackend` trait and types; the supervisor-facing runtime contract |
4545
| `crates/openshell-sandbox-backend/` | OpenShell sandbox backend | `OpenShellRuntimeBackend` and the authenticated OpenShell Sandbox Protocol shared with `openshell-sandbox` |
4646
| `crates/openshell-policy/` | Policy engine | Filesystem, network, and process constraints |
47-
| `crates/openshell-policy-schema/` | Authored policy schema | Dependency-light YAML/JSON representation, bounded parsing, and pure authored-language semantics |
47+
| `crates/openshell-policy-parser/` | Authored policy parser | Dependency-light YAML/JSON representation, bounded parsing, and pure authored-language semantics |
4848
| `crates/openshell-bootstrap/` | Gateway metadata | Gateway registration metadata, auth token storage, mTLS bundle storage |
4949
| `crates/openshell-gateway-interceptors/` | Gateway interceptors | Intercepts and transforms configured gRPC requests at the gateway routing boundary |
5050
| `crates/openshell-ocsf/` | OCSF logging | OCSF v1.8.0 event types, builders, shorthand/JSONL formatters, tracing layers |

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ These are the primary `mise` tasks for day-to-day development:
458458
| Path | Purpose |
459459
| --------------- | --------------------------------------------- |
460460
| `crates/` | Rust crates |
461-
| `crates/openshell-policy-schema/` | Canonical authored policy DTOs and bounded YAML/JSON parser |
461+
| `crates/openshell-policy-parser/` | Canonical authored policy DTOs and bounded YAML/JSON parser |
462462
| `python/` | Python SDK and bindings |
463463
| `sdk/go/` | Go SDK (types, gRPC clients, converters) |
464464
| `sdk/typescript/` | TypeScript SDK (Connect client and generated protobuf bindings) |

‎Cargo.lock‎

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

‎architecture/security-policy.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dynamic and can be hot-reloaded when the new policy validates successfully.
2323

2424
### Authored policy boundary
2525

26-
`openshell-policy-schema` is the sole owner of the authored YAML and JSON
26+
`openshell-policy-parser` is the sole owner of the authored YAML and JSON
2727
representation. It preserves authored distinctions such as an absent
2828
`filesystem_policy` versus an explicitly empty object, rejects duplicate keys,
2929
and applies parser budgets while noyalib constructs the document. It also owns

‎crates/openshell-core/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository.workspace = true
1313
[dependencies]
1414
async-trait = "0.1"
1515
openshell-extension-core = { path = "../openshell-extension-core" }
16-
openshell-policy-schema = { path = "../openshell-policy-schema" }
16+
openshell-policy-parser = { path = "../openshell-policy-parser" }
1717
glob = { workspace = true }
1818
prost = { workspace = true }
1919
prost-types = { workspace = true }

‎crates/openshell-core/src/mcp.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::collections::BTreeSet;
77

88
use crate::proto::{McpOptions, ProviderProfile};
99

10-
pub use openshell_policy_schema::{
10+
pub use openshell_policy_parser::{
1111
DEFAULT_MCP_PROTOCOL_VERSION, MAX_MCP_LEGACY_BATCH_MESSAGES, McpProtocolVersion,
1212
McpWireProfile, ParseMcpProtocolVersionError,
1313
};

‎crates/openshell-core/src/paths.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ pub fn is_file_permissions_too_open(path: &Path) -> bool {
141141
}
142142

143143
/// Compatibility re-export; authored policy path normalization is owned by
144-
/// `openshell-policy-schema`.
145-
pub use openshell_policy_schema::normalize_path;
144+
/// `openshell-policy-parser`.
145+
pub use openshell_policy_parser::normalize_path;
146146

147147
#[cfg(test)]
148148
mod tests {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
[package]
5-
name = "openshell-policy-schema"
6-
description = "Canonical authored policy schema for OpenShell"
5+
name = "openshell-policy-parser"
6+
description = "Canonical authored policy parser for OpenShell"
77
version.workspace = true
88
edition.workspace = true
99
rust-version.workspace = true

‎crates/openshell-policy/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository.workspace = true
1313
[dependencies]
1414
hickory-proto = { workspace = true }
1515
openshell-core = { path = "../openshell-core", default-features = false }
16-
openshell-policy-schema = { path = "../openshell-policy-schema" }
16+
openshell-policy-parser = { path = "../openshell-policy-parser" }
1717
serde = { workspace = true }
1818
serde_json = { workspace = true }
1919
miette = { workspace = true }

0 commit comments

Comments
 (0)