feat(evidence): project skill evidence from confirmed assessments

This commit is contained in:
shira committed 2026-10-09 11:25:19 +03:00
1 parent 4761508f13
commit c2a8d17195
94 files changed
+10077 -151

No files matched your search

+43
View File
@@ -4385,6 +4385,14 @@ PublishedCardPreview:
experience_band: "1_3"
work_formats: null
salary_compatibility: null
evidence:
items:
- skill: backend
grade: middle
trust: 1
basis: synthetic_demo
calibration_status: uncalibrated
observed_year: 2026
generated_at: "2026-10-06T09:30:00Z"
OrganizationAnonymousCandidateCard:
summary: An anonymous card currently visible to one organization
@@ -4408,6 +4416,7 @@ ClosedCardPreview:
state: closed
fields: []
card: null
evidence: null
generated_at: "2026-10-06T09:30:00Z"
PrivacyEventListPage:
summary: A publication, a hiding, and a confirmed status
@@ -4455,6 +4464,40 @@ CardAccessListPage:
page:
has_more: false
next_cursor: null
EvidenceFactListPage:
summary: A confirmed junior backend result with one fact and two tags of the same event
value:
items:
- id: 01928f7a-d1e2-7f3a-8b4c-5d6e7f8a9b01
kind: measurement
source:
type: assessment_result
event_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
result_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
skills:
- backend
- go
result:
grade: junior
basis: synthetic_demo
calibration_status: uncalibrated
attribution: personal
trust: 1
occurred_at: "2026-10-08T10:15:00Z"
visibility: visible
page:
has_more: false
next_cursor: null
OrganizationCandidateEvidence:
summary: The one supporting assessment fact of the category on the card
value:
items:
- skill: backend
grade: junior
trust: 1
basis: synthetic_demo
calibration_status: uncalibrated
observed_year: 2026
PrivacyStaleVersion:
summary: The change carried a stale expected_version
description: The setting changed, for example in another tab, after the client read it. Nothing was changed; the client reads the settings again and reapplies its edit.
+247 -2
View File
@@ -3312,6 +3312,246 @@ ContactDisclosure:
oneOf:
- $ref: '#/ContactTelegramUsername'
- type: 'null'
EvidenceKind:
type: string
description: 'Whether a fact is a statement or an observation.
- claim: something the candidate stated that nothing confirmed separately. Its trust is 0.
- measurement: a result that a system observed, such as a confirmed assessment. Its trust is 1 to 3.
Assessments produce measurements only. A claim never becomes a measurement by repetition, and the two kinds are stored apart.'
enum:
- claim
- measurement
EvidenceSourceType:
type: string
description: 'Where the fact comes from.
- assessment_result: a real (root or corrective) assessment result of this platform that confirmed a grade. An express training run (`demo_express`), a failed attempt, and a result without a reviewed category source are never a source.
Adding a value is a contract change.'
enum:
- assessment_result
EvidenceAttribution:
type: string
description: 'Whose contribution the fact is.
- personal: the candidate''s own result. Every assessment fact is personal.
- team_role: a team result with a confirmed role of the candidate.
- team_unattributed: a team result without a confirmed role; it is not a personal skill.
Only `personal` is produced today.'
enum:
- personal
- team_role
- team_unattributed
EvidenceTrustLevel:
type: integer
format: int32
minimum: 0
maximum: 3
description: 'Strength of the confirmation.
- 0: stated by the person, not confirmed separately.
- 1: an observable online result without a reliable confirmation of the identity or the authorship. Every assessment fact has this level today, because the assessment is unproctored and the identity is not confirmed.
- 2: a result tied to a confirmed identity or confirmed by an independent party.
- 3: an in-person check with a matching confirmation.
A repeated statement, a sign-in, or a repeated tag of the same event never raises the level.'
examples:
- 1
EvidenceVisibility:
type: string
description: 'Whether the fact may take part in what an organization reads.
- visible: the fact is eligible for the organization projection. It does not publish the fact: the projection also needs the published card with the `categories` field and an active C2.
- hidden: the candidate hid the fact. No organization reads it. Hiding never edits or deletes the confirmed result.'
enum:
- visible
- hidden
EvidenceSkillCode:
type: string
description: A skill tag from a closed set - the specialization codes of the catalog and the technology codes of the anonymous card. An assessment tags its fact with the specialization of the category.
enum:
- backend
- frontend
- mobile
- network_engineer
- devops_sre
- data_analyst
- ds_ml
- information_security
- qa
- go
- postgresql
- kafka
- docker
EvidenceBasis:
type: string
description: 'What the measurement rests on.
- synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics and is not a validated measurement.'
enum:
- synthetic_demo
EvidenceCalibrationStatus:
type: string
description: 'Calibration of the method behind the result.
- uncalibrated: the thresholds are initial values that no measurement has validated.'
enum:
- uncalibrated
EvidenceResult:
type: object
description: 'What the fact says: the grade that was passed and how reliable the method is. It carries no score, answer, item, failure, or anti-cheat data.'
additionalProperties: false
required:
- grade
- basis
- calibration_status
properties:
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
calibration_status:
$ref: '#/EvidenceCalibrationStatus'
EvidenceSource:
type: object
description: Where the fact comes from. For an assessment the event is the attempt and the result is the immutable result of that attempt, which the candidate reads at `GetMyAssessmentResult`; the two identifiers are equal because a result is keyed by its attempt.
additionalProperties: false
required:
- type
- event_id
- result_id
properties:
type:
$ref: '#/EvidenceSourceType'
event_id:
type: string
format: uuid
description: Identifier of the source event. One event is one fact, however many skills it is tagged with.
result_id:
type: string
format: uuid
description: Identifier of the immutable result that produced the fact.
EvidenceFact:
type: object
description: One independent fact of the current candidate. `occurred_at` is when the source event ended; for an assessment it is the time of the decision. A fact is one source event; the skills of that event are tags of the fact, so a second tag never makes a second fact. Hidden facts are listed here with their visibility, because the candidate owns them.
additionalProperties: false
required:
- id
- kind
- source
- skills
- result
- attribution
- trust
- occurred_at
- visibility
properties:
id:
type: string
format: uuid
description: Identifier of the fact.
kind:
$ref: '#/EvidenceKind'
source:
$ref: '#/EvidenceSource'
skills:
type: array
minItems: 1
maxItems: 13
uniqueItems: true
description: Skill tags of the event in ascending order.
items:
$ref: '#/EvidenceSkillCode'
result:
$ref: '#/EvidenceResult'
attribution:
$ref: '#/EvidenceAttribution'
trust:
$ref: '#/EvidenceTrustLevel'
occurred_at:
$ref: '#/Timestamp'
visibility:
$ref: '#/EvidenceVisibility'
EvidenceFactList:
type: object
description: One page of the facts of the current candidate, newest event first.
additionalProperties: false
required:
- items
- page
properties:
items:
type: array
maxItems: 100
description: Facts of the page.
items:
$ref: '#/EvidenceFact'
page:
$ref: '#/PageInfo'
OrganizationEvidenceFact:
type: object
description: 'The one assessment fact that supports a category of the card as an organization reads it: the earliest visible measurement that passed exactly the confirmed grade of that category. A lower grade, a retake, the other tags of the event, the source, the basis, the exact time, and every identifier stay with the candidate. The fact carries no identifier of the fact, the event, the result, or the candidate, so it cannot be joined to a person by a key. It is not unlinkable: the skill, the grade, the trust level, and the year, together with the other values of the card, can narrow a small pool of candidates, and the minimum cohort of the card does not cover the year. `basis` and `calibration_status` are the same for every candidate: they say that the fact comes from a synthetic demonstration and is not calibrated, so a demonstration is never read as a validated measurement. The fact never carries an answer, score, item, failure, signal, or review band.'
additionalProperties: false
required:
- skill
- grade
- trust
- basis
- calibration_status
- observed_year
properties:
skill:
$ref: '#/EvidenceSkillCode'
grade:
$ref: '#/GradeCode'
trust:
$ref: '#/EvidenceTrustLevel'
basis:
$ref: '#/EvidenceBasis'
calibration_status:
$ref: '#/EvidenceCalibrationStatus'
observed_year:
type: integer
format: int32
minimum: 2000
maximum: 9999
description: Year (UTC) when the assessment ended. The month, day, and time stay with the candidate.
examples:
- 2026
OrganizationEvidence:
type: object
description: 'The permitted evidence of one candidate card, ordered by skill: at most one fact for each category of the card (at most nine). The list is empty when no visible fact supports a category of the card.'
additionalProperties: false
required:
- items
properties:
items:
type: array
maxItems: 9
description: Permitted facts, one for each supported category.
items:
$ref: '#/OrganizationEvidenceFact'
HealthResponse:
type: object
additionalProperties: false
@@ -6201,7 +6441,7 @@ CardField:
description: 'A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.
- categories: specialization and grade confirmed by an authoritative assessment result.
- categories: specialization and grade confirmed by an authoritative assessment result. With it an organization receives the confirmed category and, with each category of the card, one supporting assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration that mark a synthetic, uncalibrated demonstration (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.
- self_assessment: the candidate''s declared specialization and grade, separate from confirmed categories.
@@ -6558,12 +6798,13 @@ AnonymousCardContent:
description: Nullable compatibility result with no salary values.
CardPreview:
type: object
description: A private candidate preview computed from the current profile, publication, and consent ledger. Its pseudonym uses a separate preview context and is not an organization's alias. Organization-specific visibility filters and cohort checks can further generalize or suppress the organization-facing card. This read creates no view or history record and never reaches an organization. `card` is null while the profile is closed.
description: A private candidate preview computed from the current profile, publication, and consent ledger. Its pseudonym uses a separate preview context and is not an organization's alias. Organization-specific visibility filters and cohort checks can further generalize or suppress the organization-facing card. This read creates no view or history record and never reaches an organization. `card` is null while the profile is closed. `evidence` is what an organization would read in the evidence section of the card, one supporting assessment fact for each category of the card, and is null exactly when `card` is null; the organization-facing section can still be generalized or suppressed.
additionalProperties: false
required:
- state
- fields
- card
- evidence
- generated_at
properties:
state:
@@ -6574,6 +6815,10 @@ CardPreview:
oneOf:
- $ref: '#/AnonymousCardContent'
- type: 'null'
evidence:
oneOf:
- $ref: '#/OrganizationEvidence'
- type: 'null'
generated_at:
$ref: '#/Timestamp'
PrivacyEventKind:
@@ -0,0 +1,258 @@
schemas:
EvidenceKind:
type: string
description: |-
Whether a fact is a statement or an observation.
- claim: something the candidate stated that nothing confirmed separately. Its trust is 0.
- measurement: a result that a system observed, such as a confirmed assessment. Its trust is 1 to 3.
Assessments produce measurements only. A claim never becomes a measurement by repetition, and the two kinds are stored apart.
enum:
- claim
- measurement
EvidenceSourceType:
type: string
description: |-
Where the fact comes from.
- assessment_result: a real (root or corrective) assessment result of this platform that confirmed a grade. An express training run (`demo_express`), a failed attempt, and a result without a reviewed category source are never a source.
Adding a value is a contract change.
enum:
- assessment_result
EvidenceAttribution:
type: string
description: |-
Whose contribution the fact is.
- personal: the candidate's own result. Every assessment fact is personal.
- team_role: a team result with a confirmed role of the candidate.
- team_unattributed: a team result without a confirmed role; it is not a personal skill.
Only `personal` is produced today.
enum:
- personal
- team_role
- team_unattributed
EvidenceTrustLevel:
type: integer
format: int32
minimum: 0
maximum: 3
description: |-
Strength of the confirmation.
- 0: stated by the person, not confirmed separately.
- 1: an observable online result without a reliable confirmation of the identity or the authorship. Every assessment fact has this level today, because the assessment is unproctored and the identity is not confirmed.
- 2: a result tied to a confirmed identity or confirmed by an independent party.
- 3: an in-person check with a matching confirmation.
A repeated statement, a sign-in, or a repeated tag of the same event never raises the level.
examples:
- 1
EvidenceVisibility:
type: string
description: |-
Whether the fact may take part in what an organization reads.
- visible: the fact is eligible for the organization projection. It does not publish the fact: the projection also needs the published card with the `categories` field and an active C2.
- hidden: the candidate hid the fact. No organization reads it. Hiding never edits or deletes the confirmed result.
enum:
- visible
- hidden
EvidenceSkillCode:
type: string
description: A skill tag from a closed set - the specialization codes of the catalog and the technology codes of the anonymous card. An assessment tags its fact with the specialization of the category.
enum:
- backend
- frontend
- mobile
- network_engineer
- devops_sre
- data_analyst
- ds_ml
- information_security
- qa
- go
- postgresql
- kafka
- docker
EvidenceBasis:
type: string
description: |-
What the measurement rests on.
- synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics and is not a validated measurement.
enum:
- synthetic_demo
EvidenceCalibrationStatus:
type: string
description: |-
Calibration of the method behind the result.
- uncalibrated: the thresholds are initial values that no measurement has validated.
enum:
- uncalibrated
EvidenceResult:
type: object
description: >-
What the fact says: the grade that was passed and how reliable the method
is. It carries no score, answer, item, failure, or anti-cheat data.
additionalProperties: false
required:
- grade
- basis
- calibration_status
properties:
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "#/schemas/EvidenceBasis"
calibration_status:
$ref: "#/schemas/EvidenceCalibrationStatus"
EvidenceSource:
type: object
description: >-
Where the fact comes from. For an assessment the event is the attempt
and the result is the immutable result of that attempt, which the
candidate reads at `GetMyAssessmentResult`; the two identifiers are
equal because a result is keyed by its attempt.
additionalProperties: false
required:
- type
- event_id
- result_id
properties:
type:
$ref: "#/schemas/EvidenceSourceType"
event_id:
type: string
format: uuid
description: Identifier of the source event. One event is one fact, however many skills it is tagged with.
result_id:
type: string
format: uuid
description: Identifier of the immutable result that produced the fact.
EvidenceFact:
type: object
description: >-
One independent fact of the current candidate. `occurred_at` is when
the source event ended; for an assessment it is the time of the
decision. A fact is one source event; the skills of that event are tags of the fact, so a second tag
never makes a second fact. Hidden facts are listed here with their
visibility, because the candidate owns them.
additionalProperties: false
required:
- id
- kind
- source
- skills
- result
- attribution
- trust
- occurred_at
- visibility
properties:
id:
type: string
format: uuid
description: Identifier of the fact.
kind:
$ref: "#/schemas/EvidenceKind"
source:
$ref: "#/schemas/EvidenceSource"
skills:
type: array
minItems: 1
maxItems: 13
uniqueItems: true
description: Skill tags of the event in ascending order.
items:
$ref: "#/schemas/EvidenceSkillCode"
result:
$ref: "#/schemas/EvidenceResult"
attribution:
$ref: "#/schemas/EvidenceAttribution"
trust:
$ref: "#/schemas/EvidenceTrustLevel"
occurred_at:
$ref: "./common_schemas.yml#/schemas/Timestamp"
visibility:
$ref: "#/schemas/EvidenceVisibility"
EvidenceFactList:
type: object
description: One page of the facts of the current candidate, newest event first.
additionalProperties: false
required:
- items
- page
properties:
items:
type: array
maxItems: 100
description: Facts of the page.
items:
$ref: "#/schemas/EvidenceFact"
page:
$ref: "./common_schemas.yml#/schemas/PageInfo"
OrganizationEvidenceFact:
type: object
description: >-
The one assessment fact that supports a category of the card as an
organization reads it: the earliest visible measurement that passed
exactly the confirmed grade of that category. A lower grade, a retake,
the other tags of the event, the source, the basis, the exact time, and
every identifier stay with the candidate. The fact carries no
identifier of the fact, the event, the result, or the candidate, so it
cannot be joined to a person by a key. It is not unlinkable: the skill,
the grade, the trust level, and the year, together with the other
values of the card, can narrow a small pool of candidates, and the
minimum cohort of the card does not cover the year. `basis` and
`calibration_status` are the same for every candidate: they say that
the fact comes from a synthetic demonstration and is not calibrated,
so a demonstration is never read as a validated measurement. The fact
never carries an answer, score, item, failure, signal, or review band.
additionalProperties: false
required:
- skill
- grade
- trust
- basis
- calibration_status
- observed_year
properties:
skill:
$ref: "#/schemas/EvidenceSkillCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
trust:
$ref: "#/schemas/EvidenceTrustLevel"
basis:
$ref: "#/schemas/EvidenceBasis"
calibration_status:
$ref: "#/schemas/EvidenceCalibrationStatus"
observed_year:
type: integer
format: int32
minimum: 2000
maximum: 9999
description: Year (UTC) when the assessment ended. The month, day, and time stay with the candidate.
examples:
- 2026
OrganizationEvidence:
type: object
description: >-
The permitted evidence of one candidate card, ordered by skill: at most
one fact for each category of the card (at most nine). The list is empty
when no visible fact supports a category of the card.
additionalProperties: false
required:
- items
properties:
items:
type: array
maxItems: 9
description: Permitted facts, one for each supported category.
items:
$ref: "#/schemas/OrganizationEvidenceFact"
@@ -28,7 +28,7 @@ schemas:
description: |-
A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.
- categories: specialization and grade confirmed by an authoritative assessment result.
- categories: specialization and grade confirmed by an authoritative assessment result. With it an organization receives the confirmed category and, with each category of the card, one supporting assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration that mark a synthetic, uncalibrated demonstration (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.
- self_assessment: the candidate's declared specialization and grade, separate from confirmed categories.
- stack: only recognized technology codes from the server's closed taxonomy.
- experience: a coarse total-experience band, without employers, periods, or descriptions.
@@ -468,12 +468,16 @@ schemas:
visibility filters and cohort checks can further generalize or suppress
the organization-facing card. This read creates no view or history
record and never reaches an organization. `card` is null while the
profile is closed.
profile is closed. `evidence` is what an organization would read in the
evidence section of the card, one supporting assessment fact for each
category of the card, and is null exactly when `card` is null; the
organization-facing section can still be generalized or suppressed.
additionalProperties: false
required:
- state
- fields
- card
- evidence
- generated_at
properties:
state:
@@ -484,6 +488,10 @@ schemas:
oneOf:
- $ref: "#/schemas/AnonymousCardContent"
- type: "null"
evidence:
oneOf:
- $ref: "./evidence_schemas.yml#/schemas/OrganizationEvidence"
- type: "null"
generated_at:
$ref: "./common_schemas.yml#/schemas/Timestamp"
PrivacyEventKind: