Repository navigation
fix(contract): compliance freshness tokens are optional until the server issues them - #781
Merged
nimrodbusany merged 1 commit intoNov 27, 2026
Conversation
…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
deleted the
fix/compliance-review-context-optional-until-served
branch
November 27, 2026 23:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This relaxes a requirement:
review_contexton 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
Aingredient may carryreview_context(same type and pattern); servers that do not yet issue freshness tokens omit it, and readers treat an absent value like null. KindsM,DandLstill must not carry it.review_contextis 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.stale_review_contextand the 503 stay declared; their descriptions now say they apply when the server checks freshness tokens.allOfgoing 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'srequiredlist is classified as informational.M,DandLare still refused when they carry it; malformed values are still refused.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