| name | doc-gen |
| description | Generates offer packet documents that summarize compensation recommendations and candidate-specific details. |
| iface | [object Object] |
| slo | [object Object] |
| limits | [object Object] |
Doc Generation (doc-gen)
Purpose
Produce a complete offer packet that combines validated candidate data, compensation recommendations, and narrative guidance that can be delivered directly to the recruiting partner or hiring manager.
When to Use
- The upstream orchestration workflow has collected a
candidate_profilepayload plus optional salary band guidance. - A human or automated consumer needs a structured
offer_packetJSON document that conforms tocatalog/contracts/offer_packet.schema.json. - The offer summary must stay consistent with
salary-band-lookupguidance and advisor notes when present.
Prerequisites
- Input payload must validate against
catalog/contracts/candidate_profile.schema.json. - Salary band recommendations and advisor notes are optional but improve the generated summary.
- MCP runtime is optional; when provided it will be used in future phases for remote data enrichment.
Procedures
Generate Offer Packet
- Validate Inputs – Run schema validation on the incoming payload using
catalog/contracts/candidate_profile.schema.json. Reject or request correction when required keys are missing. - Collect Supporting Data – Incorporate salary band guidance or advisor notes from the payload when present. If enrichment data is missing, surface a warning in the result.
- Compose Narrative Sections – Draft role overview, compensation summary, and key talking points. Explicitly reference base salary, variable components, and any equity recommendations that are available.
- Assemble Structured Output – Populate the JSON response so it satisfies
catalog/contracts/offer_packet.schema.json, including metadata, narrative sections, and machine-readable compensation values. - Quality Gate – Perform a final schema validation before returning the payload. Include an audit trail of data sources in the
provenancesection when available.
Examples
Example 1: Minimal Candidate Record
- Input:
resources/examples/in.json - Process:
- Validate the stub candidate identifier.
- Merge salary band guidance if included in the payload.
- Draft the offer summary referencing available data.
- Output:
resources/examples/out.json
Additional Resources
resources/examples/– Sample request and response objects.impl/– Placeholder directory for execution helpers or prompt templates.catalog/contracts/offer_packet.schema.json– Defines the expected structure for outgoing packets.
Troubleshooting
- Schema Validation Fails: Confirm the caller transformed the upstream data with
catalog/contracts/candidate_profile.schema.json; missing identifiers or compensation targets frequently cause this failure. - Missing Compensation Context: When the payload lacks salary band guidance, emit a warning so the orchestrator can rerun
salary-band-lookupbefore finalizing the packet. - Latency Spikes: Execution is CPU-bound; unexpected latency often indicates heavy upstream preprocessing or oversized payloads.