fix(assessment): return confirmed categories with their basis and label demonstration categories

This commit is contained in:
shira committed 2026-10-09 21:24:24 +03:00
1 parent 623d41b969
commit d4903a3796
77 files changed
+1441 -288

No files matched your search

@@ -1845,6 +1845,7 @@ schemas:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -1855,6 +1856,15 @@ schemas:
oneOf:
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
- type: "null"
confirmed_basis:
description: >-
What the confirmed grade rests on, or null exactly when
`confirmed_grade` is null. `synthetic_demo` marks a demonstration
category, which is not a validated measurement and must not be shown
as a real confirmation.
oneOf:
- $ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
- type: "null"
active_attempt_id:
type:
- string
@@ -593,11 +593,14 @@ schemas:
from the assessment results of the candidate; no request carries it
and the profile storage holds no such column, so neither a form nor an
import can write a confirmed grade. It is separate from the claims of
the profile and from the self-assessed grades in `roles`.
the profile and from the self-assessed grades in `roles`. `basis` says
what the grade rests on; `synthetic_demo` marks a demonstration category
that is not a validated measurement.
additionalProperties: false
required:
- specialization
- grade
- basis
- confirmed_at
- attempt_id
properties:
@@ -605,6 +608,8 @@ schemas:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
confirmed_at:
$ref: "./common_schemas.yml#/schemas/Timestamp"
attempt_id:
@@ -236,16 +236,21 @@ schemas:
type: object
description: >-
A confirmed category. Its specialization must equal the enclosing
match entry's specialization.
match entry's specialization. `basis` says what the grade rests on;
`synthetic_demo` marks a demonstration category, which an organization
must read as one and never as a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- basis
properties:
specialization:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
MatchScore:
type: number
format: double
@@ -315,12 +315,16 @@ schemas:
The list is read with `ListMyHiddenOrganizations`.
CardCategory:
type: object
description: A category confirmed by assessment results, as the card shows it.
description: >-
A category confirmed by assessment results, as the card shows it.
`basis` says what the grade rests on; `synthetic_demo` marks a
demonstration category, which is never a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- strength
- basis
properties:
specialization:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
@@ -332,6 +336,8 @@ schemas:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
CardSelfAssessment:
type: object
description: Candidate-declared specialization and optional grade. This is never an assessment result.