Skip to content

fix(contract): compliance freshness tokens are optional until the server issues them - #781

Merged
nimrodbusany merged 1 commit into
developfrom
fix/compliance-review-context-optional-until-served
Nov 27, 2026
Merged

nimrodbusany merged 1 commit into
developfrom
fix/compliance-review-context-optional-until-served

Conversation

@nimrodbusany

@nimrodbusany nimrodbusany commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

This relaxes a requirement: review_context on attestation (A) evidence rows and on the attestation sign request becomes optional until the server issues and checks freshness tokens. No server issues or checks them yet, so the required field could not be met by any conforming server.

What changes

  • Compliance evidence response: an A ingredient may carry review_context (same type and pattern); servers that do not yet issue freshness tokens omit it, and readers treat an absent value like null. Kinds M, D and L still must not carry it.
  • Attestation sign request: review_context is optional (same type and pattern). Clients send back only a string token read from the evidence view and omit the field when the row has none.
  • The 409 stale_review_context and the 503 stay declared; their descriptions now say they apply when the server checks freshness tokens.
  • One breaking-change acknowledgement: the checker flags the evidence allOf going from 2 branches to 1 conservatively (it cannot classify direction); the change is a relaxation and is acknowledged with that reason. Dropping the field from the request's required list is classified as informational.
  • Tests: the two tests that required the field are replaced by tests that it is optional; a new parametrized test checks that kinds M, D and L are still refused when they carry it; malformed values are still refused.
  • Changelog: the earlier unreleased line that said the field is required is removed, and one line records the relaxation.

Checks

  • python scripts/breaking_schema_check.py --check: BREAKING (unacked) 0, BREAKING (allowed) 1.
  • make local-gate: passed.

Ticket: none (contract relaxation that follows the compliance evidence contract change; no tracked issue in this repo)
Security note: none (a freshness field no server issues yet becomes optional; the closed rules for other ingredient kinds, the token pattern and the stale-token refusal stay declared)
Spine-Trail: st_52ea50ba9bdd

…ver issues them

This relaxes a requirement: review_context on attestation evidence rows and on the sign request becomes optional until the server issues and checks freshness tokens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nimrodbusany
nimrodbusany requested a review from a team as a code owner November 27, 2026 21:58
@sonarqubecloud

Copy link
Copy Markdown

@nimrodbusany
nimrodbusany added this pull request to the merge queue Nov 27, 2026
Merged via the queue into develop with commit 344c176 Nov 27, 2026
25 of 28 checks passed
@nimrodbusany
nimrodbusany deleted the fix/compliance-review-context-optional-until-served branch November 27, 2026 23:02
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