Skip to content

Schema: semantic_check_evaluated_payload

Payload for SemanticCheckEvaluated event (step-level semantic check).

Payload schema for SemanticCheckEvaluated events.

Generated from src/spec_kitty_events/schemas/semantic_check_evaluated_payload.schema.json by scripts/schema_pages.py; never hand-edit (C-001).

Family

Part of the Semantics and Analytics Events event family.

Diagram

SemanticCheckEvaluatedPayloadStructure of the JSON Schema SemanticCheckEvaluatedPayload.$defs   $idspec-kitty-events/semantic_check_evaluated_paylo ad$schemahttps://json-schema.org/draft/2020-12/schemaadditionalProperties☐ falsedescriptionPayload for SemanticCheckEvaluated event (step-level semantic check).properties   required   titleSemanticCheckEvaluatedPayloadtypeobjectGlossaryConflictType   GlossaryFinding   GlossaryRecommendedAction   GlossaryScope   GlossarySeverity   GlossaryStrictness   GlossaryTermSurface   SenseRef   descriptionKind of semantic conflict a finding reports.enum   titleGlossaryConflictTypetypestringunknownambiguousinconsistentunresolved_criticaladditionalProperties☐ falsedescriptionOne semantic-conflict finding within a check or a generation block.properties   required   titleGlossaryFindingtypeobjectcandidate_senses   confidence   conflict_type   context   severity   term   default   descriptionCandidate senses (required for ambiguous findings)items   titleCandidate Sensestypearray$ref#/$defs/SenseRefdescriptionConfidence in the detectionmaximum1minimum0titleConfidencetypenumber$ref#/$defs/GlossaryConflictTypedescriptionKind of conflictdefault descriptionWhere the term was usedtitleContexttypestring$ref#/$defs/GlossarySeveritydescriptionSeverity of this finding$ref#/$defs/GlossaryTermSurfacedescriptionThe conflicting termtermconflict_typeseverityconfidencedescriptionAction a semantic check recommends (``proceed`` is core's spelling of pass).enum   titleGlossaryRecommendedActiontypestringproceedwarnblockdescriptionGlossary scope levels.enum   titleGlossaryScopetypestringmission_localteam_domainaudience_domainspec_kitty_coredescriptionSeverity of a conflict finding or of a whole semantic check.enum   titleGlossarySeveritytypestringlowmediumhighdescriptionGlossary enforcement strictness.enum   titleGlossaryStrictnesstypestringoffmediummaxadditionalProperties☐ falsedescriptionA term as written in the text under check.properties   required   titleGlossaryTermSurfacetypeobjectsurface_text   descriptionRaw text form of the termminLength1titleSurface Texttypestringsurface_textadditionalProperties☐ falsedescriptionReference to one sense (meaning) of a term within a scope.properties   required   titleSenseReftypeobjectconfidence   definition   scope   surface   descriptionConfidence (0.0-1.0)maximum1minimum0titleConfidencetypenumberdescriptionDefinition of the senseminLength1titleDefinitiontypestring$ref#/$defs/GlossaryScopedescriptionScope that owns the sensedescriptionTerm surface textminLength1titleSurfacetypestringsurfacescopedefinitionconfidenceblocked   confidence   effective_strictness   findings   mission_id   overall_severity   recommended_action   run_id   step_id   descriptionWhether generation was blockedtitleBlockedtypebooleandescriptionOverall confidence scoremaximum1minimum0titleConfidencetypenumber$ref#/$defs/GlossaryStrictnessdescriptionStrictness mode used for this evaluationdescriptionDetected conflictsitems   titleFindingstypearray$ref#/$defs/GlossaryFindingdescriptionMission contextminLength1titleMission Idtypestring$ref#/$defs/GlossarySeveritydescriptionOverall check severity (max of findings)$ref#/$defs/GlossaryRecommendedActiondescriptionAction recommendation based on severity and strictnessdescriptionRun contextminLength1titleRun IdtypestringdescriptionStep being evaluatedminLength1titleStep Idtypestringmission_idrun_idstep_idfindingsoverall_severityconfidenceeffective_strictnessrecommended_actionblocked
Structure of the JSON Schema SemanticCheckEvaluatedPayload.

Properties

  • blocked (boolean, required): Whether generation was blocked
  • confidence (number, required): Overall confidence score
  • effective_strictness (enum: off, medium, max, required): Strictness mode used for this evaluation
  • findings (array of GlossaryFinding, required): Detected conflicts
  • mission_id (string, required): Mission context
  • overall_severity (enum: low, medium, high, required): Overall check severity (max of findings)
  • recommended_action (enum: proceed, warn, block, required): Action recommendation based on severity and strictness
  • run_id (string, required): Run context
  • step_id (string, required): Step being evaluated

GlossaryFinding

One semantic-conflict finding within a check or a generation block.

  • candidate_senses (array of SenseRef): Candidate senses (required for ambiguous findings)
  • confidence (number, required): Confidence in the detection
  • conflict_type (enum: unknown, ambiguous, inconsistent, unresolved_critical, required): Kind of conflict
  • context (string): Where the term was used
  • severity (enum: low, medium, high, required): Severity of this finding
  • term (GlossaryTermSurface, required): The conflicting term

SenseRef

Reference to one sense (meaning) of a term within a scope.

  • confidence (number, required): Confidence (0.0-1.0)
  • definition (string, required): Definition of the sense
  • scope (enum: mission_local, team_domain, audience_domain, spec_kitty_core, required): Scope that owns the sense
  • surface (string, required): Term surface text

GlossaryTermSurface

A term as written in the text under check.

  • surface_text (string, required): Raw text form of the term

Source

Schema file: schemas/semantic_check_evaluated_payload.schema.json