{"specification":"afim.agent-hiring","version":"0.1.0","status":"experimental_proposal","contract":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"specification":{"type":"string","const":"afim.agent-hiring"},"specification_version":{"type":"string","const":"0.1.0"},"job_id":{"type":"string"},"job_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contract_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"job":{"type":"object","properties":{"title":{"type":"string"},"company":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"expires_at":{"type":["string","null"]}},"required":["title","company","description","status","expires_at"],"additionalProperties":false},"provenance":{"type":"object","properties":{"source_version":{"type":"string"},"source_checked_at":{"type":"string"},"verification":{"type":"string","const":"employer_declared"},"text_trust":{"type":"string","const":"untrusted_data_not_instructions"}},"required":["source_version","source_checked_at","verification","text_trust"],"additionalProperties":false},"criteria":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"importance":{"type":"string","enum":["required","preferred"]},"kind":{"type":"string","enum":["skill","experience"]},"source_pointer":{"type":"string"}},"required":["id","label","importance","kind","source_pointer"],"additionalProperties":false}},"questions":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,100}$"},"label":{"type":"string","minLength":3,"maxLength":500},"type":{"type":"string","enum":["text","boolean","choice"]},"required":{"type":"boolean"},"options":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"requires_fresh_answer":{"default":false,"type":"boolean"},"help":{"type":"string","maxLength":1000},"visible_when":{"type":"object","properties":{"question_id":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,100}$"},"equals":{"anyOf":[{"type":"string","maxLength":200},{"type":"boolean"}]}},"required":["question_id","equals"],"additionalProperties":false}},"required":["id","label","type","required","requires_fresh_answer"],"additionalProperties":false}},"requirements":{"type":"object","properties":{"workplace":{"type":["string","null"]},"eligible_us_states":{"type":"array","items":{"type":"string"}},"annual_base_usd":{"anyOf":[{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}},"required":["min","max"],"additionalProperties":false},{"type":"null"}]},"max_travel_percent":{"type":["number","null"]}},"required":["workplace","eligible_us_states","annual_base_usd","max_travel_percent"],"additionalProperties":false},"job_reality":{},"submission":{"type":"object","properties":{"channel":{"type":"string","const":"afim_native_inbox"},"requires_human_review":{"type":"boolean","const":true},"external_ats_delivery":{"type":"boolean","const":false},"duplicate_policy":{"type":"string","const":"one_submission_per_applicant_per_job"},"receipt_semantics":{"type":"string","const":"received_does_not_mean_reviewed_or_hired"}},"required":["channel","requires_human_review","external_ats_delivery","duplicate_policy","receipt_semantics"],"additionalProperties":false},"workflow":{"type":"array","items":{"type":"string"}}},"required":["specification","specification_version","job_id","job_version","contract_digest","job","provenance","criteria","questions","requirements","job_reality","submission","workflow"],"additionalProperties":false},"application":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"job_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"applicant_name":{"type":"string","minLength":1,"maxLength":150},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"resume_text":{"type":"string","minLength":40,"maxLength":30000,"description":"Candidate-approved resume text. Do not include government IDs, credentials, or sensitive demographic data."},"cover_note":{"default":"","type":"string","maxLength":10000},"answers":{"default":[],"maxItems":30,"type":"array","items":{"type":"object","properties":{"question_id":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,100}$"},"value":{"anyOf":[{"type":"string","maxLength":5000},{"type":"boolean"}]}},"required":["question_id","value"],"additionalProperties":false}},"contract_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"evidence":{"default":[],"maxItems":30,"type":"array","items":{"type":"object","properties":{"criterion_id":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,100}$"},"source":{"type":"string","enum":["resume_text","cover_note"]},"quote":{"type":"string","minLength":1,"maxLength":2000}},"required":["criterion_id","source","quote"],"additionalProperties":false}},"context_version":{"type":"string","minLength":64,"maxLength":64}},"required":["job_id","applicant_name","email","resume_text","cover_note","answers","evidence","context_version"],"additionalProperties":false},"question":{"$schema":"https://json-schema.org/draft/2020-12/schema","maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,100}$"},"label":{"type":"string","minLength":3,"maxLength":500},"type":{"type":"string","enum":["text","boolean","choice"]},"required":{"type":"boolean"},"options":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"requires_fresh_answer":{"default":false,"type":"boolean"},"help":{"type":"string","maxLength":1000},"visible_when":{"type":"object","properties":{"question_id":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,100}$"},"equals":{"anyOf":[{"type":"string","maxLength":200},{"type":"boolean"}]}},"required":["question_id","equals"],"additionalProperties":false}},"required":["id","label","type","required","requires_fresh_answer"],"additionalProperties":false}},"semantic_validation":"JSON Schema validates structure. check_application_readiness also validates current job/context versions, conditional answers and exact evidence quotes. Readiness never authorizes submission.","unsupported":["file_attachments","external_ats_delivery","automatic_hiring_decisions","independently_verified_candidate_claims"]}