Skip to content

chore(release): prepare for publishing - #110

Merged
Benoît Cortier (CBenoit) merged 4 commits into
masterfrom
release-plz/2026-09-17T12-48-59Z
Sep 17, 2026
Merged

Benoît Cortier (CBenoit) merged 4 commits into
masterfrom
release-plz/2026-09-17T12-48-59Z

Conversation

@devolutionsbot

Copy link
Copy Markdown
Contributor

🤖 New release

  • now-policy: 0.4.0 -> 0.5.0 (⚠ API breaking changes)
  • now-policy-api: 0.5.0 -> 0.6.0 (⚠ API breaking changes)
  • now-policy-server-template: 0.5.0 -> 0.6.0 (✓ API compatible changes)

now-policy breaking changes

--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field PolicyMatch.source_names in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy/src/policy.rs:647
  field PolicyMatch.version in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy/src/policy.rs:658
  field PolicyMatch.execution_elevation in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy/src/policy.rs:677
  field PolicyMatch.source_names in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy/src/policy.rs:647
  field PolicyMatch.version in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy/src/policy.rs:658
  field PolicyMatch.execution_elevation in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy/src/policy.rs:677

--- failure enum_missing: pub enum removed or renamed ---

Description:
A publicly-visible enum cannot be imported by its prior path. A `pub use` may have been removed, or the enum itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_missing.ron

Failed in:
  enum now_policy::policy::RulePrecedence, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:247
  enum now_policy::RulePrecedence, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:247

--- failure module_missing: pub module removed or renamed ---

Description:
A publicly-visible module cannot be imported by its prior path. A `pub use` may have been removed, or the module may have been renamed, removed, or made non-public.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/module_missing.ron

Failed in:
  mod now_policy::markers, previously in file /tmp/.tmpXsFaJH/now-policy/src/markers.rs:1

--- failure struct_missing: pub struct removed or renamed ---

Description:
A publicly-visible struct cannot be imported by its prior path. A `pub use` may have been removed, or the struct itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/struct_missing.ron

Failed in:
  struct now_policy::markers::PackageBrokerPolicy, previously in file /tmp/.tmpXsFaJH/now-policy/src/markers.rs:50
  struct now_policy::PackageBrokerPolicy, previously in file /tmp/.tmpXsFaJH/now-policy/src/markers.rs:50

--- failure struct_pub_field_missing: pub struct's pub field removed or renamed ---

Description:
A publicly-visible struct has at least one public field that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/struct_pub_field_missing.ron

Failed in:
  field policy_type of struct PolicyDocument, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:28
  field policy_type of struct PolicyDocument, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:28
  field rule_precedence of struct PolicyEnforcement, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:237
  field rule_precedence of struct PolicyEnforcement, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:237
  field policy_type of struct PolicyDraftDocument, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:67
  field policy_type of struct PolicyDraftDocument, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:67
  field sources of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:339
  field package_names of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:349
  field versions of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:354
  field version_range of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:358
  field elevation of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:373
  field sources of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:339
  field package_names of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:349
  field versions of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:354
  field version_range of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:358
  field elevation of struct PolicyMatch, previously in file /tmp/.tmpXsFaJH/now-policy/src/policy.rs:373

now-policy-api breaking changes

--- failure enum_no_repr_variant_discriminant_changed: enum variant had its discriminant change value ---

Description:
The enum's variant had its discriminant value change. This breaks downstream code that used its value via a numeric cast like `as isize`.
        ref: https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_no_repr_variant_discriminant_changed.ron

Failed in:
  variant PolicyFindingCode::InvalidVersionRange 7 -> 6 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:99
  variant PolicyFindingCode::EmptyVersionRange 8 -> 7 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:100
  variant PolicyFindingCode::InvalidWildcardPattern 9 -> 8 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:101
  variant PolicyFindingCode::ContradictoryConstraints 10 -> 9 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:102
  variant PolicyFindingCode::InvalidValidityInterval 11 -> 10 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:103
  variant PolicyFindingCode::UnsupportedPolicyFormatVersion 13 -> 11 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:104
  variant PolicyFindingCode::AuditModeEnabled 14 -> 12 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:105
  variant PolicyFindingCode::DefaultAllow 15 -> 13 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:106
  variant PolicyFindingCode::SensitiveOptionAllowed 16 -> 14 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:107
  variant PolicyFindingCode::InvalidVersionRange 7 -> 6 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:99
  variant PolicyFindingCode::EmptyVersionRange 8 -> 7 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:100
  variant PolicyFindingCode::InvalidWildcardPattern 9 -> 8 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:101
  variant PolicyFindingCode::ContradictoryConstraints 10 -> 9 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:102
  variant PolicyFindingCode::InvalidValidityInterval 11 -> 10 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:103
  variant PolicyFindingCode::UnsupportedPolicyFormatVersion 13 -> 11 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:104
  variant PolicyFindingCode::AuditModeEnabled 14 -> 12 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:105
  variant PolicyFindingCode::DefaultAllow 15 -> 13 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:106
  variant PolicyFindingCode::SensitiveOptionAllowed 16 -> 14 in /tmp/.tmpDLFifp/now-libraries/policies/rust/now-policy-api/src/management.rs:107

--- failure enum_variant_missing: pub enum variant removed or renamed ---

Description:
A publicly-visible enum has at least one variant that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_variant_missing.ron

Failed in:
  variant PolicyFindingCode::IneffectiveBooleanMatch, previously in file /tmp/.tmpXsFaJH/now-policy-api/src/management.rs:99
  variant PolicyFindingCode::UnsupportedPolicyType, previously in file /tmp/.tmpXsFaJH/now-policy-api/src/management.rs:105
  variant PolicyFindingCode::IneffectiveBooleanMatch, previously in file /tmp/.tmpXsFaJH/now-policy-api/src/management.rs:99
  variant PolicyFindingCode::UnsupportedPolicyType, previously in file /tmp/.tmpXsFaJH/now-policy-api/src/management.rs:105
Changelog

now-policy

[0.5.0] - 2026-09-17

Features

  • [breaking] Harden and finalize the policy contract (#109) (3ab49ad765)

now-policy-api

[0.6.0] - 2026-09-17

Features

  • [breaking] Harden and finalize the policy contract (#109) (3ab49ad765)

now-policy-server-template

[0.6.0] - 2026-09-17

Features

  • [breaking] Harden and finalize the policy contract (#109) (3ab49ad765)


This PR was generated with release-plz.

Copilot AI balanced review requested due to automatic review settings September 17, 2026 12:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The server-template changelog incorrectly marks its API-compatible release as breaking.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Prepares coordinated Rust policy crate releases following the policy contract changes.

Changes:

  • Bumps three crate versions and internal dependencies.
  • Adds release changelog entries.
  • Refreshes the Cargo lockfile.
File summaries
File Description
Cargo.lock Synchronizes package and dependency versions.
policies/rust/now-policy/CHANGELOG.md Documents version 0.5.0.
policies/rust/now-policy/Cargo.toml Bumps to 0.5.0.
policies/rust/now-policy-api/CHANGELOG.md Documents version 0.6.0.
policies/rust/now-policy-api/Cargo.toml Bumps to 0.6.0 and updates now-policy.
policies/rust/now-policy-server-template/CHANGELOG.md Documents version 0.6.0.
policies/rust/now-policy-server-template/Cargo.toml Bumps versions and internal dependencies.
Review details
  • Files reviewed: 6/7 changed files
  • Comments generated: 1
  • Review effort level: Balanced (auto)

Note

Copilot is running an experiment and ran this review at Balanced.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread policies/rust/now-policy-server-template/CHANGELOG.md Outdated
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@CBenoit

Copy link
Copy Markdown
Member

Copilot review

…hangelog

Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com>

Copilot AI commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Copilot review

Addressed by removing the incorrect breaking marker in now-policy-server-template/CHANGELOG.md (commit ff9b720). I also re-ran validation for this update.

@CBenoit

Copy link
Copy Markdown
Member

Copilot review

Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com>
auto-merge was automatically disabled September 17, 2026 13:37

Head branch was pushed to by a user without write access

Copilot AI commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Copilot review

I ran a fresh review and updated the changelog to keep the 0.6.0 re-export contract change marked as breaking. Addressed in commit bf1b96c.

@CBenoit

Copy link
Copy Markdown
Member

Copilot review

Copilot AI commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Copilot review

I ran a fresh review on the current PR state and didn’t find additional issues to address.

@CBenoit
Benoît Cortier (CBenoit) merged commit e4f3bf3 into master Sep 17, 2026
10 checks passed
@CBenoit
Benoît Cortier (CBenoit) deleted the release-plz/2026-09-17T12-48-59Z branch September 17, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants