diff --git a/changelog.d/certification-process-record-descriptions.changed.md b/changelog.d/certification-process-record-descriptions.changed.md new file mode 100644 index 00000000..175ed864 --- /dev/null +++ b/changelog.d/certification-process-record-descriptions.changed.md @@ -0,0 +1 @@ +- Clarified descriptions in the certification process-record contract: the set-completeness unresolved identifiers are always present when set completeness is present and list configurations recorded as unresolved at issuance that can be referenced at retrieval; the candidate_not_retrievable value is returned only for an outcome recorded at issuance whose references still resolve (an unresolvable historical configuration answers the declared closed 503); certificates carrying a runlineage reference are not addressed by these project-scoped routes; and the no_experiment_run_reference reason is never generated for new finalizations on these routes but can still be returned when a stored assessment carries it. Descriptions only; no shape change. diff --git a/parity/python-js-sdk.json b/parity/python-js-sdk.json index 04060676..6474b185 100644 --- a/parity/python-js-sdk.json +++ b/parity/python-js-sdk.json @@ -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": "e1336def76c4e9122fd14a4a4ccd8abb370e7a196a93fabecfabba6e270290c4", + "lastSchemaFileSha": "5d3e6046e87944acf6a7f3663b9f97e43472ee9db56a7acb380cb25126f000b9", "schemaFileCount": 692, "note": "Auto-stamped by scripts/refresh_parity.py. Do not hand-edit this block." } diff --git a/traigent_schema/schemas/certification/process_record_request_schema.json b/traigent_schema/schemas/certification/process_record_request_schema.json index 60d1b339..776dfe57 100644 --- a/traigent_schema/schemas/certification/process_record_request_schema.json +++ b/traigent_schema/schemas/certification/process_record_request_schema.json @@ -8,7 +8,7 @@ "type": "string", "maxLength": 47, "pattern": "^bsn:[A-Za-z0-9_-]{43}(?![\\s\\S])", - "description": "Use the build_session_ref returned when the certificate build session was created. These routes cover issuances created through a certificate build session. A certificate that carries a runlineage: reference is not addressed here and stays on the existing certification routes. Prepare echoes the same reference. Resolve it within the named project." + "description": "Use the build_session_ref returned when the certificate build session was created. These routes cover issuances created through a certificate build session. A certificate that carries a runlineage: reference is not addressed by these project-scoped routes. Prepare echoes the same reference. Resolve it within the named project." }, "Sha256Reference": { "allOf": [{"$ref": "./certification_common_v0_schema.json#/definitions/Sha256Digest"}], diff --git a/traigent_schema/schemas/certification/process_records_endpoints.json b/traigent_schema/schemas/certification/process_records_endpoints.json index 7e18fc5f..19910d76 100644 --- a/traigent_schema/schemas/certification/process_records_endpoints.json +++ b/traigent_schema/schemas/certification/process_records_endpoints.json @@ -150,7 +150,7 @@ "name": "process_record_ref", "in": "path", "required": true, - "description": "Use the build_session_ref issued for this project. An issuance created through a certificate build session can be retrieved with that same reference without calling prepare. A certificate carrying a runlineage: reference stays on the existing certification routes.", + "description": "Use the build_session_ref issued for this project. An issuance created through a certificate build session can be retrieved with that same reference without calling prepare. A certificate carrying a runlineage: reference is not addressed by these project-scoped routes.", "schema": {"$ref": "./process_record_request_schema.json#/definitions/ProcessRecordReference"} } ], @@ -389,7 +389,7 @@ "name": "process_record_ref", "in": "path", "required": true, - "description": "Use the build_session_ref issued for this project, also echoed by prepare. A certificate carrying a runlineage: reference stays on the existing certification routes.", + "description": "Use the build_session_ref issued for this project, also echoed by prepare. A certificate carrying a runlineage: reference is not addressed by these project-scoped routes.", "schema": {"$ref": "./process_record_request_schema.json#/definitions/ProcessRecordReference"} } ], @@ -1041,7 +1041,7 @@ "supplement_present": {"type": "boolean"}, "assessment_state": {"enum": ["assessed", "not_assessed"]}, "outcome": { - "enum": [ + "description": "The value candidate_not_retrievable is returned only for an outcome recorded at issuance whose references still resolve; an unresolvable historical configuration makes retrieve answer the declared closed 503 instead.", "enum": [ "non_dominated_within_scope", "dominated_within_scope", "no_comparable_peers", @@ -1091,7 +1091,7 @@ }, "front_status": {"enum": ["asserted", "withheld_dominated", "not_assessed"]}, "withheld_reason": { - "enum": [ + "description": "The value candidate_not_retrievable is returned only for an outcome recorded at issuance whose references still resolve; an unresolvable historical configuration makes retrieve answer the declared closed 503 instead.", "enum": [ "dominated_by_member", "candidate_not_comparable", "no_comparable_peers", @@ -1113,7 +1113,7 @@ "properties": { "named": {"type": "integer", "minimum": 0}, "resolved": {"type": "integer", "minimum": 0}, - "unresolved_ids": {"type": "array", "items": {"$ref": "#/components/schemas/FrontClaimRecordReference"}}, + "unresolved_ids": {"description": "Always present when set_completeness is present. Lists configurations recorded as unresolved at issuance that can be referenced at retrieval. If a referenced configuration cannot be mapped at retrieval, retrieve answers the declared closed 503 instead.", "type": "array", "items": {"$ref": "#/components/schemas/FrontClaimRecordReference"}}, "attested": {"const": false} } }, @@ -1158,7 +1158,7 @@ }, { "properties": { - "outcome": {"const": "candidate_not_retrievable"}, + "outcome": {"const": "candidate_not_retrievable", "description": "Returned only for an outcome recorded at issuance whose references still resolve; an unresolvable historical configuration makes retrieve answer the declared closed 503 instead."}, "headline": { "const": "The selection receipt named a configuration whose record no longer resolves, so no comparison was possible. Nothing is wrong with the objectives; the evidence for the selected configuration itself is gone." } @@ -1258,7 +1258,7 @@ "additionalProperties": false, "required": ["reason", "detail"], "properties": { - "reason": {"const": "no_experiment_run_reference"}, + "reason": {"const": "no_experiment_run_reference", "description": "New finalizations on these routes never generate this reason, because finalize takes the experiment run from the finalized build session; retrieve can still return it when a stored assessment carries it."}, "detail": { "const": "No experiment run was named for this issuance, so no selection receipt or candidate records could be located." },