Skip to content

feat(examples): add Cedar policies and demos - #4991

Closed
drew wants to merge 1 commit into
vishwa/cedar-openshellfrom
feat/4990-cedar-examples/drew
Closed

drew wants to merge 1 commit into
vishwa/cedar-openshellfrom
feat/4990-cedar-examples/drew

Conversation

@drew

@drew drew commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Cedar versions of the existing sandbox examples and let their demos select them with POLICY_FORMAT=cedar. This PR is stacked on #4565 so the example policies and workflows can be reviewed separately from the Cedar engine and runtime integration.

Related Issue

Closes #4990

Related: #4411. Depends on #4565.

Changes

  • Add the Cedar policies, middleware configuration, and demo support under examples/.
  • Include the fixture parity tests that compare the authored YAML and Cedar policies.
  • Document how to select the Cedar examples in the example READMEs and Cedar guide.

Testing

  • Cedar parity suite: 165 tests passed on this layer; 152 passed on the base without the example fixtures.
  • Governance interceptor example: 35 tests passed on this layer; 33 passed on the base.
  • Repository pre-commit checks passed for both commits, including formatting, lint, and lockfile checks.
  • bash -n passed for the six changed demo/smoke scripts.

The combined stack's source tree is identical to #4565 before the split. Live demos and E2E scenarios were not rerun for the extraction.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Documentation accompanies the example workflows

Provide Cedar versions of the sandbox example policies, middleware configuration, and demo scripts with fixture parity coverage. Stack the examples on the Cedar implementation in #4565 for separate review. Closes #4990.

Signed-off-by: Drew Newberry <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Oct 28, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

This pull request has had no activity for 14 days and is now marked stale.

@github-actions github-actions Bot added the state:stale Inactive item at risk of automatic closure. label Nov 11, 2026
@purp purp added area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. topic:documentation Architecture docs, READMEs, project website updates, and automated documentation generation. topic:policy Policy authoring, validation, proving, distribution, enforcement, ergonomics, and hardening. labels Nov 15, 2026
@github-actions github-actions Bot removed the state:stale Inactive item at risk of automatic closure. label Nov 15, 2026
vishwa-raman added a commit that referenced this pull request Nov 22, 2026
Describe the implementation as it stands after the refactor:
middleware, endpoint settings, and process are policy-message fields
set through the API instead of a --middleware file; a CedarPolicy
message selects Cedar; supervisor networking depends on engine-neutral
runtime contracts with one composition point; parity lives in
tests/policy-conformance with recorded expectations; and Cedar is gated
by the experimental feature bundle, built only in Release Dev.

Record the implementation as the #5005, #5006, and #4991 stack, and
update verification and rollout to match.

Older gateways that ignore the cedar_policy field, load-time warnings,
and a CI check for stable builds follow #5006 as it is today and are
listed under Open questions pending review.

Refs #4474

Signed-off-by: Vishwanath Raman <[email protected]>
@drew drew closed this Nov 24, 2026
vishwa-raman added a commit that referenced this pull request Nov 24, 2026
#5005 and #5006 have merged, so describe Cedar as implemented on main in
development builds, with #4565 superseded and the examples from #4991 still
to be brought to main.

Rename the binary build input from `dev-build` to `experimental` to match
the merged workflows, and record that the RPM build maps the
`ai-openshell/cedar` git source through deploy/rpm/create-vendor-archive.sh,
verified with an offline build of the merged tree.

Refs #4474

Signed-off-by: Vishwanath Raman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. topic:documentation Architecture docs, READMEs, project website updates, and automated documentation generation. topic:policy Policy authoring, validation, proving, distribution, enforcement, ergonomics, and hardening.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(examples): provide Cedar policy examples and demos

2 participants