Skip to content
Closed
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- **BREAKING (pre-release). A `not_applicable` applicability decision requires a rationale (AGB-79 R4).** `DecisionInput` gains an if/then: when `decision` is `not_applicable`, `rationale` is required and must hold at least one non-whitespace character (the 2000-character cap is unchanged). `applicable` and `unresolved` keep it optional, and a `carry: true` item is not re-validated. The Backend refuses the violation with a closed 400 `rationale_required` (new closed body `RationaleRequiredError`, declared beside the shared error envelope on the write's 400, acknowledged in `scripts/breaking_schema_allowlist.json`). Pre-release contract in the same slice as the Backend and Frontend.
- **BREAKING (pre-release). Compliance attestation signing is bound to the reviewed subject (AGB-79 C1).** `AttestationCreateRequest` gains a REQUIRED `review_context` (64 lowercase hex): the opaque, server-issued, keyed freshness token the signer read from the evidence response (new `Ingredient.review_context`, required on `A` rows as a string or null, absent on other kinds). A stale value is refused with 409 `stale_review_context` and nothing is recorded; the sign operation also declares a 503 for when the server cannot issue or verify the token. The token is never derived from customer text and is not evidence: never store, log or export it. Coordinated pre-release break: the feature is dark in production and the Backend and Frontend change in the same slice (acknowledged in `scripts/breaking_schema_allowlist.json`).
- **Compliance document references: search by link substring (AGB-79 B2b; additive; contract only).** New operation `POST /api/v1/projects/{project_id}/agents/{agent_ref}/compliance-document-refs/search` (`project_compliance_document_refs.search_compliance_document_references`, `x-replay: read`) and closed request `DocumentReferenceSearchRequest` (`q` 1 to 200 characters after trimming, optional `include_withdrawn`, `page`, `per_page`). It is a read served as POST so the search text, which is customer content, stays out of URLs, logs and traces; it matches case-insensitively, as a literal substring, against the declared link and answers the existing `DocumentReferenceListResponse` with the list's ordering and paging. Marked `x-asserted-against-backend: false` until the Backend merges. Pinned by `tests/test_compliance_document_ref_contract.py`.
- **Experiment list: best-trial fields on `ExperimentListRunSummary` (additive; optional, nullable).** `experiment_schema.json` gains `best_trial_id` (string or null) and `best_metrics` (object of numbers or null), the trial the server selected as best at finalize and its numeric metrics; both null when no trial succeeded. Not added to `required`.
- **BREAKING (pre-release). Agent decisions and agent-lifecycle contracts on project-level `/api/v1` paths (API revision Phase 3, slice 2 PR-3).** The host-prompt decision operations move from `/api/v1beta/agent-decisions/{agent_id}/{ensure,latest}` and `/api/v1beta/agent-decisions/{decision_id}/answer` to `/api/v1/projects/{project_id}/agents/{agent_ref}/decisions/{ensure,latest,{decision_id}/answer}` (path parameter `agent_id` becomes `agent_ref`; operationIds become the policy-register ids `agent_decision.ensure_agent_decision`, `.get_latest_agent_decision`, `.answer_agent_decision`; bodies and error bodies unchanged). The wire field `agent_ref` of the agent-lifecycle revision registration request and response and of the lifecycle record response is renamed `lifecycle_agent_ref` (the underlying column and the `agent_<hex>` id format are unchanged); lifecycle route paths in schema descriptions and privacy captures now read `/api/v1/projects/{project_id}/agent-lifecycle/...`. The platform-admin `GET /api/v1/agents/admin/stats` operation leaves the public schema (private, served at `/api/v1/admin/agents/stats`). The agent-context resolver (`POST /api/v1/agent-context/resolve`) is a private portal operation and is not declared here. Package version unchanged until a release is cut.
- **Audit evaluate contract, new `audit_evaluate/` domain (additive; contract only).** `POST /api/v1/projects/{project_id}/audit/evaluate` with closed request, success envelope, error and not-found problem schemas (every field carries a content class). Two content classes join the vocabulary: `version` (a bounded dotted numeric version, proven by its pattern) and `server_text` (server-composed text from fixed templates, bounded and noted; an assertion, not a keyword proof). The per-request problem id is an `opaque_ref` through one added fixed pattern (`^[0-9a-f]{32}(?![\s\S])`). `server_text` is accepted only at one allow-listed response location and is not a map-key class; the audit patterns end in an absolute-end assertion so a trailing newline is rejected. No existing schema changed.
Expand Down
2 changes: 1 addition & 1 deletion parity/python-js-sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
"sdk032Surface": "Manifest Python pin advanced from d56e4353 to 6e8e4a54 (origin/develop, the SDK 0.32.0 release candidate) to cover two root exports the js-public-parity gate flagged unclassified on Traigent/Traigent#2861. requirement (traigent.runtime.decorator) is the runtime latency requirement decorator; traigent-js origin/main and origin/develop both export requirement from src/runtime/index.ts and list it in tests/integration/fixtures/api-surface.snapshot.json, so it is classified matched and added to requiredRootExports next to require. SnapshotBindingError (traigent.utils.exceptions) is the typed error of the Python opt-in snapshot store (S0 before dispatch, S1 from the terminal result, online G1); traigent-js has no snapshot store and no export of it (zero occurrences in src or its api-surface snapshot), so it is classified deferred-backlog, Python-only for now with no open JS design and no ticket. Owner may re-bucket."
},
"schemaRefresh": {
"lastSchemaFileSha": "831dd29477d4da1eac4db464156168b993f621b0e8f80aa4e445d3a7397a6654",
"lastSchemaFileSha": "617e1fa7b5d744b7f9725bab7d45afa746bc6102df56aee0da6dc4de024bb945",
"schemaFileCount": 623,
"note": "Auto-stamped by scripts/refresh_parity.py. Do not hand-edit this block."
}
Expand Down
214 changes: 214 additions & 0 deletions scripts/breaking_schema_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -9924,6 +9924,220 @@
],
"reason": "The experiments-list run summary gains two optional, nullable members so the portal list can show the best trial's score: best_trial_id and best_metrics, read from the selection the backend already records at finalize. Both are additive and not required. The only consumer that validates this closed object is the Traigent portal, which updates in step with the backend, so an older consumer rejecting the new members is an accepted, reviewed risk.",
"version": "Unreleased"
},
{
"file": "agent_readiness/compliance_applicability_endpoints.json",
"rule": "additionalProperties",
"findings": [
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-applicability/post/responses/400/content/application/json/schema",
"role": "response",
"subject": "additionalProperties",
"old": "closed (false)",
"new": "open (true/absent)",
"fingerprint": "c2c202802ef166fe12c41966e7a8960bfb2add363eed5e59d2ea4f1f52d40a87"
}
],
"reason": "AGB-79 R4: the applicability write's 400 now also admits the closed body RationaleRequiredError (reason rationale_required, fixed message, no obligation id, no client text), returned when a not_applicable decision has no non-blank rationale. The shared error envelope is unchanged. Pre-release contract, feature dark in production, backend and frontend change in the same slice.",
"version": "Unreleased pending (TraigentSchema, AGB-79 R4 rationale_required; backend feature/agb-79-compliance-evidence-next)",
"pr": "pending (TraigentSchema, AGB-79 R4, not yet opened)"
},
{
"file": "agent_readiness/compliance_applicability_endpoints.json",
"rule": "oneOf_branch_count_changed",
"findings": [
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-applicability/post/responses/400/content/application/json/schema/oneOf",
"role": "response",
"subject": "oneOf",
"old": 8,
"new": 2,
"fingerprint": "5bffc6a818240984e45341594ac5454b9adca7db647b7d9db728128acf09b853"
}
],
"reason": "AGB-79 R4: the applicability write's 400 now also admits the closed body RationaleRequiredError (reason rationale_required, fixed message, no obligation id, no client text), returned when a not_applicable decision has no non-blank rationale. The shared error envelope is unchanged. Pre-release contract, feature dark in production, backend and frontend change in the same slice.",
"version": "Unreleased pending (TraigentSchema, AGB-79 R4 rationale_required; backend feature/agb-79-compliance-evidence-next)",
"pr": "pending (TraigentSchema, AGB-79 R4, not yet opened)"
},
{
"file": "agent_readiness/compliance_applicability_endpoints.json",
"rule": "required",
"findings": [
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-applicability/post/responses/400/content/application/json/schema",
"role": "response",
"subject": "error",
"old": true,
"new": false,
"fingerprint": "8bb10cbb9e6569b4711fcd5af2e1b3cc1a11b51e5624d79bbb42f5d3a86a0f97"
},
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-applicability/post/responses/400/content/application/json/schema",
"role": "response",
"subject": "error_code",
"old": true,
"new": false,
"fingerprint": "2feb5cd4752257e876ead09eb984fc845d9bb1037b1a18ac18da1fe38c327481"
},
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-applicability/post/responses/400/content/application/json/schema",
"role": "response",
"subject": "message",
"old": true,
"new": false,
"fingerprint": "03a373ee13a7171d53ec206ed1593226d31620c922fba229c3fbda6d6a9e217c"
},
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-applicability/post/responses/400/content/application/json/schema",
"role": "response",
"subject": "success",
"old": true,
"new": false,
"fingerprint": "321ccde360df3001a1746b09a20a1a2906ab8ccbcd0b8a3431a38b5e4908b322"
}
],
"reason": "AGB-79 R4: the applicability write's 400 now also admits the closed body RationaleRequiredError (reason rationale_required, fixed message, no obligation id, no client text), returned when a not_applicable decision has no non-blank rationale. The shared error envelope is unchanged. Pre-release contract, feature dark in production, backend and frontend change in the same slice.",
"version": "Unreleased pending (TraigentSchema, AGB-79 R4 rationale_required; backend feature/agb-79-compliance-evidence-next)",
"pr": "pending (TraigentSchema, AGB-79 R4, not yet opened)"
},
{
"file": "agent_readiness/compliance_applicability_endpoints.json",
"rule": "type",
"findings": [
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-applicability/post/responses/400/content/application/json/schema",
"role": "response",
"subject": {
"direction": "added",
"values": [
"<now unconstrained>"
]
},
"old": [
"object"
],
"new": null,
"fingerprint": "222320e4a18804b3397e4fbde479f6d10b15a2c8989eac7ed86af592d630af1e"
}
],
"reason": "AGB-79 R4: the applicability write's 400 now also admits the closed body RationaleRequiredError (reason rationale_required, fixed message, no obligation id, no client text), returned when a not_applicable decision has no non-blank rationale. The shared error envelope is unchanged. Pre-release contract, feature dark in production, backend and frontend change in the same slice.",
"version": "Unreleased pending (TraigentSchema, AGB-79 R4 rationale_required; backend feature/agb-79-compliance-evidence-next)",
"pr": "pending (TraigentSchema, AGB-79 R4, not yet opened)"
},
{
"file": "agent_readiness/compliance_attestation_endpoints.json",
"rule": "enum",
"findings": [
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-attestations/post/responses/409/content/application/json/schema/properties/error",
"role": "response",
"subject": {
"direction": "added",
"values": [
"\"stale_review_context\""
]
},
"old": [
"\"linked_reference_invalid\"",
"\"linked_reference_required\"",
"\"stale_fingerprints\"",
"\"stale_statement\""
],
"new": [
"\"linked_reference_invalid\"",
"\"linked_reference_required\"",
"\"stale_fingerprints\"",
"\"stale_review_context\"",
"\"stale_statement\""
],
"fingerprint": "90d9d431c3f21e0887d9a4c4c410e099adec4283cbac95238419adc54258cecf"
},
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-attestations/post/responses/409/content/application/json/schema/properties/error_code",
"role": "response",
"subject": {
"direction": "added",
"values": [
"\"stale_review_context\""
]
},
"old": [
"\"linked_reference_invalid\"",
"\"linked_reference_required\"",
"\"stale_fingerprints\"",
"\"stale_statement\""
],
"new": [
"\"linked_reference_invalid\"",
"\"linked_reference_required\"",
"\"stale_fingerprints\"",
"\"stale_review_context\"",
"\"stale_statement\""
],
"fingerprint": "82343c77d722469d216256967b99f02824fac1d1bee2a120f7a6104a5a5f068c"
},
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-attestations/post/responses/409/content/application/json/schema/properties/message",
"role": "response",
"subject": {
"direction": "added",
"values": [
"\"The agent or its standing attestation changed since it was displayed.\""
]
},
"old": [
"\"A linked document reference is not valid for this agent.\"",
"\"A statement of this kind needs at least one linked document reference.\"",
"\"The agent changed since it was displayed.\"",
"\"The statement changed since it was displayed.\""
],
"new": [
"\"A linked document reference is not valid for this agent.\"",
"\"A statement of this kind needs at least one linked document reference.\"",
"\"The agent changed since it was displayed.\"",
"\"The agent or its standing attestation changed since it was displayed.\"",
"\"The statement changed since it was displayed.\""
],
"fingerprint": "bd00b9fee51a6575400df4a15d58584c1df0f473bff78b568d3b3b92ae112bcb"
}
],
"reason": "AGB-79 C1: the sign operation's 409 answers a new closed reason stale_review_context (with its fixed message) when the echoed review_context no longer matches the server's recomputation. Pre-release contract, feature dark in production, backend and frontend change in the same slice.",
"version": "Unreleased pending (TraigentSchema, AGB-79 C1 review_context; backend feature/agb-79-compliance-evidence-next)",
"pr": "pending (TraigentSchema, AGB-79 C1, not yet opened)"
},
{
"file": "agent_readiness/compliance_attestation_endpoints.json",
"rule": "required",
"findings": [
{
"pointer": "#/paths//api/v1/projects/{project_id}/compliance-attestations/post/requestBody/content/application/json/schema",
"role": "request",
"subject": "review_context",
"old": false,
"new": true,
"fingerprint": "788eb146d6735c892b13ac5c53c7c186d5edf6ec9e0186dc886b75de10002aa8"
}
],
"reason": "AGB-79 C1: attestation signing must echo review_context, the keyed freshness token read from the evidence response, so a signature is bound to the subject the signer reviewed. Coordinated pre-release break: the feature is dark in production and no external client signs; backend and frontend change in the same slice.",
"version": "Unreleased pending (TraigentSchema, AGB-79 C1 review_context; backend feature/agb-79-compliance-evidence-next)",
"pr": "pending (TraigentSchema, AGB-79 C1, not yet opened)"
},
{
"file": "agent_readiness/compliance_evidence_response_schema.json",
"rule": "property_added",
"findings": [
{
"pointer": "#/properties/ingredients/items/properties/review_context",
"role": "response",
"subject": "review_context",
"old": false,
"new": true,
"fingerprint": "4168aaf4afd50a070c88bb86d61e61f0a6ecc955a07d7aabcb54826ed89f0e6c"
}
],
"reason": "AGB-79 C1: A rows of the evidence response gain the review_context freshness token (string or null), a closed additive field that the signer echoes on sign. Pre-release contract; the backend is the only producer and the frontend reads it in the same slice.",
"version": "Unreleased pending (TraigentSchema, AGB-79 C1 review_context; backend feature/agb-79-compliance-evidence-next)",
"pr": "pending (TraigentSchema, AGB-79 C1, not yet opened)"
}
]
}
Loading
Loading