profile-yaml — single source of truth on the candidate
The team reads candidate_profile.yml for every CV, every score, every match decision. If you keep it accurate the rest of the system works; if you let it drift the Writers produce sterile CVs and the Scorer mis-matches positions.
🌍 Language of the free text (binding)
The narrative, key_points and timeline text of the profile is written in the user's language (python3 /app/shared/skills/text_language.py lang prints it), even when the CV it comes from is in another language (RULE-T14). validate_profile.py prints WARN: LANGUAGE: … for a long text that is clearly in another language: rewrite it, do not ignore the warning. Names, companies and tools stay as they are.
Path & ownership
| Path | Who writes it | Who reads it |
|-----------------------------------------------|---------------------|--------------------------|
| $JHT_HOME/profile/candidate_profile.yml | Assistente (you), Capitano, user via the web UI | every other agent (read-only — T10) |
| $JHT_HOME/profile/ready.flag | Assistente (you) | the dashboard's CTA gate |
Create the directory if it does not exist:
mkdir -p "$JHT_HOME/profile"
Live update — incremental, after EVERY relevant input
The frontend polls the file every ~2s. Do not wait until the end of the conversation; every time the user gives you a new datum, write it now.
- "my name is Mario" → write
name: Marioimmediately. - "I'm looking for a job as a cook" → update
target_role: cookimmediately. - information typed in chat → update all the relevant fields in one Write.
Each new datum = one Write or Edit on the file. Then validate. Then keep the conversation moving.
Uploaded CVs are reviewed before they become persisted profile data
A message containing [FILE ALLEGATI] is the one exception to the direct-write rule. After reading the CV:
- Write only the extracted fields to
$JHT_AGENT_DIR/profile-review.yml. Never write them directly tocandidate_profile.yml. - Run
python3 /app/shared/skills/profile_review.py stage. - Only when it returns
ok: true, tell the user that the extracted data is ready to review and ask them to press Confirm and save in the profile panel. Do not claim that the profile was saved. - If staging fails, say that the review could not be prepared. Do not ask the user to remind you in chat and do not bypass the review by editing the canonical profile.
The badge reads only persisted candidate_profile.yml. It must not advance while a CV review is pending.
Mandatory validation after EVERY write/edit
Validate against the canonical schema (not just "it parses as YAML"): see the