Skip to content

chore(build): add opt-in experimental build flag - #5005

Merged
drew merged 1 commit into
mainfrom
drew/dev-builds
Nov 23, 2026
Merged

drew merged 1 commit into
mainfrom
drew/dev-builds

Conversation

@drew

@drew drew commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add an opt-in experimental Cargo feature flag for openshell-gateway, openshell-server, and openshell-supervisor. Normal workspace builds, lint, tests, branch E2E, and Release Dev enable it; prerelease and stable builds leave it off.

Related Issue

Build flag for #4411. Cedar support is stacked on this PR in #5006.

Changes

  • Define an experimental feature on openshell-gateway (forwarding to openshell-server/experimental), openshell-server, and openshell-supervisor.
  • Enable --features experimental in workspace mise tasks (tasks/ci.toml, tasks/rust.toml, tasks/test.toml) and Branch Checks (branch-checks.yml, rust-cache.yml).
  • Add an experimental input (default false) to build-binaries-linux.yml and build-binaries-macos.yml that passes --features experimental to gateway and supervisor builds; enable it in branch-e2e.yml and release-dev.yml.
  • Document the experimental build flag in CONTRIBUTING.md, CI.md, and .agents/skills/release-captain/SKILL.md.

Release Notes

Testing

  • Branch Checks passed on Linux (x86_64, aarch64) and macOS (aarch64), including lint, tests, build modes without experimental, Cargo Deny, and workflow checks.

Checklist

  • Follows Conventional Commits.
  • Commits are signed off (DCO).

@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.

@drew
drew added this pull request to stack #5007 October 28, 2026 15:43
@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 12, 2026
@purp purp added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:dx Making OpenShell easy to contribute to for humans and agents. 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 <vishwanathr@nvidia.com>
@drew
drew marked this pull request as ready for review November 23, 2026 20:24
@drew
drew requested a review from a team as a code owner November 23, 2026 20:24
@drew drew changed the title chore(build): add opt-in development feature bundles chore(build): add opt-in experimental build flag Nov 23, 2026
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
@drew
drew added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 0d495be Nov 23, 2026
89 of 90 checks passed
@drew
drew deleted the drew/dev-builds branch November 23, 2026 22:45
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 <vishwanathr@nvidia.com>
vishwa-raman added a commit that referenced this pull request Nov 24, 2026
A sandbox policy can be written in Cedar instead of YAML. The format is
chosen once per sandbox: YAML policies keep using the Rego engine
unchanged, and a .cedar policy makes Cedar the sole authority for network
connections, per-request L7 checks, and Landlock filesystem grants.

This is the original implementation branch for #4411. It was refactored
and merged to main through #5005 and #5006 (152c59d), which supersede
it. The full commit history is kept on vishwa/cedar-openshell-history.

The branch stays because some of its work did not make it into #5006 and
will be pulled selectively into future PRs:
- CLI configuration of middleware, endpoint settings, and process for
  Cedar sandboxes (--middleware)
- Load-time policy warnings returned to clients
- Clients checking that a gateway supports Cedar before sending a policy
- Cedar guidance in the public openshell-cli and generate-sandbox-policy
  skills

Refs #4474

Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
Co-authored-by: Johnny Greco <jogreco@nvidia.com>
Co-authored-by: Drew Newberry <anewberry@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:dx Making OpenShell easy to contribute to for humans and agents.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants