Answer structured closeout, precedence, and reconciliation tasks using the PeopleOps remote environment.
Environment
Base URL: http://34.46.77.124:8012
API endpoints (no auth required for read):
GET /api/employees
GET /api/cases and GET /api/cases/{case_id}
GET /api/policies and GET /api/policies/{policy_id}
GET /api/messages
GET /api/documents
GET /api/audit
GET /api/recruitment
GET /api/payroll-ledgers
GET /api/summary
Workflow
Read the task prompt in prompt.txt to identify the target employee, case, or opening.
Read the answer template in input/payloads/answer_template.json to see required fields and allowed enum values.
Fetch all relevant data from the API (case detail, employee, payroll-ledgers, recruitment, audit, messages, documents, policies).
Apply the business rules below and produce JSON matching the answer template exactly.
Return only JSON (no markdown, no explanatory text).
Business Rules
1. Source Precedence (Leave / Payroll)
Approved or submitted assignments control over employee profile summaries.
Draft, voided, and superseded records must be excluded even when they conflict with profiles.
For leave: use approved_leave_days and policy_name from the approved/submitted leave assignment in payroll-ledgers.
For payroll: use the submitted salary assignment; exclude draft planning assignments.
2. Folder Readiness
A folder is ready only when all required files and all required tags are present.
Missing files are computed as required_files - files.
Missing tags are computed as required_tags - tags.
3. Notice Quality
Inspect messages and notice packets for defects:
missing_ack_deadline
missing_appeal_instructions
missing_waitlist_status
missing_correct_policy
If any defect exists, notice_quality = defective and list the defects.
Evidence source for notices should be notice_packet_inspection when inspecting formal notice packets; message_notice_inspection is only for informal messages.
4. Closeout Gate Logic
Approval is not sufficient when the folder or notice is defective.
closeout_blockers must include every applicable blocker:
next_action for a blocked closeout with notice defects is typically block_close_and_reissue_notice.
escalation_action for cases with both folder and notice defects is open_records_remediation.
records_remediation_owner for folder issues is Records; for cross-module escalations it may be People Ops Compliance.
5. Recruitment Reconciliation
Selected candidate = candidate with committee decision "Selected" and accepted offer.
recruitment_cost_total = sum of all amount values in the opening's cost_ledger.
notice_followup_required includes candidates whose notice status is not_sent or draft_reissue_required.
Waitlisted candidates get send_waitlist_notice; rejected candidates get send_rejection_notice.
Payroll handoff is created only after a selected candidate has an accepted offer.
onboarding_handoff for a new accepted offer with no existing payroll records is create_payroll_precheck.
handoff_control_result is submitted_handoff_required_after_acceptance when an accepted offer exists but no submitted payroll assignment is present yet.
draft_payroll_allowed is true only when draft prechecks are explicitly allowed by policy (default false for recruiting handoff).
6. Audit Scope and Event Selection
Use the audit event that directly supports the business decision as audit_event_id.
supporting_audit_event_ids are other audit events in the same scope.
excluded_audit_event_ids are adjacent audit events outside the current scope (e.g., exclude folder/document audits when deciding leave precedence).
audit_scope enum must match the task domain:
leave_source_precedence_only
document_notice_findings_only
payroll_assignment_readiness
7. Evidence Source Order
Order should reflect what was actually examined:
approval_history_folder_notice_audit when all four sources exist
folder_notice_audit when approvals are not relevant
audit_only when only audit events were used
Common Field Mappings
final_decision: derive from the last approval note (e.g., "Approved with conditions" → approved_with_conditions).
approval_authority: approver field from the final approval event.
approval_event_id: the approval ID for the final approval step.
control_result / final_control_result:
Use ready_with_monitoring when submitted assignment matches accrual batch and no defects exist.
Use hold_for_folder_and_notice_defects when either is defective.
Use approve_closeout when records are clean.
effective_date: use the assignment/ledger updated_at date or the employee hire_date, truncated to date only (YYYY-MM-DD).
1---2name: reflect-3-attempt-01-403description: PeopleOps Lifecycle Closeout and Precedence Skill4---5# PeopleOps Lifecycle Closeout and Precedence Skill67## Goal8Answer structured closeout, precedence, and reconciliation tasks using the PeopleOps remote environment.910## Environment11- Base URL: `http://34.46.77.124:8012`12- API endpoints (no auth required for read):13 - `GET /api/employees`14 - `GET /api/cases` and `GET /api/cases/{case_id}`15 - `GET /api/policies` and `GET /api/policies/{policy_id}`16 - `GET /api/messages`17 - `GET /api/documents`18 - `GET /api/audit`19 - `GET /api/recruitment`20 - `GET /api/payroll-ledgers`21 - `GET /api/summary`2223## Workflow241. **Read the task prompt** in `prompt.txt` to identify the target employee, case, or opening.252. **Read the answer template** in `input/payloads/answer_template.json` to see required fields and allowed enum values.263. **Fetch all relevant data** from the API (case detail, employee, payroll-ledgers, recruitment, audit, messages, documents, policies).274. **Apply the business rules below** and produce JSON matching the answer template exactly.285. **Return only JSON** (no markdown, no explanatory text).2930## Business Rules3132### 1. Source Precedence (Leave / Payroll)33- **Approved or submitted assignments control** over employee profile summaries.34- **Draft, voided, and superseded records must be excluded** even when they conflict with profiles.35- For leave: use `approved_leave_days` and `policy_name` from the approved/submitted leave assignment in `payroll-ledgers`.36- For payroll: use the submitted salary assignment; exclude draft planning assignments.3738### 2. Folder Readiness39- A folder is ready only when **all required files and all required tags** are present.40- Missing files are computed as `required_files - files`.41- Missing tags are computed as `required_tags - tags`.4243### 3. Notice Quality44- Inspect messages and notice packets for defects:45 - `missing_ack_deadline`46 - `missing_appeal_instructions`47 - `missing_waitlist_status`48 - `missing_correct_policy`49- If any defect exists, `notice_quality` = `defective` and list the defects.50- Evidence source for notices should be `notice_packet_inspection` when inspecting formal notice packets; `message_notice_inspection` is only for informal messages.5152### 4. Closeout Gate Logic53- Approval is **not sufficient** when the folder or notice is defective.54- `closeout_blockers` must include every applicable blocker:55 - `missing_required_files` (when folder lacks required files)56 - `missing_required_tags` (when folder lacks required tags)57 - `defective_formal_notice` (when notice has defects)58- `next_action` for a blocked closeout with notice defects is typically `block_close_and_reissue_notice`.59- `escalation_action` for cases with both folder and notice defects is `open_records_remediation`.60- `records_remediation_owner` for folder issues is `Records`; for cross-module escalations it may be `People Ops Compliance`.6162### 5. Recruitment Reconciliation63- Selected candidate = candidate with committee decision "Selected" and accepted offer.64- `recruitment_cost_total` = sum of all `amount` values in the opening's `cost_ledger`.65- `notice_followup_required` includes candidates whose notice status is `not_sent` or `draft_reissue_required`.66- Waitlisted candidates get `send_waitlist_notice`; rejected candidates get `send_rejection_notice`.67- Payroll handoff is created only after a selected candidate has an accepted offer.68- `onboarding_handoff` for a new accepted offer with no existing payroll records is `create_payroll_precheck`.69- `handoff_control_result` is `submitted_handoff_required_after_acceptance` when an accepted offer exists but no submitted payroll assignment is present yet.70- `draft_payroll_allowed` is `true` only when draft prechecks are explicitly allowed by policy (default `false` for recruiting handoff).7172### 6. Audit Scope and Event Selection73- Use the audit event that directly supports the business decision as `audit_event_id`.74- `supporting_audit_event_ids` are other audit events in the same scope.75- `excluded_audit_event_ids` are adjacent audit events outside the current scope (e.g., exclude folder/document audits when deciding leave precedence).76- `audit_scope` enum must match the task domain:77 - `leave_source_precedence_only`78 - `document_notice_findings_only`79 - `payroll_assignment_readiness`8081### 7. Evidence Source Order82- Order should reflect what was actually examined:83 - `approval_history_folder_notice_audit` when all four sources exist84 - `folder_notice_audit` when approvals are not relevant85 - `audit_only` when only audit events were used8687## Common Field Mappings88- `final_decision`: derive from the last approval note (e.g., "Approved with conditions" → `approved_with_conditions`).89- `approval_authority`: `approver` field from the final approval event.90- `approval_event_id`: the approval ID for the final approval step.91- `control_result` / `final_control_result`:92 - Use `ready_with_monitoring` when submitted assignment matches accrual batch and no defects exist.93 - Use `hold_for_folder_and_notice_defects` when either is defective.94 - Use `approve_closeout` when records are clean.95- `effective_date`: use the assignment/ledger `updated_at` date or the employee `hire_date`, truncated to date only (`YYYY-MM-DD`).
Run npx skillmds@latest add prism-shadow/reflect-3-attempt-01-40 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
PeopleOps Lifecycle Closeout and Precedence Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
prism-shadow (@prism-shadow) published this skill. Their other Agent Skills are listed on their SkillMD profile.