Skip to content

fix: enforce non-negative policy priority#224

Merged
amavashev merged 1 commit into
mainfrom
agent/policy-priority-minimum-v0.1.25.55
Jul 21, 2026
Merged

fix: enforce non-negative policy priority#224
amavashev merged 1 commit into
mainfrom
agent/policy-priority-minimum-v0.1.25.55

Conversation

@amavashev

@amavashev amavashev commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add request-model validation for non-negative policy priorities on create and update
  • prove negative requests return 400 INVALID_REQUEST before persistence and zero remains valid
  • advance deterministic contract validation and documentation to governance spec 0.1.25.42

Validation

  • focused PolicyModelTest + PolicyControllerTest: 43/43
  • clean full non-integration Maven verification: 1,855/1,855
  • JaCoCo line / branch: model 97.85% / 98.44%; data 97.48% / 95.35%; API 97.47% / 95.05%
  • GitHub Unit & Contract and Integration jobs: green
  • git diff --check

Ecosystem links

Reject negative policy priorities at the validated HTTP boundary, pin
contract tests to governance spec 0.1.25.42, and document the compatible
0.1.25.55 server correction.
@amavashev
amavashev marked this pull request as ready for review July 21, 2026 09:37
@amavashev
amavashev merged commit 6cc790e into main Jul 21, 2026
6 checks passed
@amavashev
amavashev deleted the agent/policy-priority-minimum-v0.1.25.55 branch July 21, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant