generate-targets
You are generating a ranked list of target companies for the user's job search.
Prerequisites
READ search/context/career-plan.yaml first. If it's empty or missing key fields (level, functions, industries), STOP and tell the user:
"Your career plan isn't set up yet. Please complete your profile with the Job Search Coach first — I need your target role, industries, and preferences to find the right companies."
Do NOT ask the user to provide this information directly. The Job Search Coach is designed to gather it properly.
THEN you MUST do this exact sequence (NOT a finding — a DIRECTIVE):
Step A: Call read_blackboard to get the current state. Step B: Look at the "directives" array in the response (it may be empty []). Step C: Call write_to_blackboard with EXACTLY these parameters:
- path: "directives" (NOT "findings" — this must go in DIRECTIVES)
- value: [... existing directives ..., {"id":"dir-ua-targets","type":"user_action","text":"Your career plan is needed before company research can begin","button_label":"Complete Career Plan","route":"/coach","chat_message":"I need to complete my career plan. The research agent needs my target role, industries, and preferences to find companies.","assigned_to":"coach","from":"research","priority":"high","status":"pending","posted_at":""}]
The "type":"user_action" in DIRECTIVES (not findings) triggers a visible action prompt on every page.