Workflow
1. Resolve `{user_dir}` and gate
Application data uses the split layout defined in references/tracker-schema.md — read it before any read or write.
Require CareerNavigator/profile.md, ExperienceLibrary.json, and tracker.json. If missing:
Run
/career-navigator:launchfirst to initialize Career Navigator.
Story corpus gate:
- Preferred source:
CareerNavigator/StoryCorpus.json. - If missing, run or suggest
mine-storiesfirst. - If user wants to continue immediately, proceed with
ExperienceLibrary.jsonfallback and clearly label lower story-specific confidence.
2. Identify target
From user message or tracker:
- Prefer
application_idif given; else match company + role againsttracker.jsonapplications[]. If anapplication_idmatches no row'sid, check each row'sprevious_idsbefore declaring no match — prep briefs saved under earlier ids still resolve. - Keep the matched row's
detail_file,contacts_file, andapplicationlabel; the write in step 6 needs them. - Pull prior stage history and notes from the row's
detail_file(CareerNavigator/applications/<application_id>.json) —tracker.jsonholds onlylatest_stageandlatest_stage_date. Load thecontacts_fileonly if interviewer background is needed, filtering itscontacts[]to entries whoseapplicationequals the row'sapplication. - If ambiguous, ask one short disambiguation question.
Collect if missing:
interview_stage:recruiter|hiring_manager|technical|panel|executive|final(default: infer from wording; recruiter call / phone screen →recruiter).- Optional: interviewer name/title, interview date, JD text or paste.
3. Optional dictated input
Text-only. If the user pastes a transcript from host-level speech-to-text instead of typing, pass it as user_audio_transcript in the handoff to interview-coach.
4. Retrieve targeted stories
Before invoking interview-coach, run story-retrieval with:
application_idorcompany+roleinterview_stage- optional JD and interviewer context
Use the returned 8-12 selected stories as the primary interview evidence payload.
5. Invoke **interview-coach**
Read and follow agents/interview-coach/AGENT.md with:
mode:prepinterview_stage(required)application_idorcompany+role- Optional:
interviewer, JD,interview_date,user_audio_transcript selected_storiespayload fromstory-retrieval
Use the exact agent name interview-coach.
6. Persist outputs
After the coach content is produced:
- Directory: Ensure
{user_dir}/interview-prep/exists (directly in the job search folder, not underCareerNavigator/). - File: Save the full prep brief as markdown using the path convention from the agent (company-slug, stage, date = today in local context unless user specified interview date for filename suffix).
- Detail file: Append to
notes[]in the matched row'sdetail_file—{user_dir}/CareerNavigator/applications/<application_id>.json— an object:
{
"date": "YYYY-MM-DD",
"text": "[prep] Interview prep brief saved: interview-prep/{filename}.md (stage: {stage})."
}
Never overwrite or reorder existing note entries.
- Summary row: Set the matching
tracker.json→applications[]row'snotes_countto the detail file's newnotes[]length. This note does not add a stage, so leavestage_count,latest_stage,latest_stage_date, andstatusuntouched.
Load and re-dump both JSON files programmatically (json.load / json.dump, indent=2, ensure_ascii=False), then reload to verify notes_count matches the detail array. If no application matched, skip both writes but still save the file under {user_dir}/interview-prep/ with a clear filename and tell the user to link it via /career-navigator:track-application if needed.
7. Close
Offer /career-navigator:mock-interview for a text practice session. Do not claim features that are not shipped.