Skip to content

feat(agent-readiness)!: compliance document search, signing bound to the reviewed subject, required rationale - #768

Merged
nimrodbusany merged 3 commits into
developfrom
feature/compliance-evidence-contracts
Nov 27, 2026
Merged

nimrodbusany merged 3 commits into
developfrom
feature/compliance-evidence-contracts

Conversation

@nimrodbusany

Copy link
Copy Markdown
Contributor

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

  • Compliance document references can be searched by link substring. A new project-scoped operation lists references whose link contains a given substring. Additive, contract only.
  • Attestation signing is bound to the reviewed subject (breaking, pre-release). AttestationCreateRequest requires review_context, the opaque freshness token returned with the evidence. If the evidence changed after it was read, signing returns 409 with the closed reason stale_review_context.
  • A not_applicable decision requires a rationale (breaking, pre-release). DecisionInput requires a non-empty rationale when decision is not_applicable. A missing or blank rationale returns 400 with the closed body RationaleRequiredError, 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

…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>
nimrodbusany and others added 2 commits November 27, 2026 07:50
…compliance evidence fragment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 dafad3d Nov 27, 2026
18 checks passed
@nimrodbusany
nimrodbusany deleted the feature/compliance-evidence-contracts branch November 27, 2026 07:40
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