hired.alignment.base#

Schemas for JD-vs-candidate alignment analysis.

A job description is decomposed into Requirement records; each is analysed into a RequirementRecord carrying a three-valued MatchState, a Bucket, grounding Evidence, and the fields the elicitation loop needs. The whole analysis is an AlignmentReport — verdict-first, evidence-quoted, banded (never a single false-precision percentage).

See misc/docs/DESIGN.md §6.

Classes

AILeverage(*values)

How much the candidate's standing AI-agent capability lowers the ramp.

AlignmentReport(*, job_id[, job_title, ...])

A complete, verdict-first alignment analysis for one JD.

Bucket(*values)

The four alignment buckets.

Clarification(*, requirement_id, question[, ...])

A question to ask the candidate to resolve a decision-relevant unknown.

CloseMethod(*values)

Closeability(*values)

How hard a gap is to close (Axis B), after the AI-leverage modifier.

Decision(*values)

What to do with a judgment: take it as a match, as no match, or ask.

Evidence(*, quote[, source_document_id, locator])

A verbatim grounding span for a match judgment.

FieldCompleteness(*values)

Local closed-world flag: may a missing value be read as a real negative?

FitBand(*values)

InterviewPrep(*[, summary, talking_points, ...])

MatchType(*values)

How the candidate's background relates to the requirement (Axis A).

NextAction(*, action[, addresses, priority, ...])

Recommendation(*values)

Requirement(*[, id, skill_type, ...])

One atomic requirement extracted verbatim from a job description.

RequirementClass(*values)

How decision-critical a requirement is.

RequirementRecord(*, requirement[, ...])

The analysis of one requirement against the candidate's knowledge.

ScoreSummary(*[, fit_band, bucket_counts, ...])

SkillType(*values)

TimeToClose(*values)

Transferability(*values)

Verdict(*, recommendation[, confidence, ...])

class hired.alignment.base.AILeverage(*values)[source]#

Bases: str, Enum

How much the candidate’s standing AI-agent capability lowers the ramp.

Applies to codified / knowledge-breadth gaps, not tacit-judgment or enduring-aptitude gaps (those it cannot rescue).

class hired.alignment.base.AlignmentReport(*, job_id, job_title='', company='', created_at='', verdict, score_summary=<factory>, requirements=<factory>, blocking_gaps=<factory>, next_actions=<factory>, interview_prep=<factory>, clarifications=<factory>)[source]#

Bases: BaseModel

A complete, verdict-first alignment analysis for one JD.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.Bucket(*values)[source]#

Bases: str, Enum

The four alignment buckets.

class hired.alignment.base.Clarification(*, requirement_id, question, fills_field='', reason='', info_gain=0.0)[source]#

Bases: BaseModel

A question to ask the candidate to resolve a decision-relevant unknown.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.CloseMethod(*values)[source]#

Bases: str, Enum

class hired.alignment.base.Closeability(*values)[source]#

Bases: str, Enum

How hard a gap is to close (Axis B), after the AI-leverage modifier.

class hired.alignment.base.Decision(*values)[source]#

Bases: str, Enum

What to do with a judgment: take it as a match, as no match, or ask.

class hired.alignment.base.Evidence(*, quote, source_document_id='', locator='')[source]#

Bases: BaseModel

A verbatim grounding span for a match judgment.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.FieldCompleteness(*values)[source]#

Bases: str, Enum

Local closed-world flag: may a missing value be read as a real negative?

class hired.alignment.base.FitBand(*values)[source]#

Bases: str, Enum

class hired.alignment.base.InterviewPrep(*, summary='', talking_points=<factory>, story_library=<factory>, proactive_disclosure='')[source]#

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.MatchType(*values)[source]#

Bases: str, Enum

How the candidate’s background relates to the requirement (Axis A).

class hired.alignment.base.NextAction(*, action, addresses='', priority=1, expected_effect='')[source]#

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.Recommendation(*values)[source]#

Bases: str, Enum

class hired.alignment.base.Requirement(*, id=<factory>, text, skill_type=SkillType.TECHNICAL, requirement_class=RequirementClass.DIFFERENTIATOR, required_level=3)[source]#

Bases: BaseModel

One atomic requirement extracted verbatim from a job description.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.RequirementClass(*values)[source]#

Bases: str, Enum

How decision-critical a requirement is.

class hired.alignment.base.RequirementRecord(*, requirement, match_state=MatchState.UNKNOWN, field_completeness=FieldCompleteness.OPEN, bucket=None, match_type=MatchType.NONE, candidate_level=0, gap_size=0, source_skill=None, adjacency_basis=None, transferability=None, closeability=None, close_method=None, time_to_close=None, ai_leverage=AILeverage.NONE, confidence=ConfidenceLevel.LOW, uncertainty_reason=None, evidence=None, match_score=None, calibrated_decision=None, impact=3, info_gain=0.0, needs_clarification=False, talking_point=None)[source]#

Bases: BaseModel

The analysis of one requirement against the candidate’s knowledge.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.ScoreSummary(*, fit_band=FitBand.FAIR, bucket_counts=<factory>, ats_readability=None)[source]#

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class hired.alignment.base.SkillType(*values)[source]#

Bases: str, Enum

class hired.alignment.base.TimeToClose(*values)[source]#

Bases: str, Enum

class hired.alignment.base.Transferability(*values)[source]#

Bases: str, Enum

class hired.alignment.base.Verdict(*, recommendation, confidence=ConfidenceLevel.MEDIUM, confidence_basis='', headline='', key_reasons=<factory>, has_blocking_gaps=False)[source]#

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].