Repository navigation
feat(agent-readiness)!: compliance document search, signing bound to the reviewed subject, required rationale - #768
Merged
Conversation
…the reviewed subject, required rationale - Compliance document references can be searched by link substring through a new project-scoped operation (additive; contract only). - Attestation signing requires review_context, the keyed freshness token read from the evidence response, so a signature is bound to the subject the signer reviewed; a stale token is a 409 with the closed reason stale_review_context. - A not_applicable applicability decision requires a non-empty rationale; a missing one is a 400 with the closed body RationaleRequiredError (fixed message, no client text). - The breaking changes are pre-release and acknowledged in scripts/breaking_schema_allowlist.json. Spine-Trail: st_f6fb29f7a817 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…compliance evidence fragment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.



Three changes to the agent-readiness compliance contracts. Two are breaking, and both are pre-release.
Ticket: none (compliance evidence contract update)
Security note: signing now binds an attestation to the evidence the signer reviewed (a keyed freshness token, so a stale review is refused with 409); new errors are closed bodies with fixed messages and no client text
Spine-Trail: st_f6fb29f7a817
What changes
AttestationCreateRequestrequiresreview_context, the opaque freshness token returned with the evidence. If the evidence changed after it was read, signing returns 409 with the closed reasonstale_review_context.not_applicabledecision requires a rationale (breaking, pre-release).DecisionInputrequires a non-emptyrationalewhendecisionisnot_applicable. A missing or blank rationale returns 400 with the closed bodyRationaleRequiredError, which has a fixed message and echoes no client text.Compatibility
Both breaking changes are acknowledged in
scripts/breaking_schema_allowlist.json. The breaking-change check reports 12 allowed findings and none unacknowledged. The backend change that implements these contracts follows separately.Checks
make local-gate(ruff, mypy, pytest, parity, spine): see the result in the review thread.python scripts/breaking_schema_check.py --check --base-ref origin/develop: 12 allowed, 0 unacknowledged.python scripts/refresh_parity.py --check: parity manifest up to date.🤖 Generated with Claude Code