Tailor Resume Session
tailor_sessionRun the tailoring pipeline for a saved session: apply resolutions or caller-supplied edit ops to produce one tailored application and auto-score it.
Instructions
Run the tailor pipeline for a session: resolutions -> edit ops -> tailored application, auto-scored.
`tailoring_session_id` is the id returned by create_tailoring_session.
Two ways to produce the edit ops:
- Default (ops omitted): the backend builds the tailor prompt from the saved
resolutions and calls the LLM to generate the ops.
- Caller-supplied (ops given): the caller has already produced the typed edit
ops (same op shapes as tailor_application/edit_application). The backend
skips its own LLM pass and applies them directly — the caller's judgment
IS the tailor. `ops` carry only the changed fields (the base is in
get_base_resume).
Caller-supplied ops are applied as authored: the server validates structure
only, so nothing gates fabricated skills, experience, metrics, or dates
(keyword-survival checks run only on the backend-LLM path). A skill the
candidate cannot evidence goes only in the skills list (add_skill_item), not
in a bullet; the compare view audits any edit beyond the saved resolutions.
Resume text must be implied first person: no I/he/she/they or the owner's name; a hit returns 400 naming the lines.
Optional user_prompt adds free-form tailoring guidance. Writes the job's ONE
application from the base plus the ops: it rebuilds the draft and removes its
PDF (version history keeps the old draft), scores it, and returns
{session, compare, compare_error, next}. compare (before/after match score
deltas) may be null with compare_error set: the tailor still succeeded, so do
not retry. `kb_writeback_skips` derives from each user_input
resolution's STORED placement_target from resolve_gaps, not from the ops, so
ops that disagree with the stored target produce a spurious wrong_section
skip. `next` is a next-step hint naming render_pdf for that application
(null when suppressed or unavailable).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | No | ||
| user_prompt | No | ||
| tailoring_session_id | Yes |