Add Policy DSL Validator, Schema Exporter, and Simulation Smoke tools
- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
This commit is contained in:
25
samples/policy/README.md
Normal file
25
samples/policy/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Policy Samples
|
||||
|
||||
Curated fixtures used by CI smoke/determinism checks and example documentation.
|
||||
|
||||
| Scenario | Policy | Findings | Expected Diff | UI/CLI Diff Fixture |
|
||||
|----------|--------|----------|---------------|---------------------|
|
||||
| `baseline` | `docs/examples/policies/baseline.yaml` | `samples/policy/baseline/findings.json` | `samples/policy/baseline/diffs.json` | `samples/policy/simulations/baseline/diff.json` |
|
||||
| `serverless` | `docs/examples/policies/serverless.yaml` | `samples/policy/serverless/findings.json` | `samples/policy/serverless/diffs.json` | `samples/policy/simulations/serverless/diff.json` |
|
||||
| `internal-only` | `docs/examples/policies/internal-only.yaml` | `samples/policy/internal-only/findings.json` | `samples/policy/internal-only/diffs.json` | `samples/policy/simulations/internal-only/diff.json` |
|
||||
|
||||
Run the simulation harness locally:
|
||||
|
||||
```bash
|
||||
dotnet run \
|
||||
--project tools/PolicySimulationSmoke/PolicySimulationSmoke.csproj \
|
||||
-- \
|
||||
--scenario-root samples/policy/simulations \
|
||||
--output out/policy-simulations
|
||||
```
|
||||
|
||||
Then inspect `out/policy-simulations/policy-simulation-summary.json` for verdict changes.
|
||||
|
||||
---
|
||||
|
||||
*Last updated: 2025-10-26.*
|
||||
Reference in New Issue
Block a user