Skip to content

feat(policy)!: remove replacement warning acknowledgement - #111

Merged
Benoît Cortier (CBenoit) merged 1 commit into
masterfrom
cbenoit-policy-warning-contract
Sep 19, 2026
Merged

Benoît Cortier (CBenoit) merged 1 commit into
masterfrom
cbenoit-policy-warning-contract

Conversation

@CBenoit

@CBenoit Benoît Cortier (CBenoit) commented Sep 19, 2026 •

Copy link
Copy Markdown
Member
  • Remove WarningsAcknowledged from PolicyReplacementRequest in the Rust and .NET API models, OpenAPI schema, and all shared fixtures.
  • Remove the obsolete WarningConfirmationRequired error code while retaining validation receipts, validation findings, store-token concurrency, and explicit overwrite confirmation.
  • Bump now-policy-api and now-policy-server-template to 0.7.0 and require the template's new API version.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 19, 2026 04:30

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.

Copilot review overview

🟢 Approval recommended

The breaking contract change is consistently implemented and covered by compatibility tests, with only minor release-documentation follow-up remaining.

Review effort: Balanced
Findings: None

What changed in this PR

Removes protocol-level warning acknowledgement from policy replacement contracts across Rust, .NET, OpenAPI, and shared fixtures.

Changes:

  • Removes WarningsAcknowledged and its obsolete error code.
  • Adds strict legacy-payload rejection tests.
  • Bumps Rust API and server-template crates to 0.7.0.
File Description
policies/​test-data/​package-broker/​requests/​policy-replacement.update.request.json Updates the update fixture.
policies/​test-data/​package-broker/​requests/​policy-replacement.replace-identity.request.json Updates the identity-replacement fixture.
policies/​test-data/​package-broker/​requests/​policy-replacement.repair.request.json Updates the repair fixture.
policies/​test-data/​package-broker/​requests/​policy-replacement.overwrite.request.json Updates the overwrite fixture.
policies/​test-data/​package-broker/​requests/​policy-replacement.create.request.json Updates the creation fixture.
policies/​rust/​now-policy-server-template/​tests/​sample_documents.rs Tests legacy-field rejection and revised behavior.
policies/​rust/​now-policy-server-template/​src/​server.rs Removes the obsolete error mapping.
policies/​rust/​now-policy-server-template/​Cargo.toml Bumps the template and API dependency versions.
policies/​rust/​now-policy-api/​src/​management.rs Removes the Rust request field.
policies/​rust/​now-policy-api/​src/​enums.rs Removes the Rust error variant.
policies/​rust/​now-policy-api/​README.md Documents advisory warning behavior.
policies/​rust/​now-policy-api/​openapi/​now-policy-api.yaml Updates the wire schema.
policies/​rust/​now-policy-api/​Cargo.toml Bumps the API crate version.
policies/​dotnet/​Devolutions.Now.Policy.Client.Tests/​PolicyManagementClientTests.cs Tests strict legacy-field rejection.
policies/​dotnet/​Devolutions.Now.Policy.Api/​README.md Documents advisory warning behavior.
policies/​dotnet/​Devolutions.Now.Policy.Api/​PolicyManagementModels.cs Removes the .NET request property.
policies/​dotnet/​Devolutions.Now.Policy.Api/​Enums.cs Removes the .NET error value.
Cargo.lock Records updated Rust package versions.

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

@CBenoit
Benoît Cortier (CBenoit) merged commit b5201f0 into master Sep 19, 2026
10 checks passed
@CBenoit
Benoît Cortier (CBenoit) deleted the cbenoit-policy-warning-contract branch September 19, 2026 14:40
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.

3 participants