Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
cea9e1e
chore(deps): track OpenShell v0.1.8-pre.3 on openshell-next
Nov 9, 2026
46667eb
Merge origin/main into openshell-next
github-actions[bot] Nov 10, 2026
2fbb6e7
chore(deps): track OpenShell v0.1.8-pre.5 on openshell-next
github-actions[bot] Nov 10, 2026
ab158c4
Merge origin/main into openshell-next
github-actions[bot] Nov 11, 2026
1dc1097
chore(deps): track OpenShell v0.1.8 on openshell-next
github-actions[bot] Nov 11, 2026
42d3aa6
chore(deps): track OpenShell v0.1.9-pre.1 on openshell-next
github-actions[bot] Nov 12, 2026
7f8f2cd
chore(deps): track OpenShell v0.1.9-pre.2 on openshell-next
github-actions[bot] Nov 12, 2026
f5ba4d4
chore(deps): track OpenShell v0.1.9-pre.3 on openshell-next
github-actions[bot] Nov 13, 2026
5942632
Merge origin/main into openshell-next
github-actions[bot] Nov 16, 2026
fd975d3
chore(deps): track OpenShell v0.1.9-pre.4 on openshell-next
github-actions[bot] Nov 16, 2026
bed75d6
chore(deps): track OpenShell v0.1.9-pre.5 on openshell-next
github-actions[bot] Nov 17, 2026
09e248b
chore(deps): track OpenShell v0.1.9 on openshell-next
github-actions[bot] Nov 18, 2026
3423c33
chore(deps): track OpenShell v0.1.10-pre.2 on openshell-next
github-actions[bot] Nov 19, 2026
544bccf
Merge origin/main into openshell-next
github-actions[bot] Nov 19, 2026
5b995a7
chore(deps): track OpenShell v0.1.10-pre.3 on openshell-next
github-actions[bot] Nov 20, 2026
66f38a2
Merge origin/main into openshell-next
github-actions[bot] Nov 23, 2026
c67ff28
chore(deps): track OpenShell v0.1.10-pre.5 on openshell-next
github-actions[bot] Nov 23, 2026
b008916
chore(deps): track OpenShell v0.1.10-pre.6 on openshell-next
github-actions[bot] Nov 23, 2026
944451b
chore(deps): track OpenShell v0.1.10 on openshell-next
github-actions[bot] Nov 24, 2026
c4e4c6b
chore(deps): track OpenShell v0.1.11-pre.1 on openshell-next
github-actions[bot] Nov 26, 2026
f7c61b2
chore(deps): track OpenShell v0.1.11-pre.2 on openshell-next
github-actions[bot] Nov 27, 2026
58c2a75
chore(ci): build openshell-next with Rust 1.95 (#117)
ilanh Nov 30, 2026
63e477c
Merge origin/main into openshell-next
ilanh Dec 1, 2026
38d8bb0
chore(deps): track OpenShell v0.1.11-pre.3 on openshell-next
github-actions[bot] Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Closes #
## Checklist

- [ ] Branch is named `feat/`, `fix/`, `docs/`, `chore/` or `test/` and commits are signed off (`git commit -s`)
- [ ] `scripts/ci-local.sh` passes (`TOOLCHAIN=1.94 scripts/ci-local.sh`)
- [ ] `scripts/ci-local.sh` passes (`TOOLCHAIN=1.95 scripts/ci-local.sh`)
- [ ] `scripts/security-local.sh` passes if workflows, dependencies or the OpenShell pin changed
- [ ] Tests added or updated (`tests/cli.rs`, fixtures, golden files)
- [ ] Docs regenerated if directives or flags changed (`scripts/gen-docs.sh`)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust
run: rustup toolchain install 1.94 --profile minimal --component rustfmt,clippy && rustup default 1.94
run: rustup toolchain install 1.95 --profile minimal --component rustfmt,clippy && rustup default 1.95
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ jobs:
env:
TARGET: ${{ matrix.target }}
run: |
rustup toolchain install 1.94 --profile minimal --target "$TARGET"
rustup default 1.94
rustup toolchain install 1.95 --profile minimal --target "$TARGET"
rustup default 1.95
- name: Build
env:
TARGET: ${{ matrix.target }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
with:
persist-credentials: false
- name: Install Rust
run: rustup toolchain install 1.94 --profile minimal && rustup default 1.94
run: rustup toolchain install 1.95 --profile minimal && rustup default 1.95
- name: Install cargo-deny (pinned, sha256)
run: scripts/ci-tools.sh install cargo-deny --dir "$RUNNER_TEMP/bin"
- name: cargo deny check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upstream-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust
run: rustup toolchain install 1.94 --profile minimal && rustup default 1.94
run: rustup toolchain install 1.95 --profile minimal && rustup default 1.95
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ subprocesses; add directives with reasons; run `scan`, `generate`, `lint`, `drif
`diff-logs`).

## When changing this tool
- Build/test: `cargo build && cargo test` (Rust 1.94+). The schema crate is a git dependency pinned to the
- Build/test: `cargo build && cargo test` (Rust 1.95+). The schema crate is a git dependency pinned to the
OpenShell `v0.1.10` tag (see `Cargo.toml`, `Cargo.lock` pins the commit). Update the tag deliberately and re-run
the golden tests. `openshell-next` builds against the newest upstream tag, prereleases included, and is moved by
`.github/workflows/openshell-next.yml`; fixes that need the newer OpenShell go there, fixes valid on the current pin
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version section and adds the squash-merged PR titles since the previous tag. Ver

## [Unreleased]

- chore(ci): `openshell-next` builds with Rust 1.95: OpenShell v0.1.11-pre.2 declares `rust-version = "1.95"`, so `Cargo.toml` `rust-version`, the CI, Security, Upstream compatibility and Release workflows, the Dockerfile, the `version: source` action fallback and the docs move from 1.94 to 1.95 on this branch (main stays on 1.94 with OpenShell v0.1.10) (#116)
- ci(openshell-next): the tracking job installs the Rust version the branch needs, the highest `rust-version` of openshell-annotate and the pinned OpenShell crates (new `scripts/openshell-next.sh toolchain`), instead of a hard-coded 1.94, so OpenShell v0.1.11-pre.2 (Rust 1.95) builds; `sync` keeps the branch's higher `rust-version` when it resolves a pin conflict from main's `Cargo.toml` (#118)
- chore(deps): build against OpenShell v0.1.10 (`openshell-policy-schema`, `openshell-policy`, commit 152c59d); docs, generated policy headers and the `diff-logs`/`--image` notes now name v0.1.10. v0.1.10 still declares `rust-version = "1.94"`, so main stays on Rust 1.94 (#113)
- feat(validate): `lint --policy`, `drift` and `generate` run the offline checks of `openshell policy lint` (OpenShell v0.1.10, ai-openshell/openshell#5358): `find_endpoint_ambiguities` and `validate_and_canonicalize_authored_policy` (reserved `_provider_` keys, credential bindings, size limit) next to the gateway validator. Endpoints that match the same requests with different protocols are now an error, since a request is authorized only by endpoints using the selected route's protocol (ai-openshell/openshell#5274) (#113)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ goes through a branch and a pull request.
1. Branch from an up-to-date `main`, named by type: `feat/<name>`, `fix/<name>`, `docs/<name>`, `chore/<name>`
(`test/<name>` for test-only work).
2. Commit with a DCO sign-off: `git commit -s -m "feat: what and why"` (conventional prefixes, small commits).
3. Run `scripts/ci-local.sh` before pushing (`TOOLCHAIN=1.94 scripts/ci-local.sh` pins the toolchain CI uses), and
3. Run `scripts/ci-local.sh` before pushing (`TOOLCHAIN=1.95 scripts/ci-local.sh` pins the toolchain CI uses), and
`scripts/security-local.sh` when you touch workflows, dependencies or the OpenShell pin.
4. `git push -u origin <branch>` and open a pull request into `main`.
5. CI must pass (the required checks: `check` and `audit` from CI, and `actionlint`, `gitleaks`, `cargo-deny` and
Expand Down
92 changes: 67 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
name = "openshell-annotate"
version = "0.1.0-rc.3"
edition = "2021"
rust-version = "1.94"
rust-version = "1.95"
description = "Policy-as-code for OpenShell: scan @openshell source directives and generate/validate policy.yaml"
license = "Apache-2.0"
publish = false
repository = "https://github.com/ilanh/openshell-annotate"
authors = ["Ilan Harel"]

[dependencies]
# Pinned to the OpenShell v0.1.10 tag; Cargo.lock records the exact commit.
openshell-policy-schema = { git = "https://github.com/ai-openshell/openshell", tag = "v0.1.10" }
# Pinned to the OpenShell v0.1.11-pre.3 tag; Cargo.lock records the exact commit.
openshell-policy-schema = { git = "https://github.com/ai-openshell/openshell", tag = "v0.1.11-pre.3" }
# Same tag. Schema parsing accepts policies the gateway later rejects; this crate is that validator.
openshell-policy = { git = "https://github.com/ai-openshell/openshell", tag = "v0.1.10" }
openshell-policy = { git = "https://github.com/ai-openshell/openshell", tag = "v0.1.11-pre.3" }
anyhow = "1"
clap = { version = "4", features = ["derive"] }
ignore = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# `openshell-policy-schema` is a git dependency on https://github.com/ai-openshell/openshell (tag v0.1.10, commit pinned
# in Cargo.lock), fetched by cargo during the build, so no local OpenShell checkout is needed.
FROM rust:1.94-bookworm AS build
FROM rust:1.95-bookworm AS build
WORKDIR /build
# Tree-sitter grammars are C sources compiled by cargo's build scripts (gcc is in the rust image).
COPY Cargo.toml Cargo.lock ./
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ docker run --rm ghcr.io/ilanh/openshell-annotate:0.1.0-rc.3 --version
Pin `--version` to a release tag until a stable SemVer release exists (`version: latest` in CI behaves the same way).

**Not on [crates.io](https://crates.io/).** The crate sets `publish = false` and depends on NVIDIA OpenShell crates via
git tags, so `cargo install openshell-annotate` from crates.io will not work. Install a tagged checkout instead (Rust 1.94+,
git tags, so `cargo install openshell-annotate` from crates.io will not work. Install a tagged checkout instead (Rust 1.95+,
a C compiler for tree-sitter):

```
Expand Down
4 changes: 2 additions & 2 deletions actions/lib/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ case "${1:-}" in
[ -f "$repo_dir/Cargo.toml" ] || { echo "::error::version=source needs the action sources (no Cargo.toml in $repo_dir)"; exit 1; }
cd "$repo_dir"
if ! command -v cargo >/dev/null 2>&1; then
rustup toolchain install 1.94 --profile minimal
rustup default 1.94
rustup toolchain install 1.95 --profile minimal
rustup default 1.95
fi
cargo build --release --locked --target-dir "$repo_dir/target"
install -m 0755 "$repo_dir/target/release/openshell-annotate" "${INSTALL_DIR:?}/openshell-annotate"
Expand Down
2 changes: 1 addition & 1 deletion actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
version:
description: >
Release tag to install (e.g. v0.1.0-rc.3), `latest` (newest stable release only), or `source` to build
the openshell-annotate sources at the action's own ref with cargo (Rust 1.94+).
the openshell-annotate sources at the action's own ref with cargo (Rust 1.95+).
required: false
default: v0.1.0-rc.3
install-dir:
Expand Down
Loading
Loading