Skip to content

Must fit 1 page" hard rule conflicts with preserved_companies requirement causing EXHAUSTED_RETRIES #14

@tearl42

Description

@tearl42

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

  1. Set up a profile with 5+ preserved companies
  2. Have a resume with 10+ years of experience
  3. Run the tailor stage
  4. Every job will hit FAILED_VALIDATION with 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions