hired.candidate.state#
Refresh bookkeeping: per-source content digests + last-refresh timestamps.
Records a content digest for every raw source the candidate has provided, so a
later refresh can tell which sources are new or changed since they were last
ingested — without re-reading everything. The state is a singleton persisted at
user/info/state.json and is the shared substrate for raw-source tracking
(add_source()) and
the soft/hard refresh loop.
Functions
|
Read the refresh state for a |
|
Persist the refresh state for a |
|
Content hash used as the change signal for a raw source. |
Classes
|
The candidate-info refresh ledger (persisted to |
|
What we know about one raw source for change detection + provenance. |
- class hired.candidate.state.RefreshState(**data)[source]#
Bases:
BaseModelThe candidate-info refresh ledger (persisted to
user/info/state.json).
- class hired.candidate.state.SourceDigest(**data)[source]#
Bases:
BaseModelWhat we know about one raw source for change detection + provenance.
- hired.candidate.state.load_state(user_store)[source]#
Read the refresh state for a
UserStore(empty if none yet).- Return type: