-
Notifications
You must be signed in to change notification settings - Fork 158
Description
Description of the bug
The tailor prompt contains two conflicting hard rules: "Must fit 1 page" and a list of companies that must appear in the experience section. For candidates with extensive work history, the LLM cannot satisfy both constraints simultaneously — it drops companies to fit the page limit, which then fails the preserved_companies validation check, causing all attempts to exhaust retries.
To Reproduce
- Set up a profile with 5+ preserved companies
- Have a resume with 10+ years of experience
- Run the tailor stage
- Every job will hit
FAILED_VALIDATIONwith errors like Company'General Dynamics Land Systems' missing from experience
Expected behavior
The page limit should either be removed, made configurable, or the validator should not require companies that the LLM was forced to drop to meet the page constraint. These two rules cannot coexist for long-career candidates.
Suggested fix
Remove the "Must fit 1 page" hard rule from the prompt template, or make it a configurable option in profile.json or as a CLI flag such as --max-pages.
Additional context
This particularly affects candidates with 15+ years of experience. The one-page constraint is also arguably inappropriate for senior-level candidates — a two-page resume is standard and expected at the Director/VP level.